configure 947 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323
  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. WAYLAND_SCANNER_CODE_MODE
  601. WAYLAND_SCANNER
  602. EXTRA_LDFLAGS
  603. BUILD_LDFLAGS
  604. EXTRA_CFLAGS
  605. BUILD_CFLAGS
  606. SDLTEST_OBJECTS
  607. SDLMAIN_OBJECTS
  608. VERSION_OBJECTS
  609. GEN_OBJECTS
  610. GEN_HEADERS
  611. OBJECTS
  612. INCLUDE
  613. ac_aux_dir
  614. ENABLE_STATIC_FALSE
  615. ENABLE_STATIC_TRUE
  616. ENABLE_SHARED_FALSE
  617. ENABLE_SHARED_TRUE
  618. PKGCONFIG_LIBS_PRIV
  619. SDL_RLD_FLAGS
  620. SDL_STATIC_LIBS
  621. SDL_LIBS
  622. SDL_CFLAGS
  623. bin_prefix_relpath
  624. cmake_prefix_relpath
  625. INSTALL_SDL2_CONFIG
  626. LIBUSB_LIBS
  627. LIBUSB_CFLAGS
  628. IBUS_LIBS
  629. IBUS_CFLAGS
  630. DBUS_LIBS
  631. DBUS_CFLAGS
  632. LIBGBM_LIBS
  633. LIBGBM_CFLAGS
  634. LIBDRM_LIBS
  635. LIBDRM_CFLAGS
  636. DIRECTFB_LIBS
  637. DIRECTFB_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. FUSIONSOUND_LIBS
  648. FUSIONSOUND_CFLAGS
  649. ARTSCONFIG
  650. PULSEAUDIO_LIBS
  651. PULSEAUDIO_CFLAGS
  652. PIPEWIRE_LIBS
  653. PIPEWIRE_CFLAGS
  654. ESD_LIBS
  655. ESD_CFLAGS
  656. ESD_CONFIG
  657. JACK_LIBS
  658. JACK_CFLAGS
  659. ALSA_LIBS
  660. ALSA_CFLAGS
  661. POW_LIB
  662. LIBOBJS
  663. ALLOCA
  664. CPP
  665. LIBTOOLLINKERTAG
  666. LINKER
  667. PKG_CONFIG_LIBDIR
  668. PKG_CONFIG_PATH
  669. PKG_CONFIG
  670. SET_MAKE
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. CXXCPP
  675. ac_ct_CXX
  676. CXXFLAGS
  677. CXX
  678. LT_AGE
  679. LT_REVISION
  680. LT_CURRENT
  681. LT_RELEASE
  682. RC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. AWK
  691. RANLIB
  692. STRIP
  693. ac_ct_AR
  694. AR
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. EGREP
  702. GREP
  703. SED
  704. OBJEXT
  705. EXEEXT
  706. ac_ct_CC
  707. CPPFLAGS
  708. LDFLAGS
  709. CFLAGS
  710. CC
  711. host_os
  712. host_vendor
  713. host_cpu
  714. host
  715. build_os
  716. build_vendor
  717. build_cpu
  718. build
  719. LIBTOOL
  720. OBJDUMP
  721. DLLTOOL
  722. AS
  723. SDL_VERSION
  724. SDL_BINARY_AGE
  725. SDL_INTERFACE_AGE
  726. SDL_MICRO_VERSION
  727. SDL_MINOR_VERSION
  728. SDL_MAJOR_VERSION
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. runstatedir
  749. localstatedir
  750. sharedstatedir
  751. sysconfdir
  752. datadir
  753. datarootdir
  754. libexecdir
  755. sbindir
  756. bindir
  757. program_transform_name
  758. prefix
  759. exec_prefix
  760. PACKAGE_URL
  761. PACKAGE_BUGREPORT
  762. PACKAGE_STRING
  763. PACKAGE_VERSION
  764. PACKAGE_TARNAME
  765. PACKAGE_NAME
  766. PATH_SEPARATOR
  767. SHELL'
  768. ac_subst_files=''
  769. ac_user_opts='
  770. enable_option_checking
  771. enable_shared
  772. enable_static
  773. with_pic
  774. enable_fast_install
  775. with_aix_soname
  776. with_gnu_ld
  777. with_sysroot
  778. enable_libtool_lock
  779. enable_largefile
  780. enable_assertions
  781. enable_dependency_tracking
  782. enable_libc
  783. enable_gcc_atomics
  784. enable_atomic
  785. enable_audio
  786. enable_video
  787. enable_render
  788. enable_events
  789. enable_joystick
  790. enable_haptic
  791. enable_hidapi
  792. enable_sensor
  793. enable_power
  794. enable_filesystem
  795. enable_threads
  796. enable_timers
  797. enable_file
  798. enable_misc
  799. enable_locale
  800. enable_loadso
  801. enable_cpuinfo
  802. enable_assembly
  803. enable_ssemath
  804. enable_mmx
  805. enable_3dnow
  806. enable_sse
  807. enable_sse2
  808. enable_sse3
  809. enable_altivec
  810. enable_lsx
  811. enable_lasx
  812. enable_oss
  813. enable_alsa
  814. with_alsa_prefix
  815. with_alsa_inc_prefix
  816. enable_alsatest
  817. enable_alsa_shared
  818. enable_jack
  819. enable_jack_shared
  820. enable_esd
  821. with_esd_prefix
  822. with_esd_exec_prefix
  823. enable_esdtest
  824. enable_esd_shared
  825. enable_pipewire
  826. enable_pipewire_shared
  827. enable_pulseaudio
  828. enable_pulseaudio_shared
  829. enable_arts
  830. enable_arts_shared
  831. enable_nas
  832. enable_nas_shared
  833. enable_sndio
  834. enable_sndio_shared
  835. enable_fusionsound
  836. enable_fusionsound_shared
  837. enable_diskaudio
  838. enable_dummyaudio
  839. enable_libsamplerate
  840. enable_libsamplerate_shared
  841. enable_arm_simd
  842. enable_arm_neon
  843. enable_video_wayland
  844. enable_video_wayland_qt_touch
  845. enable_wayland_shared
  846. enable_libdecor
  847. enable_libdecor_shared
  848. enable_video_rpi
  849. enable_video_x11
  850. with_x
  851. enable_x11_shared
  852. enable_video_x11_xcursor
  853. enable_video_x11_xdbe
  854. enable_video_x11_xinput
  855. enable_video_x11_xfixes
  856. enable_video_x11_xrandr
  857. enable_video_x11_scrnsaver
  858. enable_video_x11_xshape
  859. enable_video_vivante
  860. enable_video_cocoa
  861. enable_video_metal
  862. enable_render_metal
  863. enable_video_directfb
  864. enable_directfb_shared
  865. enable_video_kmsdrm
  866. enable_kmsdrm_shared
  867. enable_video_dummy
  868. enable_video_offscreen
  869. enable_video_opengl
  870. enable_video_opengles
  871. enable_video_opengles1
  872. enable_video_opengles2
  873. enable_video_vulkan
  874. enable_libudev
  875. enable_dbus
  876. enable_ime
  877. enable_ibus
  878. enable_fcitx
  879. enable_joystick_mfi
  880. enable_pthreads
  881. enable_pthread_sem
  882. enable_directx
  883. enable_xinput
  884. enable_wasapi
  885. enable_hidapi_joystick
  886. enable_hidapi_libusb
  887. enable_clock_gettime
  888. enable_rpath
  889. enable_backgrounding_signal
  890. enable_foregrounding_signal
  891. enable_joystick_virtual
  892. enable_render_d3d
  893. enable_sdl2_config
  894. '
  895. ac_precious_vars='build_alias
  896. host_alias
  897. target_alias
  898. CC
  899. CFLAGS
  900. LDFLAGS
  901. LIBS
  902. CPPFLAGS
  903. LT_SYS_LIBRARY_PATH
  904. CXX
  905. CXXFLAGS
  906. CCC
  907. CXXCPP
  908. PKG_CONFIG
  909. PKG_CONFIG_PATH
  910. PKG_CONFIG_LIBDIR
  911. CPP
  912. JACK_CFLAGS
  913. JACK_LIBS
  914. PIPEWIRE_CFLAGS
  915. PIPEWIRE_LIBS
  916. PULSEAUDIO_CFLAGS
  917. PULSEAUDIO_LIBS
  918. FUSIONSOUND_CFLAGS
  919. FUSIONSOUND_LIBS
  920. DECOR_CFLAGS
  921. DECOR_LIBS
  922. RPI_CFLAGS
  923. RPI_LIBS
  924. XMKMF
  925. DIRECTFB_CFLAGS
  926. DIRECTFB_LIBS
  927. LIBDRM_CFLAGS
  928. LIBDRM_LIBS
  929. LIBGBM_CFLAGS
  930. LIBGBM_LIBS
  931. DBUS_CFLAGS
  932. DBUS_LIBS
  933. IBUS_CFLAGS
  934. IBUS_LIBS
  935. LIBUSB_CFLAGS
  936. LIBUSB_LIBS'
  937. # Initialize some variables set by options.
  938. ac_init_help=
  939. ac_init_version=false
  940. ac_unrecognized_opts=
  941. ac_unrecognized_sep=
  942. # The variables have the same names as the options, with
  943. # dashes changed to underlines.
  944. cache_file=/dev/null
  945. exec_prefix=NONE
  946. no_create=
  947. no_recursion=
  948. prefix=NONE
  949. program_prefix=NONE
  950. program_suffix=NONE
  951. program_transform_name=s,x,x,
  952. silent=
  953. site=
  954. srcdir=
  955. verbose=
  956. x_includes=NONE
  957. x_libraries=NONE
  958. # Installation directory options.
  959. # These are left unexpanded so users can "make install exec_prefix=/foo"
  960. # and all the variables that are supposed to be based on exec_prefix
  961. # by default will actually change.
  962. # Use braces instead of parens because sh, perl, etc. also accept them.
  963. # (The list follows the same order as the GNU Coding Standards.)
  964. bindir='${exec_prefix}/bin'
  965. sbindir='${exec_prefix}/sbin'
  966. libexecdir='${exec_prefix}/libexec'
  967. datarootdir='${prefix}/share'
  968. datadir='${datarootdir}'
  969. sysconfdir='${prefix}/etc'
  970. sharedstatedir='${prefix}/com'
  971. localstatedir='${prefix}/var'
  972. runstatedir='${localstatedir}/run'
  973. includedir='${prefix}/include'
  974. oldincludedir='/usr/include'
  975. docdir='${datarootdir}/doc/${PACKAGE}'
  976. infodir='${datarootdir}/info'
  977. htmldir='${docdir}'
  978. dvidir='${docdir}'
  979. pdfdir='${docdir}'
  980. psdir='${docdir}'
  981. libdir='${exec_prefix}/lib'
  982. localedir='${datarootdir}/locale'
  983. mandir='${datarootdir}/man'
  984. ac_prev=
  985. ac_dashdash=
  986. for ac_option
  987. do
  988. # If the previous option needs an argument, assign it.
  989. if test -n "$ac_prev"; then
  990. eval $ac_prev=\$ac_option
  991. ac_prev=
  992. continue
  993. fi
  994. case $ac_option in
  995. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  996. *=) ac_optarg= ;;
  997. *) ac_optarg=yes ;;
  998. esac
  999. case $ac_dashdash$ac_option in
  1000. --)
  1001. ac_dashdash=yes ;;
  1002. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1003. ac_prev=bindir ;;
  1004. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1005. bindir=$ac_optarg ;;
  1006. -build | --build | --buil | --bui | --bu)
  1007. ac_prev=build_alias ;;
  1008. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1009. build_alias=$ac_optarg ;;
  1010. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1011. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1012. ac_prev=cache_file ;;
  1013. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1014. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1015. cache_file=$ac_optarg ;;
  1016. --config-cache | -C)
  1017. cache_file=config.cache ;;
  1018. -datadir | --datadir | --datadi | --datad)
  1019. ac_prev=datadir ;;
  1020. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1021. datadir=$ac_optarg ;;
  1022. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1023. | --dataroo | --dataro | --datar)
  1024. ac_prev=datarootdir ;;
  1025. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1026. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1027. datarootdir=$ac_optarg ;;
  1028. -disable-* | --disable-*)
  1029. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1032. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1033. ac_useropt_orig=$ac_useropt
  1034. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1035. case $ac_user_opts in
  1036. *"
  1037. "enable_$ac_useropt"
  1038. "*) ;;
  1039. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1040. ac_unrecognized_sep=', ';;
  1041. esac
  1042. eval enable_$ac_useropt=no ;;
  1043. -docdir | --docdir | --docdi | --doc | --do)
  1044. ac_prev=docdir ;;
  1045. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1046. docdir=$ac_optarg ;;
  1047. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1048. ac_prev=dvidir ;;
  1049. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1050. dvidir=$ac_optarg ;;
  1051. -enable-* | --enable-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "enable_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval enable_$ac_useropt=\$ac_optarg ;;
  1066. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1067. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1068. | --exec | --exe | --ex)
  1069. ac_prev=exec_prefix ;;
  1070. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1071. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1072. | --exec=* | --exe=* | --ex=*)
  1073. exec_prefix=$ac_optarg ;;
  1074. -gas | --gas | --ga | --g)
  1075. # Obsolete; use --with-gas.
  1076. with_gas=yes ;;
  1077. -help | --help | --hel | --he | -h)
  1078. ac_init_help=long ;;
  1079. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1080. ac_init_help=recursive ;;
  1081. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1082. ac_init_help=short ;;
  1083. -host | --host | --hos | --ho)
  1084. ac_prev=host_alias ;;
  1085. -host=* | --host=* | --hos=* | --ho=*)
  1086. host_alias=$ac_optarg ;;
  1087. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1088. ac_prev=htmldir ;;
  1089. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1090. | --ht=*)
  1091. htmldir=$ac_optarg ;;
  1092. -includedir | --includedir | --includedi | --included | --include \
  1093. | --includ | --inclu | --incl | --inc)
  1094. ac_prev=includedir ;;
  1095. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1096. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1097. includedir=$ac_optarg ;;
  1098. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1099. ac_prev=infodir ;;
  1100. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1101. infodir=$ac_optarg ;;
  1102. -libdir | --libdir | --libdi | --libd)
  1103. ac_prev=libdir ;;
  1104. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1105. libdir=$ac_optarg ;;
  1106. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1107. | --libexe | --libex | --libe)
  1108. ac_prev=libexecdir ;;
  1109. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1110. | --libexe=* | --libex=* | --libe=*)
  1111. libexecdir=$ac_optarg ;;
  1112. -localedir | --localedir | --localedi | --localed | --locale)
  1113. ac_prev=localedir ;;
  1114. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1115. localedir=$ac_optarg ;;
  1116. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1117. | --localstate | --localstat | --localsta | --localst | --locals)
  1118. ac_prev=localstatedir ;;
  1119. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1120. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1121. localstatedir=$ac_optarg ;;
  1122. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1123. ac_prev=mandir ;;
  1124. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1125. mandir=$ac_optarg ;;
  1126. -nfp | --nfp | --nf)
  1127. # Obsolete; use --without-fp.
  1128. with_fp=no ;;
  1129. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1130. | --no-cr | --no-c | -n)
  1131. no_create=yes ;;
  1132. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1133. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1134. no_recursion=yes ;;
  1135. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1136. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1137. | --oldin | --oldi | --old | --ol | --o)
  1138. ac_prev=oldincludedir ;;
  1139. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1140. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1141. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1142. oldincludedir=$ac_optarg ;;
  1143. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1144. ac_prev=prefix ;;
  1145. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1146. prefix=$ac_optarg ;;
  1147. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1148. | --program-pre | --program-pr | --program-p)
  1149. ac_prev=program_prefix ;;
  1150. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1151. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1152. program_prefix=$ac_optarg ;;
  1153. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1154. | --program-suf | --program-su | --program-s)
  1155. ac_prev=program_suffix ;;
  1156. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1157. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1158. program_suffix=$ac_optarg ;;
  1159. -program-transform-name | --program-transform-name \
  1160. | --program-transform-nam | --program-transform-na \
  1161. | --program-transform-n | --program-transform- \
  1162. | --program-transform | --program-transfor \
  1163. | --program-transfo | --program-transf \
  1164. | --program-trans | --program-tran \
  1165. | --progr-tra | --program-tr | --program-t)
  1166. ac_prev=program_transform_name ;;
  1167. -program-transform-name=* | --program-transform-name=* \
  1168. | --program-transform-nam=* | --program-transform-na=* \
  1169. | --program-transform-n=* | --program-transform-=* \
  1170. | --program-transform=* | --program-transfor=* \
  1171. | --program-transfo=* | --program-transf=* \
  1172. | --program-trans=* | --program-tran=* \
  1173. | --progr-tra=* | --program-tr=* | --program-t=*)
  1174. program_transform_name=$ac_optarg ;;
  1175. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1176. ac_prev=pdfdir ;;
  1177. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1178. pdfdir=$ac_optarg ;;
  1179. -psdir | --psdir | --psdi | --psd | --ps)
  1180. ac_prev=psdir ;;
  1181. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1182. psdir=$ac_optarg ;;
  1183. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1184. | -silent | --silent | --silen | --sile | --sil)
  1185. silent=yes ;;
  1186. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1187. | --runstate | --runstat | --runsta | --runst | --runs \
  1188. | --run | --ru | --r)
  1189. ac_prev=runstatedir ;;
  1190. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1191. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1192. | --run=* | --ru=* | --r=*)
  1193. runstatedir=$ac_optarg ;;
  1194. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1195. ac_prev=sbindir ;;
  1196. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1197. | --sbi=* | --sb=*)
  1198. sbindir=$ac_optarg ;;
  1199. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1200. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1201. | --sharedst | --shareds | --shared | --share | --shar \
  1202. | --sha | --sh)
  1203. ac_prev=sharedstatedir ;;
  1204. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1205. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1206. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1207. | --sha=* | --sh=*)
  1208. sharedstatedir=$ac_optarg ;;
  1209. -site | --site | --sit)
  1210. ac_prev=site ;;
  1211. -site=* | --site=* | --sit=*)
  1212. site=$ac_optarg ;;
  1213. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1214. ac_prev=srcdir ;;
  1215. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1216. srcdir=$ac_optarg ;;
  1217. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1218. | --syscon | --sysco | --sysc | --sys | --sy)
  1219. ac_prev=sysconfdir ;;
  1220. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1221. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1222. sysconfdir=$ac_optarg ;;
  1223. -target | --target | --targe | --targ | --tar | --ta | --t)
  1224. ac_prev=target_alias ;;
  1225. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1226. target_alias=$ac_optarg ;;
  1227. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1228. verbose=yes ;;
  1229. -version | --version | --versio | --versi | --vers | -V)
  1230. ac_init_version=: ;;
  1231. -with-* | --with-*)
  1232. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1233. # Reject names that are not valid shell variable names.
  1234. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1235. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1236. ac_useropt_orig=$ac_useropt
  1237. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1238. case $ac_user_opts in
  1239. *"
  1240. "with_$ac_useropt"
  1241. "*) ;;
  1242. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1243. ac_unrecognized_sep=', ';;
  1244. esac
  1245. eval with_$ac_useropt=\$ac_optarg ;;
  1246. -without-* | --without-*)
  1247. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1248. # Reject names that are not valid shell variable names.
  1249. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1250. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1251. ac_useropt_orig=$ac_useropt
  1252. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1253. case $ac_user_opts in
  1254. *"
  1255. "with_$ac_useropt"
  1256. "*) ;;
  1257. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1258. ac_unrecognized_sep=', ';;
  1259. esac
  1260. eval with_$ac_useropt=no ;;
  1261. --x)
  1262. # Obsolete; use --with-x.
  1263. with_x=yes ;;
  1264. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1265. | --x-incl | --x-inc | --x-in | --x-i)
  1266. ac_prev=x_includes ;;
  1267. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1268. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1269. x_includes=$ac_optarg ;;
  1270. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1271. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1272. ac_prev=x_libraries ;;
  1273. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1274. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1275. x_libraries=$ac_optarg ;;
  1276. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1277. Try \`$0 --help' for more information"
  1278. ;;
  1279. *=*)
  1280. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1281. # Reject names that are not valid shell variable names.
  1282. case $ac_envvar in #(
  1283. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1284. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1285. esac
  1286. eval $ac_envvar=\$ac_optarg
  1287. export $ac_envvar ;;
  1288. *)
  1289. # FIXME: should be removed in autoconf 3.0.
  1290. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1291. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1292. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1293. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1294. ;;
  1295. esac
  1296. done
  1297. if test -n "$ac_prev"; then
  1298. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1299. as_fn_error $? "missing argument to $ac_option"
  1300. fi
  1301. if test -n "$ac_unrecognized_opts"; then
  1302. case $enable_option_checking in
  1303. no) ;;
  1304. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1305. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1306. esac
  1307. fi
  1308. # Check all directory arguments for consistency.
  1309. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1310. datadir sysconfdir sharedstatedir localstatedir includedir \
  1311. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1312. libdir localedir mandir runstatedir
  1313. do
  1314. eval ac_val=\$$ac_var
  1315. # Remove trailing slashes.
  1316. case $ac_val in
  1317. */ )
  1318. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1319. eval $ac_var=\$ac_val;;
  1320. esac
  1321. # Be sure to have absolute directory names.
  1322. case $ac_val in
  1323. [\\/$]* | ?:[\\/]* ) continue;;
  1324. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1325. esac
  1326. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1327. done
  1328. # There might be people who depend on the old broken behavior: `$host'
  1329. # used to hold the argument of --host etc.
  1330. # FIXME: To remove some day.
  1331. build=$build_alias
  1332. host=$host_alias
  1333. target=$target_alias
  1334. # FIXME: To remove some day.
  1335. if test "x$host_alias" != x; then
  1336. if test "x$build_alias" = x; then
  1337. cross_compiling=maybe
  1338. elif test "x$build_alias" != "x$host_alias"; then
  1339. cross_compiling=yes
  1340. fi
  1341. fi
  1342. ac_tool_prefix=
  1343. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1344. test "$silent" = yes && exec 6>/dev/null
  1345. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1346. ac_ls_di=`ls -di .` &&
  1347. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1348. as_fn_error $? "working directory cannot be determined"
  1349. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1350. as_fn_error $? "pwd does not report name of working directory"
  1351. # Find the source files, if location was not specified.
  1352. if test -z "$srcdir"; then
  1353. ac_srcdir_defaulted=yes
  1354. # Try the directory containing this script, then the parent directory.
  1355. ac_confdir=`$as_dirname -- "$as_myself" ||
  1356. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1357. X"$as_myself" : 'X\(//\)[^/]' \| \
  1358. X"$as_myself" : 'X\(//\)$' \| \
  1359. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1360. printf "%s\n" X"$as_myself" |
  1361. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1362. s//\1/
  1363. q
  1364. }
  1365. /^X\(\/\/\)[^/].*/{
  1366. s//\1/
  1367. q
  1368. }
  1369. /^X\(\/\/\)$/{
  1370. s//\1/
  1371. q
  1372. }
  1373. /^X\(\/\).*/{
  1374. s//\1/
  1375. q
  1376. }
  1377. s/.*/./; q'`
  1378. srcdir=$ac_confdir
  1379. if test ! -r "$srcdir/$ac_unique_file"; then
  1380. srcdir=..
  1381. fi
  1382. else
  1383. ac_srcdir_defaulted=no
  1384. fi
  1385. if test ! -r "$srcdir/$ac_unique_file"; then
  1386. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1387. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1388. fi
  1389. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1390. ac_abs_confdir=`(
  1391. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1392. pwd)`
  1393. # When building in place, set srcdir=.
  1394. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1395. srcdir=.
  1396. fi
  1397. # Remove unnecessary trailing slashes from srcdir.
  1398. # Double slashes in file names in object file debugging info
  1399. # mess up M-x gdb in Emacs.
  1400. case $srcdir in
  1401. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1402. esac
  1403. for ac_var in $ac_precious_vars; do
  1404. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1405. eval ac_env_${ac_var}_value=\$${ac_var}
  1406. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1408. done
  1409. #
  1410. # Report the --help message.
  1411. #
  1412. if test "$ac_init_help" = "long"; then
  1413. # Omit some internal or obsolete options to make the list less imposing.
  1414. # This message is too long to be a string in the A/UX 3.1 sh.
  1415. cat <<_ACEOF
  1416. \`configure' configures this package to adapt to many kinds of systems.
  1417. Usage: $0 [OPTION]... [VAR=VALUE]...
  1418. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1419. VAR=VALUE. See below for descriptions of some of the useful variables.
  1420. Defaults for the options are specified in brackets.
  1421. Configuration:
  1422. -h, --help display this help and exit
  1423. --help=short display options specific to this package
  1424. --help=recursive display the short help of all the included packages
  1425. -V, --version display version information and exit
  1426. -q, --quiet, --silent do not print \`checking ...' messages
  1427. --cache-file=FILE cache test results in FILE [disabled]
  1428. -C, --config-cache alias for \`--cache-file=config.cache'
  1429. -n, --no-create do not create output files
  1430. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1431. Installation directories:
  1432. --prefix=PREFIX install architecture-independent files in PREFIX
  1433. [$ac_default_prefix]
  1434. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1435. [PREFIX]
  1436. By default, \`make install' will install all the files in
  1437. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1438. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1439. for instance \`--prefix=\$HOME'.
  1440. For better control, use the options below.
  1441. Fine tuning of the installation directories:
  1442. --bindir=DIR user executables [EPREFIX/bin]
  1443. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1444. --libexecdir=DIR program executables [EPREFIX/libexec]
  1445. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1446. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1447. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1448. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1449. --libdir=DIR object code libraries [EPREFIX/lib]
  1450. --includedir=DIR C header files [PREFIX/include]
  1451. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1452. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1453. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1454. --infodir=DIR info documentation [DATAROOTDIR/info]
  1455. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1456. --mandir=DIR man documentation [DATAROOTDIR/man]
  1457. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1458. --htmldir=DIR html documentation [DOCDIR]
  1459. --dvidir=DIR dvi documentation [DOCDIR]
  1460. --pdfdir=DIR pdf documentation [DOCDIR]
  1461. --psdir=DIR ps documentation [DOCDIR]
  1462. _ACEOF
  1463. cat <<\_ACEOF
  1464. X features:
  1465. --x-includes=DIR X include files are in DIR
  1466. --x-libraries=DIR X library files are in DIR
  1467. System types:
  1468. --build=BUILD configure for building on BUILD [guessed]
  1469. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1470. _ACEOF
  1471. fi
  1472. if test -n "$ac_init_help"; then
  1473. cat <<\_ACEOF
  1474. Optional Features:
  1475. --disable-option-checking ignore unrecognized --enable/--with options
  1476. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1477. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1478. --enable-shared[=PKGS] build shared libraries [default=yes]
  1479. --enable-static[=PKGS] build static libraries [default=yes]
  1480. --enable-fast-install[=PKGS]
  1481. optimize for fast installation [default=yes]
  1482. --disable-libtool-lock avoid locking (might break parallel builds)
  1483. --disable-largefile omit support for large files
  1484. --enable-assertions Enable internal sanity checks
  1485. (auto/disabled/release/enabled/paranoid)
  1486. [default=auto]
  1487. --enable-dependency-tracking
  1488. Use gcc -MMD -MT dependency tracking [default=yes]
  1489. --enable-libc Use the system C library [default=yes]
  1490. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1491. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1492. --enable-audio Enable the audio subsystem [default=yes]
  1493. --enable-video Enable the video subsystem [default=yes]
  1494. --enable-render Enable the render subsystem [default=yes]
  1495. --enable-events Enable the events subsystem [default=yes]
  1496. --enable-joystick Enable the joystick subsystem [default=yes]
  1497. --enable-haptic Enable the haptic (force feedback) subsystem
  1498. [default=yes]
  1499. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1500. --enable-sensor Enable the sensor subsystem [default=yes]
  1501. --enable-power Enable the power subsystem [default=yes]
  1502. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1503. --enable-threads Enable the threading subsystem [default=yes]
  1504. --enable-timers Enable the timer subsystem [default=yes]
  1505. --enable-file Enable the file subsystem [default=yes]
  1506. --enable-misc Enable the misc subsystem [default=yes]
  1507. --enable-locale Enable the locale subsystem [default=yes]
  1508. --enable-loadso Enable the shared object loading subsystem
  1509. [default=yes]
  1510. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1511. --enable-assembly Enable assembly routines [default=yes]
  1512. --enable-ssemath Allow GCC to use SSE floating point math
  1513. [default=maybe]
  1514. --enable-mmx use MMX assembly routines [default=yes]
  1515. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1516. --enable-sse use SSE assembly routines [default=yes]
  1517. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1518. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1519. --enable-altivec use Altivec assembly routines [default=yes]
  1520. --enable-lsx use LSX assembly routines [default=yes]
  1521. --enable-lasx use LASX assembly routines [default=yes]
  1522. --enable-oss support the OSS audio API [default=maybe]
  1523. --enable-alsa support the ALSA audio API [default=yes]
  1524. --disable-alsatest Do not try to compile and run a test Alsa program
  1525. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1526. --enable-jack use JACK audio [default=yes]
  1527. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1528. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1529. --disable-esdtest Do not try to compile and run a test ESD program
  1530. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1531. --enable-pipewire use Pipewire audio [default=yes]
  1532. --enable-pipewire-shared
  1533. dynamically load Pipewire support [default=yes]
  1534. --enable-pulseaudio use PulseAudio [default=yes]
  1535. --enable-pulseaudio-shared
  1536. dynamically load PulseAudio support [default=yes]
  1537. --enable-arts support the Analog Real Time Synthesizer
  1538. [default=yes]
  1539. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1540. --enable-nas support the NAS audio API [default=yes]
  1541. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1542. --enable-sndio support the sndio audio API [default=yes]
  1543. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1544. --enable-fusionsound use FusionSound audio driver [default=no]
  1545. --enable-fusionsound-shared
  1546. dynamically load fusionsound audio support
  1547. [default=yes]
  1548. --enable-diskaudio support the disk writer audio driver [default=yes]
  1549. --enable-dummyaudio support the dummy audio driver [default=yes]
  1550. --enable-libsamplerate use libsamplerate for audio rate conversion
  1551. [default=yes]
  1552. --enable-libsamplerate-shared
  1553. dynamically load libsamplerate [default=yes]
  1554. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1555. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1556. --enable-video-wayland use Wayland video driver [default=yes]
  1557. --enable-video-wayland-qt-touch
  1558. QtWayland server support for Wayland video driver
  1559. [default=yes]
  1560. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1561. --enable-libdecor use libdecor for Wayland client-side decorations
  1562. [default=yes]
  1563. --enable-libdecor-shared
  1564. dynamically load libdecor [default=yes]
  1565. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1566. --enable-video-x11 use X11 video driver [default=yes]
  1567. --enable-x11-shared dynamically load X11 support [default=maybe]
  1568. --enable-video-x11-xcursor
  1569. enable X11 Xcursor support [default=yes]
  1570. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1571. --enable-video-x11-xinput
  1572. enable X11 XInput extension for manymouse, tablets,
  1573. etc [default=yes]
  1574. --enable-video-x11-xfixes
  1575. enable X11 Xfixes support [default=yes]
  1576. --enable-video-x11-xrandr
  1577. enable X11 Xrandr extension for fullscreen
  1578. [default=yes]
  1579. --enable-video-x11-scrnsaver
  1580. enable X11 screensaver extension [default=yes]
  1581. --enable-video-x11-xshape
  1582. enable X11 XShape support [default=yes]
  1583. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1584. --enable-video-cocoa use Cocoa video driver [default=yes]
  1585. --enable-video-metal include Metal support [default=yes]
  1586. --enable-render-metal enable the Metal render driver [default=yes]
  1587. --enable-video-directfb use DirectFB video driver [default=no]
  1588. --enable-directfb-shared
  1589. dynamically load directfb support [default=yes]
  1590. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1591. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1592. --enable-video-dummy use dummy video driver [default=yes]
  1593. --enable-video-offscreen
  1594. use offscreen video driver [default=no]
  1595. --enable-video-opengl include OpenGL support [default=yes]
  1596. --enable-video-opengles include OpenGL ES support [default=yes]
  1597. --enable-video-opengles1
  1598. include OpenGL ES 1.1 support [default=yes]
  1599. --enable-video-opengles2
  1600. include OpenGL ES 2.0 support [default=yes]
  1601. --enable-video-vulkan include Vulkan support [default=yes]
  1602. --enable-libudev enable libudev support [default=yes]
  1603. --enable-dbus enable D-Bus support [default=yes]
  1604. --enable-ime enable IME support [default=yes]
  1605. --enable-ibus enable IBus support [default=yes]
  1606. --enable-fcitx enable fcitx support [default=yes]
  1607. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1608. --enable-pthreads use POSIX threads for multi-threading
  1609. [default=maybe]
  1610. --enable-pthread-sem use pthread semaphores [default=maybe]
  1611. --enable-directx use DirectX for Windows audio/video [default=yes]
  1612. --enable-xinput use Xinput for Windows [default=yes]
  1613. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1614. --enable-hidapi-joystick
  1615. use HIDAPI for low level joystick drivers
  1616. [default=yes]
  1617. --enable-hidapi-libusb use libusb for low level joystick drivers
  1618. [default=maybe]
  1619. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1620. UNIX [default=yes]
  1621. --enable-rpath use an rpath when linking SDL [default=yes]
  1622. --enable-backgrounding-signal
  1623. number to use for magic backgrounding signal or 'no'
  1624. [default=no]
  1625. --enable-foregrounding-signal
  1626. number to use for magic foregrounding signal or 'no'
  1627. [default=no]
  1628. --enable-joystick-virtual
  1629. enable virtual joystick APIs [default=yes]
  1630. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1631. --enable-sdl2-config Install sdl2-config [default=yes]
  1632. Optional Packages:
  1633. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1634. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1635. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1636. both]
  1637. --with-aix-soname=aix|svr4|both
  1638. shared library versioning (aka "SONAME") variant to
  1639. provide on AIX, [default=aix].
  1640. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1641. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1642. compiler's sysroot if not specified).
  1643. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1644. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1645. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1646. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1647. --with-x use the X Window System
  1648. Some influential environment variables:
  1649. CC C compiler command
  1650. CFLAGS C compiler flags
  1651. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1652. nonstandard directory <lib dir>
  1653. LIBS libraries to pass to the linker, e.g. -l<library>
  1654. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1655. you have headers in a nonstandard directory <include dir>
  1656. LT_SYS_LIBRARY_PATH
  1657. User-defined run-time library search path.
  1658. CXX C++ compiler command
  1659. CXXFLAGS C++ compiler flags
  1660. CXXCPP C++ preprocessor
  1661. PKG_CONFIG path to pkg-config utility
  1662. PKG_CONFIG_PATH
  1663. directories to add to pkg-config's search path
  1664. PKG_CONFIG_LIBDIR
  1665. path overriding pkg-config's built-in search path
  1666. CPP C preprocessor
  1667. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1668. JACK_LIBS linker flags for JACK, overriding pkg-config
  1669. PIPEWIRE_CFLAGS
  1670. C compiler flags for PIPEWIRE, overriding pkg-config
  1671. PIPEWIRE_LIBS
  1672. linker flags for PIPEWIRE, overriding pkg-config
  1673. PULSEAUDIO_CFLAGS
  1674. C compiler flags for PULSEAUDIO, overriding pkg-config
  1675. PULSEAUDIO_LIBS
  1676. linker flags for PULSEAUDIO, overriding pkg-config
  1677. FUSIONSOUND_CFLAGS
  1678. C compiler flags for FUSIONSOUND, overriding pkg-config
  1679. FUSIONSOUND_LIBS
  1680. linker flags for FUSIONSOUND, overriding pkg-config
  1681. DECOR_CFLAGS
  1682. C compiler flags for DECOR, overriding pkg-config
  1683. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1684. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1685. RPI_LIBS linker flags for RPI, overriding pkg-config
  1686. XMKMF Path to xmkmf, Makefile generator for X Window System
  1687. DIRECTFB_CFLAGS
  1688. C compiler flags for DIRECTFB, overriding pkg-config
  1689. DIRECTFB_LIBS
  1690. linker flags for DIRECTFB, overriding pkg-config
  1691. LIBDRM_CFLAGS
  1692. C compiler flags for LIBDRM, overriding pkg-config
  1693. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1694. LIBGBM_CFLAGS
  1695. C compiler flags for LIBGBM, overriding pkg-config
  1696. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1697. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1698. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1699. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1700. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1701. LIBUSB_CFLAGS
  1702. C compiler flags for LIBUSB, overriding pkg-config
  1703. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1704. Use these variables to override the choices made by `configure' or to help
  1705. it to find libraries and programs with nonstandard names/locations.
  1706. Report bugs to the package provider.
  1707. _ACEOF
  1708. ac_status=$?
  1709. fi
  1710. if test "$ac_init_help" = "recursive"; then
  1711. # If there are subdirs, report their specific --help.
  1712. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1713. test -d "$ac_dir" ||
  1714. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1715. continue
  1716. ac_builddir=.
  1717. case "$ac_dir" in
  1718. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1719. *)
  1720. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1721. # A ".." for each directory in $ac_dir_suffix.
  1722. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1723. case $ac_top_builddir_sub in
  1724. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1725. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1726. esac ;;
  1727. esac
  1728. ac_abs_top_builddir=$ac_pwd
  1729. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1730. # for backward compatibility:
  1731. ac_top_builddir=$ac_top_build_prefix
  1732. case $srcdir in
  1733. .) # We are building in place.
  1734. ac_srcdir=.
  1735. ac_top_srcdir=$ac_top_builddir_sub
  1736. ac_abs_top_srcdir=$ac_pwd ;;
  1737. [\\/]* | ?:[\\/]* ) # Absolute name.
  1738. ac_srcdir=$srcdir$ac_dir_suffix;
  1739. ac_top_srcdir=$srcdir
  1740. ac_abs_top_srcdir=$srcdir ;;
  1741. *) # Relative name.
  1742. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1743. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1744. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1745. esac
  1746. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1747. cd "$ac_dir" || { ac_status=$?; continue; }
  1748. # Check for configure.gnu first; this name is used for a wrapper for
  1749. # Metaconfig's "Configure" on case-insensitive file systems.
  1750. if test -f "$ac_srcdir/configure.gnu"; then
  1751. echo &&
  1752. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1753. elif test -f "$ac_srcdir/configure"; then
  1754. echo &&
  1755. $SHELL "$ac_srcdir/configure" --help=recursive
  1756. else
  1757. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1758. fi || ac_status=$?
  1759. cd "$ac_pwd" || { ac_status=$?; break; }
  1760. done
  1761. fi
  1762. test -n "$ac_init_help" && exit $ac_status
  1763. if $ac_init_version; then
  1764. cat <<\_ACEOF
  1765. configure
  1766. generated by GNU Autoconf 2.71
  1767. Copyright (C) 2021 Free Software Foundation, Inc.
  1768. This configure script is free software; the Free Software Foundation
  1769. gives unlimited permission to copy, distribute and modify it.
  1770. _ACEOF
  1771. exit
  1772. fi
  1773. ## ------------------------ ##
  1774. ## Autoconf initialization. ##
  1775. ## ------------------------ ##
  1776. # ac_fn_c_try_compile LINENO
  1777. # --------------------------
  1778. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_c_try_compile ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest.beam
  1783. if { { ac_try="$ac_compile"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. printf "%s\n" "$ac_try_echo"; } >&5
  1790. (eval "$ac_compile") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_c_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest.$ac_objext
  1802. then :
  1803. ac_retval=0
  1804. else $as_nop
  1805. printf "%s\n" "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_c_try_compile
  1812. # ac_fn_c_try_link LINENO
  1813. # -----------------------
  1814. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1815. ac_fn_c_try_link ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1819. if { { ac_try="$ac_link"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. printf "%s\n" "$ac_try_echo"; } >&5
  1826. (eval "$ac_link") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } && {
  1835. test -z "$ac_c_werror_flag" ||
  1836. test ! -s conftest.err
  1837. } && test -s conftest$ac_exeext && {
  1838. test "$cross_compiling" = yes ||
  1839. test -x conftest$ac_exeext
  1840. }
  1841. then :
  1842. ac_retval=0
  1843. else $as_nop
  1844. printf "%s\n" "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846. ac_retval=1
  1847. fi
  1848. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1849. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1850. # interfere with the next link command; also delete a directory that is
  1851. # left behind by Apple's compiler. We do this before executing the actions.
  1852. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. as_fn_set_status $ac_retval
  1855. } # ac_fn_c_try_link
  1856. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1857. # -------------------------------------------------------
  1858. # Tests whether HEADER exists and can be compiled using the include files in
  1859. # INCLUDES, setting the cache variable VAR accordingly.
  1860. ac_fn_c_check_header_compile ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1864. printf %s "checking for $2... " >&6; }
  1865. if eval test \${$3+y}
  1866. then :
  1867. printf %s "(cached) " >&6
  1868. else $as_nop
  1869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1870. /* end confdefs.h. */
  1871. $4
  1872. #include <$2>
  1873. _ACEOF
  1874. if ac_fn_c_try_compile "$LINENO"
  1875. then :
  1876. eval "$3=yes"
  1877. else $as_nop
  1878. eval "$3=no"
  1879. fi
  1880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1881. fi
  1882. eval ac_res=\$$3
  1883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1884. printf "%s\n" "$ac_res" >&6; }
  1885. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1886. } # ac_fn_c_check_header_compile
  1887. # ac_fn_c_check_func LINENO FUNC VAR
  1888. # ----------------------------------
  1889. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1890. ac_fn_c_check_func ()
  1891. {
  1892. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1894. printf %s "checking for $2... " >&6; }
  1895. if eval test \${$3+y}
  1896. then :
  1897. printf %s "(cached) " >&6
  1898. else $as_nop
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1902. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1903. #define $2 innocuous_$2
  1904. /* System header to define __stub macros and hopefully few prototypes,
  1905. which can conflict with char $2 (); below. */
  1906. #include <limits.h>
  1907. #undef $2
  1908. /* Override any GCC internal prototype to avoid an error.
  1909. Use char because int might match the return type of a GCC
  1910. builtin and then its argument prototype would still apply. */
  1911. #ifdef __cplusplus
  1912. extern "C"
  1913. #endif
  1914. char $2 ();
  1915. /* The GNU C library defines this for functions which it implements
  1916. to always fail with ENOSYS. Some functions are actually named
  1917. something starting with __ and the normal name is an alias. */
  1918. #if defined __stub_$2 || defined __stub___$2
  1919. choke me
  1920. #endif
  1921. int
  1922. main (void)
  1923. {
  1924. return $2 ();
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_c_try_link "$LINENO"
  1930. then :
  1931. eval "$3=yes"
  1932. else $as_nop
  1933. eval "$3=no"
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1936. conftest$ac_exeext conftest.$ac_ext
  1937. fi
  1938. eval ac_res=\$$3
  1939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1940. printf "%s\n" "$ac_res" >&6; }
  1941. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1942. } # ac_fn_c_check_func
  1943. # ac_fn_cxx_try_compile LINENO
  1944. # ----------------------------
  1945. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1946. ac_fn_cxx_try_compile ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. rm -f conftest.$ac_objext conftest.beam
  1950. if { { ac_try="$ac_compile"
  1951. case "(($ac_try" in
  1952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1953. *) ac_try_echo=$ac_try;;
  1954. esac
  1955. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1956. printf "%s\n" "$ac_try_echo"; } >&5
  1957. (eval "$ac_compile") 2>conftest.err
  1958. ac_status=$?
  1959. if test -s conftest.err; then
  1960. grep -v '^ *+' conftest.err >conftest.er1
  1961. cat conftest.er1 >&5
  1962. mv -f conftest.er1 conftest.err
  1963. fi
  1964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1965. test $ac_status = 0; } && {
  1966. test -z "$ac_cxx_werror_flag" ||
  1967. test ! -s conftest.err
  1968. } && test -s conftest.$ac_objext
  1969. then :
  1970. ac_retval=0
  1971. else $as_nop
  1972. printf "%s\n" "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. ac_retval=1
  1975. fi
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. as_fn_set_status $ac_retval
  1978. } # ac_fn_cxx_try_compile
  1979. # ac_fn_cxx_try_cpp LINENO
  1980. # ------------------------
  1981. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1982. ac_fn_cxx_try_cpp ()
  1983. {
  1984. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1985. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. printf "%s\n" "$ac_try_echo"; } >&5
  1992. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } > conftest.i && {
  2001. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. }
  2004. then :
  2005. ac_retval=0
  2006. else $as_nop
  2007. printf "%s\n" "$as_me: failed program was:" >&5
  2008. sed 's/^/| /' conftest.$ac_ext >&5
  2009. ac_retval=1
  2010. fi
  2011. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2012. as_fn_set_status $ac_retval
  2013. } # ac_fn_cxx_try_cpp
  2014. # ac_fn_cxx_try_link LINENO
  2015. # -------------------------
  2016. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2017. ac_fn_cxx_try_link ()
  2018. {
  2019. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2020. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2021. if { { ac_try="$ac_link"
  2022. case "(($ac_try" in
  2023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2024. *) ac_try_echo=$ac_try;;
  2025. esac
  2026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2027. printf "%s\n" "$ac_try_echo"; } >&5
  2028. (eval "$ac_link") 2>conftest.err
  2029. ac_status=$?
  2030. if test -s conftest.err; then
  2031. grep -v '^ *+' conftest.err >conftest.er1
  2032. cat conftest.er1 >&5
  2033. mv -f conftest.er1 conftest.err
  2034. fi
  2035. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2036. test $ac_status = 0; } && {
  2037. test -z "$ac_cxx_werror_flag" ||
  2038. test ! -s conftest.err
  2039. } && test -s conftest$ac_exeext && {
  2040. test "$cross_compiling" = yes ||
  2041. test -x conftest$ac_exeext
  2042. }
  2043. then :
  2044. ac_retval=0
  2045. else $as_nop
  2046. printf "%s\n" "$as_me: failed program was:" >&5
  2047. sed 's/^/| /' conftest.$ac_ext >&5
  2048. ac_retval=1
  2049. fi
  2050. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2051. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2052. # interfere with the next link command; also delete a directory that is
  2053. # left behind by Apple's compiler. We do this before executing the actions.
  2054. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2055. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2056. as_fn_set_status $ac_retval
  2057. } # ac_fn_cxx_try_link
  2058. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2059. # -------------------------------------------
  2060. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2061. # variable VAR accordingly.
  2062. ac_fn_c_check_type ()
  2063. {
  2064. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2066. printf %s "checking for $2... " >&6; }
  2067. if eval test \${$3+y}
  2068. then :
  2069. printf %s "(cached) " >&6
  2070. else $as_nop
  2071. eval "$3=no"
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $4
  2075. int
  2076. main (void)
  2077. {
  2078. if (sizeof ($2))
  2079. return 0;
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. if ac_fn_c_try_compile "$LINENO"
  2085. then :
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. int
  2090. main (void)
  2091. {
  2092. if (sizeof (($2)))
  2093. return 0;
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"
  2099. then :
  2100. else $as_nop
  2101. eval "$3=yes"
  2102. fi
  2103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2104. fi
  2105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2106. fi
  2107. eval ac_res=\$$3
  2108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2109. printf "%s\n" "$ac_res" >&6; }
  2110. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2111. } # ac_fn_c_check_type
  2112. # ac_fn_c_try_cpp LINENO
  2113. # ----------------------
  2114. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2115. ac_fn_c_try_cpp ()
  2116. {
  2117. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2118. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2119. case "(($ac_try" in
  2120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2121. *) ac_try_echo=$ac_try;;
  2122. esac
  2123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2124. printf "%s\n" "$ac_try_echo"; } >&5
  2125. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2126. ac_status=$?
  2127. if test -s conftest.err; then
  2128. grep -v '^ *+' conftest.err >conftest.er1
  2129. cat conftest.er1 >&5
  2130. mv -f conftest.er1 conftest.err
  2131. fi
  2132. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2133. test $ac_status = 0; } > conftest.i && {
  2134. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2135. test ! -s conftest.err
  2136. }
  2137. then :
  2138. ac_retval=0
  2139. else $as_nop
  2140. printf "%s\n" "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_retval=1
  2143. fi
  2144. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2145. as_fn_set_status $ac_retval
  2146. } # ac_fn_c_try_cpp
  2147. # ac_fn_c_try_run LINENO
  2148. # ----------------------
  2149. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2150. # executables *can* be run.
  2151. ac_fn_c_try_run ()
  2152. {
  2153. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2154. if { { ac_try="$ac_link"
  2155. case "(($ac_try" in
  2156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2157. *) ac_try_echo=$ac_try;;
  2158. esac
  2159. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2160. printf "%s\n" "$ac_try_echo"; } >&5
  2161. (eval "$ac_link") 2>&5
  2162. ac_status=$?
  2163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2164. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2165. { { case "(($ac_try" in
  2166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2167. *) ac_try_echo=$ac_try;;
  2168. esac
  2169. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2170. printf "%s\n" "$ac_try_echo"; } >&5
  2171. (eval "$ac_try") 2>&5
  2172. ac_status=$?
  2173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2174. test $ac_status = 0; }; }
  2175. then :
  2176. ac_retval=0
  2177. else $as_nop
  2178. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2179. printf "%s\n" "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. ac_retval=$ac_status
  2182. fi
  2183. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2184. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2185. as_fn_set_status $ac_retval
  2186. } # ac_fn_c_try_run
  2187. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2188. # ----------------------------------------------------
  2189. # Tries to find if the field MEMBER exists in type AGGR, after including
  2190. # INCLUDES, setting cache variable VAR accordingly.
  2191. ac_fn_c_check_member ()
  2192. {
  2193. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2195. printf %s "checking for $2.$3... " >&6; }
  2196. if eval test \${$4+y}
  2197. then :
  2198. printf %s "(cached) " >&6
  2199. else $as_nop
  2200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2201. /* end confdefs.h. */
  2202. $5
  2203. int
  2204. main (void)
  2205. {
  2206. static $2 ac_aggr;
  2207. if (ac_aggr.$3)
  2208. return 0;
  2209. ;
  2210. return 0;
  2211. }
  2212. _ACEOF
  2213. if ac_fn_c_try_compile "$LINENO"
  2214. then :
  2215. eval "$4=yes"
  2216. else $as_nop
  2217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2218. /* end confdefs.h. */
  2219. $5
  2220. int
  2221. main (void)
  2222. {
  2223. static $2 ac_aggr;
  2224. if (sizeof ac_aggr.$3)
  2225. return 0;
  2226. ;
  2227. return 0;
  2228. }
  2229. _ACEOF
  2230. if ac_fn_c_try_compile "$LINENO"
  2231. then :
  2232. eval "$4=yes"
  2233. else $as_nop
  2234. eval "$4=no"
  2235. fi
  2236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2237. fi
  2238. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2239. fi
  2240. eval ac_res=\$$4
  2241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2242. printf "%s\n" "$ac_res" >&6; }
  2243. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2244. } # ac_fn_c_check_member
  2245. ac_configure_args_raw=
  2246. for ac_arg
  2247. do
  2248. case $ac_arg in
  2249. *\'*)
  2250. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2251. esac
  2252. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2253. done
  2254. case $ac_configure_args_raw in
  2255. *$as_nl*)
  2256. ac_safe_unquote= ;;
  2257. *)
  2258. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2259. ac_unsafe_a="$ac_unsafe_z#~"
  2260. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2261. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2262. esac
  2263. cat >config.log <<_ACEOF
  2264. This file contains any messages produced by compilers while
  2265. running configure, to aid debugging if configure makes a mistake.
  2266. It was created by $as_me, which was
  2267. generated by GNU Autoconf 2.71. Invocation command line was
  2268. $ $0$ac_configure_args_raw
  2269. _ACEOF
  2270. exec 5>>config.log
  2271. {
  2272. cat <<_ASUNAME
  2273. ## --------- ##
  2274. ## Platform. ##
  2275. ## --------- ##
  2276. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2277. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2278. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2279. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2280. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2281. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2282. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2283. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2284. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2285. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2286. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2287. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2288. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2289. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2290. _ASUNAME
  2291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2292. for as_dir in $PATH
  2293. do
  2294. IFS=$as_save_IFS
  2295. case $as_dir in #(((
  2296. '') as_dir=./ ;;
  2297. */) ;;
  2298. *) as_dir=$as_dir/ ;;
  2299. esac
  2300. printf "%s\n" "PATH: $as_dir"
  2301. done
  2302. IFS=$as_save_IFS
  2303. } >&5
  2304. cat >&5 <<_ACEOF
  2305. ## ----------- ##
  2306. ## Core tests. ##
  2307. ## ----------- ##
  2308. _ACEOF
  2309. # Keep a trace of the command line.
  2310. # Strip out --no-create and --no-recursion so they do not pile up.
  2311. # Strip out --silent because we don't want to record it for future runs.
  2312. # Also quote any args containing shell meta-characters.
  2313. # Make two passes to allow for proper duplicate-argument suppression.
  2314. ac_configure_args=
  2315. ac_configure_args0=
  2316. ac_configure_args1=
  2317. ac_must_keep_next=false
  2318. for ac_pass in 1 2
  2319. do
  2320. for ac_arg
  2321. do
  2322. case $ac_arg in
  2323. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2324. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2325. | -silent | --silent | --silen | --sile | --sil)
  2326. continue ;;
  2327. *\'*)
  2328. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2329. esac
  2330. case $ac_pass in
  2331. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2332. 2)
  2333. as_fn_append ac_configure_args1 " '$ac_arg'"
  2334. if test $ac_must_keep_next = true; then
  2335. ac_must_keep_next=false # Got value, back to normal.
  2336. else
  2337. case $ac_arg in
  2338. *=* | --config-cache | -C | -disable-* | --disable-* \
  2339. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2340. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2341. | -with-* | --with-* | -without-* | --without-* | --x)
  2342. case "$ac_configure_args0 " in
  2343. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2344. esac
  2345. ;;
  2346. -* ) ac_must_keep_next=true ;;
  2347. esac
  2348. fi
  2349. as_fn_append ac_configure_args " '$ac_arg'"
  2350. ;;
  2351. esac
  2352. done
  2353. done
  2354. { ac_configure_args0=; unset ac_configure_args0;}
  2355. { ac_configure_args1=; unset ac_configure_args1;}
  2356. # When interrupted or exit'd, cleanup temporary files, and complete
  2357. # config.log. We remove comments because anyway the quotes in there
  2358. # would cause problems or look ugly.
  2359. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2360. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2361. trap 'exit_status=$?
  2362. # Sanitize IFS.
  2363. IFS=" "" $as_nl"
  2364. # Save into config.log some information that might help in debugging.
  2365. {
  2366. echo
  2367. printf "%s\n" "## ---------------- ##
  2368. ## Cache variables. ##
  2369. ## ---------------- ##"
  2370. echo
  2371. # The following way of writing the cache mishandles newlines in values,
  2372. (
  2373. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in #(
  2376. *${as_nl}*)
  2377. case $ac_var in #(
  2378. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2379. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2380. esac
  2381. case $ac_var in #(
  2382. _ | IFS | as_nl) ;; #(
  2383. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2384. *) { eval $ac_var=; unset $ac_var;} ;;
  2385. esac ;;
  2386. esac
  2387. done
  2388. (set) 2>&1 |
  2389. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2390. *${as_nl}ac_space=\ *)
  2391. sed -n \
  2392. "s/'\''/'\''\\\\'\'''\''/g;
  2393. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2394. ;; #(
  2395. *)
  2396. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2397. ;;
  2398. esac |
  2399. sort
  2400. )
  2401. echo
  2402. printf "%s\n" "## ----------------- ##
  2403. ## Output variables. ##
  2404. ## ----------------- ##"
  2405. echo
  2406. for ac_var in $ac_subst_vars
  2407. do
  2408. eval ac_val=\$$ac_var
  2409. case $ac_val in
  2410. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2411. esac
  2412. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2413. done | sort
  2414. echo
  2415. if test -n "$ac_subst_files"; then
  2416. printf "%s\n" "## ------------------- ##
  2417. ## File substitutions. ##
  2418. ## ------------------- ##"
  2419. echo
  2420. for ac_var in $ac_subst_files
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. fi
  2430. if test -s confdefs.h; then
  2431. printf "%s\n" "## ----------- ##
  2432. ## confdefs.h. ##
  2433. ## ----------- ##"
  2434. echo
  2435. cat confdefs.h
  2436. echo
  2437. fi
  2438. test "$ac_signal" != 0 &&
  2439. printf "%s\n" "$as_me: caught signal $ac_signal"
  2440. printf "%s\n" "$as_me: exit $exit_status"
  2441. } >&5
  2442. rm -f core *.core core.conftest.* &&
  2443. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2444. exit $exit_status
  2445. ' 0
  2446. for ac_signal in 1 2 13 15; do
  2447. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2448. done
  2449. ac_signal=0
  2450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2451. rm -f -r conftest* confdefs.h
  2452. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2453. # Predefined preprocessor variables.
  2454. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2455. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2456. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2457. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2458. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2459. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2460. # Let the site file select an alternate cache file if it wants to.
  2461. # Prefer an explicitly selected file to automatically selected ones.
  2462. if test -n "$CONFIG_SITE"; then
  2463. ac_site_files="$CONFIG_SITE"
  2464. elif test "x$prefix" != xNONE; then
  2465. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2466. else
  2467. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2468. fi
  2469. for ac_site_file in $ac_site_files
  2470. do
  2471. case $ac_site_file in #(
  2472. */*) :
  2473. ;; #(
  2474. *) :
  2475. ac_site_file=./$ac_site_file ;;
  2476. esac
  2477. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2479. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2480. sed 's/^/| /' "$ac_site_file" >&5
  2481. . "$ac_site_file" \
  2482. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2483. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2484. as_fn_error $? "failed to load site script $ac_site_file
  2485. See \`config.log' for more details" "$LINENO" 5; }
  2486. fi
  2487. done
  2488. if test -r "$cache_file"; then
  2489. # Some versions of bash will fail to source /dev/null (special files
  2490. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2491. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2493. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2494. case $cache_file in
  2495. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2496. *) . "./$cache_file";;
  2497. esac
  2498. fi
  2499. else
  2500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2501. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2502. >$cache_file
  2503. fi
  2504. # Test code for whether the C compiler supports C89 (global declarations)
  2505. ac_c_conftest_c89_globals='
  2506. /* Does the compiler advertise C89 conformance?
  2507. Do not test the value of __STDC__, because some compilers set it to 0
  2508. while being otherwise adequately conformant. */
  2509. #if !defined __STDC__
  2510. # error "Compiler does not advertise C89 conformance"
  2511. #endif
  2512. #include <stddef.h>
  2513. #include <stdarg.h>
  2514. struct stat;
  2515. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2516. struct buf { int x; };
  2517. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2518. static char *e (p, i)
  2519. char **p;
  2520. int i;
  2521. {
  2522. return p[i];
  2523. }
  2524. static char *f (char * (*g) (char **, int), char **p, ...)
  2525. {
  2526. char *s;
  2527. va_list v;
  2528. va_start (v,p);
  2529. s = g (p, va_arg (v,int));
  2530. va_end (v);
  2531. return s;
  2532. }
  2533. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2534. function prototypes and stuff, but not \xHH hex character constants.
  2535. These do not provoke an error unfortunately, instead are silently treated
  2536. as an "x". The following induces an error, until -std is added to get
  2537. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2538. array size at least. It is necessary to write \x00 == 0 to get something
  2539. that is true only with -std. */
  2540. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2541. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2542. inside strings and character constants. */
  2543. #define FOO(x) '\''x'\''
  2544. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2545. int test (int i, double x);
  2546. struct s1 {int (*f) (int a);};
  2547. struct s2 {int (*f) (double a);};
  2548. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2549. int, int);'
  2550. # Test code for whether the C compiler supports C89 (body of main).
  2551. ac_c_conftest_c89_main='
  2552. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2553. '
  2554. # Test code for whether the C compiler supports C99 (global declarations)
  2555. ac_c_conftest_c99_globals='
  2556. // Does the compiler advertise C99 conformance?
  2557. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2558. # error "Compiler does not advertise C99 conformance"
  2559. #endif
  2560. #include <stdbool.h>
  2561. extern int puts (const char *);
  2562. extern int printf (const char *, ...);
  2563. extern int dprintf (int, const char *, ...);
  2564. extern void *malloc (size_t);
  2565. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2566. // dprintf is used instead of fprintf to avoid needing to declare
  2567. // FILE and stderr.
  2568. #define debug(...) dprintf (2, __VA_ARGS__)
  2569. #define showlist(...) puts (#__VA_ARGS__)
  2570. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2571. static void
  2572. test_varargs_macros (void)
  2573. {
  2574. int x = 1234;
  2575. int y = 5678;
  2576. debug ("Flag");
  2577. debug ("X = %d\n", x);
  2578. showlist (The first, second, and third items.);
  2579. report (x>y, "x is %d but y is %d", x, y);
  2580. }
  2581. // Check long long types.
  2582. #define BIG64 18446744073709551615ull
  2583. #define BIG32 4294967295ul
  2584. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2585. #if !BIG_OK
  2586. #error "your preprocessor is broken"
  2587. #endif
  2588. #if BIG_OK
  2589. #else
  2590. #error "your preprocessor is broken"
  2591. #endif
  2592. static long long int bignum = -9223372036854775807LL;
  2593. static unsigned long long int ubignum = BIG64;
  2594. struct incomplete_array
  2595. {
  2596. int datasize;
  2597. double data[];
  2598. };
  2599. struct named_init {
  2600. int number;
  2601. const wchar_t *name;
  2602. double average;
  2603. };
  2604. typedef const char *ccp;
  2605. static inline int
  2606. test_restrict (ccp restrict text)
  2607. {
  2608. // See if C++-style comments work.
  2609. // Iterate through items via the restricted pointer.
  2610. // Also check for declarations in for loops.
  2611. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2612. continue;
  2613. return 0;
  2614. }
  2615. // Check varargs and va_copy.
  2616. static bool
  2617. test_varargs (const char *format, ...)
  2618. {
  2619. va_list args;
  2620. va_start (args, format);
  2621. va_list args_copy;
  2622. va_copy (args_copy, args);
  2623. const char *str = "";
  2624. int number = 0;
  2625. float fnumber = 0;
  2626. while (*format)
  2627. {
  2628. switch (*format++)
  2629. {
  2630. case '\''s'\'': // string
  2631. str = va_arg (args_copy, const char *);
  2632. break;
  2633. case '\''d'\'': // int
  2634. number = va_arg (args_copy, int);
  2635. break;
  2636. case '\''f'\'': // float
  2637. fnumber = va_arg (args_copy, double);
  2638. break;
  2639. default:
  2640. break;
  2641. }
  2642. }
  2643. va_end (args_copy);
  2644. va_end (args);
  2645. return *str && number && fnumber;
  2646. }
  2647. '
  2648. # Test code for whether the C compiler supports C99 (body of main).
  2649. ac_c_conftest_c99_main='
  2650. // Check bool.
  2651. _Bool success = false;
  2652. success |= (argc != 0);
  2653. // Check restrict.
  2654. if (test_restrict ("String literal") == 0)
  2655. success = true;
  2656. char *restrict newvar = "Another string";
  2657. // Check varargs.
  2658. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2659. test_varargs_macros ();
  2660. // Check flexible array members.
  2661. struct incomplete_array *ia =
  2662. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2663. ia->datasize = 10;
  2664. for (int i = 0; i < ia->datasize; ++i)
  2665. ia->data[i] = i * 1.234;
  2666. // Check named initializers.
  2667. struct named_init ni = {
  2668. .number = 34,
  2669. .name = L"Test wide string",
  2670. .average = 543.34343,
  2671. };
  2672. ni.number = 58;
  2673. int dynamic_array[ni.number];
  2674. dynamic_array[0] = argv[0][0];
  2675. dynamic_array[ni.number - 1] = 543;
  2676. // work around unused variable warnings
  2677. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2678. || dynamic_array[ni.number - 1] != 543);
  2679. '
  2680. # Test code for whether the C compiler supports C11 (global declarations)
  2681. ac_c_conftest_c11_globals='
  2682. // Does the compiler advertise C11 conformance?
  2683. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2684. # error "Compiler does not advertise C11 conformance"
  2685. #endif
  2686. // Check _Alignas.
  2687. char _Alignas (double) aligned_as_double;
  2688. char _Alignas (0) no_special_alignment;
  2689. extern char aligned_as_int;
  2690. char _Alignas (0) _Alignas (int) aligned_as_int;
  2691. // Check _Alignof.
  2692. enum
  2693. {
  2694. int_alignment = _Alignof (int),
  2695. int_array_alignment = _Alignof (int[100]),
  2696. char_alignment = _Alignof (char)
  2697. };
  2698. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2699. // Check _Noreturn.
  2700. int _Noreturn does_not_return (void) { for (;;) continue; }
  2701. // Check _Static_assert.
  2702. struct test_static_assert
  2703. {
  2704. int x;
  2705. _Static_assert (sizeof (int) <= sizeof (long int),
  2706. "_Static_assert does not work in struct");
  2707. long int y;
  2708. };
  2709. // Check UTF-8 literals.
  2710. #define u8 syntax error!
  2711. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2712. // Check duplicate typedefs.
  2713. typedef long *long_ptr;
  2714. typedef long int *long_ptr;
  2715. typedef long_ptr long_ptr;
  2716. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2717. struct anonymous
  2718. {
  2719. union {
  2720. struct { int i; int j; };
  2721. struct { int k; long int l; } w;
  2722. };
  2723. int m;
  2724. } v1;
  2725. '
  2726. # Test code for whether the C compiler supports C11 (body of main).
  2727. ac_c_conftest_c11_main='
  2728. _Static_assert ((offsetof (struct anonymous, i)
  2729. == offsetof (struct anonymous, w.k)),
  2730. "Anonymous union alignment botch");
  2731. v1.i = 2;
  2732. v1.w.k = 5;
  2733. ok |= v1.i != 5;
  2734. '
  2735. # Test code for whether the C compiler supports C11 (complete).
  2736. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2737. ${ac_c_conftest_c99_globals}
  2738. ${ac_c_conftest_c11_globals}
  2739. int
  2740. main (int argc, char **argv)
  2741. {
  2742. int ok = 0;
  2743. ${ac_c_conftest_c89_main}
  2744. ${ac_c_conftest_c99_main}
  2745. ${ac_c_conftest_c11_main}
  2746. return ok;
  2747. }
  2748. "
  2749. # Test code for whether the C compiler supports C99 (complete).
  2750. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2751. ${ac_c_conftest_c99_globals}
  2752. int
  2753. main (int argc, char **argv)
  2754. {
  2755. int ok = 0;
  2756. ${ac_c_conftest_c89_main}
  2757. ${ac_c_conftest_c99_main}
  2758. return ok;
  2759. }
  2760. "
  2761. # Test code for whether the C compiler supports C89 (complete).
  2762. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2763. int
  2764. main (int argc, char **argv)
  2765. {
  2766. int ok = 0;
  2767. ${ac_c_conftest_c89_main}
  2768. return ok;
  2769. }
  2770. "
  2771. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2772. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2773. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2774. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2775. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2776. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2777. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2778. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2779. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2780. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2781. ac_cxx_conftest_cxx98_globals='
  2782. // Does the compiler advertise C++98 conformance?
  2783. #if !defined __cplusplus || __cplusplus < 199711L
  2784. # error "Compiler does not advertise C++98 conformance"
  2785. #endif
  2786. // These inclusions are to reject old compilers that
  2787. // lack the unsuffixed header files.
  2788. #include <cstdlib>
  2789. #include <exception>
  2790. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2791. extern void assert (int);
  2792. namespace std {
  2793. extern int strcmp (const char *, const char *);
  2794. }
  2795. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2796. using std::exception;
  2797. using std::strcmp;
  2798. namespace {
  2799. void test_exception_syntax()
  2800. {
  2801. try {
  2802. throw "test";
  2803. } catch (const char *s) {
  2804. // Extra parentheses suppress a warning when building autoconf itself,
  2805. // due to lint rules shared with more typical C programs.
  2806. assert (!(strcmp) (s, "test"));
  2807. }
  2808. }
  2809. template <typename T> struct test_template
  2810. {
  2811. T const val;
  2812. explicit test_template(T t) : val(t) {}
  2813. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2814. };
  2815. } // anonymous namespace
  2816. '
  2817. # Test code for whether the C++ compiler supports C++98 (body of main)
  2818. ac_cxx_conftest_cxx98_main='
  2819. assert (argc);
  2820. assert (! argv[0]);
  2821. {
  2822. test_exception_syntax ();
  2823. test_template<double> tt (2.0);
  2824. assert (tt.add (4) == 6.0);
  2825. assert (true && !false);
  2826. }
  2827. '
  2828. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2829. ac_cxx_conftest_cxx11_globals='
  2830. // Does the compiler advertise C++ 2011 conformance?
  2831. #if !defined __cplusplus || __cplusplus < 201103L
  2832. # error "Compiler does not advertise C++11 conformance"
  2833. #endif
  2834. namespace cxx11test
  2835. {
  2836. constexpr int get_val() { return 20; }
  2837. struct testinit
  2838. {
  2839. int i;
  2840. double d;
  2841. };
  2842. class delegate
  2843. {
  2844. public:
  2845. delegate(int n) : n(n) {}
  2846. delegate(): delegate(2354) {}
  2847. virtual int getval() { return this->n; };
  2848. protected:
  2849. int n;
  2850. };
  2851. class overridden : public delegate
  2852. {
  2853. public:
  2854. overridden(int n): delegate(n) {}
  2855. virtual int getval() override final { return this->n * 2; }
  2856. };
  2857. class nocopy
  2858. {
  2859. public:
  2860. nocopy(int i): i(i) {}
  2861. nocopy() = default;
  2862. nocopy(const nocopy&) = delete;
  2863. nocopy & operator=(const nocopy&) = delete;
  2864. private:
  2865. int i;
  2866. };
  2867. // for testing lambda expressions
  2868. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2869. {
  2870. return f(v);
  2871. }
  2872. // for testing variadic templates and trailing return types
  2873. template <typename V> auto sum(V first) -> V
  2874. {
  2875. return first;
  2876. }
  2877. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2878. {
  2879. return first + sum(rest...);
  2880. }
  2881. }
  2882. '
  2883. # Test code for whether the C++ compiler supports C++11 (body of main)
  2884. ac_cxx_conftest_cxx11_main='
  2885. {
  2886. // Test auto and decltype
  2887. auto a1 = 6538;
  2888. auto a2 = 48573953.4;
  2889. auto a3 = "String literal";
  2890. int total = 0;
  2891. for (auto i = a3; *i; ++i) { total += *i; }
  2892. decltype(a2) a4 = 34895.034;
  2893. }
  2894. {
  2895. // Test constexpr
  2896. short sa[cxx11test::get_val()] = { 0 };
  2897. }
  2898. {
  2899. // Test initializer lists
  2900. cxx11test::testinit il = { 4323, 435234.23544 };
  2901. }
  2902. {
  2903. // Test range-based for
  2904. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2905. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2906. for (auto &x : array) { x += 23; }
  2907. }
  2908. {
  2909. // Test lambda expressions
  2910. using cxx11test::eval;
  2911. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2912. double d = 2.0;
  2913. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2914. assert (d == 5.0);
  2915. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2916. assert (d == 5.0);
  2917. }
  2918. {
  2919. // Test use of variadic templates
  2920. using cxx11test::sum;
  2921. auto a = sum(1);
  2922. auto b = sum(1, 2);
  2923. auto c = sum(1.0, 2.0, 3.0);
  2924. }
  2925. {
  2926. // Test constructor delegation
  2927. cxx11test::delegate d1;
  2928. cxx11test::delegate d2();
  2929. cxx11test::delegate d3(45);
  2930. }
  2931. {
  2932. // Test override and final
  2933. cxx11test::overridden o1(55464);
  2934. }
  2935. {
  2936. // Test nullptr
  2937. char *c = nullptr;
  2938. }
  2939. {
  2940. // Test template brackets
  2941. test_template<::test_template<int>> v(test_template<int>(12));
  2942. }
  2943. {
  2944. // Unicode literals
  2945. char const *utf8 = u8"UTF-8 string \u2500";
  2946. char16_t const *utf16 = u"UTF-8 string \u2500";
  2947. char32_t const *utf32 = U"UTF-32 string \u2500";
  2948. }
  2949. '
  2950. # Test code for whether the C compiler supports C++11 (complete).
  2951. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2952. ${ac_cxx_conftest_cxx11_globals}
  2953. int
  2954. main (int argc, char **argv)
  2955. {
  2956. int ok = 0;
  2957. ${ac_cxx_conftest_cxx98_main}
  2958. ${ac_cxx_conftest_cxx11_main}
  2959. return ok;
  2960. }
  2961. "
  2962. # Test code for whether the C compiler supports C++98 (complete).
  2963. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2964. int
  2965. main (int argc, char **argv)
  2966. {
  2967. int ok = 0;
  2968. ${ac_cxx_conftest_cxx98_main}
  2969. return ok;
  2970. }
  2971. "
  2972. # Auxiliary files required by this configure script.
  2973. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2974. # Locations in which to look for auxiliary files.
  2975. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2976. # Search for a directory containing all of the required auxiliary files,
  2977. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2978. # If we don't find one directory that contains all the files we need,
  2979. # we report the set of missing files from the *first* directory in
  2980. # $ac_aux_dir_candidates and give up.
  2981. ac_missing_aux_files=""
  2982. ac_first_candidate=:
  2983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. as_found=false
  2986. for as_dir in $ac_aux_dir_candidates
  2987. do
  2988. IFS=$as_save_IFS
  2989. case $as_dir in #(((
  2990. '') as_dir=./ ;;
  2991. */) ;;
  2992. *) as_dir=$as_dir/ ;;
  2993. esac
  2994. as_found=:
  2995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2996. ac_aux_dir_found=yes
  2997. ac_install_sh=
  2998. for ac_aux in $ac_aux_files
  2999. do
  3000. # As a special case, if "install-sh" is required, that requirement
  3001. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3002. # and $ac_install_sh is set appropriately for whichever one is found.
  3003. if test x"$ac_aux" = x"install-sh"
  3004. then
  3005. if test -f "${as_dir}install-sh"; then
  3006. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3007. ac_install_sh="${as_dir}install-sh -c"
  3008. elif test -f "${as_dir}install.sh"; then
  3009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3010. ac_install_sh="${as_dir}install.sh -c"
  3011. elif test -f "${as_dir}shtool"; then
  3012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3013. ac_install_sh="${as_dir}shtool install -c"
  3014. else
  3015. ac_aux_dir_found=no
  3016. if $ac_first_candidate; then
  3017. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3018. else
  3019. break
  3020. fi
  3021. fi
  3022. else
  3023. if test -f "${as_dir}${ac_aux}"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3025. else
  3026. ac_aux_dir_found=no
  3027. if $ac_first_candidate; then
  3028. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3029. else
  3030. break
  3031. fi
  3032. fi
  3033. fi
  3034. done
  3035. if test "$ac_aux_dir_found" = yes; then
  3036. ac_aux_dir="$as_dir"
  3037. break
  3038. fi
  3039. ac_first_candidate=false
  3040. as_found=false
  3041. done
  3042. IFS=$as_save_IFS
  3043. if $as_found
  3044. then :
  3045. else $as_nop
  3046. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3047. fi
  3048. # These three variables are undocumented and unsupported,
  3049. # and are intended to be withdrawn in a future Autoconf release.
  3050. # They can cause serious problems if a builder's source tree is in a directory
  3051. # whose full name contains unusual characters.
  3052. if test -f "${ac_aux_dir}config.guess"; then
  3053. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3054. fi
  3055. if test -f "${ac_aux_dir}config.sub"; then
  3056. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3057. fi
  3058. if test -f "$ac_aux_dir/configure"; then
  3059. ac_configure="$SHELL ${ac_aux_dir}configure"
  3060. fi
  3061. # Check that the precious variables saved in the cache have kept the same
  3062. # value.
  3063. ac_cache_corrupted=false
  3064. for ac_var in $ac_precious_vars; do
  3065. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3066. eval ac_new_set=\$ac_env_${ac_var}_set
  3067. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3068. eval ac_new_val=\$ac_env_${ac_var}_value
  3069. case $ac_old_set,$ac_new_set in
  3070. set,)
  3071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3072. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3073. ac_cache_corrupted=: ;;
  3074. ,set)
  3075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3076. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3077. ac_cache_corrupted=: ;;
  3078. ,);;
  3079. *)
  3080. if test "x$ac_old_val" != "x$ac_new_val"; then
  3081. # differences in whitespace do not lead to failure.
  3082. ac_old_val_w=`echo x $ac_old_val`
  3083. ac_new_val_w=`echo x $ac_new_val`
  3084. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3086. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3087. ac_cache_corrupted=:
  3088. else
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3090. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3091. eval $ac_var=\$ac_old_val
  3092. fi
  3093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3094. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3096. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3097. fi;;
  3098. esac
  3099. # Pass precious variables to config.status.
  3100. if test "$ac_new_set" = set; then
  3101. case $ac_new_val in
  3102. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3103. *) ac_arg=$ac_var=$ac_new_val ;;
  3104. esac
  3105. case " $ac_configure_args " in
  3106. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3107. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3108. esac
  3109. fi
  3110. done
  3111. if $ac_cache_corrupted; then
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3113. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3115. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3116. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3117. and start over" "$LINENO" 5
  3118. fi
  3119. ## -------------------- ##
  3120. ## Main body of script. ##
  3121. ## -------------------- ##
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3128. orig_CFLAGS="$CFLAGS"
  3129. # See docs/release_checklist.md
  3130. SDL_MAJOR_VERSION=2
  3131. SDL_MINOR_VERSION=23
  3132. SDL_MICRO_VERSION=1
  3133. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3134. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3135. case "$SDL_MINOR_VERSION" in #(
  3136. *[02468]) :
  3137. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3138. *) :
  3139. SDL_INTERFACE_AGE=0 ;; #(
  3140. *) :
  3141. ;;
  3142. esac
  3143. # libtool versioning
  3144. case `pwd` in
  3145. *\ * | *\ *)
  3146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3147. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3148. esac
  3149. macro_version='2.4.6'
  3150. macro_revision='2.4.6'
  3151. ltmain=$ac_aux_dir/ltmain.sh
  3152. # Make sure we can run config.sub.
  3153. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3154. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3156. printf %s "checking build system type... " >&6; }
  3157. if test ${ac_cv_build+y}
  3158. then :
  3159. printf %s "(cached) " >&6
  3160. else $as_nop
  3161. ac_build_alias=$build_alias
  3162. test "x$ac_build_alias" = x &&
  3163. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3164. test "x$ac_build_alias" = x &&
  3165. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3166. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3167. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3168. fi
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3170. printf "%s\n" "$ac_cv_build" >&6; }
  3171. case $ac_cv_build in
  3172. *-*-*) ;;
  3173. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3174. esac
  3175. build=$ac_cv_build
  3176. ac_save_IFS=$IFS; IFS='-'
  3177. set x $ac_cv_build
  3178. shift
  3179. build_cpu=$1
  3180. build_vendor=$2
  3181. shift; shift
  3182. # Remember, the first character of IFS is used to create $*,
  3183. # except with old shells:
  3184. build_os=$*
  3185. IFS=$ac_save_IFS
  3186. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3188. printf %s "checking host system type... " >&6; }
  3189. if test ${ac_cv_host+y}
  3190. then :
  3191. printf %s "(cached) " >&6
  3192. else $as_nop
  3193. if test "x$host_alias" = x; then
  3194. ac_cv_host=$ac_cv_build
  3195. else
  3196. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3197. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3198. fi
  3199. fi
  3200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3201. printf "%s\n" "$ac_cv_host" >&6; }
  3202. case $ac_cv_host in
  3203. *-*-*) ;;
  3204. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3205. esac
  3206. host=$ac_cv_host
  3207. ac_save_IFS=$IFS; IFS='-'
  3208. set x $ac_cv_host
  3209. shift
  3210. host_cpu=$1
  3211. host_vendor=$2
  3212. shift; shift
  3213. # Remember, the first character of IFS is used to create $*,
  3214. # except with old shells:
  3215. host_os=$*
  3216. IFS=$ac_save_IFS
  3217. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3218. # Backslashify metacharacters that are still active within
  3219. # double-quoted strings.
  3220. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3221. # Same as above, but do not quote variable references.
  3222. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3223. # Sed substitution to delay expansion of an escaped shell variable in a
  3224. # double_quote_subst'ed string.
  3225. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3226. # Sed substitution to delay expansion of an escaped single quote.
  3227. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3228. # Sed substitution to avoid accidental globbing in evaled expressions
  3229. no_glob_subst='s/\*/\\\*/g'
  3230. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3231. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3232. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3234. printf %s "checking how to print strings... " >&6; }
  3235. # Test print first, because it will be a builtin if present.
  3236. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3237. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3238. ECHO='print -r --'
  3239. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3240. ECHO='printf %s\n'
  3241. else
  3242. # Use this function as a fallback that always works.
  3243. func_fallback_echo ()
  3244. {
  3245. eval 'cat <<_LTECHO_EOF
  3246. $1
  3247. _LTECHO_EOF'
  3248. }
  3249. ECHO='func_fallback_echo'
  3250. fi
  3251. # func_echo_all arg...
  3252. # Invoke $ECHO with all args, space-separated.
  3253. func_echo_all ()
  3254. {
  3255. $ECHO ""
  3256. }
  3257. case $ECHO in
  3258. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3259. printf "%s\n" "printf" >&6; } ;;
  3260. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3261. printf "%s\n" "print -r" >&6; } ;;
  3262. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3263. printf "%s\n" "cat" >&6; } ;;
  3264. esac
  3265. ac_ext=c
  3266. ac_cpp='$CPP $CPPFLAGS'
  3267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3270. if test -n "$ac_tool_prefix"; then
  3271. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3272. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3274. printf %s "checking for $ac_word... " >&6; }
  3275. if test ${ac_cv_prog_CC+y}
  3276. then :
  3277. printf %s "(cached) " >&6
  3278. else $as_nop
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3283. for as_dir in $PATH
  3284. do
  3285. IFS=$as_save_IFS
  3286. case $as_dir in #(((
  3287. '') as_dir=./ ;;
  3288. */) ;;
  3289. *) as_dir=$as_dir/ ;;
  3290. esac
  3291. for ac_exec_ext in '' $ac_executable_extensions; do
  3292. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3293. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3295. break 2
  3296. fi
  3297. done
  3298. done
  3299. IFS=$as_save_IFS
  3300. fi
  3301. fi
  3302. CC=$ac_cv_prog_CC
  3303. if test -n "$CC"; then
  3304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3305. printf "%s\n" "$CC" >&6; }
  3306. else
  3307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3308. printf "%s\n" "no" >&6; }
  3309. fi
  3310. fi
  3311. if test -z "$ac_cv_prog_CC"; then
  3312. ac_ct_CC=$CC
  3313. # Extract the first word of "gcc", so it can be a program name with args.
  3314. set dummy gcc; ac_word=$2
  3315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3316. printf %s "checking for $ac_word... " >&6; }
  3317. if test ${ac_cv_prog_ac_ct_CC+y}
  3318. then :
  3319. printf %s "(cached) " >&6
  3320. else $as_nop
  3321. if test -n "$ac_ct_CC"; then
  3322. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3323. else
  3324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3325. for as_dir in $PATH
  3326. do
  3327. IFS=$as_save_IFS
  3328. case $as_dir in #(((
  3329. '') as_dir=./ ;;
  3330. */) ;;
  3331. *) as_dir=$as_dir/ ;;
  3332. esac
  3333. for ac_exec_ext in '' $ac_executable_extensions; do
  3334. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3335. ac_cv_prog_ac_ct_CC="gcc"
  3336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3337. break 2
  3338. fi
  3339. done
  3340. done
  3341. IFS=$as_save_IFS
  3342. fi
  3343. fi
  3344. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3345. if test -n "$ac_ct_CC"; then
  3346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3347. printf "%s\n" "$ac_ct_CC" >&6; }
  3348. else
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3350. printf "%s\n" "no" >&6; }
  3351. fi
  3352. if test "x$ac_ct_CC" = x; then
  3353. CC=""
  3354. else
  3355. case $cross_compiling:$ac_tool_warned in
  3356. yes:)
  3357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3358. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3359. ac_tool_warned=yes ;;
  3360. esac
  3361. CC=$ac_ct_CC
  3362. fi
  3363. else
  3364. CC="$ac_cv_prog_CC"
  3365. fi
  3366. if test -z "$CC"; then
  3367. if test -n "$ac_tool_prefix"; then
  3368. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3369. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3371. printf %s "checking for $ac_word... " >&6; }
  3372. if test ${ac_cv_prog_CC+y}
  3373. then :
  3374. printf %s "(cached) " >&6
  3375. else $as_nop
  3376. if test -n "$CC"; then
  3377. ac_cv_prog_CC="$CC" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. case $as_dir in #(((
  3384. '') as_dir=./ ;;
  3385. */) ;;
  3386. *) as_dir=$as_dir/ ;;
  3387. esac
  3388. for ac_exec_ext in '' $ac_executable_extensions; do
  3389. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3390. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3391. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3392. break 2
  3393. fi
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. fi
  3398. fi
  3399. CC=$ac_cv_prog_CC
  3400. if test -n "$CC"; then
  3401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3402. printf "%s\n" "$CC" >&6; }
  3403. else
  3404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3405. printf "%s\n" "no" >&6; }
  3406. fi
  3407. fi
  3408. fi
  3409. if test -z "$CC"; then
  3410. # Extract the first word of "cc", so it can be a program name with args.
  3411. set dummy cc; ac_word=$2
  3412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3413. printf %s "checking for $ac_word... " >&6; }
  3414. if test ${ac_cv_prog_CC+y}
  3415. then :
  3416. printf %s "(cached) " >&6
  3417. else $as_nop
  3418. if test -n "$CC"; then
  3419. ac_cv_prog_CC="$CC" # Let the user override the test.
  3420. else
  3421. ac_prog_rejected=no
  3422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3423. for as_dir in $PATH
  3424. do
  3425. IFS=$as_save_IFS
  3426. case $as_dir in #(((
  3427. '') as_dir=./ ;;
  3428. */) ;;
  3429. *) as_dir=$as_dir/ ;;
  3430. esac
  3431. for ac_exec_ext in '' $ac_executable_extensions; do
  3432. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3433. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3434. ac_prog_rejected=yes
  3435. continue
  3436. fi
  3437. ac_cv_prog_CC="cc"
  3438. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3439. break 2
  3440. fi
  3441. done
  3442. done
  3443. IFS=$as_save_IFS
  3444. if test $ac_prog_rejected = yes; then
  3445. # We found a bogon in the path, so make sure we never use it.
  3446. set dummy $ac_cv_prog_CC
  3447. shift
  3448. if test $# != 0; then
  3449. # We chose a different compiler from the bogus one.
  3450. # However, it has the same basename, so the bogon will be chosen
  3451. # first if we set CC to just the basename; use the full file name.
  3452. shift
  3453. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3454. fi
  3455. fi
  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. fi
  3467. if test -z "$CC"; then
  3468. if test -n "$ac_tool_prefix"; then
  3469. for ac_prog in cl.exe
  3470. do
  3471. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3472. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3474. printf %s "checking for $ac_word... " >&6; }
  3475. if test ${ac_cv_prog_CC+y}
  3476. then :
  3477. printf %s "(cached) " >&6
  3478. else $as_nop
  3479. if test -n "$CC"; then
  3480. ac_cv_prog_CC="$CC" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. case $as_dir in #(((
  3487. '') as_dir=./ ;;
  3488. */) ;;
  3489. *) as_dir=$as_dir/ ;;
  3490. esac
  3491. for ac_exec_ext in '' $ac_executable_extensions; do
  3492. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3493. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3494. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3495. break 2
  3496. fi
  3497. done
  3498. done
  3499. IFS=$as_save_IFS
  3500. fi
  3501. fi
  3502. CC=$ac_cv_prog_CC
  3503. if test -n "$CC"; then
  3504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3505. printf "%s\n" "$CC" >&6; }
  3506. else
  3507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3508. printf "%s\n" "no" >&6; }
  3509. fi
  3510. test -n "$CC" && break
  3511. done
  3512. fi
  3513. if test -z "$CC"; then
  3514. ac_ct_CC=$CC
  3515. for ac_prog in cl.exe
  3516. do
  3517. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3518. set dummy $ac_prog; ac_word=$2
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3520. printf %s "checking for $ac_word... " >&6; }
  3521. if test ${ac_cv_prog_ac_ct_CC+y}
  3522. then :
  3523. printf %s "(cached) " >&6
  3524. else $as_nop
  3525. if test -n "$ac_ct_CC"; then
  3526. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3527. else
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH
  3530. do
  3531. IFS=$as_save_IFS
  3532. case $as_dir in #(((
  3533. '') as_dir=./ ;;
  3534. */) ;;
  3535. *) as_dir=$as_dir/ ;;
  3536. esac
  3537. for ac_exec_ext in '' $ac_executable_extensions; do
  3538. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3539. ac_cv_prog_ac_ct_CC="$ac_prog"
  3540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3541. break 2
  3542. fi
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. fi
  3547. fi
  3548. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3549. if test -n "$ac_ct_CC"; then
  3550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3551. printf "%s\n" "$ac_ct_CC" >&6; }
  3552. else
  3553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. printf "%s\n" "no" >&6; }
  3555. fi
  3556. test -n "$ac_ct_CC" && break
  3557. done
  3558. if test "x$ac_ct_CC" = x; then
  3559. CC=""
  3560. else
  3561. case $cross_compiling:$ac_tool_warned in
  3562. yes:)
  3563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3565. ac_tool_warned=yes ;;
  3566. esac
  3567. CC=$ac_ct_CC
  3568. fi
  3569. fi
  3570. fi
  3571. if test -z "$CC"; then
  3572. if test -n "$ac_tool_prefix"; then
  3573. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3574. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3576. printf %s "checking for $ac_word... " >&6; }
  3577. if test ${ac_cv_prog_CC+y}
  3578. then :
  3579. printf %s "(cached) " >&6
  3580. else $as_nop
  3581. if test -n "$CC"; then
  3582. ac_cv_prog_CC="$CC" # Let the user override the test.
  3583. else
  3584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3585. for as_dir in $PATH
  3586. do
  3587. IFS=$as_save_IFS
  3588. case $as_dir in #(((
  3589. '') as_dir=./ ;;
  3590. */) ;;
  3591. *) as_dir=$as_dir/ ;;
  3592. esac
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3595. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3597. break 2
  3598. fi
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. fi
  3604. CC=$ac_cv_prog_CC
  3605. if test -n "$CC"; then
  3606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3607. printf "%s\n" "$CC" >&6; }
  3608. else
  3609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. printf "%s\n" "no" >&6; }
  3611. fi
  3612. fi
  3613. if test -z "$ac_cv_prog_CC"; then
  3614. ac_ct_CC=$CC
  3615. # Extract the first word of "clang", so it can be a program name with args.
  3616. set dummy clang; ac_word=$2
  3617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. printf %s "checking for $ac_word... " >&6; }
  3619. if test ${ac_cv_prog_ac_ct_CC+y}
  3620. then :
  3621. printf %s "(cached) " >&6
  3622. else $as_nop
  3623. if test -n "$ac_ct_CC"; then
  3624. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3625. else
  3626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3627. for as_dir in $PATH
  3628. do
  3629. IFS=$as_save_IFS
  3630. case $as_dir in #(((
  3631. '') as_dir=./ ;;
  3632. */) ;;
  3633. *) as_dir=$as_dir/ ;;
  3634. esac
  3635. for ac_exec_ext in '' $ac_executable_extensions; do
  3636. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3637. ac_cv_prog_ac_ct_CC="clang"
  3638. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3639. break 2
  3640. fi
  3641. done
  3642. done
  3643. IFS=$as_save_IFS
  3644. fi
  3645. fi
  3646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3647. if test -n "$ac_ct_CC"; then
  3648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3649. printf "%s\n" "$ac_ct_CC" >&6; }
  3650. else
  3651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3652. printf "%s\n" "no" >&6; }
  3653. fi
  3654. if test "x$ac_ct_CC" = x; then
  3655. CC=""
  3656. else
  3657. case $cross_compiling:$ac_tool_warned in
  3658. yes:)
  3659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3660. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3661. ac_tool_warned=yes ;;
  3662. esac
  3663. CC=$ac_ct_CC
  3664. fi
  3665. else
  3666. CC="$ac_cv_prog_CC"
  3667. fi
  3668. fi
  3669. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3670. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3671. as_fn_error $? "no acceptable C compiler found in \$PATH
  3672. See \`config.log' for more details" "$LINENO" 5; }
  3673. # Provide some information about the compiler.
  3674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3675. set X $ac_compile
  3676. ac_compiler=$2
  3677. for ac_option in --version -v -V -qversion -version; do
  3678. { { ac_try="$ac_compiler $ac_option >&5"
  3679. case "(($ac_try" in
  3680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3681. *) ac_try_echo=$ac_try;;
  3682. esac
  3683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3684. printf "%s\n" "$ac_try_echo"; } >&5
  3685. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3686. ac_status=$?
  3687. if test -s conftest.err; then
  3688. sed '10a\
  3689. ... rest of stderr output deleted ...
  3690. 10q' conftest.err >conftest.er1
  3691. cat conftest.er1 >&5
  3692. fi
  3693. rm -f conftest.er1 conftest.err
  3694. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3695. test $ac_status = 0; }
  3696. done
  3697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3698. /* end confdefs.h. */
  3699. int
  3700. main (void)
  3701. {
  3702. ;
  3703. return 0;
  3704. }
  3705. _ACEOF
  3706. ac_clean_files_save=$ac_clean_files
  3707. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3708. # Try to create an executable without -o first, disregard a.out.
  3709. # It will help us diagnose broken compilers, and finding out an intuition
  3710. # of exeext.
  3711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3712. printf %s "checking whether the C compiler works... " >&6; }
  3713. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3714. # The possible output files:
  3715. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3716. ac_rmfiles=
  3717. for ac_file in $ac_files
  3718. do
  3719. case $ac_file in
  3720. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3721. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3722. esac
  3723. done
  3724. rm -f $ac_rmfiles
  3725. if { { ac_try="$ac_link_default"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. printf "%s\n" "$ac_try_echo"; } >&5
  3732. (eval "$ac_link_default") 2>&5
  3733. ac_status=$?
  3734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3735. test $ac_status = 0; }
  3736. then :
  3737. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3738. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3739. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3740. # so that the user can short-circuit this test for compilers unknown to
  3741. # Autoconf.
  3742. for ac_file in $ac_files ''
  3743. do
  3744. test -f "$ac_file" || continue
  3745. case $ac_file in
  3746. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3747. ;;
  3748. [ab].out )
  3749. # We found the default executable, but exeext='' is most
  3750. # certainly right.
  3751. break;;
  3752. *.* )
  3753. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3754. then :; else
  3755. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3756. fi
  3757. # We set ac_cv_exeext here because the later test for it is not
  3758. # safe: cross compilers may not add the suffix if given an `-o'
  3759. # argument, so we may need to know it at that point already.
  3760. # Even if this section looks crufty: it has the advantage of
  3761. # actually working.
  3762. break;;
  3763. * )
  3764. break;;
  3765. esac
  3766. done
  3767. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3768. else $as_nop
  3769. ac_file=''
  3770. fi
  3771. if test -z "$ac_file"
  3772. then :
  3773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3774. printf "%s\n" "no" >&6; }
  3775. printf "%s\n" "$as_me: failed program was:" >&5
  3776. sed 's/^/| /' conftest.$ac_ext >&5
  3777. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3778. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3779. as_fn_error 77 "C compiler cannot create executables
  3780. See \`config.log' for more details" "$LINENO" 5; }
  3781. else $as_nop
  3782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3783. printf "%s\n" "yes" >&6; }
  3784. fi
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3786. printf %s "checking for C compiler default output file name... " >&6; }
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3788. printf "%s\n" "$ac_file" >&6; }
  3789. ac_exeext=$ac_cv_exeext
  3790. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3791. ac_clean_files=$ac_clean_files_save
  3792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3793. printf %s "checking for suffix of executables... " >&6; }
  3794. if { { ac_try="$ac_link"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3800. printf "%s\n" "$ac_try_echo"; } >&5
  3801. (eval "$ac_link") 2>&5
  3802. ac_status=$?
  3803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3804. test $ac_status = 0; }
  3805. then :
  3806. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3807. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3808. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3809. # `rm'.
  3810. for ac_file in conftest.exe conftest conftest.*; do
  3811. test -f "$ac_file" || continue
  3812. case $ac_file in
  3813. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3814. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3815. break;;
  3816. * ) break;;
  3817. esac
  3818. done
  3819. else $as_nop
  3820. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3821. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3822. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3823. See \`config.log' for more details" "$LINENO" 5; }
  3824. fi
  3825. rm -f conftest conftest$ac_cv_exeext
  3826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3827. printf "%s\n" "$ac_cv_exeext" >&6; }
  3828. rm -f conftest.$ac_ext
  3829. EXEEXT=$ac_cv_exeext
  3830. ac_exeext=$EXEEXT
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. #include <stdio.h>
  3834. int
  3835. main (void)
  3836. {
  3837. FILE *f = fopen ("conftest.out", "w");
  3838. return ferror (f) || fclose (f) != 0;
  3839. ;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. ac_clean_files="$ac_clean_files conftest.out"
  3844. # Check that the compiler produces executables we can run. If not, either
  3845. # the compiler is broken, or we cross compile.
  3846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3847. printf %s "checking whether we are cross compiling... " >&6; }
  3848. if test "$cross_compiling" != yes; then
  3849. { { ac_try="$ac_link"
  3850. case "(($ac_try" in
  3851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852. *) ac_try_echo=$ac_try;;
  3853. esac
  3854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3855. printf "%s\n" "$ac_try_echo"; } >&5
  3856. (eval "$ac_link") 2>&5
  3857. ac_status=$?
  3858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3859. test $ac_status = 0; }
  3860. if { ac_try='./conftest$ac_cv_exeext'
  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_try") 2>&5
  3868. ac_status=$?
  3869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3870. test $ac_status = 0; }; }; then
  3871. cross_compiling=no
  3872. else
  3873. if test "$cross_compiling" = maybe; then
  3874. cross_compiling=yes
  3875. else
  3876. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3877. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3878. as_fn_error 77 "cannot run C compiled programs.
  3879. If you meant to cross compile, use \`--host'.
  3880. See \`config.log' for more details" "$LINENO" 5; }
  3881. fi
  3882. fi
  3883. fi
  3884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3885. printf "%s\n" "$cross_compiling" >&6; }
  3886. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3887. ac_clean_files=$ac_clean_files_save
  3888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3889. printf %s "checking for suffix of object files... " >&6; }
  3890. if test ${ac_cv_objext+y}
  3891. then :
  3892. printf %s "(cached) " >&6
  3893. else $as_nop
  3894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3895. /* end confdefs.h. */
  3896. int
  3897. main (void)
  3898. {
  3899. ;
  3900. return 0;
  3901. }
  3902. _ACEOF
  3903. rm -f conftest.o conftest.obj
  3904. if { { ac_try="$ac_compile"
  3905. case "(($ac_try" in
  3906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3907. *) ac_try_echo=$ac_try;;
  3908. esac
  3909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3910. printf "%s\n" "$ac_try_echo"; } >&5
  3911. (eval "$ac_compile") 2>&5
  3912. ac_status=$?
  3913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3914. test $ac_status = 0; }
  3915. then :
  3916. for ac_file in conftest.o conftest.obj conftest.*; do
  3917. test -f "$ac_file" || continue;
  3918. case $ac_file in
  3919. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3920. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3921. break;;
  3922. esac
  3923. done
  3924. else $as_nop
  3925. printf "%s\n" "$as_me: failed program was:" >&5
  3926. sed 's/^/| /' conftest.$ac_ext >&5
  3927. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3928. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3929. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3930. See \`config.log' for more details" "$LINENO" 5; }
  3931. fi
  3932. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3933. fi
  3934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3935. printf "%s\n" "$ac_cv_objext" >&6; }
  3936. OBJEXT=$ac_cv_objext
  3937. ac_objext=$OBJEXT
  3938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3939. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3940. if test ${ac_cv_c_compiler_gnu+y}
  3941. then :
  3942. printf %s "(cached) " >&6
  3943. else $as_nop
  3944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3945. /* end confdefs.h. */
  3946. int
  3947. main (void)
  3948. {
  3949. #ifndef __GNUC__
  3950. choke me
  3951. #endif
  3952. ;
  3953. return 0;
  3954. }
  3955. _ACEOF
  3956. if ac_fn_c_try_compile "$LINENO"
  3957. then :
  3958. ac_compiler_gnu=yes
  3959. else $as_nop
  3960. ac_compiler_gnu=no
  3961. fi
  3962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3963. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3964. fi
  3965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3966. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3968. if test $ac_compiler_gnu = yes; then
  3969. GCC=yes
  3970. else
  3971. GCC=
  3972. fi
  3973. ac_test_CFLAGS=${CFLAGS+y}
  3974. ac_save_CFLAGS=$CFLAGS
  3975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3976. printf %s "checking whether $CC accepts -g... " >&6; }
  3977. if test ${ac_cv_prog_cc_g+y}
  3978. then :
  3979. printf %s "(cached) " >&6
  3980. else $as_nop
  3981. ac_save_c_werror_flag=$ac_c_werror_flag
  3982. ac_c_werror_flag=yes
  3983. ac_cv_prog_cc_g=no
  3984. CFLAGS="-g"
  3985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3986. /* end confdefs.h. */
  3987. int
  3988. main (void)
  3989. {
  3990. ;
  3991. return 0;
  3992. }
  3993. _ACEOF
  3994. if ac_fn_c_try_compile "$LINENO"
  3995. then :
  3996. ac_cv_prog_cc_g=yes
  3997. else $as_nop
  3998. CFLAGS=""
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. int
  4002. main (void)
  4003. {
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. if ac_fn_c_try_compile "$LINENO"
  4009. then :
  4010. else $as_nop
  4011. ac_c_werror_flag=$ac_save_c_werror_flag
  4012. CFLAGS="-g"
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main (void)
  4017. {
  4018. ;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_compile "$LINENO"
  4023. then :
  4024. ac_cv_prog_cc_g=yes
  4025. fi
  4026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4027. fi
  4028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4031. ac_c_werror_flag=$ac_save_c_werror_flag
  4032. fi
  4033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4034. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4035. if test $ac_test_CFLAGS; then
  4036. CFLAGS=$ac_save_CFLAGS
  4037. elif test $ac_cv_prog_cc_g = yes; then
  4038. if test "$GCC" = yes; then
  4039. CFLAGS="-g -O2"
  4040. else
  4041. CFLAGS="-g"
  4042. fi
  4043. else
  4044. if test "$GCC" = yes; then
  4045. CFLAGS="-O2"
  4046. else
  4047. CFLAGS=
  4048. fi
  4049. fi
  4050. ac_prog_cc_stdc=no
  4051. if test x$ac_prog_cc_stdc = xno
  4052. then :
  4053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4054. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4055. if test ${ac_cv_prog_cc_c11+y}
  4056. then :
  4057. printf %s "(cached) " >&6
  4058. else $as_nop
  4059. ac_cv_prog_cc_c11=no
  4060. ac_save_CC=$CC
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. $ac_c_conftest_c11_program
  4064. _ACEOF
  4065. for ac_arg in '' -std=gnu11
  4066. do
  4067. CC="$ac_save_CC $ac_arg"
  4068. if ac_fn_c_try_compile "$LINENO"
  4069. then :
  4070. ac_cv_prog_cc_c11=$ac_arg
  4071. fi
  4072. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4073. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4074. done
  4075. rm -f conftest.$ac_ext
  4076. CC=$ac_save_CC
  4077. fi
  4078. if test "x$ac_cv_prog_cc_c11" = xno
  4079. then :
  4080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4081. printf "%s\n" "unsupported" >&6; }
  4082. else $as_nop
  4083. if test "x$ac_cv_prog_cc_c11" = x
  4084. then :
  4085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4086. printf "%s\n" "none needed" >&6; }
  4087. else $as_nop
  4088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4089. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4090. CC="$CC $ac_cv_prog_cc_c11"
  4091. fi
  4092. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4093. ac_prog_cc_stdc=c11
  4094. fi
  4095. fi
  4096. if test x$ac_prog_cc_stdc = xno
  4097. then :
  4098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4099. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4100. if test ${ac_cv_prog_cc_c99+y}
  4101. then :
  4102. printf %s "(cached) " >&6
  4103. else $as_nop
  4104. ac_cv_prog_cc_c99=no
  4105. ac_save_CC=$CC
  4106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4107. /* end confdefs.h. */
  4108. $ac_c_conftest_c99_program
  4109. _ACEOF
  4110. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4111. do
  4112. CC="$ac_save_CC $ac_arg"
  4113. if ac_fn_c_try_compile "$LINENO"
  4114. then :
  4115. ac_cv_prog_cc_c99=$ac_arg
  4116. fi
  4117. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4118. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4119. done
  4120. rm -f conftest.$ac_ext
  4121. CC=$ac_save_CC
  4122. fi
  4123. if test "x$ac_cv_prog_cc_c99" = xno
  4124. then :
  4125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4126. printf "%s\n" "unsupported" >&6; }
  4127. else $as_nop
  4128. if test "x$ac_cv_prog_cc_c99" = x
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4131. printf "%s\n" "none needed" >&6; }
  4132. else $as_nop
  4133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4134. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4135. CC="$CC $ac_cv_prog_cc_c99"
  4136. fi
  4137. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4138. ac_prog_cc_stdc=c99
  4139. fi
  4140. fi
  4141. if test x$ac_prog_cc_stdc = xno
  4142. then :
  4143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4144. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4145. if test ${ac_cv_prog_cc_c89+y}
  4146. then :
  4147. printf %s "(cached) " >&6
  4148. else $as_nop
  4149. ac_cv_prog_cc_c89=no
  4150. ac_save_CC=$CC
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. $ac_c_conftest_c89_program
  4154. _ACEOF
  4155. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4156. do
  4157. CC="$ac_save_CC $ac_arg"
  4158. if ac_fn_c_try_compile "$LINENO"
  4159. then :
  4160. ac_cv_prog_cc_c89=$ac_arg
  4161. fi
  4162. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4163. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4164. done
  4165. rm -f conftest.$ac_ext
  4166. CC=$ac_save_CC
  4167. fi
  4168. if test "x$ac_cv_prog_cc_c89" = xno
  4169. then :
  4170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4171. printf "%s\n" "unsupported" >&6; }
  4172. else $as_nop
  4173. if test "x$ac_cv_prog_cc_c89" = x
  4174. then :
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4176. printf "%s\n" "none needed" >&6; }
  4177. else $as_nop
  4178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4179. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4180. CC="$CC $ac_cv_prog_cc_c89"
  4181. fi
  4182. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4183. ac_prog_cc_stdc=c89
  4184. fi
  4185. fi
  4186. ac_ext=c
  4187. ac_cpp='$CPP $CPPFLAGS'
  4188. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4189. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4190. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4192. printf %s "checking for a sed that does not truncate output... " >&6; }
  4193. if test ${ac_cv_path_SED+y}
  4194. then :
  4195. printf %s "(cached) " >&6
  4196. else $as_nop
  4197. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4198. for ac_i in 1 2 3 4 5 6 7; do
  4199. ac_script="$ac_script$as_nl$ac_script"
  4200. done
  4201. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4202. { ac_script=; unset ac_script;}
  4203. if test -z "$SED"; then
  4204. ac_path_SED_found=false
  4205. # Loop through the user's path and test for each of PROGNAME-LIST
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. case $as_dir in #(((
  4211. '') as_dir=./ ;;
  4212. */) ;;
  4213. *) as_dir=$as_dir/ ;;
  4214. esac
  4215. for ac_prog in sed gsed
  4216. do
  4217. for ac_exec_ext in '' $ac_executable_extensions; do
  4218. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4219. as_fn_executable_p "$ac_path_SED" || continue
  4220. # Check for GNU ac_path_SED and select it if it is found.
  4221. # Check for GNU $ac_path_SED
  4222. case `"$ac_path_SED" --version 2>&1` in
  4223. *GNU*)
  4224. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4225. *)
  4226. ac_count=0
  4227. printf %s 0123456789 >"conftest.in"
  4228. while :
  4229. do
  4230. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4231. mv "conftest.tmp" "conftest.in"
  4232. cp "conftest.in" "conftest.nl"
  4233. printf "%s\n" '' >> "conftest.nl"
  4234. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4235. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4236. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4237. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4238. # Best one so far, save it but keep looking for a better one
  4239. ac_cv_path_SED="$ac_path_SED"
  4240. ac_path_SED_max=$ac_count
  4241. fi
  4242. # 10*(2^10) chars as input seems more than enough
  4243. test $ac_count -gt 10 && break
  4244. done
  4245. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4246. esac
  4247. $ac_path_SED_found && break 3
  4248. done
  4249. done
  4250. done
  4251. IFS=$as_save_IFS
  4252. if test -z "$ac_cv_path_SED"; then
  4253. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4254. fi
  4255. else
  4256. ac_cv_path_SED=$SED
  4257. fi
  4258. fi
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4260. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4261. SED="$ac_cv_path_SED"
  4262. rm -f conftest.sed
  4263. test -z "$SED" && SED=sed
  4264. Xsed="$SED -e 1s/^X//"
  4265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4266. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4267. if test ${ac_cv_path_GREP+y}
  4268. then :
  4269. printf %s "(cached) " >&6
  4270. else $as_nop
  4271. if test -z "$GREP"; then
  4272. ac_path_GREP_found=false
  4273. # Loop through the user's path and test for each of PROGNAME-LIST
  4274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4275. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4276. do
  4277. IFS=$as_save_IFS
  4278. case $as_dir in #(((
  4279. '') as_dir=./ ;;
  4280. */) ;;
  4281. *) as_dir=$as_dir/ ;;
  4282. esac
  4283. for ac_prog in grep ggrep
  4284. do
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4287. as_fn_executable_p "$ac_path_GREP" || continue
  4288. # Check for GNU ac_path_GREP and select it if it is found.
  4289. # Check for GNU $ac_path_GREP
  4290. case `"$ac_path_GREP" --version 2>&1` in
  4291. *GNU*)
  4292. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4293. *)
  4294. ac_count=0
  4295. printf %s 0123456789 >"conftest.in"
  4296. while :
  4297. do
  4298. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4299. mv "conftest.tmp" "conftest.in"
  4300. cp "conftest.in" "conftest.nl"
  4301. printf "%s\n" 'GREP' >> "conftest.nl"
  4302. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4303. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4304. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4305. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4306. # Best one so far, save it but keep looking for a better one
  4307. ac_cv_path_GREP="$ac_path_GREP"
  4308. ac_path_GREP_max=$ac_count
  4309. fi
  4310. # 10*(2^10) chars as input seems more than enough
  4311. test $ac_count -gt 10 && break
  4312. done
  4313. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4314. esac
  4315. $ac_path_GREP_found && break 3
  4316. done
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. if test -z "$ac_cv_path_GREP"; then
  4321. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4322. fi
  4323. else
  4324. ac_cv_path_GREP=$GREP
  4325. fi
  4326. fi
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4328. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4329. GREP="$ac_cv_path_GREP"
  4330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4331. printf %s "checking for egrep... " >&6; }
  4332. if test ${ac_cv_path_EGREP+y}
  4333. then :
  4334. printf %s "(cached) " >&6
  4335. else $as_nop
  4336. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4337. then ac_cv_path_EGREP="$GREP -E"
  4338. else
  4339. if test -z "$EGREP"; then
  4340. ac_path_EGREP_found=false
  4341. # Loop through the user's path and test for each of PROGNAME-LIST
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4344. do
  4345. IFS=$as_save_IFS
  4346. case $as_dir in #(((
  4347. '') as_dir=./ ;;
  4348. */) ;;
  4349. *) as_dir=$as_dir/ ;;
  4350. esac
  4351. for ac_prog in egrep
  4352. do
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4355. as_fn_executable_p "$ac_path_EGREP" || continue
  4356. # Check for GNU ac_path_EGREP and select it if it is found.
  4357. # Check for GNU $ac_path_EGREP
  4358. case `"$ac_path_EGREP" --version 2>&1` in
  4359. *GNU*)
  4360. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4361. *)
  4362. ac_count=0
  4363. printf %s 0123456789 >"conftest.in"
  4364. while :
  4365. do
  4366. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4367. mv "conftest.tmp" "conftest.in"
  4368. cp "conftest.in" "conftest.nl"
  4369. printf "%s\n" 'EGREP' >> "conftest.nl"
  4370. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4371. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4372. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4373. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4374. # Best one so far, save it but keep looking for a better one
  4375. ac_cv_path_EGREP="$ac_path_EGREP"
  4376. ac_path_EGREP_max=$ac_count
  4377. fi
  4378. # 10*(2^10) chars as input seems more than enough
  4379. test $ac_count -gt 10 && break
  4380. done
  4381. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4382. esac
  4383. $ac_path_EGREP_found && break 3
  4384. done
  4385. done
  4386. done
  4387. IFS=$as_save_IFS
  4388. if test -z "$ac_cv_path_EGREP"; then
  4389. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4390. fi
  4391. else
  4392. ac_cv_path_EGREP=$EGREP
  4393. fi
  4394. fi
  4395. fi
  4396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4397. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4398. EGREP="$ac_cv_path_EGREP"
  4399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4400. printf %s "checking for fgrep... " >&6; }
  4401. if test ${ac_cv_path_FGREP+y}
  4402. then :
  4403. printf %s "(cached) " >&6
  4404. else $as_nop
  4405. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4406. then ac_cv_path_FGREP="$GREP -F"
  4407. else
  4408. if test -z "$FGREP"; then
  4409. ac_path_FGREP_found=false
  4410. # Loop through the user's path and test for each of PROGNAME-LIST
  4411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4412. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4413. do
  4414. IFS=$as_save_IFS
  4415. case $as_dir in #(((
  4416. '') as_dir=./ ;;
  4417. */) ;;
  4418. *) as_dir=$as_dir/ ;;
  4419. esac
  4420. for ac_prog in fgrep
  4421. do
  4422. for ac_exec_ext in '' $ac_executable_extensions; do
  4423. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4424. as_fn_executable_p "$ac_path_FGREP" || continue
  4425. # Check for GNU ac_path_FGREP and select it if it is found.
  4426. # Check for GNU $ac_path_FGREP
  4427. case `"$ac_path_FGREP" --version 2>&1` in
  4428. *GNU*)
  4429. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4430. *)
  4431. ac_count=0
  4432. printf %s 0123456789 >"conftest.in"
  4433. while :
  4434. do
  4435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4436. mv "conftest.tmp" "conftest.in"
  4437. cp "conftest.in" "conftest.nl"
  4438. printf "%s\n" 'FGREP' >> "conftest.nl"
  4439. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4441. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4442. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4443. # Best one so far, save it but keep looking for a better one
  4444. ac_cv_path_FGREP="$ac_path_FGREP"
  4445. ac_path_FGREP_max=$ac_count
  4446. fi
  4447. # 10*(2^10) chars as input seems more than enough
  4448. test $ac_count -gt 10 && break
  4449. done
  4450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4451. esac
  4452. $ac_path_FGREP_found && break 3
  4453. done
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. if test -z "$ac_cv_path_FGREP"; then
  4458. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4459. fi
  4460. else
  4461. ac_cv_path_FGREP=$FGREP
  4462. fi
  4463. fi
  4464. fi
  4465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4466. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4467. FGREP="$ac_cv_path_FGREP"
  4468. test -z "$GREP" && GREP=grep
  4469. # Check whether --with-gnu-ld was given.
  4470. if test ${with_gnu_ld+y}
  4471. then :
  4472. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4473. else $as_nop
  4474. with_gnu_ld=no
  4475. fi
  4476. ac_prog=ld
  4477. if test yes = "$GCC"; then
  4478. # Check if gcc -print-prog-name=ld gives a path.
  4479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4480. printf %s "checking for ld used by $CC... " >&6; }
  4481. case $host in
  4482. *-*-mingw*)
  4483. # gcc leaves a trailing carriage return, which upsets mingw
  4484. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4485. *)
  4486. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4487. esac
  4488. case $ac_prog in
  4489. # Accept absolute paths.
  4490. [\\/]* | ?:[\\/]*)
  4491. re_direlt='/[^/][^/]*/\.\./'
  4492. # Canonicalize the pathname of ld
  4493. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4494. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4495. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4496. done
  4497. test -z "$LD" && LD=$ac_prog
  4498. ;;
  4499. "")
  4500. # If it fails, then pretend we aren't using GCC.
  4501. ac_prog=ld
  4502. ;;
  4503. *)
  4504. # If it is relative, then search for the first ld in PATH.
  4505. with_gnu_ld=unknown
  4506. ;;
  4507. esac
  4508. elif test yes = "$with_gnu_ld"; then
  4509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4510. printf %s "checking for GNU ld... " >&6; }
  4511. else
  4512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4513. printf %s "checking for non-GNU ld... " >&6; }
  4514. fi
  4515. if test ${lt_cv_path_LD+y}
  4516. then :
  4517. printf %s "(cached) " >&6
  4518. else $as_nop
  4519. if test -z "$LD"; then
  4520. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4521. for ac_dir in $PATH; do
  4522. IFS=$lt_save_ifs
  4523. test -z "$ac_dir" && ac_dir=.
  4524. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4525. lt_cv_path_LD=$ac_dir/$ac_prog
  4526. # Check to see if the program is GNU ld. I'd rather use --version,
  4527. # but apparently some variants of GNU ld only accept -v.
  4528. # Break only if it was the GNU/non-GNU ld that we prefer.
  4529. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4530. *GNU* | *'with BFD'*)
  4531. test no != "$with_gnu_ld" && break
  4532. ;;
  4533. *)
  4534. test yes != "$with_gnu_ld" && break
  4535. ;;
  4536. esac
  4537. fi
  4538. done
  4539. IFS=$lt_save_ifs
  4540. else
  4541. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4542. fi
  4543. fi
  4544. LD=$lt_cv_path_LD
  4545. if test -n "$LD"; then
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4547. printf "%s\n" "$LD" >&6; }
  4548. else
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4550. printf "%s\n" "no" >&6; }
  4551. fi
  4552. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4554. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4555. if test ${lt_cv_prog_gnu_ld+y}
  4556. then :
  4557. printf %s "(cached) " >&6
  4558. else $as_nop
  4559. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4560. case `$LD -v 2>&1 </dev/null` in
  4561. *GNU* | *'with BFD'*)
  4562. lt_cv_prog_gnu_ld=yes
  4563. ;;
  4564. *)
  4565. lt_cv_prog_gnu_ld=no
  4566. ;;
  4567. esac
  4568. fi
  4569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4570. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4571. with_gnu_ld=$lt_cv_prog_gnu_ld
  4572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4573. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4574. if test ${lt_cv_path_NM+y}
  4575. then :
  4576. printf %s "(cached) " >&6
  4577. else $as_nop
  4578. if test -n "$NM"; then
  4579. # Let the user override the test.
  4580. lt_cv_path_NM=$NM
  4581. else
  4582. lt_nm_to_check=${ac_tool_prefix}nm
  4583. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4584. lt_nm_to_check="$lt_nm_to_check nm"
  4585. fi
  4586. for lt_tmp_nm in $lt_nm_to_check; do
  4587. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4588. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4589. IFS=$lt_save_ifs
  4590. test -z "$ac_dir" && ac_dir=.
  4591. tmp_nm=$ac_dir/$lt_tmp_nm
  4592. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4593. # Check to see if the nm accepts a BSD-compat flag.
  4594. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4595. # nm: unknown option "B" ignored
  4596. # Tru64's nm complains that /dev/null is an invalid object file
  4597. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4598. case $build_os in
  4599. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4600. *) lt_bad_file=/dev/null ;;
  4601. esac
  4602. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4603. *$lt_bad_file* | *'Invalid file or object type'*)
  4604. lt_cv_path_NM="$tmp_nm -B"
  4605. break 2
  4606. ;;
  4607. *)
  4608. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4609. */dev/null*)
  4610. lt_cv_path_NM="$tmp_nm -p"
  4611. break 2
  4612. ;;
  4613. *)
  4614. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4615. continue # so that we can try to find one that supports BSD flags
  4616. ;;
  4617. esac
  4618. ;;
  4619. esac
  4620. fi
  4621. done
  4622. IFS=$lt_save_ifs
  4623. done
  4624. : ${lt_cv_path_NM=no}
  4625. fi
  4626. fi
  4627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4628. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4629. if test no != "$lt_cv_path_NM"; then
  4630. NM=$lt_cv_path_NM
  4631. else
  4632. # Didn't find any BSD compatible name lister, look for dumpbin.
  4633. if test -n "$DUMPBIN"; then :
  4634. # Let the user override the test.
  4635. else
  4636. if test -n "$ac_tool_prefix"; then
  4637. for ac_prog in dumpbin "link -dump"
  4638. do
  4639. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4640. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4642. printf %s "checking for $ac_word... " >&6; }
  4643. if test ${ac_cv_prog_DUMPBIN+y}
  4644. then :
  4645. printf %s "(cached) " >&6
  4646. else $as_nop
  4647. if test -n "$DUMPBIN"; then
  4648. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. case $as_dir in #(((
  4655. '') as_dir=./ ;;
  4656. */) ;;
  4657. *) as_dir=$as_dir/ ;;
  4658. esac
  4659. for ac_exec_ext in '' $ac_executable_extensions; do
  4660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4661. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4663. break 2
  4664. fi
  4665. done
  4666. done
  4667. IFS=$as_save_IFS
  4668. fi
  4669. fi
  4670. DUMPBIN=$ac_cv_prog_DUMPBIN
  4671. if test -n "$DUMPBIN"; then
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4673. printf "%s\n" "$DUMPBIN" >&6; }
  4674. else
  4675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4676. printf "%s\n" "no" >&6; }
  4677. fi
  4678. test -n "$DUMPBIN" && break
  4679. done
  4680. fi
  4681. if test -z "$DUMPBIN"; then
  4682. ac_ct_DUMPBIN=$DUMPBIN
  4683. for ac_prog in dumpbin "link -dump"
  4684. do
  4685. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4686. set dummy $ac_prog; ac_word=$2
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4688. printf %s "checking for $ac_word... " >&6; }
  4689. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4690. then :
  4691. printf %s "(cached) " >&6
  4692. else $as_nop
  4693. if test -n "$ac_ct_DUMPBIN"; then
  4694. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4695. else
  4696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4697. for as_dir in $PATH
  4698. do
  4699. IFS=$as_save_IFS
  4700. case $as_dir in #(((
  4701. '') as_dir=./ ;;
  4702. */) ;;
  4703. *) as_dir=$as_dir/ ;;
  4704. esac
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4717. if test -n "$ac_ct_DUMPBIN"; then
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4719. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4720. else
  4721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. printf "%s\n" "no" >&6; }
  4723. fi
  4724. test -n "$ac_ct_DUMPBIN" && break
  4725. done
  4726. if test "x$ac_ct_DUMPBIN" = x; then
  4727. DUMPBIN=":"
  4728. else
  4729. case $cross_compiling:$ac_tool_warned in
  4730. yes:)
  4731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4732. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4733. ac_tool_warned=yes ;;
  4734. esac
  4735. DUMPBIN=$ac_ct_DUMPBIN
  4736. fi
  4737. fi
  4738. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4739. *COFF*)
  4740. DUMPBIN="$DUMPBIN -symbols -headers"
  4741. ;;
  4742. *)
  4743. DUMPBIN=:
  4744. ;;
  4745. esac
  4746. fi
  4747. if test : != "$DUMPBIN"; then
  4748. NM=$DUMPBIN
  4749. fi
  4750. fi
  4751. test -z "$NM" && NM=nm
  4752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4753. printf %s "checking the name lister ($NM) interface... " >&6; }
  4754. if test ${lt_cv_nm_interface+y}
  4755. then :
  4756. printf %s "(cached) " >&6
  4757. else $as_nop
  4758. lt_cv_nm_interface="BSD nm"
  4759. echo "int some_variable = 0;" > conftest.$ac_ext
  4760. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4761. (eval "$ac_compile" 2>conftest.err)
  4762. cat conftest.err >&5
  4763. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4764. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4765. cat conftest.err >&5
  4766. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4767. cat conftest.out >&5
  4768. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4769. lt_cv_nm_interface="MS dumpbin"
  4770. fi
  4771. rm -f conftest*
  4772. fi
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4774. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4776. printf %s "checking whether ln -s works... " >&6; }
  4777. LN_S=$as_ln_s
  4778. if test "$LN_S" = "ln -s"; then
  4779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4780. printf "%s\n" "yes" >&6; }
  4781. else
  4782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4783. printf "%s\n" "no, using $LN_S" >&6; }
  4784. fi
  4785. # find the maximum length of command line arguments
  4786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4787. printf %s "checking the maximum length of command line arguments... " >&6; }
  4788. if test ${lt_cv_sys_max_cmd_len+y}
  4789. then :
  4790. printf %s "(cached) " >&6
  4791. else $as_nop
  4792. i=0
  4793. teststring=ABCD
  4794. case $build_os in
  4795. msdosdjgpp*)
  4796. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4797. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4798. # during glob expansion). Even if it were fixed, the result of this
  4799. # check would be larger than it should be.
  4800. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4801. ;;
  4802. gnu*)
  4803. # Under GNU Hurd, this test is not required because there is
  4804. # no limit to the length of command line arguments.
  4805. # Libtool will interpret -1 as no limit whatsoever
  4806. lt_cv_sys_max_cmd_len=-1;
  4807. ;;
  4808. cygwin* | mingw* | cegcc*)
  4809. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4810. # about 5 minutes as the teststring grows exponentially.
  4811. # Worse, since 9x/ME are not pre-emptively multitasking,
  4812. # you end up with a "frozen" computer, even though with patience
  4813. # the test eventually succeeds (with a max line length of 256k).
  4814. # Instead, let's just punt: use the minimum linelength reported by
  4815. # all of the supported platforms: 8192 (on NT/2K/XP).
  4816. lt_cv_sys_max_cmd_len=8192;
  4817. ;;
  4818. mint*)
  4819. # On MiNT this can take a long time and run out of memory.
  4820. lt_cv_sys_max_cmd_len=8192;
  4821. ;;
  4822. amigaos*)
  4823. # On AmigaOS with pdksh, this test takes hours, literally.
  4824. # So we just punt and use a minimum line length of 8192.
  4825. lt_cv_sys_max_cmd_len=8192;
  4826. ;;
  4827. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4828. # This has been around since 386BSD, at least. Likely further.
  4829. if test -x /sbin/sysctl; then
  4830. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4831. elif test -x /usr/sbin/sysctl; then
  4832. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4833. else
  4834. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4835. fi
  4836. # And add a safety zone
  4837. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4838. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4839. ;;
  4840. interix*)
  4841. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4842. lt_cv_sys_max_cmd_len=196608
  4843. ;;
  4844. os2*)
  4845. # The test takes a long time on OS/2.
  4846. lt_cv_sys_max_cmd_len=8192
  4847. ;;
  4848. osf*)
  4849. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4850. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4851. # nice to cause kernel panics so lets avoid the loop below.
  4852. # First set a reasonable default.
  4853. lt_cv_sys_max_cmd_len=16384
  4854. #
  4855. if test -x /sbin/sysconfig; then
  4856. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4857. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4858. esac
  4859. fi
  4860. ;;
  4861. sco3.2v5*)
  4862. lt_cv_sys_max_cmd_len=102400
  4863. ;;
  4864. sysv5* | sco5v6* | sysv4.2uw2*)
  4865. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4866. if test -n "$kargmax"; then
  4867. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4868. else
  4869. lt_cv_sys_max_cmd_len=32768
  4870. fi
  4871. ;;
  4872. *)
  4873. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4874. if test -n "$lt_cv_sys_max_cmd_len" && \
  4875. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4876. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4877. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4878. else
  4879. # Make teststring a little bigger before we do anything with it.
  4880. # a 1K string should be a reasonable start.
  4881. for i in 1 2 3 4 5 6 7 8; do
  4882. teststring=$teststring$teststring
  4883. done
  4884. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4885. # If test is not a shell built-in, we'll probably end up computing a
  4886. # maximum length that is only half of the actual maximum length, but
  4887. # we can't tell.
  4888. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4889. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4890. test 17 != "$i" # 1/2 MB should be enough
  4891. do
  4892. i=`expr $i + 1`
  4893. teststring=$teststring$teststring
  4894. done
  4895. # Only check the string length outside the loop.
  4896. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4897. teststring=
  4898. # Add a significant safety factor because C++ compilers can tack on
  4899. # massive amounts of additional arguments before passing them to the
  4900. # linker. It appears as though 1/2 is a usable value.
  4901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4902. fi
  4903. ;;
  4904. esac
  4905. fi
  4906. if test -n "$lt_cv_sys_max_cmd_len"; then
  4907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4908. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4909. else
  4910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4911. printf "%s\n" "none" >&6; }
  4912. fi
  4913. max_cmd_len=$lt_cv_sys_max_cmd_len
  4914. : ${CP="cp -f"}
  4915. : ${MV="mv -f"}
  4916. : ${RM="rm -f"}
  4917. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4918. lt_unset=unset
  4919. else
  4920. lt_unset=false
  4921. fi
  4922. # test EBCDIC or ASCII
  4923. case `echo X|tr X '\101'` in
  4924. A) # ASCII based system
  4925. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4926. lt_SP2NL='tr \040 \012'
  4927. lt_NL2SP='tr \015\012 \040\040'
  4928. ;;
  4929. *) # EBCDIC based system
  4930. lt_SP2NL='tr \100 \n'
  4931. lt_NL2SP='tr \r\n \100\100'
  4932. ;;
  4933. esac
  4934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4935. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4936. if test ${lt_cv_to_host_file_cmd+y}
  4937. then :
  4938. printf %s "(cached) " >&6
  4939. else $as_nop
  4940. case $host in
  4941. *-*-mingw* )
  4942. case $build in
  4943. *-*-mingw* ) # actually msys
  4944. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4945. ;;
  4946. *-*-cygwin* )
  4947. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4948. ;;
  4949. * ) # otherwise, assume *nix
  4950. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4951. ;;
  4952. esac
  4953. ;;
  4954. *-*-cygwin* )
  4955. case $build in
  4956. *-*-mingw* ) # actually msys
  4957. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4958. ;;
  4959. *-*-cygwin* )
  4960. lt_cv_to_host_file_cmd=func_convert_file_noop
  4961. ;;
  4962. * ) # otherwise, assume *nix
  4963. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4964. ;;
  4965. esac
  4966. ;;
  4967. * ) # unhandled hosts (and "normal" native builds)
  4968. lt_cv_to_host_file_cmd=func_convert_file_noop
  4969. ;;
  4970. esac
  4971. fi
  4972. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4974. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4976. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4977. if test ${lt_cv_to_tool_file_cmd+y}
  4978. then :
  4979. printf %s "(cached) " >&6
  4980. else $as_nop
  4981. #assume ordinary cross tools, or native build.
  4982. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4983. case $host in
  4984. *-*-mingw* )
  4985. case $build in
  4986. *-*-mingw* ) # actually msys
  4987. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4988. ;;
  4989. esac
  4990. ;;
  4991. esac
  4992. fi
  4993. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4995. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4997. printf %s "checking for $LD option to reload object files... " >&6; }
  4998. if test ${lt_cv_ld_reload_flag+y}
  4999. then :
  5000. printf %s "(cached) " >&6
  5001. else $as_nop
  5002. lt_cv_ld_reload_flag='-r'
  5003. fi
  5004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5005. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5006. reload_flag=$lt_cv_ld_reload_flag
  5007. case $reload_flag in
  5008. "" | " "*) ;;
  5009. *) reload_flag=" $reload_flag" ;;
  5010. esac
  5011. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5012. case $host_os in
  5013. cygwin* | mingw* | pw32* | cegcc*)
  5014. if test yes != "$GCC"; then
  5015. reload_cmds=false
  5016. fi
  5017. ;;
  5018. darwin*)
  5019. if test yes = "$GCC"; then
  5020. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5021. else
  5022. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5023. fi
  5024. ;;
  5025. esac
  5026. if test -n "$ac_tool_prefix"; then
  5027. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5028. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5030. printf %s "checking for $ac_word... " >&6; }
  5031. if test ${ac_cv_prog_OBJDUMP+y}
  5032. then :
  5033. printf %s "(cached) " >&6
  5034. else $as_nop
  5035. if test -n "$OBJDUMP"; then
  5036. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5037. else
  5038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5039. for as_dir in $PATH
  5040. do
  5041. IFS=$as_save_IFS
  5042. case $as_dir in #(((
  5043. '') as_dir=./ ;;
  5044. */) ;;
  5045. *) as_dir=$as_dir/ ;;
  5046. esac
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5049. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5050. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. OBJDUMP=$ac_cv_prog_OBJDUMP
  5059. if test -n "$OBJDUMP"; then
  5060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5061. printf "%s\n" "$OBJDUMP" >&6; }
  5062. else
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. printf "%s\n" "no" >&6; }
  5065. fi
  5066. fi
  5067. if test -z "$ac_cv_prog_OBJDUMP"; then
  5068. ac_ct_OBJDUMP=$OBJDUMP
  5069. # Extract the first word of "objdump", so it can be a program name with args.
  5070. set dummy objdump; ac_word=$2
  5071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5072. printf %s "checking for $ac_word... " >&6; }
  5073. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5074. then :
  5075. printf %s "(cached) " >&6
  5076. else $as_nop
  5077. if test -n "$ac_ct_OBJDUMP"; then
  5078. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5079. else
  5080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5081. for as_dir in $PATH
  5082. do
  5083. IFS=$as_save_IFS
  5084. case $as_dir in #(((
  5085. '') as_dir=./ ;;
  5086. */) ;;
  5087. *) as_dir=$as_dir/ ;;
  5088. esac
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5091. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5101. if test -n "$ac_ct_OBJDUMP"; then
  5102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5103. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5104. else
  5105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. printf "%s\n" "no" >&6; }
  5107. fi
  5108. if test "x$ac_ct_OBJDUMP" = x; then
  5109. OBJDUMP="false"
  5110. else
  5111. case $cross_compiling:$ac_tool_warned in
  5112. yes:)
  5113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5114. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5115. ac_tool_warned=yes ;;
  5116. esac
  5117. OBJDUMP=$ac_ct_OBJDUMP
  5118. fi
  5119. else
  5120. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5121. fi
  5122. test -z "$OBJDUMP" && OBJDUMP=objdump
  5123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5124. printf %s "checking how to recognize dependent libraries... " >&6; }
  5125. if test ${lt_cv_deplibs_check_method+y}
  5126. then :
  5127. printf %s "(cached) " >&6
  5128. else $as_nop
  5129. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5130. lt_cv_file_magic_test_file=
  5131. lt_cv_deplibs_check_method='unknown'
  5132. # Need to set the preceding variable on all platforms that support
  5133. # interlibrary dependencies.
  5134. # 'none' -- dependencies not supported.
  5135. # 'unknown' -- same as none, but documents that we really don't know.
  5136. # 'pass_all' -- all dependencies passed with no checks.
  5137. # 'test_compile' -- check by making test program.
  5138. # 'file_magic [[regex]]' -- check by looking for files in library path
  5139. # that responds to the $file_magic_cmd with a given extended regex.
  5140. # If you have 'file' or equivalent on your system and you're not sure
  5141. # whether 'pass_all' will *always* work, you probably want this one.
  5142. case $host_os in
  5143. aix[4-9]*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. beos*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. bsdi[45]*)
  5150. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5151. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5152. lt_cv_file_magic_test_file=/shlib/libc.so
  5153. ;;
  5154. cygwin*)
  5155. # func_win32_libid is a shell function defined in ltmain.sh
  5156. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5157. lt_cv_file_magic_cmd='func_win32_libid'
  5158. lt_cv_deplibs_check_method=pass_all # SDL customization
  5159. ;;
  5160. mingw* | pw32*)
  5161. # Base MSYS/MinGW do not provide the 'file' command needed by
  5162. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5163. # unless we find 'file', for example because we are cross-compiling.
  5164. if ( file / ) >/dev/null 2>&1; then
  5165. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5166. lt_cv_file_magic_cmd='func_win32_libid'
  5167. else
  5168. # Keep this pattern in sync with the one in func_win32_libid.
  5169. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5170. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5171. fi
  5172. lt_cv_deplibs_check_method=pass_all # SDL customization
  5173. ;;
  5174. cegcc*)
  5175. # use the weaker test based on 'objdump'. See mingw*.
  5176. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5177. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5178. ;;
  5179. darwin* | rhapsody*)
  5180. lt_cv_deplibs_check_method=pass_all
  5181. ;;
  5182. freebsd* | dragonfly* | midnightbsd*)
  5183. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5184. case $host_cpu in
  5185. i*86 )
  5186. # Not sure whether the presence of OpenBSD here was a mistake.
  5187. # Let's accept both of them until this is cleared up.
  5188. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5189. lt_cv_file_magic_cmd=/usr/bin/file
  5190. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5191. ;;
  5192. esac
  5193. else
  5194. lt_cv_deplibs_check_method=pass_all
  5195. fi
  5196. ;;
  5197. haiku*)
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. hpux10.20* | hpux11*)
  5201. lt_cv_file_magic_cmd=/usr/bin/file
  5202. case $host_cpu in
  5203. ia64*)
  5204. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5205. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5206. ;;
  5207. hppa*64*)
  5208. 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]'
  5209. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5210. ;;
  5211. *)
  5212. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5213. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5214. ;;
  5215. esac
  5216. ;;
  5217. interix[3-9]*)
  5218. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5219. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5220. ;;
  5221. irix5* | irix6* | nonstopux*)
  5222. case $LD in
  5223. *-32|*"-32 ") libmagic=32-bit;;
  5224. *-n32|*"-n32 ") libmagic=N32;;
  5225. *-64|*"-64 ") libmagic=64-bit;;
  5226. *) libmagic=never-match;;
  5227. esac
  5228. lt_cv_deplibs_check_method=pass_all
  5229. ;;
  5230. # This must be glibc/ELF.
  5231. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5232. lt_cv_deplibs_check_method=pass_all
  5233. ;;
  5234. netbsd*)
  5235. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5236. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5237. else
  5238. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5239. fi
  5240. ;;
  5241. newos6*)
  5242. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5243. lt_cv_file_magic_cmd=/usr/bin/file
  5244. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5245. ;;
  5246. *nto* | *qnx*)
  5247. lt_cv_deplibs_check_method=pass_all
  5248. ;;
  5249. openbsd* | bitrig*)
  5250. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5251. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5252. else
  5253. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5254. fi
  5255. ;;
  5256. osf3* | osf4* | osf5*)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. rdos*)
  5260. lt_cv_deplibs_check_method=pass_all
  5261. ;;
  5262. solaris*)
  5263. lt_cv_deplibs_check_method=pass_all
  5264. ;;
  5265. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. sysv4 | sysv4.3*)
  5269. case $host_vendor in
  5270. motorola)
  5271. 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]'
  5272. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5273. ;;
  5274. ncr)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. sequent)
  5278. lt_cv_file_magic_cmd='/bin/file'
  5279. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5280. ;;
  5281. sni)
  5282. lt_cv_file_magic_cmd='/bin/file'
  5283. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5284. lt_cv_file_magic_test_file=/lib/libc.so
  5285. ;;
  5286. siemens)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. pc)
  5290. lt_cv_deplibs_check_method=pass_all
  5291. ;;
  5292. esac
  5293. ;;
  5294. tpf*)
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. os2*)
  5298. lt_cv_deplibs_check_method=pass_all
  5299. ;;
  5300. esac
  5301. fi
  5302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5303. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5304. file_magic_glob=
  5305. want_nocaseglob=no
  5306. if test "$build" = "$host"; then
  5307. case $host_os in
  5308. mingw* | pw32*)
  5309. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5310. want_nocaseglob=yes
  5311. else
  5312. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5313. fi
  5314. ;;
  5315. esac
  5316. fi
  5317. file_magic_cmd=$lt_cv_file_magic_cmd
  5318. deplibs_check_method=$lt_cv_deplibs_check_method
  5319. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5320. if test -n "$ac_tool_prefix"; then
  5321. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5322. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5324. printf %s "checking for $ac_word... " >&6; }
  5325. if test ${ac_cv_prog_DLLTOOL+y}
  5326. then :
  5327. printf %s "(cached) " >&6
  5328. else $as_nop
  5329. if test -n "$DLLTOOL"; then
  5330. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5331. else
  5332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5333. for as_dir in $PATH
  5334. do
  5335. IFS=$as_save_IFS
  5336. case $as_dir in #(((
  5337. '') as_dir=./ ;;
  5338. */) ;;
  5339. *) as_dir=$as_dir/ ;;
  5340. esac
  5341. for ac_exec_ext in '' $ac_executable_extensions; do
  5342. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5343. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5344. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5345. break 2
  5346. fi
  5347. done
  5348. done
  5349. IFS=$as_save_IFS
  5350. fi
  5351. fi
  5352. DLLTOOL=$ac_cv_prog_DLLTOOL
  5353. if test -n "$DLLTOOL"; then
  5354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5355. printf "%s\n" "$DLLTOOL" >&6; }
  5356. else
  5357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5358. printf "%s\n" "no" >&6; }
  5359. fi
  5360. fi
  5361. if test -z "$ac_cv_prog_DLLTOOL"; then
  5362. ac_ct_DLLTOOL=$DLLTOOL
  5363. # Extract the first word of "dlltool", so it can be a program name with args.
  5364. set dummy dlltool; ac_word=$2
  5365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. printf %s "checking for $ac_word... " >&6; }
  5367. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5368. then :
  5369. printf %s "(cached) " >&6
  5370. else $as_nop
  5371. if test -n "$ac_ct_DLLTOOL"; then
  5372. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5373. else
  5374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5375. for as_dir in $PATH
  5376. do
  5377. IFS=$as_save_IFS
  5378. case $as_dir in #(((
  5379. '') as_dir=./ ;;
  5380. */) ;;
  5381. *) as_dir=$as_dir/ ;;
  5382. esac
  5383. for ac_exec_ext in '' $ac_executable_extensions; do
  5384. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5385. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5386. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5387. break 2
  5388. fi
  5389. done
  5390. done
  5391. IFS=$as_save_IFS
  5392. fi
  5393. fi
  5394. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5395. if test -n "$ac_ct_DLLTOOL"; then
  5396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5397. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5398. else
  5399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5400. printf "%s\n" "no" >&6; }
  5401. fi
  5402. if test "x$ac_ct_DLLTOOL" = x; then
  5403. DLLTOOL="false"
  5404. else
  5405. case $cross_compiling:$ac_tool_warned in
  5406. yes:)
  5407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5408. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5409. ac_tool_warned=yes ;;
  5410. esac
  5411. DLLTOOL=$ac_ct_DLLTOOL
  5412. fi
  5413. else
  5414. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5415. fi
  5416. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5418. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5419. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5420. then :
  5421. printf %s "(cached) " >&6
  5422. else $as_nop
  5423. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5424. case $host_os in
  5425. cygwin* | mingw* | pw32* | cegcc*)
  5426. # two different shell functions defined in ltmain.sh;
  5427. # decide which one to use based on capabilities of $DLLTOOL
  5428. case `$DLLTOOL --help 2>&1` in
  5429. *--identify-strict*)
  5430. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5431. ;;
  5432. *)
  5433. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5434. ;;
  5435. esac
  5436. ;;
  5437. *)
  5438. # fallback: assume linklib IS sharedlib
  5439. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5440. ;;
  5441. esac
  5442. fi
  5443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5444. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5445. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5446. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5447. if test -n "$ac_tool_prefix"; then
  5448. for ac_prog in ar
  5449. do
  5450. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5451. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. printf %s "checking for $ac_word... " >&6; }
  5454. if test ${ac_cv_prog_AR+y}
  5455. then :
  5456. printf %s "(cached) " >&6
  5457. else $as_nop
  5458. if test -n "$AR"; then
  5459. ac_cv_prog_AR="$AR" # Let the user override the test.
  5460. else
  5461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5462. for as_dir in $PATH
  5463. do
  5464. IFS=$as_save_IFS
  5465. case $as_dir in #(((
  5466. '') as_dir=./ ;;
  5467. */) ;;
  5468. *) as_dir=$as_dir/ ;;
  5469. esac
  5470. for ac_exec_ext in '' $ac_executable_extensions; do
  5471. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5472. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5474. break 2
  5475. fi
  5476. done
  5477. done
  5478. IFS=$as_save_IFS
  5479. fi
  5480. fi
  5481. AR=$ac_cv_prog_AR
  5482. if test -n "$AR"; then
  5483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5484. printf "%s\n" "$AR" >&6; }
  5485. else
  5486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5487. printf "%s\n" "no" >&6; }
  5488. fi
  5489. test -n "$AR" && break
  5490. done
  5491. fi
  5492. if test -z "$AR"; then
  5493. ac_ct_AR=$AR
  5494. for ac_prog in ar
  5495. do
  5496. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5497. set dummy $ac_prog; ac_word=$2
  5498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. printf %s "checking for $ac_word... " >&6; }
  5500. if test ${ac_cv_prog_ac_ct_AR+y}
  5501. then :
  5502. printf %s "(cached) " >&6
  5503. else $as_nop
  5504. if test -n "$ac_ct_AR"; then
  5505. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. case $as_dir in #(((
  5512. '') as_dir=./ ;;
  5513. */) ;;
  5514. *) as_dir=$as_dir/ ;;
  5515. esac
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5518. ac_cv_prog_ac_ct_AR="$ac_prog"
  5519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5528. if test -n "$ac_ct_AR"; then
  5529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5530. printf "%s\n" "$ac_ct_AR" >&6; }
  5531. else
  5532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. printf "%s\n" "no" >&6; }
  5534. fi
  5535. test -n "$ac_ct_AR" && break
  5536. done
  5537. if test "x$ac_ct_AR" = x; then
  5538. AR="false"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. AR=$ac_ct_AR
  5547. fi
  5548. fi
  5549. : ${AR=ar}
  5550. : ${AR_FLAGS=cru}
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5552. printf %s "checking for archiver @FILE support... " >&6; }
  5553. if test ${lt_cv_ar_at_file+y}
  5554. then :
  5555. printf %s "(cached) " >&6
  5556. else $as_nop
  5557. lt_cv_ar_at_file=no
  5558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5559. /* end confdefs.h. */
  5560. int
  5561. main (void)
  5562. {
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. if ac_fn_c_try_compile "$LINENO"
  5568. then :
  5569. echo conftest.$ac_objext > conftest.lst
  5570. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5571. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5572. (eval $lt_ar_try) 2>&5
  5573. ac_status=$?
  5574. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5575. test $ac_status = 0; }
  5576. if test 0 -eq "$ac_status"; then
  5577. # Ensure the archiver fails upon bogus file names.
  5578. rm -f conftest.$ac_objext libconftest.a
  5579. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5580. (eval $lt_ar_try) 2>&5
  5581. ac_status=$?
  5582. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5583. test $ac_status = 0; }
  5584. if test 0 -ne "$ac_status"; then
  5585. lt_cv_ar_at_file=@
  5586. fi
  5587. fi
  5588. rm -f conftest.* libconftest.a
  5589. fi
  5590. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5591. fi
  5592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5593. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5594. if test no = "$lt_cv_ar_at_file"; then
  5595. archiver_list_spec=
  5596. else
  5597. archiver_list_spec=$lt_cv_ar_at_file
  5598. fi
  5599. if test -n "$ac_tool_prefix"; then
  5600. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5601. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5603. printf %s "checking for $ac_word... " >&6; }
  5604. if test ${ac_cv_prog_STRIP+y}
  5605. then :
  5606. printf %s "(cached) " >&6
  5607. else $as_nop
  5608. if test -n "$STRIP"; then
  5609. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5610. else
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. case $as_dir in #(((
  5616. '') as_dir=./ ;;
  5617. */) ;;
  5618. *) as_dir=$as_dir/ ;;
  5619. esac
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. STRIP=$ac_cv_prog_STRIP
  5632. if test -n "$STRIP"; then
  5633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5634. printf "%s\n" "$STRIP" >&6; }
  5635. else
  5636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. printf "%s\n" "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_STRIP"; then
  5641. ac_ct_STRIP=$STRIP
  5642. # Extract the first word of "strip", so it can be a program name with args.
  5643. set dummy strip; ac_word=$2
  5644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. printf %s "checking for $ac_word... " >&6; }
  5646. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5647. then :
  5648. printf %s "(cached) " >&6
  5649. else $as_nop
  5650. if test -n "$ac_ct_STRIP"; then
  5651. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5652. else
  5653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5654. for as_dir in $PATH
  5655. do
  5656. IFS=$as_save_IFS
  5657. case $as_dir in #(((
  5658. '') as_dir=./ ;;
  5659. */) ;;
  5660. *) as_dir=$as_dir/ ;;
  5661. esac
  5662. for ac_exec_ext in '' $ac_executable_extensions; do
  5663. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5664. ac_cv_prog_ac_ct_STRIP="strip"
  5665. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5666. break 2
  5667. fi
  5668. done
  5669. done
  5670. IFS=$as_save_IFS
  5671. fi
  5672. fi
  5673. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5674. if test -n "$ac_ct_STRIP"; then
  5675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5676. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5677. else
  5678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5679. printf "%s\n" "no" >&6; }
  5680. fi
  5681. if test "x$ac_ct_STRIP" = x; then
  5682. STRIP=":"
  5683. else
  5684. case $cross_compiling:$ac_tool_warned in
  5685. yes:)
  5686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5687. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5688. ac_tool_warned=yes ;;
  5689. esac
  5690. STRIP=$ac_ct_STRIP
  5691. fi
  5692. else
  5693. STRIP="$ac_cv_prog_STRIP"
  5694. fi
  5695. test -z "$STRIP" && STRIP=:
  5696. if test -n "$ac_tool_prefix"; then
  5697. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5698. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5700. printf %s "checking for $ac_word... " >&6; }
  5701. if test ${ac_cv_prog_RANLIB+y}
  5702. then :
  5703. printf %s "(cached) " >&6
  5704. else $as_nop
  5705. if test -n "$RANLIB"; then
  5706. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. case $as_dir in #(((
  5713. '') as_dir=./ ;;
  5714. */) ;;
  5715. *) as_dir=$as_dir/ ;;
  5716. esac
  5717. for ac_exec_ext in '' $ac_executable_extensions; do
  5718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5719. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5721. break 2
  5722. fi
  5723. done
  5724. done
  5725. IFS=$as_save_IFS
  5726. fi
  5727. fi
  5728. RANLIB=$ac_cv_prog_RANLIB
  5729. if test -n "$RANLIB"; then
  5730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5731. printf "%s\n" "$RANLIB" >&6; }
  5732. else
  5733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5734. printf "%s\n" "no" >&6; }
  5735. fi
  5736. fi
  5737. if test -z "$ac_cv_prog_RANLIB"; then
  5738. ac_ct_RANLIB=$RANLIB
  5739. # Extract the first word of "ranlib", so it can be a program name with args.
  5740. set dummy ranlib; ac_word=$2
  5741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5742. printf %s "checking for $ac_word... " >&6; }
  5743. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5744. then :
  5745. printf %s "(cached) " >&6
  5746. else $as_nop
  5747. if test -n "$ac_ct_RANLIB"; then
  5748. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5749. else
  5750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5751. for as_dir in $PATH
  5752. do
  5753. IFS=$as_save_IFS
  5754. case $as_dir in #(((
  5755. '') as_dir=./ ;;
  5756. */) ;;
  5757. *) as_dir=$as_dir/ ;;
  5758. esac
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5761. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5771. if test -n "$ac_ct_RANLIB"; then
  5772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5773. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5774. else
  5775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. printf "%s\n" "no" >&6; }
  5777. fi
  5778. if test "x$ac_ct_RANLIB" = x; then
  5779. RANLIB=":"
  5780. else
  5781. case $cross_compiling:$ac_tool_warned in
  5782. yes:)
  5783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5784. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5785. ac_tool_warned=yes ;;
  5786. esac
  5787. RANLIB=$ac_ct_RANLIB
  5788. fi
  5789. else
  5790. RANLIB="$ac_cv_prog_RANLIB"
  5791. fi
  5792. test -z "$RANLIB" && RANLIB=:
  5793. # Determine commands to create old-style static archives.
  5794. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5795. old_postinstall_cmds='chmod 644 $oldlib'
  5796. old_postuninstall_cmds=
  5797. if test -n "$RANLIB"; then
  5798. case $host_os in
  5799. bitrig* | openbsd*)
  5800. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5801. ;;
  5802. *)
  5803. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5804. ;;
  5805. esac
  5806. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5807. fi
  5808. case $host_os in
  5809. darwin*)
  5810. lock_old_archive_extraction=yes ;;
  5811. *)
  5812. lock_old_archive_extraction=no ;;
  5813. esac
  5814. for ac_prog in gawk mawk nawk awk
  5815. do
  5816. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5817. set dummy $ac_prog; ac_word=$2
  5818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5819. printf %s "checking for $ac_word... " >&6; }
  5820. if test ${ac_cv_prog_AWK+y}
  5821. then :
  5822. printf %s "(cached) " >&6
  5823. else $as_nop
  5824. if test -n "$AWK"; then
  5825. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. case $as_dir in #(((
  5832. '') as_dir=./ ;;
  5833. */) ;;
  5834. *) as_dir=$as_dir/ ;;
  5835. esac
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5838. ac_cv_prog_AWK="$ac_prog"
  5839. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. AWK=$ac_cv_prog_AWK
  5848. if test -n "$AWK"; then
  5849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5850. printf "%s\n" "$AWK" >&6; }
  5851. else
  5852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. printf "%s\n" "no" >&6; }
  5854. fi
  5855. test -n "$AWK" && break
  5856. done
  5857. # If no C compiler was specified, use CC.
  5858. LTCC=${LTCC-"$CC"}
  5859. # If no C compiler flags were specified, use CFLAGS.
  5860. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5861. # Allow CC to be a program name with arguments.
  5862. compiler=$CC
  5863. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5865. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5866. if test ${lt_cv_sys_global_symbol_pipe+y}
  5867. then :
  5868. printf %s "(cached) " >&6
  5869. else $as_nop
  5870. # These are sane defaults that work on at least a few old systems.
  5871. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5872. # Character class describing NM global symbol codes.
  5873. symcode='[BCDEGRST]'
  5874. # Regexp to match symbols that can be accessed directly from C.
  5875. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5876. # Define system-specific variables.
  5877. case $host_os in
  5878. aix*)
  5879. symcode='[BCDT]'
  5880. ;;
  5881. cygwin* | mingw* | pw32* | cegcc*)
  5882. symcode='[ABCDGISTW]'
  5883. ;;
  5884. hpux*)
  5885. if test ia64 = "$host_cpu"; then
  5886. symcode='[ABCDEGRST]'
  5887. fi
  5888. ;;
  5889. irix* | nonstopux*)
  5890. symcode='[BCDEGRST]'
  5891. ;;
  5892. osf*)
  5893. symcode='[BCDEGQRST]'
  5894. ;;
  5895. solaris*)
  5896. symcode='[BCDRT]'
  5897. ;;
  5898. sco3.2v5*)
  5899. symcode='[DT]'
  5900. ;;
  5901. sysv4.2uw2*)
  5902. symcode='[DT]'
  5903. ;;
  5904. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5905. symcode='[ABDT]'
  5906. ;;
  5907. sysv4)
  5908. symcode='[DFNSTU]'
  5909. ;;
  5910. esac
  5911. # If we're using GNU nm, then use its standard symbol codes.
  5912. case `$NM -V 2>&1` in
  5913. *GNU* | *'with BFD'*)
  5914. symcode='[ABCDGIRSTW]' ;;
  5915. esac
  5916. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5917. # Gets list of data symbols to import.
  5918. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5919. # Adjust the below global symbol transforms to fixup imported variables.
  5920. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5921. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5922. lt_c_name_lib_hook="\
  5923. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5924. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5925. else
  5926. # Disable hooks by default.
  5927. lt_cv_sys_global_symbol_to_import=
  5928. lt_cdecl_hook=
  5929. lt_c_name_hook=
  5930. lt_c_name_lib_hook=
  5931. fi
  5932. # Transform an extracted symbol line into a proper C declaration.
  5933. # Some systems (esp. on ia64) link data and code symbols differently,
  5934. # so use this general approach.
  5935. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5936. $lt_cdecl_hook\
  5937. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5938. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5939. # Transform an extracted symbol line into symbol name and symbol address
  5940. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5941. $lt_c_name_hook\
  5942. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5943. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5944. # Transform an extracted symbol line into symbol name with lib prefix and
  5945. # symbol address.
  5946. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5947. $lt_c_name_lib_hook\
  5948. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5949. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5950. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5951. # Handle CRLF in mingw tool chain
  5952. opt_cr=
  5953. case $build_os in
  5954. mingw*)
  5955. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5956. ;;
  5957. esac
  5958. # Try without a prefix underscore, then with it.
  5959. for ac_symprfx in "" "_"; do
  5960. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5961. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5962. # Write the raw and C identifiers.
  5963. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5964. # Fake it for dumpbin and say T for any non-static function,
  5965. # D for any global variable and I for any imported variable.
  5966. # Also find C++ and __fastcall symbols from MSVC++,
  5967. # which start with @ or ?.
  5968. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5969. " {last_section=section; section=\$ 3};"\
  5970. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5971. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5972. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5973. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5974. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5975. " \$ 0!~/External *\|/{next};"\
  5976. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5977. " {if(hide[section]) next};"\
  5978. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5979. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5980. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5981. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5982. " ' prfx=^$ac_symprfx"
  5983. else
  5984. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5985. fi
  5986. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5987. # Check to see that the pipe works correctly.
  5988. pipe_works=no
  5989. rm -f conftest*
  5990. cat > conftest.$ac_ext <<_LT_EOF
  5991. #ifdef __cplusplus
  5992. extern "C" {
  5993. #endif
  5994. char nm_test_var;
  5995. void nm_test_func(void);
  5996. void nm_test_func(void){}
  5997. #ifdef __cplusplus
  5998. }
  5999. #endif
  6000. int main(){nm_test_var='a';nm_test_func();return(0);}
  6001. _LT_EOF
  6002. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6003. (eval $ac_compile) 2>&5
  6004. ac_status=$?
  6005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6006. test $ac_status = 0; }; then
  6007. # Now try to grab the symbols.
  6008. nlist=conftest.nm
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6010. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6011. ac_status=$?
  6012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; } && test -s "$nlist"; then
  6014. # Try sorting and uniquifying the output.
  6015. if sort "$nlist" | uniq > "$nlist"T; then
  6016. mv -f "$nlist"T "$nlist"
  6017. else
  6018. rm -f "$nlist"T
  6019. fi
  6020. # Make sure that we snagged all the symbols we need.
  6021. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6022. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6023. cat <<_LT_EOF > conftest.$ac_ext
  6024. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6025. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6026. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6027. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6028. # define LT_DLSYM_CONST
  6029. #elif defined __osf__
  6030. /* This system does not cope well with relocations in const data. */
  6031. # define LT_DLSYM_CONST
  6032. #else
  6033. # define LT_DLSYM_CONST const
  6034. #endif
  6035. #ifdef __cplusplus
  6036. extern "C" {
  6037. #endif
  6038. _LT_EOF
  6039. # Now generate the symbol file.
  6040. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6041. cat <<_LT_EOF >> conftest.$ac_ext
  6042. /* The mapping between symbol names and symbols. */
  6043. LT_DLSYM_CONST struct {
  6044. const char *name;
  6045. void *address;
  6046. }
  6047. lt__PROGRAM__LTX_preloaded_symbols[] =
  6048. {
  6049. { "@PROGRAM@", (void *) 0 },
  6050. _LT_EOF
  6051. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6052. cat <<\_LT_EOF >> conftest.$ac_ext
  6053. {0, (void *) 0}
  6054. };
  6055. /* This works around a problem in FreeBSD linker */
  6056. #ifdef FREEBSD_WORKAROUND
  6057. static const void *lt_preloaded_setup() {
  6058. return lt__PROGRAM__LTX_preloaded_symbols;
  6059. }
  6060. #endif
  6061. #ifdef __cplusplus
  6062. }
  6063. #endif
  6064. _LT_EOF
  6065. # Now try linking the two files.
  6066. mv conftest.$ac_objext conftstm.$ac_objext
  6067. lt_globsym_save_LIBS=$LIBS
  6068. lt_globsym_save_CFLAGS=$CFLAGS
  6069. LIBS=conftstm.$ac_objext
  6070. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6072. (eval $ac_link) 2>&5
  6073. ac_status=$?
  6074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6075. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6076. pipe_works=yes
  6077. fi
  6078. LIBS=$lt_globsym_save_LIBS
  6079. CFLAGS=$lt_globsym_save_CFLAGS
  6080. else
  6081. echo "cannot find nm_test_func in $nlist" >&5
  6082. fi
  6083. else
  6084. echo "cannot find nm_test_var in $nlist" >&5
  6085. fi
  6086. else
  6087. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6088. fi
  6089. else
  6090. echo "$progname: failed program was:" >&5
  6091. cat conftest.$ac_ext >&5
  6092. fi
  6093. rm -rf conftest* conftst*
  6094. # Do not use the global_symbol_pipe unless it works.
  6095. if test yes = "$pipe_works"; then
  6096. break
  6097. else
  6098. lt_cv_sys_global_symbol_pipe=
  6099. fi
  6100. done
  6101. fi
  6102. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6103. lt_cv_sys_global_symbol_to_cdecl=
  6104. fi
  6105. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6107. printf "%s\n" "failed" >&6; }
  6108. else
  6109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6110. printf "%s\n" "ok" >&6; }
  6111. fi
  6112. # Response file support.
  6113. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6114. nm_file_list_spec='@'
  6115. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6116. nm_file_list_spec='@'
  6117. fi
  6118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6119. printf %s "checking for sysroot... " >&6; }
  6120. # Check whether --with-sysroot was given.
  6121. if test ${with_sysroot+y}
  6122. then :
  6123. withval=$with_sysroot;
  6124. else $as_nop
  6125. with_sysroot=no
  6126. fi
  6127. lt_sysroot=
  6128. case $with_sysroot in #(
  6129. yes)
  6130. if test yes = "$GCC"; then
  6131. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6132. fi
  6133. ;; #(
  6134. /*)
  6135. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6136. ;; #(
  6137. no|'')
  6138. ;; #(
  6139. *)
  6140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6141. printf "%s\n" "$with_sysroot" >&6; }
  6142. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6143. ;;
  6144. esac
  6145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6146. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6148. printf %s "checking for a working dd... " >&6; }
  6149. if test ${ac_cv_path_lt_DD+y}
  6150. then :
  6151. printf %s "(cached) " >&6
  6152. else $as_nop
  6153. printf 0123456789abcdef0123456789abcdef >conftest.i
  6154. cat conftest.i conftest.i >conftest2.i
  6155. : ${lt_DD:=$DD}
  6156. if test -z "$lt_DD"; then
  6157. ac_path_lt_DD_found=false
  6158. # Loop through the user's path and test for each of PROGNAME-LIST
  6159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6160. for as_dir in $PATH
  6161. do
  6162. IFS=$as_save_IFS
  6163. case $as_dir in #(((
  6164. '') as_dir=./ ;;
  6165. */) ;;
  6166. *) as_dir=$as_dir/ ;;
  6167. esac
  6168. for ac_prog in dd
  6169. do
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6172. as_fn_executable_p "$ac_path_lt_DD" || continue
  6173. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6174. cmp -s conftest.i conftest.out \
  6175. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6176. fi
  6177. $ac_path_lt_DD_found && break 3
  6178. done
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. if test -z "$ac_cv_path_lt_DD"; then
  6183. :
  6184. fi
  6185. else
  6186. ac_cv_path_lt_DD=$lt_DD
  6187. fi
  6188. rm -f conftest.i conftest2.i conftest.out
  6189. fi
  6190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6191. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6193. printf %s "checking how to truncate binary pipes... " >&6; }
  6194. if test ${lt_cv_truncate_bin+y}
  6195. then :
  6196. printf %s "(cached) " >&6
  6197. else $as_nop
  6198. printf 0123456789abcdef0123456789abcdef >conftest.i
  6199. cat conftest.i conftest.i >conftest2.i
  6200. lt_cv_truncate_bin=
  6201. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6202. cmp -s conftest.i conftest.out \
  6203. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6204. fi
  6205. rm -f conftest.i conftest2.i conftest.out
  6206. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6207. fi
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6209. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6210. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6211. func_cc_basename ()
  6212. {
  6213. for cc_temp in $*""; do
  6214. case $cc_temp in
  6215. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6216. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6217. \-*) ;;
  6218. *) break;;
  6219. esac
  6220. done
  6221. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6222. }
  6223. # Check whether --enable-libtool-lock was given.
  6224. if test ${enable_libtool_lock+y}
  6225. then :
  6226. enableval=$enable_libtool_lock;
  6227. fi
  6228. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6229. # Some flags need to be propagated to the compiler or linker for good
  6230. # libtool support.
  6231. case $host in
  6232. ia64-*-hpux*)
  6233. # Find out what ABI is being produced by ac_compile, and set mode
  6234. # options accordingly.
  6235. echo 'int i;' > conftest.$ac_ext
  6236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6237. (eval $ac_compile) 2>&5
  6238. ac_status=$?
  6239. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6240. test $ac_status = 0; }; then
  6241. case `/usr/bin/file conftest.$ac_objext` in
  6242. *ELF-32*)
  6243. HPUX_IA64_MODE=32
  6244. ;;
  6245. *ELF-64*)
  6246. HPUX_IA64_MODE=64
  6247. ;;
  6248. esac
  6249. fi
  6250. rm -rf conftest*
  6251. ;;
  6252. *-*-irix6*)
  6253. # Find out what ABI is being produced by ac_compile, and set linker
  6254. # options accordingly.
  6255. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6257. (eval $ac_compile) 2>&5
  6258. ac_status=$?
  6259. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6260. test $ac_status = 0; }; then
  6261. if test yes = "$lt_cv_prog_gnu_ld"; then
  6262. case `/usr/bin/file conftest.$ac_objext` in
  6263. *32-bit*)
  6264. LD="${LD-ld} -melf32bsmip"
  6265. ;;
  6266. *N32*)
  6267. LD="${LD-ld} -melf32bmipn32"
  6268. ;;
  6269. *64-bit*)
  6270. LD="${LD-ld} -melf64bmip"
  6271. ;;
  6272. esac
  6273. else
  6274. case `/usr/bin/file conftest.$ac_objext` in
  6275. *32-bit*)
  6276. LD="${LD-ld} -32"
  6277. ;;
  6278. *N32*)
  6279. LD="${LD-ld} -n32"
  6280. ;;
  6281. *64-bit*)
  6282. LD="${LD-ld} -64"
  6283. ;;
  6284. esac
  6285. fi
  6286. fi
  6287. rm -rf conftest*
  6288. ;;
  6289. mips64*-*linux*)
  6290. # Find out what ABI is being produced by ac_compile, and set linker
  6291. # options accordingly.
  6292. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6294. (eval $ac_compile) 2>&5
  6295. ac_status=$?
  6296. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6297. test $ac_status = 0; }; then
  6298. emul=elf
  6299. case `/usr/bin/file conftest.$ac_objext` in
  6300. *32-bit*)
  6301. emul="${emul}32"
  6302. ;;
  6303. *64-bit*)
  6304. emul="${emul}64"
  6305. ;;
  6306. esac
  6307. case `/usr/bin/file conftest.$ac_objext` in
  6308. *MSB*)
  6309. emul="${emul}btsmip"
  6310. ;;
  6311. *LSB*)
  6312. emul="${emul}ltsmip"
  6313. ;;
  6314. esac
  6315. case `/usr/bin/file conftest.$ac_objext` in
  6316. *N32*)
  6317. emul="${emul}n32"
  6318. ;;
  6319. esac
  6320. LD="${LD-ld} -m $emul"
  6321. fi
  6322. rm -rf conftest*
  6323. ;;
  6324. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6325. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6326. # Find out what ABI is being produced by ac_compile, and set linker
  6327. # options accordingly. Note that the listed cases only cover the
  6328. # situations where additional linker options are needed (such as when
  6329. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6330. # vice versa); the common cases where no linker options are needed do
  6331. # not appear in the list.
  6332. echo 'int i;' > conftest.$ac_ext
  6333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6334. (eval $ac_compile) 2>&5
  6335. ac_status=$?
  6336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6337. test $ac_status = 0; }; then
  6338. case `/usr/bin/file conftest.o` in
  6339. *32-bit*)
  6340. case $host in
  6341. x86_64-*kfreebsd*-gnu)
  6342. LD="${LD-ld} -m elf_i386_fbsd"
  6343. ;;
  6344. x86_64-*linux*)
  6345. case `/usr/bin/file conftest.o` in
  6346. *x86-64*)
  6347. LD="${LD-ld} -m elf32_x86_64"
  6348. ;;
  6349. *)
  6350. LD="${LD-ld} -m elf_i386"
  6351. ;;
  6352. esac
  6353. ;;
  6354. powerpc64le-*linux*)
  6355. LD="${LD-ld} -m elf32lppclinux"
  6356. ;;
  6357. powerpc64-*linux*)
  6358. LD="${LD-ld} -m elf32ppclinux"
  6359. ;;
  6360. s390x-*linux*)
  6361. LD="${LD-ld} -m elf_s390"
  6362. ;;
  6363. sparc64-*linux*)
  6364. LD="${LD-ld} -m elf32_sparc"
  6365. ;;
  6366. esac
  6367. ;;
  6368. *64-bit*)
  6369. case $host in
  6370. x86_64-*kfreebsd*-gnu)
  6371. LD="${LD-ld} -m elf_x86_64_fbsd"
  6372. ;;
  6373. x86_64-*linux*)
  6374. LD="${LD-ld} -m elf_x86_64"
  6375. ;;
  6376. powerpcle-*linux*|powerpc64le-*linux*)
  6377. LD="${LD-ld} -m elf64lppc"
  6378. ;;
  6379. powerpc-*linux*|powerpc64-*linux*)
  6380. LD="${LD-ld} -m elf64ppc"
  6381. ;;
  6382. s390*-*linux*|s390*-*tpf*)
  6383. LD="${LD-ld} -m elf64_s390"
  6384. ;;
  6385. sparc*-*linux*)
  6386. LD="${LD-ld} -m elf64_sparc"
  6387. ;;
  6388. esac
  6389. ;;
  6390. esac
  6391. fi
  6392. rm -rf conftest*
  6393. ;;
  6394. *-*-sco3.2v5*)
  6395. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6396. SAVE_CFLAGS=$CFLAGS
  6397. CFLAGS="$CFLAGS -belf"
  6398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6399. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6400. if test ${lt_cv_cc_needs_belf+y}
  6401. then :
  6402. printf %s "(cached) " >&6
  6403. else $as_nop
  6404. ac_ext=c
  6405. ac_cpp='$CPP $CPPFLAGS'
  6406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. int
  6412. main (void)
  6413. {
  6414. ;
  6415. return 0;
  6416. }
  6417. _ACEOF
  6418. if ac_fn_c_try_link "$LINENO"
  6419. then :
  6420. lt_cv_cc_needs_belf=yes
  6421. else $as_nop
  6422. lt_cv_cc_needs_belf=no
  6423. fi
  6424. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6425. conftest$ac_exeext conftest.$ac_ext
  6426. ac_ext=c
  6427. ac_cpp='$CPP $CPPFLAGS'
  6428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6431. fi
  6432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6433. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6434. if test yes != "$lt_cv_cc_needs_belf"; then
  6435. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6436. CFLAGS=$SAVE_CFLAGS
  6437. fi
  6438. ;;
  6439. *-*solaris*)
  6440. # Find out what ABI is being produced by ac_compile, and set linker
  6441. # options accordingly.
  6442. echo 'int i;' > conftest.$ac_ext
  6443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6444. (eval $ac_compile) 2>&5
  6445. ac_status=$?
  6446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6447. test $ac_status = 0; }; then
  6448. case `/usr/bin/file conftest.o` in
  6449. *64-bit*)
  6450. case $lt_cv_prog_gnu_ld in
  6451. yes*)
  6452. case $host in
  6453. i?86-*-solaris*|x86_64-*-solaris*)
  6454. LD="${LD-ld} -m elf_x86_64"
  6455. ;;
  6456. sparc*-*-solaris*)
  6457. LD="${LD-ld} -m elf64_sparc"
  6458. ;;
  6459. esac
  6460. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6461. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6462. LD=${LD-ld}_sol2
  6463. fi
  6464. ;;
  6465. *)
  6466. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6467. LD="${LD-ld} -64"
  6468. fi
  6469. ;;
  6470. esac
  6471. ;;
  6472. esac
  6473. fi
  6474. rm -rf conftest*
  6475. ;;
  6476. esac
  6477. need_locks=$enable_libtool_lock
  6478. if test -n "$ac_tool_prefix"; then
  6479. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6480. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. printf %s "checking for $ac_word... " >&6; }
  6483. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6484. then :
  6485. printf %s "(cached) " >&6
  6486. else $as_nop
  6487. if test -n "$MANIFEST_TOOL"; then
  6488. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6489. else
  6490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6491. for as_dir in $PATH
  6492. do
  6493. IFS=$as_save_IFS
  6494. case $as_dir in #(((
  6495. '') as_dir=./ ;;
  6496. */) ;;
  6497. *) as_dir=$as_dir/ ;;
  6498. esac
  6499. for ac_exec_ext in '' $ac_executable_extensions; do
  6500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6501. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6503. break 2
  6504. fi
  6505. done
  6506. done
  6507. IFS=$as_save_IFS
  6508. fi
  6509. fi
  6510. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6511. if test -n "$MANIFEST_TOOL"; then
  6512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6513. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6514. else
  6515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. printf "%s\n" "no" >&6; }
  6517. fi
  6518. fi
  6519. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6520. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6521. # Extract the first word of "mt", so it can be a program name with args.
  6522. set dummy mt; ac_word=$2
  6523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6524. printf %s "checking for $ac_word... " >&6; }
  6525. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6526. then :
  6527. printf %s "(cached) " >&6
  6528. else $as_nop
  6529. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6530. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. case $as_dir in #(((
  6537. '') as_dir=./ ;;
  6538. */) ;;
  6539. *) as_dir=$as_dir/ ;;
  6540. esac
  6541. for ac_exec_ext in '' $ac_executable_extensions; do
  6542. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6543. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6544. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6545. break 2
  6546. fi
  6547. done
  6548. done
  6549. IFS=$as_save_IFS
  6550. fi
  6551. fi
  6552. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6553. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6555. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6556. else
  6557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6558. printf "%s\n" "no" >&6; }
  6559. fi
  6560. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6561. MANIFEST_TOOL=":"
  6562. else
  6563. case $cross_compiling:$ac_tool_warned in
  6564. yes:)
  6565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6566. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6567. ac_tool_warned=yes ;;
  6568. esac
  6569. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6570. fi
  6571. else
  6572. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6573. fi
  6574. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6576. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6577. if test ${lt_cv_path_mainfest_tool+y}
  6578. then :
  6579. printf %s "(cached) " >&6
  6580. else $as_nop
  6581. lt_cv_path_mainfest_tool=no
  6582. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6583. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6584. cat conftest.err >&5
  6585. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6586. lt_cv_path_mainfest_tool=yes
  6587. fi
  6588. rm -f conftest*
  6589. fi
  6590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6591. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6592. if test yes != "$lt_cv_path_mainfest_tool"; then
  6593. MANIFEST_TOOL=:
  6594. fi
  6595. case $host_os in
  6596. rhapsody* | darwin*)
  6597. if test -n "$ac_tool_prefix"; then
  6598. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6599. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. printf %s "checking for $ac_word... " >&6; }
  6602. if test ${ac_cv_prog_DSYMUTIL+y}
  6603. then :
  6604. printf %s "(cached) " >&6
  6605. else $as_nop
  6606. if test -n "$DSYMUTIL"; then
  6607. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6608. else
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. case $as_dir in #(((
  6614. '') as_dir=./ ;;
  6615. */) ;;
  6616. *) as_dir=$as_dir/ ;;
  6617. esac
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6620. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6621. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6630. if test -n "$DSYMUTIL"; then
  6631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6632. printf "%s\n" "$DSYMUTIL" >&6; }
  6633. else
  6634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. printf "%s\n" "no" >&6; }
  6636. fi
  6637. fi
  6638. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6639. ac_ct_DSYMUTIL=$DSYMUTIL
  6640. # Extract the first word of "dsymutil", so it can be a program name with args.
  6641. set dummy dsymutil; ac_word=$2
  6642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. printf %s "checking for $ac_word... " >&6; }
  6644. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6645. then :
  6646. printf %s "(cached) " >&6
  6647. else $as_nop
  6648. if test -n "$ac_ct_DSYMUTIL"; then
  6649. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6650. else
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. case $as_dir in #(((
  6656. '') as_dir=./ ;;
  6657. */) ;;
  6658. *) as_dir=$as_dir/ ;;
  6659. esac
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6662. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6663. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6672. if test -n "$ac_ct_DSYMUTIL"; then
  6673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6674. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6675. else
  6676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. printf "%s\n" "no" >&6; }
  6678. fi
  6679. if test "x$ac_ct_DSYMUTIL" = x; then
  6680. DSYMUTIL=":"
  6681. else
  6682. case $cross_compiling:$ac_tool_warned in
  6683. yes:)
  6684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6685. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6686. ac_tool_warned=yes ;;
  6687. esac
  6688. DSYMUTIL=$ac_ct_DSYMUTIL
  6689. fi
  6690. else
  6691. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6692. fi
  6693. if test -n "$ac_tool_prefix"; then
  6694. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6695. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6697. printf %s "checking for $ac_word... " >&6; }
  6698. if test ${ac_cv_prog_NMEDIT+y}
  6699. then :
  6700. printf %s "(cached) " >&6
  6701. else $as_nop
  6702. if test -n "$NMEDIT"; then
  6703. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6704. else
  6705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6706. for as_dir in $PATH
  6707. do
  6708. IFS=$as_save_IFS
  6709. case $as_dir in #(((
  6710. '') as_dir=./ ;;
  6711. */) ;;
  6712. *) as_dir=$as_dir/ ;;
  6713. esac
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. NMEDIT=$ac_cv_prog_NMEDIT
  6726. if test -n "$NMEDIT"; then
  6727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6728. printf "%s\n" "$NMEDIT" >&6; }
  6729. else
  6730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. printf "%s\n" "no" >&6; }
  6732. fi
  6733. fi
  6734. if test -z "$ac_cv_prog_NMEDIT"; then
  6735. ac_ct_NMEDIT=$NMEDIT
  6736. # Extract the first word of "nmedit", so it can be a program name with args.
  6737. set dummy nmedit; ac_word=$2
  6738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. printf %s "checking for $ac_word... " >&6; }
  6740. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6741. then :
  6742. printf %s "(cached) " >&6
  6743. else $as_nop
  6744. if test -n "$ac_ct_NMEDIT"; then
  6745. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6746. else
  6747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6748. for as_dir in $PATH
  6749. do
  6750. IFS=$as_save_IFS
  6751. case $as_dir in #(((
  6752. '') as_dir=./ ;;
  6753. */) ;;
  6754. *) as_dir=$as_dir/ ;;
  6755. esac
  6756. for ac_exec_ext in '' $ac_executable_extensions; do
  6757. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6758. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6760. break 2
  6761. fi
  6762. done
  6763. done
  6764. IFS=$as_save_IFS
  6765. fi
  6766. fi
  6767. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6768. if test -n "$ac_ct_NMEDIT"; then
  6769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6770. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6771. else
  6772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6773. printf "%s\n" "no" >&6; }
  6774. fi
  6775. if test "x$ac_ct_NMEDIT" = x; then
  6776. NMEDIT=":"
  6777. else
  6778. case $cross_compiling:$ac_tool_warned in
  6779. yes:)
  6780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6781. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6782. ac_tool_warned=yes ;;
  6783. esac
  6784. NMEDIT=$ac_ct_NMEDIT
  6785. fi
  6786. else
  6787. NMEDIT="$ac_cv_prog_NMEDIT"
  6788. fi
  6789. if test -n "$ac_tool_prefix"; then
  6790. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6791. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. printf %s "checking for $ac_word... " >&6; }
  6794. if test ${ac_cv_prog_LIPO+y}
  6795. then :
  6796. printf %s "(cached) " >&6
  6797. else $as_nop
  6798. if test -n "$LIPO"; then
  6799. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6800. else
  6801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6802. for as_dir in $PATH
  6803. do
  6804. IFS=$as_save_IFS
  6805. case $as_dir in #(((
  6806. '') as_dir=./ ;;
  6807. */) ;;
  6808. *) as_dir=$as_dir/ ;;
  6809. esac
  6810. for ac_exec_ext in '' $ac_executable_extensions; do
  6811. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6812. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6813. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6814. break 2
  6815. fi
  6816. done
  6817. done
  6818. IFS=$as_save_IFS
  6819. fi
  6820. fi
  6821. LIPO=$ac_cv_prog_LIPO
  6822. if test -n "$LIPO"; then
  6823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6824. printf "%s\n" "$LIPO" >&6; }
  6825. else
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6827. printf "%s\n" "no" >&6; }
  6828. fi
  6829. fi
  6830. if test -z "$ac_cv_prog_LIPO"; then
  6831. ac_ct_LIPO=$LIPO
  6832. # Extract the first word of "lipo", so it can be a program name with args.
  6833. set dummy lipo; ac_word=$2
  6834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6835. printf %s "checking for $ac_word... " >&6; }
  6836. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6837. then :
  6838. printf %s "(cached) " >&6
  6839. else $as_nop
  6840. if test -n "$ac_ct_LIPO"; then
  6841. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6842. else
  6843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6844. for as_dir in $PATH
  6845. do
  6846. IFS=$as_save_IFS
  6847. case $as_dir in #(((
  6848. '') as_dir=./ ;;
  6849. */) ;;
  6850. *) as_dir=$as_dir/ ;;
  6851. esac
  6852. for ac_exec_ext in '' $ac_executable_extensions; do
  6853. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6854. ac_cv_prog_ac_ct_LIPO="lipo"
  6855. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6856. break 2
  6857. fi
  6858. done
  6859. done
  6860. IFS=$as_save_IFS
  6861. fi
  6862. fi
  6863. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6864. if test -n "$ac_ct_LIPO"; then
  6865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6866. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6867. else
  6868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6869. printf "%s\n" "no" >&6; }
  6870. fi
  6871. if test "x$ac_ct_LIPO" = x; then
  6872. LIPO=":"
  6873. else
  6874. case $cross_compiling:$ac_tool_warned in
  6875. yes:)
  6876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6877. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6878. ac_tool_warned=yes ;;
  6879. esac
  6880. LIPO=$ac_ct_LIPO
  6881. fi
  6882. else
  6883. LIPO="$ac_cv_prog_LIPO"
  6884. fi
  6885. if test -n "$ac_tool_prefix"; then
  6886. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6887. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6889. printf %s "checking for $ac_word... " >&6; }
  6890. if test ${ac_cv_prog_OTOOL+y}
  6891. then :
  6892. printf %s "(cached) " >&6
  6893. else $as_nop
  6894. if test -n "$OTOOL"; then
  6895. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6896. else
  6897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6898. for as_dir in $PATH
  6899. do
  6900. IFS=$as_save_IFS
  6901. case $as_dir in #(((
  6902. '') as_dir=./ ;;
  6903. */) ;;
  6904. *) as_dir=$as_dir/ ;;
  6905. esac
  6906. for ac_exec_ext in '' $ac_executable_extensions; do
  6907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6908. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6910. break 2
  6911. fi
  6912. done
  6913. done
  6914. IFS=$as_save_IFS
  6915. fi
  6916. fi
  6917. OTOOL=$ac_cv_prog_OTOOL
  6918. if test -n "$OTOOL"; then
  6919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6920. printf "%s\n" "$OTOOL" >&6; }
  6921. else
  6922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6923. printf "%s\n" "no" >&6; }
  6924. fi
  6925. fi
  6926. if test -z "$ac_cv_prog_OTOOL"; then
  6927. ac_ct_OTOOL=$OTOOL
  6928. # Extract the first word of "otool", so it can be a program name with args.
  6929. set dummy otool; ac_word=$2
  6930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6931. printf %s "checking for $ac_word... " >&6; }
  6932. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6933. then :
  6934. printf %s "(cached) " >&6
  6935. else $as_nop
  6936. if test -n "$ac_ct_OTOOL"; then
  6937. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6938. else
  6939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6940. for as_dir in $PATH
  6941. do
  6942. IFS=$as_save_IFS
  6943. case $as_dir in #(((
  6944. '') as_dir=./ ;;
  6945. */) ;;
  6946. *) as_dir=$as_dir/ ;;
  6947. esac
  6948. for ac_exec_ext in '' $ac_executable_extensions; do
  6949. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6950. ac_cv_prog_ac_ct_OTOOL="otool"
  6951. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6952. break 2
  6953. fi
  6954. done
  6955. done
  6956. IFS=$as_save_IFS
  6957. fi
  6958. fi
  6959. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6960. if test -n "$ac_ct_OTOOL"; then
  6961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6962. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6963. else
  6964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6965. printf "%s\n" "no" >&6; }
  6966. fi
  6967. if test "x$ac_ct_OTOOL" = x; then
  6968. OTOOL=":"
  6969. else
  6970. case $cross_compiling:$ac_tool_warned in
  6971. yes:)
  6972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6973. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6974. ac_tool_warned=yes ;;
  6975. esac
  6976. OTOOL=$ac_ct_OTOOL
  6977. fi
  6978. else
  6979. OTOOL="$ac_cv_prog_OTOOL"
  6980. fi
  6981. if test -n "$ac_tool_prefix"; then
  6982. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6983. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6985. printf %s "checking for $ac_word... " >&6; }
  6986. if test ${ac_cv_prog_OTOOL64+y}
  6987. then :
  6988. printf %s "(cached) " >&6
  6989. else $as_nop
  6990. if test -n "$OTOOL64"; then
  6991. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6992. else
  6993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6994. for as_dir in $PATH
  6995. do
  6996. IFS=$as_save_IFS
  6997. case $as_dir in #(((
  6998. '') as_dir=./ ;;
  6999. */) ;;
  7000. *) as_dir=$as_dir/ ;;
  7001. esac
  7002. for ac_exec_ext in '' $ac_executable_extensions; do
  7003. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7004. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7005. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7006. break 2
  7007. fi
  7008. done
  7009. done
  7010. IFS=$as_save_IFS
  7011. fi
  7012. fi
  7013. OTOOL64=$ac_cv_prog_OTOOL64
  7014. if test -n "$OTOOL64"; then
  7015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7016. printf "%s\n" "$OTOOL64" >&6; }
  7017. else
  7018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7019. printf "%s\n" "no" >&6; }
  7020. fi
  7021. fi
  7022. if test -z "$ac_cv_prog_OTOOL64"; then
  7023. ac_ct_OTOOL64=$OTOOL64
  7024. # Extract the first word of "otool64", so it can be a program name with args.
  7025. set dummy otool64; ac_word=$2
  7026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7027. printf %s "checking for $ac_word... " >&6; }
  7028. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7029. then :
  7030. printf %s "(cached) " >&6
  7031. else $as_nop
  7032. if test -n "$ac_ct_OTOOL64"; then
  7033. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7034. else
  7035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7036. for as_dir in $PATH
  7037. do
  7038. IFS=$as_save_IFS
  7039. case $as_dir in #(((
  7040. '') as_dir=./ ;;
  7041. */) ;;
  7042. *) as_dir=$as_dir/ ;;
  7043. esac
  7044. for ac_exec_ext in '' $ac_executable_extensions; do
  7045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7046. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7048. break 2
  7049. fi
  7050. done
  7051. done
  7052. IFS=$as_save_IFS
  7053. fi
  7054. fi
  7055. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7056. if test -n "$ac_ct_OTOOL64"; then
  7057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7058. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7059. else
  7060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7061. printf "%s\n" "no" >&6; }
  7062. fi
  7063. if test "x$ac_ct_OTOOL64" = x; then
  7064. OTOOL64=":"
  7065. else
  7066. case $cross_compiling:$ac_tool_warned in
  7067. yes:)
  7068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7069. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7070. ac_tool_warned=yes ;;
  7071. esac
  7072. OTOOL64=$ac_ct_OTOOL64
  7073. fi
  7074. else
  7075. OTOOL64="$ac_cv_prog_OTOOL64"
  7076. fi
  7077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7078. printf %s "checking for -single_module linker flag... " >&6; }
  7079. if test ${lt_cv_apple_cc_single_mod+y}
  7080. then :
  7081. printf %s "(cached) " >&6
  7082. else $as_nop
  7083. lt_cv_apple_cc_single_mod=no
  7084. if test -z "$LT_MULTI_MODULE"; then
  7085. # By default we will add the -single_module flag. You can override
  7086. # by either setting the environment variable LT_MULTI_MODULE
  7087. # non-empty at configure time, or by adding -multi_module to the
  7088. # link flags.
  7089. rm -rf libconftest.dylib*
  7090. echo "int foo(void){return 1;}" > conftest.c
  7091. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7092. -dynamiclib -Wl,-single_module conftest.c" >&5
  7093. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7094. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7095. _lt_result=$?
  7096. # If there is a non-empty error log, and "single_module"
  7097. # appears in it, assume the flag caused a linker warning
  7098. if test -s conftest.err && $GREP single_module conftest.err; then
  7099. cat conftest.err >&5
  7100. # Otherwise, if the output was created with a 0 exit code from
  7101. # the compiler, it worked.
  7102. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7103. lt_cv_apple_cc_single_mod=yes
  7104. else
  7105. cat conftest.err >&5
  7106. fi
  7107. rm -rf libconftest.dylib*
  7108. rm -f conftest.*
  7109. fi
  7110. fi
  7111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7112. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7114. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7115. if test ${lt_cv_ld_exported_symbols_list+y}
  7116. then :
  7117. printf %s "(cached) " >&6
  7118. else $as_nop
  7119. lt_cv_ld_exported_symbols_list=no
  7120. save_LDFLAGS=$LDFLAGS
  7121. echo "_main" > conftest.sym
  7122. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7124. /* end confdefs.h. */
  7125. int
  7126. main (void)
  7127. {
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. if ac_fn_c_try_link "$LINENO"
  7133. then :
  7134. lt_cv_ld_exported_symbols_list=yes
  7135. else $as_nop
  7136. lt_cv_ld_exported_symbols_list=no
  7137. fi
  7138. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7139. conftest$ac_exeext conftest.$ac_ext
  7140. LDFLAGS=$save_LDFLAGS
  7141. fi
  7142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7143. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7145. printf %s "checking for -force_load linker flag... " >&6; }
  7146. if test ${lt_cv_ld_force_load+y}
  7147. then :
  7148. printf %s "(cached) " >&6
  7149. else $as_nop
  7150. lt_cv_ld_force_load=no
  7151. cat > conftest.c << _LT_EOF
  7152. int forced_loaded() { return 2;}
  7153. _LT_EOF
  7154. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7155. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7156. echo "$AR cru libconftest.a conftest.o" >&5
  7157. $AR cru libconftest.a conftest.o 2>&5
  7158. echo "$RANLIB libconftest.a" >&5
  7159. $RANLIB libconftest.a 2>&5
  7160. cat > conftest.c << _LT_EOF
  7161. int main() { return 0;}
  7162. _LT_EOF
  7163. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7164. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7165. _lt_result=$?
  7166. if test -s conftest.err && $GREP force_load conftest.err; then
  7167. cat conftest.err >&5
  7168. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7169. lt_cv_ld_force_load=yes
  7170. else
  7171. cat conftest.err >&5
  7172. fi
  7173. rm -f conftest.err libconftest.a conftest conftest.c
  7174. rm -rf conftest.dSYM
  7175. fi
  7176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7177. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7178. case $host_os in
  7179. rhapsody* | darwin1.[012])
  7180. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7181. darwin1.*)
  7182. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7183. darwin*)
  7184. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7185. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7186. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7187. *)
  7188. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7189. esac
  7190. ;;
  7191. esac
  7192. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7193. _lt_dar_single_mod='$single_module'
  7194. fi
  7195. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7196. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7197. else
  7198. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7199. fi
  7200. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7201. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7202. else
  7203. _lt_dsymutil=
  7204. fi
  7205. ;;
  7206. esac
  7207. # func_munge_path_list VARIABLE PATH
  7208. # -----------------------------------
  7209. # VARIABLE is name of variable containing _space_ separated list of
  7210. # directories to be munged by the contents of PATH, which is string
  7211. # having a format:
  7212. # "DIR[:DIR]:"
  7213. # string "DIR[ DIR]" will be prepended to VARIABLE
  7214. # ":DIR[:DIR]"
  7215. # string "DIR[ DIR]" will be appended to VARIABLE
  7216. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7217. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7218. # "DIRA[ DIRA]" will be appended to VARIABLE
  7219. # "DIR[:DIR]"
  7220. # VARIABLE will be replaced by "DIR[ DIR]"
  7221. func_munge_path_list ()
  7222. {
  7223. case x$2 in
  7224. x)
  7225. ;;
  7226. *:)
  7227. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7228. ;;
  7229. x:*)
  7230. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7231. ;;
  7232. *::*)
  7233. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7234. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7235. ;;
  7236. *)
  7237. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7238. ;;
  7239. esac
  7240. }
  7241. ac_header= ac_cache=
  7242. for ac_item in $ac_header_c_list
  7243. do
  7244. if test $ac_cache; then
  7245. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7246. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7247. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7248. fi
  7249. ac_header= ac_cache=
  7250. elif test $ac_header; then
  7251. ac_cache=$ac_item
  7252. else
  7253. ac_header=$ac_item
  7254. fi
  7255. done
  7256. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7257. then :
  7258. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7259. fi
  7260. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7261. "
  7262. if test "x$ac_cv_header_dlfcn_h" = xyes
  7263. then :
  7264. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7265. fi
  7266. # Set options
  7267. enable_win32_dll=yes
  7268. case $host in
  7269. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7270. if test -n "$ac_tool_prefix"; then
  7271. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7272. set dummy ${ac_tool_prefix}as; ac_word=$2
  7273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7274. printf %s "checking for $ac_word... " >&6; }
  7275. if test ${ac_cv_prog_AS+y}
  7276. then :
  7277. printf %s "(cached) " >&6
  7278. else $as_nop
  7279. if test -n "$AS"; then
  7280. ac_cv_prog_AS="$AS" # Let the user override the test.
  7281. else
  7282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7283. for as_dir in $PATH
  7284. do
  7285. IFS=$as_save_IFS
  7286. case $as_dir in #(((
  7287. '') as_dir=./ ;;
  7288. */) ;;
  7289. *) as_dir=$as_dir/ ;;
  7290. esac
  7291. for ac_exec_ext in '' $ac_executable_extensions; do
  7292. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7293. ac_cv_prog_AS="${ac_tool_prefix}as"
  7294. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7295. break 2
  7296. fi
  7297. done
  7298. done
  7299. IFS=$as_save_IFS
  7300. fi
  7301. fi
  7302. AS=$ac_cv_prog_AS
  7303. if test -n "$AS"; then
  7304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7305. printf "%s\n" "$AS" >&6; }
  7306. else
  7307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. printf "%s\n" "no" >&6; }
  7309. fi
  7310. fi
  7311. if test -z "$ac_cv_prog_AS"; then
  7312. ac_ct_AS=$AS
  7313. # Extract the first word of "as", so it can be a program name with args.
  7314. set dummy as; ac_word=$2
  7315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7316. printf %s "checking for $ac_word... " >&6; }
  7317. if test ${ac_cv_prog_ac_ct_AS+y}
  7318. then :
  7319. printf %s "(cached) " >&6
  7320. else $as_nop
  7321. if test -n "$ac_ct_AS"; then
  7322. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7323. else
  7324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7325. for as_dir in $PATH
  7326. do
  7327. IFS=$as_save_IFS
  7328. case $as_dir in #(((
  7329. '') as_dir=./ ;;
  7330. */) ;;
  7331. *) as_dir=$as_dir/ ;;
  7332. esac
  7333. for ac_exec_ext in '' $ac_executable_extensions; do
  7334. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7335. ac_cv_prog_ac_ct_AS="as"
  7336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7337. break 2
  7338. fi
  7339. done
  7340. done
  7341. IFS=$as_save_IFS
  7342. fi
  7343. fi
  7344. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7345. if test -n "$ac_ct_AS"; then
  7346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7347. printf "%s\n" "$ac_ct_AS" >&6; }
  7348. else
  7349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7350. printf "%s\n" "no" >&6; }
  7351. fi
  7352. if test "x$ac_ct_AS" = x; then
  7353. AS="false"
  7354. else
  7355. case $cross_compiling:$ac_tool_warned in
  7356. yes:)
  7357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7358. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7359. ac_tool_warned=yes ;;
  7360. esac
  7361. AS=$ac_ct_AS
  7362. fi
  7363. else
  7364. AS="$ac_cv_prog_AS"
  7365. fi
  7366. if test -n "$ac_tool_prefix"; then
  7367. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7368. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7370. printf %s "checking for $ac_word... " >&6; }
  7371. if test ${ac_cv_prog_DLLTOOL+y}
  7372. then :
  7373. printf %s "(cached) " >&6
  7374. else $as_nop
  7375. if test -n "$DLLTOOL"; then
  7376. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7377. else
  7378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7379. for as_dir in $PATH
  7380. do
  7381. IFS=$as_save_IFS
  7382. case $as_dir in #(((
  7383. '') as_dir=./ ;;
  7384. */) ;;
  7385. *) as_dir=$as_dir/ ;;
  7386. esac
  7387. for ac_exec_ext in '' $ac_executable_extensions; do
  7388. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7389. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7390. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7391. break 2
  7392. fi
  7393. done
  7394. done
  7395. IFS=$as_save_IFS
  7396. fi
  7397. fi
  7398. DLLTOOL=$ac_cv_prog_DLLTOOL
  7399. if test -n "$DLLTOOL"; then
  7400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7401. printf "%s\n" "$DLLTOOL" >&6; }
  7402. else
  7403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7404. printf "%s\n" "no" >&6; }
  7405. fi
  7406. fi
  7407. if test -z "$ac_cv_prog_DLLTOOL"; then
  7408. ac_ct_DLLTOOL=$DLLTOOL
  7409. # Extract the first word of "dlltool", so it can be a program name with args.
  7410. set dummy dlltool; ac_word=$2
  7411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7412. printf %s "checking for $ac_word... " >&6; }
  7413. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7414. then :
  7415. printf %s "(cached) " >&6
  7416. else $as_nop
  7417. if test -n "$ac_ct_DLLTOOL"; then
  7418. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7419. else
  7420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7421. for as_dir in $PATH
  7422. do
  7423. IFS=$as_save_IFS
  7424. case $as_dir in #(((
  7425. '') as_dir=./ ;;
  7426. */) ;;
  7427. *) as_dir=$as_dir/ ;;
  7428. esac
  7429. for ac_exec_ext in '' $ac_executable_extensions; do
  7430. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7431. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7432. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7433. break 2
  7434. fi
  7435. done
  7436. done
  7437. IFS=$as_save_IFS
  7438. fi
  7439. fi
  7440. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7441. if test -n "$ac_ct_DLLTOOL"; then
  7442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7443. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7444. else
  7445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7446. printf "%s\n" "no" >&6; }
  7447. fi
  7448. if test "x$ac_ct_DLLTOOL" = x; then
  7449. DLLTOOL="false"
  7450. else
  7451. case $cross_compiling:$ac_tool_warned in
  7452. yes:)
  7453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7454. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7455. ac_tool_warned=yes ;;
  7456. esac
  7457. DLLTOOL=$ac_ct_DLLTOOL
  7458. fi
  7459. else
  7460. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7461. fi
  7462. if test -n "$ac_tool_prefix"; then
  7463. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7464. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7466. printf %s "checking for $ac_word... " >&6; }
  7467. if test ${ac_cv_prog_OBJDUMP+y}
  7468. then :
  7469. printf %s "(cached) " >&6
  7470. else $as_nop
  7471. if test -n "$OBJDUMP"; then
  7472. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7473. else
  7474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7475. for as_dir in $PATH
  7476. do
  7477. IFS=$as_save_IFS
  7478. case $as_dir in #(((
  7479. '') as_dir=./ ;;
  7480. */) ;;
  7481. *) as_dir=$as_dir/ ;;
  7482. esac
  7483. for ac_exec_ext in '' $ac_executable_extensions; do
  7484. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7485. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7487. break 2
  7488. fi
  7489. done
  7490. done
  7491. IFS=$as_save_IFS
  7492. fi
  7493. fi
  7494. OBJDUMP=$ac_cv_prog_OBJDUMP
  7495. if test -n "$OBJDUMP"; then
  7496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7497. printf "%s\n" "$OBJDUMP" >&6; }
  7498. else
  7499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7500. printf "%s\n" "no" >&6; }
  7501. fi
  7502. fi
  7503. if test -z "$ac_cv_prog_OBJDUMP"; then
  7504. ac_ct_OBJDUMP=$OBJDUMP
  7505. # Extract the first word of "objdump", so it can be a program name with args.
  7506. set dummy objdump; ac_word=$2
  7507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7508. printf %s "checking for $ac_word... " >&6; }
  7509. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7510. then :
  7511. printf %s "(cached) " >&6
  7512. else $as_nop
  7513. if test -n "$ac_ct_OBJDUMP"; then
  7514. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7515. else
  7516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7517. for as_dir in $PATH
  7518. do
  7519. IFS=$as_save_IFS
  7520. case $as_dir in #(((
  7521. '') as_dir=./ ;;
  7522. */) ;;
  7523. *) as_dir=$as_dir/ ;;
  7524. esac
  7525. for ac_exec_ext in '' $ac_executable_extensions; do
  7526. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7527. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7528. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7529. break 2
  7530. fi
  7531. done
  7532. done
  7533. IFS=$as_save_IFS
  7534. fi
  7535. fi
  7536. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7537. if test -n "$ac_ct_OBJDUMP"; then
  7538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7539. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7540. else
  7541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7542. printf "%s\n" "no" >&6; }
  7543. fi
  7544. if test "x$ac_ct_OBJDUMP" = x; then
  7545. OBJDUMP="false"
  7546. else
  7547. case $cross_compiling:$ac_tool_warned in
  7548. yes:)
  7549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7550. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7551. ac_tool_warned=yes ;;
  7552. esac
  7553. OBJDUMP=$ac_ct_OBJDUMP
  7554. fi
  7555. else
  7556. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7557. fi
  7558. ;;
  7559. esac
  7560. test -z "$AS" && AS=as
  7561. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7562. test -z "$OBJDUMP" && OBJDUMP=objdump
  7563. enable_dlopen=no
  7564. # Check whether --enable-shared was given.
  7565. if test ${enable_shared+y}
  7566. then :
  7567. enableval=$enable_shared; p=${PACKAGE-default}
  7568. case $enableval in
  7569. yes) enable_shared=yes ;;
  7570. no) enable_shared=no ;;
  7571. *)
  7572. enable_shared=no
  7573. # Look at the argument we got. We use all the common list separators.
  7574. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7575. for pkg in $enableval; do
  7576. IFS=$lt_save_ifs
  7577. if test "X$pkg" = "X$p"; then
  7578. enable_shared=yes
  7579. fi
  7580. done
  7581. IFS=$lt_save_ifs
  7582. ;;
  7583. esac
  7584. else $as_nop
  7585. enable_shared=yes
  7586. fi
  7587. # Check whether --enable-static was given.
  7588. if test ${enable_static+y}
  7589. then :
  7590. enableval=$enable_static; p=${PACKAGE-default}
  7591. case $enableval in
  7592. yes) enable_static=yes ;;
  7593. no) enable_static=no ;;
  7594. *)
  7595. enable_static=no
  7596. # Look at the argument we got. We use all the common list separators.
  7597. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7598. for pkg in $enableval; do
  7599. IFS=$lt_save_ifs
  7600. if test "X$pkg" = "X$p"; then
  7601. enable_static=yes
  7602. fi
  7603. done
  7604. IFS=$lt_save_ifs
  7605. ;;
  7606. esac
  7607. else $as_nop
  7608. enable_static=yes
  7609. fi
  7610. # Check whether --with-pic was given.
  7611. if test ${with_pic+y}
  7612. then :
  7613. withval=$with_pic; lt_p=${PACKAGE-default}
  7614. case $withval in
  7615. yes|no) pic_mode=$withval ;;
  7616. *)
  7617. pic_mode=default
  7618. # Look at the argument we got. We use all the common list separators.
  7619. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7620. for lt_pkg in $withval; do
  7621. IFS=$lt_save_ifs
  7622. if test "X$lt_pkg" = "X$lt_p"; then
  7623. pic_mode=yes
  7624. fi
  7625. done
  7626. IFS=$lt_save_ifs
  7627. ;;
  7628. esac
  7629. else $as_nop
  7630. pic_mode=default
  7631. fi
  7632. # Check whether --enable-fast-install was given.
  7633. if test ${enable_fast_install+y}
  7634. then :
  7635. enableval=$enable_fast_install; p=${PACKAGE-default}
  7636. case $enableval in
  7637. yes) enable_fast_install=yes ;;
  7638. no) enable_fast_install=no ;;
  7639. *)
  7640. enable_fast_install=no
  7641. # Look at the argument we got. We use all the common list separators.
  7642. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7643. for pkg in $enableval; do
  7644. IFS=$lt_save_ifs
  7645. if test "X$pkg" = "X$p"; then
  7646. enable_fast_install=yes
  7647. fi
  7648. done
  7649. IFS=$lt_save_ifs
  7650. ;;
  7651. esac
  7652. else $as_nop
  7653. enable_fast_install=yes
  7654. fi
  7655. shared_archive_member_spec=
  7656. case $host,$enable_shared in
  7657. power*-*-aix[5-9]*,yes)
  7658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7659. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7660. # Check whether --with-aix-soname was given.
  7661. if test ${with_aix_soname+y}
  7662. then :
  7663. withval=$with_aix_soname; case $withval in
  7664. aix|svr4|both)
  7665. ;;
  7666. *)
  7667. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7668. ;;
  7669. esac
  7670. lt_cv_with_aix_soname=$with_aix_soname
  7671. else $as_nop
  7672. if test ${lt_cv_with_aix_soname+y}
  7673. then :
  7674. printf %s "(cached) " >&6
  7675. else $as_nop
  7676. lt_cv_with_aix_soname=aix
  7677. fi
  7678. with_aix_soname=$lt_cv_with_aix_soname
  7679. fi
  7680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7681. printf "%s\n" "$with_aix_soname" >&6; }
  7682. if test aix != "$with_aix_soname"; then
  7683. # For the AIX way of multilib, we name the shared archive member
  7684. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7685. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7686. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7687. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7688. if test 64 = "${OBJECT_MODE-32}"; then
  7689. shared_archive_member_spec=shr_64
  7690. else
  7691. shared_archive_member_spec=shr
  7692. fi
  7693. fi
  7694. ;;
  7695. *)
  7696. with_aix_soname=aix
  7697. ;;
  7698. esac
  7699. # This can be used to rebuild libtool when needed
  7700. LIBTOOL_DEPS=$ltmain
  7701. # Always use our own libtool.
  7702. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7703. test -z "$LN_S" && LN_S="ln -s"
  7704. if test -n "${ZSH_VERSION+set}"; then
  7705. setopt NO_GLOB_SUBST
  7706. fi
  7707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7708. printf %s "checking for objdir... " >&6; }
  7709. if test ${lt_cv_objdir+y}
  7710. then :
  7711. printf %s "(cached) " >&6
  7712. else $as_nop
  7713. rm -f .libs 2>/dev/null
  7714. mkdir .libs 2>/dev/null
  7715. if test -d .libs; then
  7716. lt_cv_objdir=.libs
  7717. else
  7718. # MS-DOS does not allow filenames that begin with a dot.
  7719. lt_cv_objdir=_libs
  7720. fi
  7721. rmdir .libs 2>/dev/null
  7722. fi
  7723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7724. printf "%s\n" "$lt_cv_objdir" >&6; }
  7725. objdir=$lt_cv_objdir
  7726. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7727. case $host_os in
  7728. aix3*)
  7729. # AIX sometimes has problems with the GCC collect2 program. For some
  7730. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7731. # vanish in a puff of smoke.
  7732. if test set != "${COLLECT_NAMES+set}"; then
  7733. COLLECT_NAMES=
  7734. export COLLECT_NAMES
  7735. fi
  7736. ;;
  7737. esac
  7738. # Global variables:
  7739. ofile=libtool
  7740. can_build_shared=yes
  7741. # All known linkers require a '.a' archive for static linking (except MSVC,
  7742. # which needs '.lib').
  7743. libext=a
  7744. with_gnu_ld=$lt_cv_prog_gnu_ld
  7745. old_CC=$CC
  7746. old_CFLAGS=$CFLAGS
  7747. # Set sane defaults for various variables
  7748. test -z "$CC" && CC=cc
  7749. test -z "$LTCC" && LTCC=$CC
  7750. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7751. test -z "$LD" && LD=ld
  7752. test -z "$ac_objext" && ac_objext=o
  7753. func_cc_basename $compiler
  7754. cc_basename=$func_cc_basename_result
  7755. # Only perform the check for file, if the check method requires it
  7756. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7757. case $deplibs_check_method in
  7758. file_magic*)
  7759. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7761. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7762. if test ${lt_cv_path_MAGIC_CMD+y}
  7763. then :
  7764. printf %s "(cached) " >&6
  7765. else $as_nop
  7766. case $MAGIC_CMD in
  7767. [\\/*] | ?:[\\/]*)
  7768. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7769. ;;
  7770. *)
  7771. lt_save_MAGIC_CMD=$MAGIC_CMD
  7772. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7773. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7774. for ac_dir in $ac_dummy; do
  7775. IFS=$lt_save_ifs
  7776. test -z "$ac_dir" && ac_dir=.
  7777. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7778. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7779. if test -n "$file_magic_test_file"; then
  7780. case $deplibs_check_method in
  7781. "file_magic "*)
  7782. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7783. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7784. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7785. $EGREP "$file_magic_regex" > /dev/null; then
  7786. :
  7787. else
  7788. cat <<_LT_EOF 1>&2
  7789. *** Warning: the command libtool uses to detect shared libraries,
  7790. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7791. *** The result is that libtool may fail to recognize shared libraries
  7792. *** as such. This will affect the creation of libtool libraries that
  7793. *** depend on shared libraries, but programs linked with such libtool
  7794. *** libraries will work regardless of this problem. Nevertheless, you
  7795. *** may want to report the problem to your system manager and/or to
  7796. *** bug-libtool@gnu.org
  7797. _LT_EOF
  7798. fi ;;
  7799. esac
  7800. fi
  7801. break
  7802. fi
  7803. done
  7804. IFS=$lt_save_ifs
  7805. MAGIC_CMD=$lt_save_MAGIC_CMD
  7806. ;;
  7807. esac
  7808. fi
  7809. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7810. if test -n "$MAGIC_CMD"; then
  7811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7812. printf "%s\n" "$MAGIC_CMD" >&6; }
  7813. else
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7815. printf "%s\n" "no" >&6; }
  7816. fi
  7817. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7818. if test -n "$ac_tool_prefix"; then
  7819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7820. printf %s "checking for file... " >&6; }
  7821. if test ${lt_cv_path_MAGIC_CMD+y}
  7822. then :
  7823. printf %s "(cached) " >&6
  7824. else $as_nop
  7825. case $MAGIC_CMD in
  7826. [\\/*] | ?:[\\/]*)
  7827. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7828. ;;
  7829. *)
  7830. lt_save_MAGIC_CMD=$MAGIC_CMD
  7831. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7832. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7833. for ac_dir in $ac_dummy; do
  7834. IFS=$lt_save_ifs
  7835. test -z "$ac_dir" && ac_dir=.
  7836. if test -f "$ac_dir/file"; then
  7837. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7838. if test -n "$file_magic_test_file"; then
  7839. case $deplibs_check_method in
  7840. "file_magic "*)
  7841. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7842. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7843. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7844. $EGREP "$file_magic_regex" > /dev/null; then
  7845. :
  7846. else
  7847. cat <<_LT_EOF 1>&2
  7848. *** Warning: the command libtool uses to detect shared libraries,
  7849. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7850. *** The result is that libtool may fail to recognize shared libraries
  7851. *** as such. This will affect the creation of libtool libraries that
  7852. *** depend on shared libraries, but programs linked with such libtool
  7853. *** libraries will work regardless of this problem. Nevertheless, you
  7854. *** may want to report the problem to your system manager and/or to
  7855. *** bug-libtool@gnu.org
  7856. _LT_EOF
  7857. fi ;;
  7858. esac
  7859. fi
  7860. break
  7861. fi
  7862. done
  7863. IFS=$lt_save_ifs
  7864. MAGIC_CMD=$lt_save_MAGIC_CMD
  7865. ;;
  7866. esac
  7867. fi
  7868. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7869. if test -n "$MAGIC_CMD"; then
  7870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7871. printf "%s\n" "$MAGIC_CMD" >&6; }
  7872. else
  7873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. printf "%s\n" "no" >&6; }
  7875. fi
  7876. else
  7877. MAGIC_CMD=:
  7878. fi
  7879. fi
  7880. fi
  7881. ;;
  7882. esac
  7883. # Use C for the default configuration in the libtool script
  7884. lt_save_CC=$CC
  7885. ac_ext=c
  7886. ac_cpp='$CPP $CPPFLAGS'
  7887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7890. # Source file extension for C test sources.
  7891. ac_ext=c
  7892. # Object file extension for compiled C test sources.
  7893. objext=o
  7894. objext=$objext
  7895. # Code to be used in simple compile tests
  7896. lt_simple_compile_test_code="int some_variable = 0;"
  7897. # Code to be used in simple link tests
  7898. lt_simple_link_test_code='int main(){return(0);}'
  7899. # If no C compiler was specified, use CC.
  7900. LTCC=${LTCC-"$CC"}
  7901. # If no C compiler flags were specified, use CFLAGS.
  7902. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7903. # Allow CC to be a program name with arguments.
  7904. compiler=$CC
  7905. # Save the default compiler, since it gets overwritten when the other
  7906. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7907. compiler_DEFAULT=$CC
  7908. # save warnings/boilerplate of simple test code
  7909. ac_outfile=conftest.$ac_objext
  7910. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7911. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7912. _lt_compiler_boilerplate=`cat conftest.err`
  7913. $RM conftest*
  7914. ac_outfile=conftest.$ac_objext
  7915. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7916. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7917. _lt_linker_boilerplate=`cat conftest.err`
  7918. $RM -r conftest*
  7919. ## CAVEAT EMPTOR:
  7920. ## There is no encapsulation within the following macros, do not change
  7921. ## the running order or otherwise move them around unless you know exactly
  7922. ## what you are doing...
  7923. if test -n "$compiler"; then
  7924. lt_prog_compiler_no_builtin_flag=
  7925. if test yes = "$GCC"; then
  7926. case $cc_basename in
  7927. nvcc*)
  7928. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7929. *)
  7930. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7931. esac
  7932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7933. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7934. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7935. then :
  7936. printf %s "(cached) " >&6
  7937. else $as_nop
  7938. lt_cv_prog_compiler_rtti_exceptions=no
  7939. ac_outfile=conftest.$ac_objext
  7940. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7941. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7942. # Insert the option either (1) after the last *FLAGS variable, or
  7943. # (2) before a word containing "conftest.", or (3) at the end.
  7944. # Note that $ac_compile itself does not contain backslashes and begins
  7945. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7946. # The option is referenced via a variable to avoid confusing sed.
  7947. lt_compile=`echo "$ac_compile" | $SED \
  7948. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7950. -e 's:$: $lt_compiler_flag:'`
  7951. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7952. (eval "$lt_compile" 2>conftest.err)
  7953. ac_status=$?
  7954. cat conftest.err >&5
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. if (exit $ac_status) && test -s "$ac_outfile"; then
  7957. # The compiler can only warn and ignore the option if not recognized
  7958. # So say no if there are warnings other than the usual output.
  7959. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7960. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7961. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7962. lt_cv_prog_compiler_rtti_exceptions=yes
  7963. fi
  7964. fi
  7965. $RM conftest*
  7966. fi
  7967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7968. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7969. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7970. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7971. else
  7972. :
  7973. fi
  7974. fi
  7975. lt_prog_compiler_wl=
  7976. lt_prog_compiler_pic=
  7977. lt_prog_compiler_static=
  7978. if test yes = "$GCC"; then
  7979. lt_prog_compiler_wl='-Wl,'
  7980. lt_prog_compiler_static='-static'
  7981. case $host_os in
  7982. aix*)
  7983. # All AIX code is PIC.
  7984. if test ia64 = "$host_cpu"; then
  7985. # AIX 5 now supports IA64 processor
  7986. lt_prog_compiler_static='-Bstatic'
  7987. fi
  7988. lt_prog_compiler_pic='-fPIC'
  7989. ;;
  7990. amigaos*)
  7991. case $host_cpu in
  7992. powerpc)
  7993. # see comment about AmigaOS4 .so support
  7994. lt_prog_compiler_pic='-fPIC'
  7995. ;;
  7996. m68k)
  7997. # FIXME: we need at least 68020 code to build shared libraries, but
  7998. # adding the '-m68020' flag to GCC prevents building anything better,
  7999. # like '-m68040'.
  8000. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8001. ;;
  8002. esac
  8003. ;;
  8004. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8005. # PIC is the default for these OSes.
  8006. ;;
  8007. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8008. # This hack is so that the source file can tell whether it is being
  8009. # built for inclusion in a dll (and should export symbols for example).
  8010. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8011. # (--disable-auto-import) libraries
  8012. lt_prog_compiler_pic='-DDLL_EXPORT'
  8013. case $host_os in
  8014. os2*)
  8015. lt_prog_compiler_static='$wl-static'
  8016. ;;
  8017. esac
  8018. ;;
  8019. darwin* | rhapsody*)
  8020. # PIC is the default on this platform
  8021. # Common symbols not allowed in MH_DYLIB files
  8022. lt_prog_compiler_pic='-fno-common'
  8023. ;;
  8024. haiku*)
  8025. # PIC is the default for Haiku.
  8026. # The "-static" flag exists, but is broken.
  8027. lt_prog_compiler_static=
  8028. ;;
  8029. hpux*)
  8030. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8031. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8032. # sets the default TLS model and affects inlining.
  8033. case $host_cpu in
  8034. hppa*64*)
  8035. # +Z the default
  8036. ;;
  8037. *)
  8038. lt_prog_compiler_pic='-fPIC'
  8039. ;;
  8040. esac
  8041. ;;
  8042. interix[3-9]*)
  8043. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8044. # Instead, we relocate shared libraries at runtime.
  8045. ;;
  8046. msdosdjgpp*)
  8047. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8048. # on systems that don't support them.
  8049. lt_prog_compiler_can_build_shared=no
  8050. enable_shared=no
  8051. ;;
  8052. *nto* | *qnx*)
  8053. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8054. # it will coredump.
  8055. lt_prog_compiler_pic='-fPIC -shared'
  8056. ;;
  8057. sysv4*MP*)
  8058. if test -d /usr/nec; then
  8059. lt_prog_compiler_pic=-Kconform_pic
  8060. fi
  8061. ;;
  8062. *)
  8063. lt_prog_compiler_pic='-fPIC'
  8064. ;;
  8065. esac
  8066. case $cc_basename in
  8067. nvcc*) # Cuda Compiler Driver 2.2
  8068. lt_prog_compiler_wl='-Xlinker '
  8069. if test -n "$lt_prog_compiler_pic"; then
  8070. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8071. fi
  8072. ;;
  8073. esac
  8074. else
  8075. # PORTME Check for flag to pass linker flags through the system compiler.
  8076. case $host_os in
  8077. aix*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. if test ia64 = "$host_cpu"; then
  8080. # AIX 5 now supports IA64 processor
  8081. lt_prog_compiler_static='-Bstatic'
  8082. else
  8083. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8084. fi
  8085. ;;
  8086. darwin* | rhapsody*)
  8087. # PIC is the default on this platform
  8088. # Common symbols not allowed in MH_DYLIB files
  8089. lt_prog_compiler_pic='-fno-common'
  8090. case $cc_basename in
  8091. nagfor*)
  8092. # NAG Fortran compiler
  8093. lt_prog_compiler_wl='-Wl,-Wl,,'
  8094. lt_prog_compiler_pic='-PIC'
  8095. lt_prog_compiler_static='-Bstatic'
  8096. ;;
  8097. esac
  8098. ;;
  8099. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8100. # This hack is so that the source file can tell whether it is being
  8101. # built for inclusion in a dll (and should export symbols for example).
  8102. lt_prog_compiler_pic='-DDLL_EXPORT'
  8103. case $host_os in
  8104. os2*)
  8105. lt_prog_compiler_static='$wl-static'
  8106. ;;
  8107. esac
  8108. ;;
  8109. hpux9* | hpux10* | hpux11*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8112. # not for PA HP-UX.
  8113. case $host_cpu in
  8114. hppa*64*|ia64*)
  8115. # +Z the default
  8116. ;;
  8117. *)
  8118. lt_prog_compiler_pic='+Z'
  8119. ;;
  8120. esac
  8121. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8122. lt_prog_compiler_static='$wl-a ${wl}archive'
  8123. ;;
  8124. irix5* | irix6* | nonstopux*)
  8125. lt_prog_compiler_wl='-Wl,'
  8126. # PIC (with -KPIC) is the default.
  8127. lt_prog_compiler_static='-non_shared'
  8128. ;;
  8129. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8130. case $cc_basename in
  8131. # old Intel for x86_64, which still supported -KPIC.
  8132. ecc*)
  8133. lt_prog_compiler_wl='-Wl,'
  8134. lt_prog_compiler_pic='-KPIC'
  8135. lt_prog_compiler_static='-static'
  8136. ;;
  8137. # icc used to be incompatible with GCC.
  8138. # ICC 10 doesn't accept -KPIC any more.
  8139. icc* | ifort*)
  8140. lt_prog_compiler_wl='-Wl,'
  8141. lt_prog_compiler_pic='-fPIC'
  8142. lt_prog_compiler_static='-static'
  8143. ;;
  8144. # Lahey Fortran 8.1.
  8145. lf95*)
  8146. lt_prog_compiler_wl='-Wl,'
  8147. lt_prog_compiler_pic='--shared'
  8148. lt_prog_compiler_static='--static'
  8149. ;;
  8150. nagfor*)
  8151. # NAG Fortran compiler
  8152. lt_prog_compiler_wl='-Wl,-Wl,,'
  8153. lt_prog_compiler_pic='-PIC'
  8154. lt_prog_compiler_static='-Bstatic'
  8155. ;;
  8156. tcc*)
  8157. # Fabrice Bellard et al's Tiny C Compiler
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8163. # Portland Group compilers (*not* the Pentium gcc compiler,
  8164. # which looks to be a dead project)
  8165. lt_prog_compiler_wl='-Wl,'
  8166. lt_prog_compiler_pic='-fpic'
  8167. lt_prog_compiler_static='-Bstatic'
  8168. ;;
  8169. ccc*)
  8170. lt_prog_compiler_wl='-Wl,'
  8171. # All Alpha code is PIC.
  8172. lt_prog_compiler_static='-non_shared'
  8173. ;;
  8174. xl* | bgxl* | bgf* | mpixl*)
  8175. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8176. lt_prog_compiler_wl='-Wl,'
  8177. lt_prog_compiler_pic='-qpic'
  8178. lt_prog_compiler_static='-qstaticlink'
  8179. ;;
  8180. *)
  8181. case `$CC -V 2>&1 | sed 5q` in
  8182. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8183. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8184. lt_prog_compiler_pic='-KPIC'
  8185. lt_prog_compiler_static='-Bstatic'
  8186. lt_prog_compiler_wl=''
  8187. ;;
  8188. *Sun\ F* | *Sun*Fortran*)
  8189. lt_prog_compiler_pic='-KPIC'
  8190. lt_prog_compiler_static='-Bstatic'
  8191. lt_prog_compiler_wl='-Qoption ld '
  8192. ;;
  8193. *Sun\ C*)
  8194. # Sun C 5.9
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. lt_prog_compiler_wl='-Wl,'
  8198. ;;
  8199. *Intel*\ [CF]*Compiler*)
  8200. lt_prog_compiler_wl='-Wl,'
  8201. lt_prog_compiler_pic='-fPIC'
  8202. lt_prog_compiler_static='-static'
  8203. ;;
  8204. *Portland\ Group*)
  8205. lt_prog_compiler_wl='-Wl,'
  8206. lt_prog_compiler_pic='-fpic'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. esac
  8210. ;;
  8211. esac
  8212. ;;
  8213. newsos6)
  8214. lt_prog_compiler_pic='-KPIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. ;;
  8217. *nto* | *qnx*)
  8218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8219. # it will coredump.
  8220. lt_prog_compiler_pic='-fPIC -shared'
  8221. ;;
  8222. osf3* | osf4* | osf5*)
  8223. lt_prog_compiler_wl='-Wl,'
  8224. # All OSF/1 code is PIC.
  8225. lt_prog_compiler_static='-non_shared'
  8226. ;;
  8227. rdos*)
  8228. lt_prog_compiler_static='-non_shared'
  8229. ;;
  8230. solaris*)
  8231. lt_prog_compiler_pic='-KPIC'
  8232. lt_prog_compiler_static='-Bstatic'
  8233. case $cc_basename in
  8234. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8235. lt_prog_compiler_wl='-Qoption ld ';;
  8236. *)
  8237. lt_prog_compiler_wl='-Wl,';;
  8238. esac
  8239. ;;
  8240. sunos4*)
  8241. lt_prog_compiler_wl='-Qoption ld '
  8242. lt_prog_compiler_pic='-PIC'
  8243. lt_prog_compiler_static='-Bstatic'
  8244. ;;
  8245. sysv4 | sysv4.2uw2* | sysv4.3*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_pic='-KPIC'
  8248. lt_prog_compiler_static='-Bstatic'
  8249. ;;
  8250. sysv4*MP*)
  8251. if test -d /usr/nec; then
  8252. lt_prog_compiler_pic='-Kconform_pic'
  8253. lt_prog_compiler_static='-Bstatic'
  8254. fi
  8255. ;;
  8256. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8257. lt_prog_compiler_wl='-Wl,'
  8258. lt_prog_compiler_pic='-KPIC'
  8259. lt_prog_compiler_static='-Bstatic'
  8260. ;;
  8261. unicos*)
  8262. lt_prog_compiler_wl='-Wl,'
  8263. lt_prog_compiler_can_build_shared=no
  8264. ;;
  8265. uts4*)
  8266. lt_prog_compiler_pic='-pic'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. ;;
  8269. *)
  8270. lt_prog_compiler_can_build_shared=no
  8271. ;;
  8272. esac
  8273. fi
  8274. case $host_os in
  8275. # For platforms that do not support PIC, -DPIC is meaningless:
  8276. *djgpp*)
  8277. lt_prog_compiler_pic=
  8278. ;;
  8279. *)
  8280. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8281. ;;
  8282. esac
  8283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8284. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8285. if test ${lt_cv_prog_compiler_pic+y}
  8286. then :
  8287. printf %s "(cached) " >&6
  8288. else $as_nop
  8289. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8290. fi
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8292. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8293. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8294. #
  8295. # Check to make sure the PIC flag actually works.
  8296. #
  8297. if test -n "$lt_prog_compiler_pic"; then
  8298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8299. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8300. if test ${lt_cv_prog_compiler_pic_works+y}
  8301. then :
  8302. printf %s "(cached) " >&6
  8303. else $as_nop
  8304. lt_cv_prog_compiler_pic_works=no
  8305. ac_outfile=conftest.$ac_objext
  8306. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8307. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8308. # Insert the option either (1) after the last *FLAGS variable, or
  8309. # (2) before a word containing "conftest.", or (3) at the end.
  8310. # Note that $ac_compile itself does not contain backslashes and begins
  8311. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8312. # The option is referenced via a variable to avoid confusing sed.
  8313. lt_compile=`echo "$ac_compile" | $SED \
  8314. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8315. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8316. -e 's:$: $lt_compiler_flag:'`
  8317. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8318. (eval "$lt_compile" 2>conftest.err)
  8319. ac_status=$?
  8320. cat conftest.err >&5
  8321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. if (exit $ac_status) && test -s "$ac_outfile"; then
  8323. # The compiler can only warn and ignore the option if not recognized
  8324. # So say no if there are warnings other than the usual output.
  8325. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8326. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8327. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8328. lt_cv_prog_compiler_pic_works=yes
  8329. fi
  8330. fi
  8331. $RM conftest*
  8332. fi
  8333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8334. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8335. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8336. case $lt_prog_compiler_pic in
  8337. "" | " "*) ;;
  8338. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8339. esac
  8340. else
  8341. lt_prog_compiler_pic=
  8342. lt_prog_compiler_can_build_shared=no
  8343. fi
  8344. fi
  8345. #
  8346. # Check to make sure the static flag actually works.
  8347. #
  8348. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8350. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8351. if test ${lt_cv_prog_compiler_static_works+y}
  8352. then :
  8353. printf %s "(cached) " >&6
  8354. else $as_nop
  8355. lt_cv_prog_compiler_static_works=no
  8356. save_LDFLAGS=$LDFLAGS
  8357. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8358. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8359. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8360. # The linker can only warn and ignore the option if not recognized
  8361. # So say no if there are warnings
  8362. if test -s conftest.err; then
  8363. # Append any errors to the config.log.
  8364. cat conftest.err 1>&5
  8365. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8366. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8367. if diff conftest.exp conftest.er2 >/dev/null; then
  8368. lt_cv_prog_compiler_static_works=yes
  8369. fi
  8370. else
  8371. lt_cv_prog_compiler_static_works=yes
  8372. fi
  8373. fi
  8374. $RM -r conftest*
  8375. LDFLAGS=$save_LDFLAGS
  8376. fi
  8377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8378. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8379. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8380. :
  8381. else
  8382. lt_prog_compiler_static=
  8383. fi
  8384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8385. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8386. if test ${lt_cv_prog_compiler_c_o+y}
  8387. then :
  8388. printf %s "(cached) " >&6
  8389. else $as_nop
  8390. lt_cv_prog_compiler_c_o=no
  8391. $RM -r conftest 2>/dev/null
  8392. mkdir conftest
  8393. cd conftest
  8394. mkdir out
  8395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8396. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8397. # Insert the option either (1) after the last *FLAGS variable, or
  8398. # (2) before a word containing "conftest.", or (3) at the end.
  8399. # Note that $ac_compile itself does not contain backslashes and begins
  8400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8401. lt_compile=`echo "$ac_compile" | $SED \
  8402. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8403. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8404. -e 's:$: $lt_compiler_flag:'`
  8405. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8406. (eval "$lt_compile" 2>out/conftest.err)
  8407. ac_status=$?
  8408. cat out/conftest.err >&5
  8409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8410. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8411. then
  8412. # The compiler can only warn and ignore the option if not recognized
  8413. # So say no if there are warnings
  8414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8415. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8416. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8417. lt_cv_prog_compiler_c_o=yes
  8418. fi
  8419. fi
  8420. chmod u+w . 2>&5
  8421. $RM conftest*
  8422. # SGI C++ compiler will create directory out/ii_files/ for
  8423. # template instantiation
  8424. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8425. $RM out/* && rmdir out
  8426. cd ..
  8427. $RM -r conftest
  8428. $RM conftest*
  8429. fi
  8430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8431. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8433. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8434. if test ${lt_cv_prog_compiler_c_o+y}
  8435. then :
  8436. printf %s "(cached) " >&6
  8437. else $as_nop
  8438. lt_cv_prog_compiler_c_o=no
  8439. $RM -r conftest 2>/dev/null
  8440. mkdir conftest
  8441. cd conftest
  8442. mkdir out
  8443. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8444. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8445. # Insert the option either (1) after the last *FLAGS variable, or
  8446. # (2) before a word containing "conftest.", or (3) at the end.
  8447. # Note that $ac_compile itself does not contain backslashes and begins
  8448. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8449. lt_compile=`echo "$ac_compile" | $SED \
  8450. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8451. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8452. -e 's:$: $lt_compiler_flag:'`
  8453. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8454. (eval "$lt_compile" 2>out/conftest.err)
  8455. ac_status=$?
  8456. cat out/conftest.err >&5
  8457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8458. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8459. then
  8460. # The compiler can only warn and ignore the option if not recognized
  8461. # So say no if there are warnings
  8462. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8463. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8464. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8465. lt_cv_prog_compiler_c_o=yes
  8466. fi
  8467. fi
  8468. chmod u+w . 2>&5
  8469. $RM conftest*
  8470. # SGI C++ compiler will create directory out/ii_files/ for
  8471. # template instantiation
  8472. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8473. $RM out/* && rmdir out
  8474. cd ..
  8475. $RM -r conftest
  8476. $RM conftest*
  8477. fi
  8478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8479. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8480. hard_links=nottested
  8481. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8482. # do not overwrite the value of need_locks provided by the user
  8483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8484. printf %s "checking if we can lock with hard links... " >&6; }
  8485. hard_links=yes
  8486. $RM conftest*
  8487. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8488. touch conftest.a
  8489. ln conftest.a conftest.b 2>&5 || hard_links=no
  8490. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8492. printf "%s\n" "$hard_links" >&6; }
  8493. if test no = "$hard_links"; then
  8494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8495. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8496. need_locks=warn
  8497. fi
  8498. else
  8499. need_locks=no
  8500. fi
  8501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8502. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8503. runpath_var=
  8504. allow_undefined_flag=
  8505. always_export_symbols=no
  8506. archive_cmds=
  8507. archive_expsym_cmds=
  8508. compiler_needs_object=no
  8509. enable_shared_with_static_runtimes=no
  8510. export_dynamic_flag_spec=
  8511. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8512. hardcode_automatic=no
  8513. hardcode_direct=no
  8514. hardcode_direct_absolute=no
  8515. hardcode_libdir_flag_spec=
  8516. hardcode_libdir_separator=
  8517. hardcode_minus_L=no
  8518. hardcode_shlibpath_var=unsupported
  8519. inherit_rpath=no
  8520. link_all_deplibs=unknown
  8521. module_cmds=
  8522. module_expsym_cmds=
  8523. old_archive_from_new_cmds=
  8524. old_archive_from_expsyms_cmds=
  8525. thread_safe_flag_spec=
  8526. whole_archive_flag_spec=
  8527. # include_expsyms should be a list of space-separated symbols to be *always*
  8528. # included in the symbol list
  8529. include_expsyms=
  8530. # exclude_expsyms can be an extended regexp of symbols to exclude
  8531. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8532. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8533. # as well as any symbol that contains 'd'.
  8534. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8535. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8536. # platforms (ab)use it in PIC code, but their linkers get confused if
  8537. # the symbol is explicitly referenced. Since portable code cannot
  8538. # rely on this symbol name, it's probably fine to never include it in
  8539. # preloaded symbol tables.
  8540. # Exclude shared library initialization/finalization symbols.
  8541. extract_expsyms_cmds=
  8542. case $host_os in
  8543. cygwin* | mingw* | pw32* | cegcc*)
  8544. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8545. # When not using gcc, we currently assume that we are using
  8546. # Microsoft Visual C++.
  8547. if test yes != "$GCC"; then
  8548. with_gnu_ld=no
  8549. fi
  8550. ;;
  8551. interix*)
  8552. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8553. with_gnu_ld=yes
  8554. ;;
  8555. openbsd* | bitrig*)
  8556. with_gnu_ld=no
  8557. ;;
  8558. esac
  8559. ld_shlibs=yes
  8560. # On some targets, GNU ld is compatible enough with the native linker
  8561. # that we're better off using the native interface for both.
  8562. lt_use_gnu_ld_interface=no
  8563. if test yes = "$with_gnu_ld"; then
  8564. case $host_os in
  8565. aix*)
  8566. # The AIX port of GNU ld has always aspired to compatibility
  8567. # with the native linker. However, as the warning in the GNU ld
  8568. # block says, versions before 2.19.5* couldn't really create working
  8569. # shared libraries, regardless of the interface used.
  8570. case `$LD -v 2>&1` in
  8571. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8572. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8573. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8574. *)
  8575. lt_use_gnu_ld_interface=yes
  8576. ;;
  8577. esac
  8578. ;;
  8579. *)
  8580. lt_use_gnu_ld_interface=yes
  8581. ;;
  8582. esac
  8583. fi
  8584. if test yes = "$lt_use_gnu_ld_interface"; then
  8585. # If archive_cmds runs LD, not CC, wlarc should be empty
  8586. wlarc='$wl'
  8587. # Set some defaults for GNU ld with shared library support. These
  8588. # are reset later if shared libraries are not supported. Putting them
  8589. # here allows them to be overridden if necessary.
  8590. runpath_var=LD_RUN_PATH
  8591. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8592. export_dynamic_flag_spec='$wl--export-dynamic'
  8593. # ancient GNU ld didn't support --whole-archive et. al.
  8594. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8595. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8596. else
  8597. whole_archive_flag_spec=
  8598. fi
  8599. supports_anon_versioning=no
  8600. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8601. *GNU\ gold*) supports_anon_versioning=yes ;;
  8602. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8603. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8604. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8605. *\ 2.11.*) ;; # other 2.11 versions
  8606. *) supports_anon_versioning=yes ;;
  8607. esac
  8608. # See if GNU ld supports shared libraries.
  8609. case $host_os in
  8610. aix[3-9]*)
  8611. # On AIX/PPC, the GNU linker is very broken
  8612. if test ia64 != "$host_cpu"; then
  8613. ld_shlibs=no
  8614. cat <<_LT_EOF 1>&2
  8615. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8616. *** to be unable to reliably create shared libraries on AIX.
  8617. *** Therefore, libtool is disabling shared libraries support. If you
  8618. *** really care for shared libraries, you may want to install binutils
  8619. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8620. *** You will then need to restart the configuration process.
  8621. _LT_EOF
  8622. fi
  8623. ;;
  8624. amigaos*)
  8625. case $host_cpu in
  8626. powerpc)
  8627. # see comment about AmigaOS4 .so support
  8628. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8629. archive_expsym_cmds=''
  8630. ;;
  8631. m68k)
  8632. 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)'
  8633. hardcode_libdir_flag_spec='-L$libdir'
  8634. hardcode_minus_L=yes
  8635. ;;
  8636. esac
  8637. ;;
  8638. beos*)
  8639. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8640. allow_undefined_flag=unsupported
  8641. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8642. # support --undefined. This deserves some investigation. FIXME
  8643. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8644. else
  8645. ld_shlibs=no
  8646. fi
  8647. ;;
  8648. cygwin* | mingw* | pw32* | cegcc*)
  8649. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8650. # as there is no search path for DLLs.
  8651. hardcode_libdir_flag_spec='-L$libdir'
  8652. export_dynamic_flag_spec='$wl--export-all-symbols'
  8653. allow_undefined_flag=unsupported
  8654. always_export_symbols=no
  8655. enable_shared_with_static_runtimes=yes
  8656. 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'
  8657. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8658. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8659. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8660. # If the export-symbols file already is a .def file, use it as
  8661. # is; otherwise, prepend EXPORTS...
  8662. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8663. cp $export_symbols $output_objdir/$soname.def;
  8664. else
  8665. echo EXPORTS > $output_objdir/$soname.def;
  8666. cat $export_symbols >> $output_objdir/$soname.def;
  8667. fi~
  8668. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. haiku*)
  8674. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8675. link_all_deplibs=yes
  8676. ;;
  8677. os2*)
  8678. hardcode_libdir_flag_spec='-L$libdir'
  8679. hardcode_minus_L=yes
  8680. allow_undefined_flag=unsupported
  8681. shrext_cmds=.dll
  8682. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8683. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8684. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8685. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8686. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8687. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8688. emximp -o $lib $output_objdir/$libname.def'
  8689. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8690. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8691. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8692. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8693. prefix_cmds="$SED"~
  8694. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8695. prefix_cmds="$prefix_cmds -e 1d";
  8696. fi~
  8697. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8698. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8699. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8700. emximp -o $lib $output_objdir/$libname.def'
  8701. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8702. enable_shared_with_static_runtimes=yes
  8703. file_list_spec='@'
  8704. ;;
  8705. interix[3-9]*)
  8706. hardcode_direct=no
  8707. hardcode_shlibpath_var=no
  8708. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8709. export_dynamic_flag_spec='$wl-E'
  8710. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8711. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8712. # default) and relocated if they conflict, which is a slow very memory
  8713. # consuming and fragmenting process. To avoid this, we pick a random,
  8714. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8715. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8716. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8717. 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'
  8718. ;;
  8719. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8720. tmp_diet=no
  8721. if test linux-dietlibc = "$host_os"; then
  8722. case $cc_basename in
  8723. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8724. esac
  8725. fi
  8726. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8727. && test no = "$tmp_diet"
  8728. then
  8729. tmp_addflag=' $pic_flag'
  8730. tmp_sharedflag='-shared'
  8731. case $cc_basename,$host_cpu in
  8732. pgcc*) # Portland Group C compiler
  8733. 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'
  8734. tmp_addflag=' $pic_flag'
  8735. ;;
  8736. pgf77* | pgf90* | pgf95* | pgfortran*)
  8737. # Portland Group f77 and f90 compilers
  8738. 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'
  8739. tmp_addflag=' $pic_flag -Mnomain' ;;
  8740. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8741. tmp_addflag=' -i_dynamic' ;;
  8742. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8743. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8744. ifc* | ifort*) # Intel Fortran compiler
  8745. tmp_addflag=' -nofor_main' ;;
  8746. lf95*) # Lahey Fortran 8.1
  8747. whole_archive_flag_spec=
  8748. tmp_sharedflag='--shared' ;;
  8749. nagfor*) # NAGFOR 5.3
  8750. tmp_sharedflag='-Wl,-shared' ;;
  8751. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8752. tmp_sharedflag='-qmkshrobj'
  8753. tmp_addflag= ;;
  8754. nvcc*) # Cuda Compiler Driver 2.2
  8755. 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'
  8756. compiler_needs_object=yes
  8757. ;;
  8758. esac
  8759. case `$CC -V 2>&1 | sed 5q` in
  8760. *Sun\ C*) # Sun C 5.9
  8761. 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'
  8762. compiler_needs_object=yes
  8763. tmp_sharedflag='-G' ;;
  8764. *Sun\ F*) # Sun Fortran 8.3
  8765. tmp_sharedflag='-G' ;;
  8766. esac
  8767. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8768. if test yes = "$supports_anon_versioning"; then
  8769. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8770. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8771. echo "local: *; };" >> $output_objdir/$libname.ver~
  8772. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8773. fi
  8774. case $cc_basename in
  8775. tcc*)
  8776. export_dynamic_flag_spec='-rdynamic'
  8777. ;;
  8778. xlf* | bgf* | bgxlf* | mpixlf*)
  8779. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8780. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8781. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8782. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8783. if test yes = "$supports_anon_versioning"; then
  8784. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8785. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8786. echo "local: *; };" >> $output_objdir/$libname.ver~
  8787. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8788. fi
  8789. ;;
  8790. esac
  8791. else
  8792. ld_shlibs=no
  8793. fi
  8794. ;;
  8795. netbsd*)
  8796. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8797. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8798. wlarc=
  8799. else
  8800. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8801. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8802. fi
  8803. ;;
  8804. solaris*)
  8805. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8806. ld_shlibs=no
  8807. cat <<_LT_EOF 1>&2
  8808. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8809. *** create shared libraries on Solaris systems. Therefore, libtool
  8810. *** is disabling shared libraries support. We urge you to upgrade GNU
  8811. *** binutils to release 2.9.1 or newer. Another option is to modify
  8812. *** your PATH or compiler configuration so that the native linker is
  8813. *** used, and then restart.
  8814. _LT_EOF
  8815. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8816. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8817. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8818. else
  8819. ld_shlibs=no
  8820. fi
  8821. ;;
  8822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8823. case `$LD -v 2>&1` in
  8824. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8825. ld_shlibs=no
  8826. cat <<_LT_EOF 1>&2
  8827. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8828. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8829. *** is disabling shared libraries support. We urge you to upgrade GNU
  8830. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8831. *** your PATH or compiler configuration so that the native linker is
  8832. *** used, and then restart.
  8833. _LT_EOF
  8834. ;;
  8835. *)
  8836. # For security reasons, it is highly recommended that you always
  8837. # use absolute paths for naming shared libraries, and exclude the
  8838. # DT_RUNPATH tag from executables and libraries. But doing so
  8839. # requires that you compile everything twice, which is a pain.
  8840. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8841. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8842. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8843. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8844. else
  8845. ld_shlibs=no
  8846. fi
  8847. ;;
  8848. esac
  8849. ;;
  8850. sunos4*)
  8851. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8852. wlarc=
  8853. hardcode_direct=yes
  8854. hardcode_shlibpath_var=no
  8855. ;;
  8856. *)
  8857. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8858. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8859. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8860. else
  8861. ld_shlibs=no
  8862. fi
  8863. ;;
  8864. esac
  8865. if test no = "$ld_shlibs"; then
  8866. runpath_var=
  8867. hardcode_libdir_flag_spec=
  8868. export_dynamic_flag_spec=
  8869. whole_archive_flag_spec=
  8870. fi
  8871. else
  8872. # PORTME fill in a description of your system's linker (not GNU ld)
  8873. case $host_os in
  8874. aix3*)
  8875. allow_undefined_flag=unsupported
  8876. always_export_symbols=yes
  8877. 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'
  8878. # Note: this linker hardcodes the directories in LIBPATH if there
  8879. # are no directories specified by -L.
  8880. hardcode_minus_L=yes
  8881. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8882. # Neither direct hardcoding nor static linking is supported with a
  8883. # broken collect2.
  8884. hardcode_direct=unsupported
  8885. fi
  8886. ;;
  8887. aix[4-9]*)
  8888. if test ia64 = "$host_cpu"; then
  8889. # On IA64, the linker does run time linking by default, so we don't
  8890. # have to do anything special.
  8891. aix_use_runtimelinking=no
  8892. exp_sym_flag='-Bexport'
  8893. no_entry_flag=
  8894. else
  8895. # If we're using GNU nm, then we don't want the "-C" option.
  8896. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8897. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8898. # weak defined symbols like other global defined symbols, whereas
  8899. # GNU nm marks them as "W".
  8900. # While the 'weak' keyword is ignored in the Export File, we need
  8901. # it in the Import File for the 'aix-soname' feature, so we have
  8902. # to replace the "-B" option with "-P" for AIX nm.
  8903. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8904. 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'
  8905. else
  8906. 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'
  8907. fi
  8908. aix_use_runtimelinking=no
  8909. # Test if we are trying to use run time linking or normal
  8910. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8911. # have runtime linking enabled, and use it for executables.
  8912. # For shared libraries, we enable/disable runtime linking
  8913. # depending on the kind of the shared library created -
  8914. # when "with_aix_soname,aix_use_runtimelinking" is:
  8915. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8916. # "aix,yes" lib.so shared, rtl:yes, for executables
  8917. # lib.a static archive
  8918. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8919. # lib.a(lib.so.V) shared, rtl:no, for executables
  8920. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8921. # lib.a(lib.so.V) shared, rtl:no
  8922. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8923. # lib.a static archive
  8924. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8925. for ld_flag in $LDFLAGS; do
  8926. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8927. aix_use_runtimelinking=yes
  8928. break
  8929. fi
  8930. done
  8931. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8932. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8933. # so we don't have lib.a shared libs to link our executables.
  8934. # We have to force runtime linking in this case.
  8935. aix_use_runtimelinking=yes
  8936. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8937. fi
  8938. ;;
  8939. esac
  8940. exp_sym_flag='-bexport'
  8941. no_entry_flag='-bnoentry'
  8942. fi
  8943. # When large executables or shared objects are built, AIX ld can
  8944. # have problems creating the table of contents. If linking a library
  8945. # or program results in "error TOC overflow" add -mminimal-toc to
  8946. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8947. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8948. archive_cmds=''
  8949. hardcode_direct=yes
  8950. hardcode_direct_absolute=yes
  8951. hardcode_libdir_separator=':'
  8952. link_all_deplibs=yes
  8953. file_list_spec='$wl-f,'
  8954. case $with_aix_soname,$aix_use_runtimelinking in
  8955. aix,*) ;; # traditional, no import file
  8956. svr4,* | *,yes) # use import file
  8957. # The Import File defines what to hardcode.
  8958. hardcode_direct=no
  8959. hardcode_direct_absolute=no
  8960. ;;
  8961. esac
  8962. if test yes = "$GCC"; then
  8963. case $host_os in aix4.[012]|aix4.[012].*)
  8964. # We only want to do this on AIX 4.2 and lower, the check
  8965. # below for broken collect2 doesn't work under 4.3+
  8966. collect2name=`$CC -print-prog-name=collect2`
  8967. if test -f "$collect2name" &&
  8968. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8969. then
  8970. # We have reworked collect2
  8971. :
  8972. else
  8973. # We have old collect2
  8974. hardcode_direct=unsupported
  8975. # It fails to find uninstalled libraries when the uninstalled
  8976. # path is not listed in the libpath. Setting hardcode_minus_L
  8977. # to unsupported forces relinking
  8978. hardcode_minus_L=yes
  8979. hardcode_libdir_flag_spec='-L$libdir'
  8980. hardcode_libdir_separator=
  8981. fi
  8982. ;;
  8983. esac
  8984. shared_flag='-shared'
  8985. if test yes = "$aix_use_runtimelinking"; then
  8986. shared_flag="$shared_flag "'$wl-G'
  8987. fi
  8988. # Need to ensure runtime linking is disabled for the traditional
  8989. # shared library, or the linker may eventually find shared libraries
  8990. # /with/ Import File - we do not want to mix them.
  8991. shared_flag_aix='-shared'
  8992. shared_flag_svr4='-shared $wl-G'
  8993. else
  8994. # not using gcc
  8995. if test ia64 = "$host_cpu"; then
  8996. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8997. # chokes on -Wl,-G. The following line is correct:
  8998. shared_flag='-G'
  8999. else
  9000. if test yes = "$aix_use_runtimelinking"; then
  9001. shared_flag='$wl-G'
  9002. else
  9003. shared_flag='$wl-bM:SRE'
  9004. fi
  9005. shared_flag_aix='$wl-bM:SRE'
  9006. shared_flag_svr4='$wl-G'
  9007. fi
  9008. fi
  9009. export_dynamic_flag_spec='$wl-bexpall'
  9010. # It seems that -bexpall does not export symbols beginning with
  9011. # underscore (_), so it is better to generate a list of symbols to export.
  9012. always_export_symbols=yes
  9013. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9014. # Warning - without using the other runtime loading flags (-brtl),
  9015. # -berok will link without error, but may produce a broken library.
  9016. allow_undefined_flag='-berok'
  9017. # Determine the default libpath from the value encoded in an
  9018. # empty executable.
  9019. if test set = "${lt_cv_aix_libpath+set}"; then
  9020. aix_libpath=$lt_cv_aix_libpath
  9021. else
  9022. if test ${lt_cv_aix_libpath_+y}
  9023. then :
  9024. printf %s "(cached) " >&6
  9025. else $as_nop
  9026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9027. /* end confdefs.h. */
  9028. int
  9029. main (void)
  9030. {
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. if ac_fn_c_try_link "$LINENO"
  9036. then :
  9037. lt_aix_libpath_sed='
  9038. /Import File Strings/,/^$/ {
  9039. /^0/ {
  9040. s/^0 *\([^ ]*\) *$/\1/
  9041. p
  9042. }
  9043. }'
  9044. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9045. # Check for a 64-bit object if we didn't find anything.
  9046. if test -z "$lt_cv_aix_libpath_"; then
  9047. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9048. fi
  9049. fi
  9050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9051. conftest$ac_exeext conftest.$ac_ext
  9052. if test -z "$lt_cv_aix_libpath_"; then
  9053. lt_cv_aix_libpath_=/usr/lib:/lib
  9054. fi
  9055. fi
  9056. aix_libpath=$lt_cv_aix_libpath_
  9057. fi
  9058. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9059. 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
  9060. else
  9061. if test ia64 = "$host_cpu"; then
  9062. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9063. allow_undefined_flag="-z nodefs"
  9064. 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"
  9065. else
  9066. # Determine the default libpath from the value encoded in an
  9067. # empty executable.
  9068. if test set = "${lt_cv_aix_libpath+set}"; then
  9069. aix_libpath=$lt_cv_aix_libpath
  9070. else
  9071. if test ${lt_cv_aix_libpath_+y}
  9072. then :
  9073. printf %s "(cached) " >&6
  9074. else $as_nop
  9075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9076. /* end confdefs.h. */
  9077. int
  9078. main (void)
  9079. {
  9080. ;
  9081. return 0;
  9082. }
  9083. _ACEOF
  9084. if ac_fn_c_try_link "$LINENO"
  9085. then :
  9086. lt_aix_libpath_sed='
  9087. /Import File Strings/,/^$/ {
  9088. /^0/ {
  9089. s/^0 *\([^ ]*\) *$/\1/
  9090. p
  9091. }
  9092. }'
  9093. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9094. # Check for a 64-bit object if we didn't find anything.
  9095. if test -z "$lt_cv_aix_libpath_"; then
  9096. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9097. fi
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9100. conftest$ac_exeext conftest.$ac_ext
  9101. if test -z "$lt_cv_aix_libpath_"; then
  9102. lt_cv_aix_libpath_=/usr/lib:/lib
  9103. fi
  9104. fi
  9105. aix_libpath=$lt_cv_aix_libpath_
  9106. fi
  9107. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9108. # Warning - without using the other run time loading flags,
  9109. # -berok will link without error, but may produce a broken library.
  9110. no_undefined_flag=' $wl-bernotok'
  9111. allow_undefined_flag=' $wl-berok'
  9112. if test yes = "$with_gnu_ld"; then
  9113. # We only use this code for GNU lds that support --whole-archive.
  9114. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9115. else
  9116. # Exported symbols can be pulled into shared objects from archives
  9117. whole_archive_flag_spec='$convenience'
  9118. fi
  9119. archive_cmds_need_lc=yes
  9120. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9121. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9122. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9123. if test svr4 != "$with_aix_soname"; then
  9124. # This is similar to how AIX traditionally builds its shared libraries.
  9125. 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'
  9126. fi
  9127. if test aix != "$with_aix_soname"; then
  9128. 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'
  9129. else
  9130. # used by -dlpreopen to get the symbols
  9131. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9132. fi
  9133. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9134. fi
  9135. fi
  9136. ;;
  9137. amigaos*)
  9138. case $host_cpu in
  9139. powerpc)
  9140. # see comment about AmigaOS4 .so support
  9141. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9142. archive_expsym_cmds=''
  9143. ;;
  9144. m68k)
  9145. 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)'
  9146. hardcode_libdir_flag_spec='-L$libdir'
  9147. hardcode_minus_L=yes
  9148. ;;
  9149. esac
  9150. ;;
  9151. bsdi[45]*)
  9152. export_dynamic_flag_spec=-rdynamic
  9153. ;;
  9154. cygwin* | mingw* | pw32* | cegcc*)
  9155. # When not using gcc, we currently assume that we are using
  9156. # Microsoft Visual C++.
  9157. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9158. # no search path for DLLs.
  9159. case $cc_basename in
  9160. cl*)
  9161. # Native MSVC
  9162. hardcode_libdir_flag_spec=' '
  9163. allow_undefined_flag=unsupported
  9164. always_export_symbols=yes
  9165. file_list_spec='@'
  9166. # Tell ltmain to make .lib files, not .a files.
  9167. libext=lib
  9168. # Tell ltmain to make .dll files, not .so files.
  9169. shrext_cmds=.dll
  9170. # FIXME: Setting linknames here is a bad hack.
  9171. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9172. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9173. cp "$export_symbols" "$output_objdir/$soname.def";
  9174. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9175. else
  9176. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9177. fi~
  9178. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9179. linknames='
  9180. # The linker will not automatically build a static lib if we build a DLL.
  9181. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9182. enable_shared_with_static_runtimes=yes
  9183. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9184. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9185. # Don't use ranlib
  9186. old_postinstall_cmds='chmod 644 $oldlib'
  9187. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9188. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9189. case $lt_outputfile in
  9190. *.exe|*.EXE) ;;
  9191. *)
  9192. lt_outputfile=$lt_outputfile.exe
  9193. lt_tool_outputfile=$lt_tool_outputfile.exe
  9194. ;;
  9195. esac~
  9196. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9197. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9198. $RM "$lt_outputfile.manifest";
  9199. fi'
  9200. ;;
  9201. *)
  9202. # Assume MSVC wrapper
  9203. hardcode_libdir_flag_spec=' '
  9204. allow_undefined_flag=unsupported
  9205. # Tell ltmain to make .lib files, not .a files.
  9206. libext=lib
  9207. # Tell ltmain to make .dll files, not .so files.
  9208. shrext_cmds=.dll
  9209. # FIXME: Setting linknames here is a bad hack.
  9210. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9211. # The linker will automatically build a .lib file if we build a DLL.
  9212. old_archive_from_new_cmds='true'
  9213. # FIXME: Should let the user specify the lib program.
  9214. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9215. enable_shared_with_static_runtimes=yes
  9216. ;;
  9217. esac
  9218. ;;
  9219. darwin* | rhapsody*)
  9220. archive_cmds_need_lc=no
  9221. hardcode_direct=no
  9222. hardcode_automatic=yes
  9223. hardcode_shlibpath_var=unsupported
  9224. if test yes = "$lt_cv_ld_force_load"; then
  9225. 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\"`'
  9226. else
  9227. whole_archive_flag_spec=''
  9228. fi
  9229. link_all_deplibs=yes
  9230. allow_undefined_flag=$_lt_dar_allow_undefined
  9231. case $cc_basename in
  9232. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9233. *) _lt_dar_can_shared=$GCC ;;
  9234. esac
  9235. if test yes = "$_lt_dar_can_shared"; then
  9236. output_verbose_link_cmd=func_echo_all
  9237. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9238. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9239. 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"
  9240. 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"
  9241. else
  9242. ld_shlibs=no
  9243. fi
  9244. ;;
  9245. dgux*)
  9246. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9247. hardcode_libdir_flag_spec='-L$libdir'
  9248. hardcode_shlibpath_var=no
  9249. ;;
  9250. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9251. # support. Future versions do this automatically, but an explicit c++rt0.o
  9252. # does not break anything, and helps significantly (at the cost of a little
  9253. # extra space).
  9254. freebsd2.2*)
  9255. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9256. hardcode_libdir_flag_spec='-R$libdir'
  9257. hardcode_direct=yes
  9258. hardcode_shlibpath_var=no
  9259. ;;
  9260. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9261. freebsd2.*)
  9262. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9263. hardcode_direct=yes
  9264. hardcode_minus_L=yes
  9265. hardcode_shlibpath_var=no
  9266. ;;
  9267. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9268. freebsd* | dragonfly* | midnightbsd*)
  9269. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9270. hardcode_libdir_flag_spec='-R$libdir'
  9271. hardcode_direct=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. hpux9*)
  9275. if test yes = "$GCC"; then
  9276. 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'
  9277. else
  9278. 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'
  9279. fi
  9280. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9281. hardcode_libdir_separator=:
  9282. hardcode_direct=yes
  9283. # hardcode_minus_L: Not really in the search PATH,
  9284. # but as the default location of the library.
  9285. hardcode_minus_L=yes
  9286. export_dynamic_flag_spec='$wl-E'
  9287. ;;
  9288. hpux10*)
  9289. if test yes,no = "$GCC,$with_gnu_ld"; then
  9290. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9291. else
  9292. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9293. fi
  9294. if test no = "$with_gnu_ld"; then
  9295. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9296. hardcode_libdir_separator=:
  9297. hardcode_direct=yes
  9298. hardcode_direct_absolute=yes
  9299. export_dynamic_flag_spec='$wl-E'
  9300. # hardcode_minus_L: Not really in the search PATH,
  9301. # but as the default location of the library.
  9302. hardcode_minus_L=yes
  9303. fi
  9304. ;;
  9305. hpux11*)
  9306. if test yes,no = "$GCC,$with_gnu_ld"; then
  9307. case $host_cpu in
  9308. hppa*64*)
  9309. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9310. ;;
  9311. ia64*)
  9312. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9313. ;;
  9314. *)
  9315. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9316. ;;
  9317. esac
  9318. else
  9319. case $host_cpu in
  9320. hppa*64*)
  9321. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. ;;
  9323. ia64*)
  9324. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9325. ;;
  9326. *)
  9327. # Older versions of the 11.00 compiler do not understand -b yet
  9328. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9330. printf %s "checking if $CC understands -b... " >&6; }
  9331. if test ${lt_cv_prog_compiler__b+y}
  9332. then :
  9333. printf %s "(cached) " >&6
  9334. else $as_nop
  9335. lt_cv_prog_compiler__b=no
  9336. save_LDFLAGS=$LDFLAGS
  9337. LDFLAGS="$LDFLAGS -b"
  9338. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9339. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9340. # The linker can only warn and ignore the option if not recognized
  9341. # So say no if there are warnings
  9342. if test -s conftest.err; then
  9343. # Append any errors to the config.log.
  9344. cat conftest.err 1>&5
  9345. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9346. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9347. if diff conftest.exp conftest.er2 >/dev/null; then
  9348. lt_cv_prog_compiler__b=yes
  9349. fi
  9350. else
  9351. lt_cv_prog_compiler__b=yes
  9352. fi
  9353. fi
  9354. $RM -r conftest*
  9355. LDFLAGS=$save_LDFLAGS
  9356. fi
  9357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9358. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9359. if test yes = "$lt_cv_prog_compiler__b"; then
  9360. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9361. else
  9362. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9363. fi
  9364. ;;
  9365. esac
  9366. fi
  9367. if test no = "$with_gnu_ld"; then
  9368. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9369. hardcode_libdir_separator=:
  9370. case $host_cpu in
  9371. hppa*64*|ia64*)
  9372. hardcode_direct=no
  9373. hardcode_shlibpath_var=no
  9374. ;;
  9375. *)
  9376. hardcode_direct=yes
  9377. hardcode_direct_absolute=yes
  9378. export_dynamic_flag_spec='$wl-E'
  9379. # hardcode_minus_L: Not really in the search PATH,
  9380. # but as the default location of the library.
  9381. hardcode_minus_L=yes
  9382. ;;
  9383. esac
  9384. fi
  9385. ;;
  9386. irix5* | irix6* | nonstopux*)
  9387. if test yes = "$GCC"; then
  9388. 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'
  9389. # Try to use the -exported_symbol ld option, if it does not
  9390. # work, assume that -exports_file does not work either and
  9391. # implicitly export all symbols.
  9392. # This should be the same for all languages, so no per-tag cache variable.
  9393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9394. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9395. if test ${lt_cv_irix_exported_symbol+y}
  9396. then :
  9397. printf %s "(cached) " >&6
  9398. else $as_nop
  9399. save_LDFLAGS=$LDFLAGS
  9400. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9402. /* end confdefs.h. */
  9403. int foo (void) { return 0; }
  9404. _ACEOF
  9405. if ac_fn_c_try_link "$LINENO"
  9406. then :
  9407. lt_cv_irix_exported_symbol=yes
  9408. else $as_nop
  9409. lt_cv_irix_exported_symbol=no
  9410. fi
  9411. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9412. conftest$ac_exeext conftest.$ac_ext
  9413. LDFLAGS=$save_LDFLAGS
  9414. fi
  9415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9416. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9417. if test yes = "$lt_cv_irix_exported_symbol"; then
  9418. 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'
  9419. fi
  9420. else
  9421. 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'
  9422. 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'
  9423. fi
  9424. archive_cmds_need_lc='no'
  9425. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9426. hardcode_libdir_separator=:
  9427. inherit_rpath=yes
  9428. link_all_deplibs=yes
  9429. ;;
  9430. linux*)
  9431. case $cc_basename in
  9432. tcc*)
  9433. # Fabrice Bellard et al's Tiny C Compiler
  9434. ld_shlibs=yes
  9435. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9436. ;;
  9437. esac
  9438. ;;
  9439. netbsd*)
  9440. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9441. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9442. else
  9443. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9444. fi
  9445. hardcode_libdir_flag_spec='-R$libdir'
  9446. hardcode_direct=yes
  9447. hardcode_shlibpath_var=no
  9448. ;;
  9449. newsos6)
  9450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9451. hardcode_direct=yes
  9452. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9453. hardcode_libdir_separator=:
  9454. hardcode_shlibpath_var=no
  9455. ;;
  9456. *nto* | *qnx*)
  9457. ;;
  9458. openbsd* | bitrig*)
  9459. if test -f /usr/libexec/ld.so; then
  9460. hardcode_direct=yes
  9461. hardcode_shlibpath_var=no
  9462. hardcode_direct_absolute=yes
  9463. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9464. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9465. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9466. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9467. export_dynamic_flag_spec='$wl-E'
  9468. else
  9469. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9470. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9471. fi
  9472. else
  9473. ld_shlibs=no
  9474. fi
  9475. ;;
  9476. os2*)
  9477. hardcode_libdir_flag_spec='-L$libdir'
  9478. hardcode_minus_L=yes
  9479. allow_undefined_flag=unsupported
  9480. shrext_cmds=.dll
  9481. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9482. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9483. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9484. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9485. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9486. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9487. emximp -o $lib $output_objdir/$libname.def'
  9488. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9489. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9490. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9491. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9492. prefix_cmds="$SED"~
  9493. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9494. prefix_cmds="$prefix_cmds -e 1d";
  9495. fi~
  9496. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9497. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9498. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9499. emximp -o $lib $output_objdir/$libname.def'
  9500. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9501. enable_shared_with_static_runtimes=yes
  9502. file_list_spec='@'
  9503. ;;
  9504. osf3*)
  9505. if test yes = "$GCC"; then
  9506. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9507. 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'
  9508. else
  9509. allow_undefined_flag=' -expect_unresolved \*'
  9510. 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'
  9511. fi
  9512. archive_cmds_need_lc='no'
  9513. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9514. hardcode_libdir_separator=:
  9515. ;;
  9516. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9517. if test yes = "$GCC"; then
  9518. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9519. 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'
  9520. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9521. else
  9522. allow_undefined_flag=' -expect_unresolved \*'
  9523. 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'
  9524. 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~
  9525. $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'
  9526. # Both c and cxx compiler support -rpath directly
  9527. hardcode_libdir_flag_spec='-rpath $libdir'
  9528. fi
  9529. archive_cmds_need_lc='no'
  9530. hardcode_libdir_separator=:
  9531. ;;
  9532. solaris*)
  9533. no_undefined_flag=' -z defs'
  9534. if test yes = "$GCC"; then
  9535. wlarc='$wl'
  9536. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9537. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9538. $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'
  9539. else
  9540. case `$CC -V 2>&1` in
  9541. *"Compilers 5.0"*)
  9542. wlarc=''
  9543. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9544. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9545. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9546. ;;
  9547. *)
  9548. wlarc='$wl'
  9549. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9550. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9551. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9552. ;;
  9553. esac
  9554. fi
  9555. hardcode_libdir_flag_spec='-R$libdir'
  9556. hardcode_shlibpath_var=no
  9557. case $host_os in
  9558. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9559. *)
  9560. # The compiler driver will combine and reorder linker options,
  9561. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9562. # but is careful enough not to reorder.
  9563. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9564. if test yes = "$GCC"; then
  9565. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9566. else
  9567. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9568. fi
  9569. ;;
  9570. esac
  9571. link_all_deplibs=yes
  9572. ;;
  9573. sunos4*)
  9574. if test sequent = "$host_vendor"; then
  9575. # Use $CC to link under sequent, because it throws in some extra .o
  9576. # files that make .init and .fini sections work.
  9577. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9578. else
  9579. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9580. fi
  9581. hardcode_libdir_flag_spec='-L$libdir'
  9582. hardcode_direct=yes
  9583. hardcode_minus_L=yes
  9584. hardcode_shlibpath_var=no
  9585. ;;
  9586. sysv4)
  9587. case $host_vendor in
  9588. sni)
  9589. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9590. hardcode_direct=yes # is this really true???
  9591. ;;
  9592. siemens)
  9593. ## LD is ld it makes a PLAMLIB
  9594. ## CC just makes a GrossModule.
  9595. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9596. reload_cmds='$CC -r -o $output$reload_objs'
  9597. hardcode_direct=no
  9598. ;;
  9599. motorola)
  9600. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9601. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9602. ;;
  9603. esac
  9604. runpath_var='LD_RUN_PATH'
  9605. hardcode_shlibpath_var=no
  9606. ;;
  9607. sysv4.3*)
  9608. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9609. hardcode_shlibpath_var=no
  9610. export_dynamic_flag_spec='-Bexport'
  9611. ;;
  9612. sysv4*MP*)
  9613. if test -d /usr/nec; then
  9614. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9615. hardcode_shlibpath_var=no
  9616. runpath_var=LD_RUN_PATH
  9617. hardcode_runpath_var=yes
  9618. ld_shlibs=yes
  9619. fi
  9620. ;;
  9621. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9622. no_undefined_flag='$wl-z,text'
  9623. archive_cmds_need_lc=no
  9624. hardcode_shlibpath_var=no
  9625. runpath_var='LD_RUN_PATH'
  9626. if test yes = "$GCC"; then
  9627. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9628. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9629. else
  9630. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9631. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9632. fi
  9633. ;;
  9634. sysv5* | sco3.2v5* | sco5v6*)
  9635. # Note: We CANNOT use -z defs as we might desire, because we do not
  9636. # link with -lc, and that would cause any symbols used from libc to
  9637. # always be unresolved, which means just about no library would
  9638. # ever link correctly. If we're not using GNU ld we use -z text
  9639. # though, which does catch some bad symbols but isn't as heavy-handed
  9640. # as -z defs.
  9641. no_undefined_flag='$wl-z,text'
  9642. allow_undefined_flag='$wl-z,nodefs'
  9643. archive_cmds_need_lc=no
  9644. hardcode_shlibpath_var=no
  9645. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9646. hardcode_libdir_separator=':'
  9647. link_all_deplibs=yes
  9648. export_dynamic_flag_spec='$wl-Bexport'
  9649. runpath_var='LD_RUN_PATH'
  9650. if test yes = "$GCC"; then
  9651. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9652. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9653. else
  9654. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9655. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9656. fi
  9657. ;;
  9658. uts4*)
  9659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9660. hardcode_libdir_flag_spec='-L$libdir'
  9661. hardcode_shlibpath_var=no
  9662. ;;
  9663. *)
  9664. ld_shlibs=no
  9665. ;;
  9666. esac
  9667. if test sni = "$host_vendor"; then
  9668. case $host in
  9669. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9670. export_dynamic_flag_spec='$wl-Blargedynsym'
  9671. ;;
  9672. esac
  9673. fi
  9674. fi
  9675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9676. printf "%s\n" "$ld_shlibs" >&6; }
  9677. test no = "$ld_shlibs" && can_build_shared=no
  9678. with_gnu_ld=$with_gnu_ld
  9679. #
  9680. # Do we need to explicitly link libc?
  9681. #
  9682. case "x$archive_cmds_need_lc" in
  9683. x|xyes)
  9684. # Assume -lc should be added
  9685. archive_cmds_need_lc=yes
  9686. if test yes,yes = "$GCC,$enable_shared"; then
  9687. case $archive_cmds in
  9688. *'~'*)
  9689. # FIXME: we may have to deal with multi-command sequences.
  9690. ;;
  9691. '$CC '*)
  9692. # Test whether the compiler implicitly links with -lc since on some
  9693. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9694. # to ld, don't add -lc before -lgcc.
  9695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9696. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9697. if test ${lt_cv_archive_cmds_need_lc+y}
  9698. then :
  9699. printf %s "(cached) " >&6
  9700. else $as_nop
  9701. $RM conftest*
  9702. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9703. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9704. (eval $ac_compile) 2>&5
  9705. ac_status=$?
  9706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9707. test $ac_status = 0; } 2>conftest.err; then
  9708. soname=conftest
  9709. lib=conftest
  9710. libobjs=conftest.$ac_objext
  9711. deplibs=
  9712. wl=$lt_prog_compiler_wl
  9713. pic_flag=$lt_prog_compiler_pic
  9714. compiler_flags=-v
  9715. linker_flags=-v
  9716. verstring=
  9717. output_objdir=.
  9718. libname=conftest
  9719. lt_save_allow_undefined_flag=$allow_undefined_flag
  9720. allow_undefined_flag=
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9722. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9723. ac_status=$?
  9724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; }
  9726. then
  9727. lt_cv_archive_cmds_need_lc=no
  9728. else
  9729. lt_cv_archive_cmds_need_lc=yes
  9730. fi
  9731. allow_undefined_flag=$lt_save_allow_undefined_flag
  9732. else
  9733. cat conftest.err 1>&5
  9734. fi
  9735. $RM conftest*
  9736. fi
  9737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9738. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9739. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9740. ;;
  9741. esac
  9742. fi
  9743. ;;
  9744. esac
  9745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9746. printf %s "checking dynamic linker characteristics... " >&6; }
  9747. if test yes = "$GCC"; then
  9748. case $host_os in
  9749. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9750. *) lt_awk_arg='/^libraries:/' ;;
  9751. esac
  9752. case $host_os in
  9753. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9754. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9755. esac
  9756. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9757. case $lt_search_path_spec in
  9758. *\;*)
  9759. # if the path contains ";" then we assume it to be the separator
  9760. # otherwise default to the standard path separator (i.e. ":") - it is
  9761. # assumed that no part of a normal pathname contains ";" but that should
  9762. # okay in the real world where ";" in dirpaths is itself problematic.
  9763. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9764. ;;
  9765. *)
  9766. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9767. ;;
  9768. esac
  9769. # Ok, now we have the path, separated by spaces, we can step through it
  9770. # and add multilib dir if necessary...
  9771. lt_tmp_lt_search_path_spec=
  9772. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9773. # ...but if some path component already ends with the multilib dir we assume
  9774. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9775. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9776. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9777. lt_multi_os_dir=
  9778. ;;
  9779. esac
  9780. for lt_sys_path in $lt_search_path_spec; do
  9781. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9782. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9783. elif test -n "$lt_multi_os_dir"; then
  9784. test -d "$lt_sys_path" && \
  9785. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9786. fi
  9787. done
  9788. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9789. BEGIN {RS = " "; FS = "/|\n";} {
  9790. lt_foo = "";
  9791. lt_count = 0;
  9792. for (lt_i = NF; lt_i > 0; lt_i--) {
  9793. if ($lt_i != "" && $lt_i != ".") {
  9794. if ($lt_i == "..") {
  9795. lt_count++;
  9796. } else {
  9797. if (lt_count == 0) {
  9798. lt_foo = "/" $lt_i lt_foo;
  9799. } else {
  9800. lt_count--;
  9801. }
  9802. }
  9803. }
  9804. }
  9805. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9806. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9807. }'`
  9808. # AWK program above erroneously prepends '/' to C:/dos/paths
  9809. # for these hosts.
  9810. case $host_os in
  9811. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9812. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9813. esac
  9814. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9815. else
  9816. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9817. fi
  9818. library_names_spec=
  9819. libname_spec='lib$name'
  9820. soname_spec=
  9821. shrext_cmds=.so
  9822. postinstall_cmds=
  9823. postuninstall_cmds=
  9824. finish_cmds=
  9825. finish_eval=
  9826. shlibpath_var=
  9827. shlibpath_overrides_runpath=unknown
  9828. version_type=none
  9829. dynamic_linker="$host_os ld.so"
  9830. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9831. need_lib_prefix=unknown
  9832. hardcode_into_libs=no
  9833. # when you set need_version to no, make sure it does not cause -set_version
  9834. # flags to be left without arguments
  9835. need_version=unknown
  9836. case $host_os in
  9837. aix3*)
  9838. version_type=linux # correct to gnu/linux during the next big refactor
  9839. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9840. shlibpath_var=LIBPATH
  9841. # AIX 3 has no versioning support, so we append a major version to the name.
  9842. soname_spec='$libname$release$shared_ext$major'
  9843. ;;
  9844. aix[4-9]*)
  9845. version_type=linux # correct to gnu/linux during the next big refactor
  9846. need_lib_prefix=no
  9847. need_version=no
  9848. hardcode_into_libs=yes
  9849. if test ia64 = "$host_cpu"; then
  9850. # AIX 5 supports IA64
  9851. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9852. shlibpath_var=LD_LIBRARY_PATH
  9853. else
  9854. # With GCC up to 2.95.x, collect2 would create an import file
  9855. # for dependence libraries. The import file would start with
  9856. # the line '#! .'. This would cause the generated library to
  9857. # depend on '.', always an invalid library. This was fixed in
  9858. # development snapshots of GCC prior to 3.0.
  9859. case $host_os in
  9860. aix4 | aix4.[01] | aix4.[01].*)
  9861. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9862. echo ' yes '
  9863. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9864. :
  9865. else
  9866. can_build_shared=no
  9867. fi
  9868. ;;
  9869. esac
  9870. # Using Import Files as archive members, it is possible to support
  9871. # filename-based versioning of shared library archives on AIX. While
  9872. # this would work for both with and without runtime linking, it will
  9873. # prevent static linking of such archives. So we do filename-based
  9874. # shared library versioning with .so extension only, which is used
  9875. # when both runtime linking and shared linking is enabled.
  9876. # Unfortunately, runtime linking may impact performance, so we do
  9877. # not want this to be the default eventually. Also, we use the
  9878. # versioned .so libs for executables only if there is the -brtl
  9879. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9880. # To allow for filename-based versioning support, we need to create
  9881. # libNAME.so.V as an archive file, containing:
  9882. # *) an Import File, referring to the versioned filename of the
  9883. # archive as well as the shared archive member, telling the
  9884. # bitwidth (32 or 64) of that shared object, and providing the
  9885. # list of exported symbols of that shared object, eventually
  9886. # decorated with the 'weak' keyword
  9887. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9888. # it being seen by the linker.
  9889. # At run time we better use the real file rather than another symlink,
  9890. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9891. case $with_aix_soname,$aix_use_runtimelinking in
  9892. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9893. # soname into executable. Probably we can add versioning support to
  9894. # collect2, so additional links can be useful in future.
  9895. aix,yes) # traditional libtool
  9896. dynamic_linker='AIX unversionable lib.so'
  9897. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9898. # instead of lib<name>.a to let people know that these are not
  9899. # typical AIX shared libraries.
  9900. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9901. ;;
  9902. aix,no) # traditional AIX only
  9903. dynamic_linker='AIX lib.a(lib.so.V)'
  9904. # We preserve .a as extension for shared libraries through AIX4.2
  9905. # and later when we are not doing run time linking.
  9906. library_names_spec='$libname$release.a $libname.a'
  9907. soname_spec='$libname$release$shared_ext$major'
  9908. ;;
  9909. svr4,*) # full svr4 only
  9910. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9911. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9912. # We do not specify a path in Import Files, so LIBPATH fires.
  9913. shlibpath_overrides_runpath=yes
  9914. ;;
  9915. *,yes) # both, prefer svr4
  9916. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9917. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9918. # unpreferred sharedlib libNAME.a needs extra handling
  9919. 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"'
  9920. 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"'
  9921. # We do not specify a path in Import Files, so LIBPATH fires.
  9922. shlibpath_overrides_runpath=yes
  9923. ;;
  9924. *,no) # both, prefer aix
  9925. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9926. library_names_spec='$libname$release.a $libname.a'
  9927. soname_spec='$libname$release$shared_ext$major'
  9928. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9929. 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)'
  9930. 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"'
  9931. ;;
  9932. esac
  9933. shlibpath_var=LIBPATH
  9934. fi
  9935. ;;
  9936. amigaos*)
  9937. case $host_cpu in
  9938. powerpc)
  9939. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9940. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9941. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9942. ;;
  9943. m68k)
  9944. library_names_spec='$libname.ixlibrary $libname.a'
  9945. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9946. 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'
  9947. ;;
  9948. esac
  9949. ;;
  9950. beos*)
  9951. library_names_spec='$libname$shared_ext'
  9952. dynamic_linker="$host_os ld.so"
  9953. shlibpath_var=LIBRARY_PATH
  9954. ;;
  9955. bsdi[45]*)
  9956. version_type=linux # correct to gnu/linux during the next big refactor
  9957. need_version=no
  9958. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9959. soname_spec='$libname$release$shared_ext$major'
  9960. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9961. shlibpath_var=LD_LIBRARY_PATH
  9962. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9963. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9964. # the default ld.so.conf also contains /usr/contrib/lib and
  9965. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9966. # libtool to hard-code these into programs
  9967. ;;
  9968. cygwin* | mingw* | pw32* | cegcc*)
  9969. version_type=windows
  9970. shrext_cmds=.dll
  9971. need_version=no
  9972. need_lib_prefix=no
  9973. case $GCC,$cc_basename in
  9974. yes,*)
  9975. # gcc
  9976. library_names_spec='$libname.dll.a'
  9977. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9978. postinstall_cmds='base_file=`basename \$file`~
  9979. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9980. dldir=$destdir/`dirname \$dlpath`~
  9981. test -d \$dldir || mkdir -p \$dldir~
  9982. $install_prog $dir/$dlname \$dldir/$dlname~
  9983. chmod a+x \$dldir/$dlname~
  9984. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9985. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9986. fi'
  9987. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9988. dlpath=$dir/\$dldll~
  9989. $RM \$dlpath'
  9990. shlibpath_overrides_runpath=yes
  9991. case $host_os in
  9992. cygwin*)
  9993. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9994. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9995. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9996. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9997. ;;
  9998. mingw* | cegcc*)
  9999. # MinGW DLLs use traditional 'lib' prefix
  10000. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10001. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10002. ;;
  10003. pw32*)
  10004. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10005. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10006. ;;
  10007. esac
  10008. dynamic_linker='Win32 ld.exe'
  10009. ;;
  10010. *,cl*)
  10011. # Native MSVC
  10012. libname_spec='$name'
  10013. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10014. library_names_spec='$libname.dll.lib'
  10015. case $build_os in
  10016. mingw*)
  10017. sys_lib_search_path_spec=
  10018. lt_save_ifs=$IFS
  10019. IFS=';'
  10020. for lt_path in $LIB
  10021. do
  10022. IFS=$lt_save_ifs
  10023. # Let DOS variable expansion print the short 8.3 style file name.
  10024. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10025. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10026. done
  10027. IFS=$lt_save_ifs
  10028. # Convert to MSYS style.
  10029. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10030. ;;
  10031. cygwin*)
  10032. # Convert to unix form, then to dos form, then back to unix form
  10033. # but this time dos style (no spaces!) so that the unix form looks
  10034. # like /cygdrive/c/PROGRA~1:/cygdr...
  10035. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10036. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10037. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10038. ;;
  10039. *)
  10040. sys_lib_search_path_spec=$LIB
  10041. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10042. # It is most probably a Windows format PATH.
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10044. else
  10045. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10046. fi
  10047. # FIXME: find the short name or the path components, as spaces are
  10048. # common. (e.g. "Program Files" -> "PROGRA~1")
  10049. ;;
  10050. esac
  10051. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10052. postinstall_cmds='base_file=`basename \$file`~
  10053. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10054. dldir=$destdir/`dirname \$dlpath`~
  10055. test -d \$dldir || mkdir -p \$dldir~
  10056. $install_prog $dir/$dlname \$dldir/$dlname'
  10057. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10058. dlpath=$dir/\$dldll~
  10059. $RM \$dlpath'
  10060. shlibpath_overrides_runpath=yes
  10061. dynamic_linker='Win32 link.exe'
  10062. ;;
  10063. *)
  10064. # Assume MSVC wrapper
  10065. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10066. dynamic_linker='Win32 ld.exe'
  10067. ;;
  10068. esac
  10069. # FIXME: first we should search . and the directory the executable is in
  10070. shlibpath_var=PATH
  10071. ;;
  10072. darwin* | rhapsody*)
  10073. dynamic_linker="$host_os dyld"
  10074. version_type=darwin
  10075. need_lib_prefix=no
  10076. need_version=no
  10077. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10078. soname_spec='$libname$release$major$shared_ext'
  10079. shlibpath_overrides_runpath=yes
  10080. shlibpath_var=DYLD_LIBRARY_PATH
  10081. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10082. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10083. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10084. ;;
  10085. dgux*)
  10086. version_type=linux # correct to gnu/linux during the next big refactor
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10090. soname_spec='$libname$release$shared_ext$major'
  10091. shlibpath_var=LD_LIBRARY_PATH
  10092. ;;
  10093. freebsd* | dragonfly* | midnightbsd*)
  10094. # DragonFly does not have aout. When/if they implement a new
  10095. # versioning mechanism, adjust this.
  10096. if test -x /usr/bin/objformat; then
  10097. objformat=`/usr/bin/objformat`
  10098. else
  10099. case $host_os in
  10100. freebsd[23].*) objformat=aout ;;
  10101. *) objformat=elf ;;
  10102. esac
  10103. fi
  10104. version_type=freebsd-$objformat
  10105. case $version_type in
  10106. freebsd-elf*)
  10107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10108. soname_spec='$libname$release$shared_ext$major'
  10109. need_version=no
  10110. need_lib_prefix=no
  10111. ;;
  10112. freebsd-*)
  10113. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10114. need_version=yes
  10115. ;;
  10116. esac
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. case $host_os in
  10119. freebsd2.*)
  10120. shlibpath_overrides_runpath=yes
  10121. ;;
  10122. freebsd3.[01]* | freebsdelf3.[01]*)
  10123. shlibpath_overrides_runpath=yes
  10124. hardcode_into_libs=yes
  10125. ;;
  10126. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10127. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10128. shlibpath_overrides_runpath=no
  10129. hardcode_into_libs=yes
  10130. ;;
  10131. *) # from 4.6 on, and DragonFly
  10132. shlibpath_overrides_runpath=yes
  10133. hardcode_into_libs=yes
  10134. ;;
  10135. esac
  10136. ;;
  10137. haiku*)
  10138. version_type=linux # correct to gnu/linux during the next big refactor
  10139. need_lib_prefix=no
  10140. need_version=no
  10141. dynamic_linker="$host_os runtime_loader"
  10142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10143. soname_spec='$libname$release$shared_ext$major'
  10144. shlibpath_var=LIBRARY_PATH
  10145. shlibpath_overrides_runpath=no
  10146. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. hpux9* | hpux10* | hpux11*)
  10150. # Give a soname corresponding to the major version so that dld.sl refuses to
  10151. # link against other versions.
  10152. version_type=sunos
  10153. need_lib_prefix=no
  10154. need_version=no
  10155. case $host_cpu in
  10156. ia64*)
  10157. shrext_cmds='.so'
  10158. hardcode_into_libs=yes
  10159. dynamic_linker="$host_os dld.so"
  10160. shlibpath_var=LD_LIBRARY_PATH
  10161. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10162. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10163. soname_spec='$libname$release$shared_ext$major'
  10164. if test 32 = "$HPUX_IA64_MODE"; then
  10165. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10166. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10167. else
  10168. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10169. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10170. fi
  10171. ;;
  10172. hppa*64*)
  10173. shrext_cmds='.sl'
  10174. hardcode_into_libs=yes
  10175. dynamic_linker="$host_os dld.sl"
  10176. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10177. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10178. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10179. soname_spec='$libname$release$shared_ext$major'
  10180. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10181. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10182. ;;
  10183. *)
  10184. shrext_cmds='.sl'
  10185. dynamic_linker="$host_os dld.sl"
  10186. shlibpath_var=SHLIB_PATH
  10187. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10188. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10189. soname_spec='$libname$release$shared_ext$major'
  10190. ;;
  10191. esac
  10192. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10193. postinstall_cmds='chmod 555 $lib'
  10194. # or fails outright, so override atomically:
  10195. install_override_mode=555
  10196. ;;
  10197. interix[3-9]*)
  10198. version_type=linux # correct to gnu/linux during the next big refactor
  10199. need_lib_prefix=no
  10200. need_version=no
  10201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10202. soname_spec='$libname$release$shared_ext$major'
  10203. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10204. shlibpath_var=LD_LIBRARY_PATH
  10205. shlibpath_overrides_runpath=no
  10206. hardcode_into_libs=yes
  10207. ;;
  10208. irix5* | irix6* | nonstopux*)
  10209. case $host_os in
  10210. nonstopux*) version_type=nonstopux ;;
  10211. *)
  10212. if test yes = "$lt_cv_prog_gnu_ld"; then
  10213. version_type=linux # correct to gnu/linux during the next big refactor
  10214. else
  10215. version_type=irix
  10216. fi ;;
  10217. esac
  10218. need_lib_prefix=no
  10219. need_version=no
  10220. soname_spec='$libname$release$shared_ext$major'
  10221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10222. case $host_os in
  10223. irix5* | nonstopux*)
  10224. libsuff= shlibsuff=
  10225. ;;
  10226. *)
  10227. case $LD in # libtool.m4 will add one of these switches to LD
  10228. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10229. libsuff= shlibsuff= libmagic=32-bit;;
  10230. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10231. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10232. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10233. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10234. *) libsuff= shlibsuff= libmagic=never-match;;
  10235. esac
  10236. ;;
  10237. esac
  10238. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10239. shlibpath_overrides_runpath=no
  10240. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10241. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10242. hardcode_into_libs=yes
  10243. ;;
  10244. # No shared lib support for Linux oldld, aout, or coff.
  10245. linux*oldld* | linux*aout* | linux*coff*)
  10246. dynamic_linker=no
  10247. ;;
  10248. linux*android*)
  10249. version_type=none # Android doesn't support versioned libraries.
  10250. need_lib_prefix=no
  10251. need_version=no
  10252. library_names_spec='$libname$release$shared_ext'
  10253. soname_spec='$libname$release$shared_ext'
  10254. finish_cmds=
  10255. shlibpath_var=LD_LIBRARY_PATH
  10256. shlibpath_overrides_runpath=yes
  10257. # This implies no fast_install, which is unacceptable.
  10258. # Some rework will be needed to allow for fast_install
  10259. # before this can be enabled.
  10260. hardcode_into_libs=yes
  10261. dynamic_linker='Android linker'
  10262. # Don't embed -rpath directories since the linker doesn't support them.
  10263. hardcode_libdir_flag_spec='-L$libdir'
  10264. ;;
  10265. # This must be glibc/ELF.
  10266. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10267. version_type=linux # correct to gnu/linux during the next big refactor
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10271. soname_spec='$libname$release$shared_ext$major'
  10272. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10273. shlibpath_var=LD_LIBRARY_PATH
  10274. shlibpath_overrides_runpath=no
  10275. # Some binutils ld are patched to set DT_RUNPATH
  10276. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10277. then :
  10278. printf %s "(cached) " >&6
  10279. else $as_nop
  10280. lt_cv_shlibpath_overrides_runpath=no
  10281. save_LDFLAGS=$LDFLAGS
  10282. save_libdir=$libdir
  10283. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10284. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10286. /* end confdefs.h. */
  10287. int
  10288. main (void)
  10289. {
  10290. ;
  10291. return 0;
  10292. }
  10293. _ACEOF
  10294. if ac_fn_c_try_link "$LINENO"
  10295. then :
  10296. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10297. then :
  10298. lt_cv_shlibpath_overrides_runpath=yes
  10299. fi
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10302. conftest$ac_exeext conftest.$ac_ext
  10303. LDFLAGS=$save_LDFLAGS
  10304. libdir=$save_libdir
  10305. fi
  10306. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10307. # This implies no fast_install, which is unacceptable.
  10308. # Some rework will be needed to allow for fast_install
  10309. # before this can be enabled.
  10310. hardcode_into_libs=yes
  10311. # Add ABI-specific directories to the system library path.
  10312. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10313. # Ideally, we could use ldconfig to report *all* directores which are
  10314. # searched for libraries, however this is still not possible. Aside from not
  10315. # being certain /sbin/ldconfig is available, command
  10316. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10317. # even though it is searched at run-time. Try to do the best guess by
  10318. # appending ld.so.conf contents (and includes) to the search path.
  10319. if test -f /etc/ld.so.conf; then
  10320. 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' ' '`
  10321. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10322. fi
  10323. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10324. # powerpc, because MkLinux only supported shared libraries with the
  10325. # GNU dynamic linker. Since this was broken with cross compilers,
  10326. # most powerpc-linux boxes support dynamic linking these days and
  10327. # people can always --disable-shared, the test was removed, and we
  10328. # assume the GNU/Linux dynamic linker is in use.
  10329. dynamic_linker='GNU/Linux ld.so'
  10330. ;;
  10331. netbsd*)
  10332. version_type=sunos
  10333. need_lib_prefix=no
  10334. need_version=no
  10335. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10336. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10337. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10338. dynamic_linker='NetBSD (a.out) ld.so'
  10339. else
  10340. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10341. soname_spec='$libname$release$shared_ext$major'
  10342. dynamic_linker='NetBSD ld.elf_so'
  10343. fi
  10344. shlibpath_var=LD_LIBRARY_PATH
  10345. shlibpath_overrides_runpath=yes
  10346. hardcode_into_libs=yes
  10347. ;;
  10348. newsos6)
  10349. version_type=linux # correct to gnu/linux during the next big refactor
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10351. shlibpath_var=LD_LIBRARY_PATH
  10352. shlibpath_overrides_runpath=yes
  10353. ;;
  10354. *nto* | *qnx*)
  10355. version_type=qnx
  10356. need_lib_prefix=no
  10357. need_version=no
  10358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10359. soname_spec='$libname$release$shared_ext$major'
  10360. shlibpath_var=LD_LIBRARY_PATH
  10361. shlibpath_overrides_runpath=no
  10362. hardcode_into_libs=yes
  10363. dynamic_linker='ldqnx.so'
  10364. ;;
  10365. openbsd* | bitrig*)
  10366. version_type=sunos
  10367. sys_lib_dlsearch_path_spec=/usr/lib
  10368. need_lib_prefix=no
  10369. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10370. need_version=no
  10371. else
  10372. need_version=yes
  10373. fi
  10374. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10375. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10376. shlibpath_var=LD_LIBRARY_PATH
  10377. shlibpath_overrides_runpath=yes
  10378. ;;
  10379. os2*)
  10380. libname_spec='$name'
  10381. shrext_cmds=.dll
  10382. need_lib_prefix=no
  10383. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10384. # SDL customization: removed versioning support.
  10385. # version_type=windows
  10386. # need_version=no
  10387. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10388. # v=$($ECHO $release$versuffix | tr -d .-);
  10389. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10390. # $ECHO $n$v`$shared_ext'
  10391. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10392. library_names_spec='${libname}_dll.$libext'
  10393. dynamic_linker='OS/2 ld.exe'
  10394. shlibpath_var=BEGINLIBPATH
  10395. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10396. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10397. postinstall_cmds='base_file=`basename \$file`~
  10398. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10399. dldir=$destdir/`dirname \$dlpath`~
  10400. test -d \$dldir || mkdir -p \$dldir~
  10401. $install_prog $dir/$dlname \$dldir/$dlname~
  10402. chmod a+x \$dldir/$dlname~
  10403. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10404. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10405. fi'
  10406. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10407. dlpath=$dir/\$dldll~
  10408. $RM \$dlpath'
  10409. ;;
  10410. osf3* | osf4* | osf5*)
  10411. version_type=osf
  10412. need_lib_prefix=no
  10413. need_version=no
  10414. soname_spec='$libname$release$shared_ext$major'
  10415. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10416. shlibpath_var=LD_LIBRARY_PATH
  10417. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10418. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10419. ;;
  10420. rdos*)
  10421. dynamic_linker=no
  10422. ;;
  10423. solaris*)
  10424. version_type=linux # correct to gnu/linux during the next big refactor
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. shlibpath_var=LD_LIBRARY_PATH
  10430. shlibpath_overrides_runpath=yes
  10431. hardcode_into_libs=yes
  10432. # ldd complains unless libraries are executable
  10433. postinstall_cmds='chmod +x $lib'
  10434. ;;
  10435. sunos4*)
  10436. version_type=sunos
  10437. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10438. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10439. shlibpath_var=LD_LIBRARY_PATH
  10440. shlibpath_overrides_runpath=yes
  10441. if test yes = "$with_gnu_ld"; then
  10442. need_lib_prefix=no
  10443. fi
  10444. need_version=yes
  10445. ;;
  10446. sysv4 | sysv4.3*)
  10447. version_type=linux # correct to gnu/linux during the next big refactor
  10448. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10449. soname_spec='$libname$release$shared_ext$major'
  10450. shlibpath_var=LD_LIBRARY_PATH
  10451. case $host_vendor in
  10452. sni)
  10453. shlibpath_overrides_runpath=no
  10454. need_lib_prefix=no
  10455. runpath_var=LD_RUN_PATH
  10456. ;;
  10457. siemens)
  10458. need_lib_prefix=no
  10459. ;;
  10460. motorola)
  10461. need_lib_prefix=no
  10462. need_version=no
  10463. shlibpath_overrides_runpath=no
  10464. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10465. ;;
  10466. esac
  10467. ;;
  10468. sysv4*MP*)
  10469. if test -d /usr/nec; then
  10470. version_type=linux # correct to gnu/linux during the next big refactor
  10471. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10472. soname_spec='$libname$shared_ext.$major'
  10473. shlibpath_var=LD_LIBRARY_PATH
  10474. fi
  10475. ;;
  10476. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10477. version_type=sco
  10478. need_lib_prefix=no
  10479. need_version=no
  10480. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10481. soname_spec='$libname$release$shared_ext$major'
  10482. shlibpath_var=LD_LIBRARY_PATH
  10483. shlibpath_overrides_runpath=yes
  10484. hardcode_into_libs=yes
  10485. if test yes = "$with_gnu_ld"; then
  10486. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10487. else
  10488. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10489. case $host_os in
  10490. sco3.2v5*)
  10491. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10492. ;;
  10493. esac
  10494. fi
  10495. sys_lib_dlsearch_path_spec='/usr/lib'
  10496. ;;
  10497. tpf*)
  10498. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10499. version_type=linux # correct to gnu/linux during the next big refactor
  10500. need_lib_prefix=no
  10501. need_version=no
  10502. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10503. shlibpath_var=LD_LIBRARY_PATH
  10504. shlibpath_overrides_runpath=no
  10505. hardcode_into_libs=yes
  10506. ;;
  10507. uts4*)
  10508. version_type=linux # correct to gnu/linux during the next big refactor
  10509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10510. soname_spec='$libname$release$shared_ext$major'
  10511. shlibpath_var=LD_LIBRARY_PATH
  10512. ;;
  10513. *)
  10514. dynamic_linker=no
  10515. ;;
  10516. esac
  10517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10518. printf "%s\n" "$dynamic_linker" >&6; }
  10519. test no = "$dynamic_linker" && can_build_shared=no
  10520. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10521. if test yes = "$GCC"; then
  10522. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10523. fi
  10524. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10525. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10526. fi
  10527. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10528. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10529. fi
  10530. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10531. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10532. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10533. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10534. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10535. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10537. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10538. hardcode_action=
  10539. if test -n "$hardcode_libdir_flag_spec" ||
  10540. test -n "$runpath_var" ||
  10541. test yes = "$hardcode_automatic"; then
  10542. # We can hardcode non-existent directories.
  10543. if test no != "$hardcode_direct" &&
  10544. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10545. # have to relink, otherwise we might link with an installed library
  10546. # when we should be linking with a yet-to-be-installed one
  10547. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10548. test no != "$hardcode_minus_L"; then
  10549. # Linking always hardcodes the temporary library directory.
  10550. hardcode_action=relink
  10551. else
  10552. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10553. hardcode_action=immediate
  10554. fi
  10555. else
  10556. # We cannot hardcode anything, or else we can only hardcode existing
  10557. # directories.
  10558. hardcode_action=unsupported
  10559. fi
  10560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10561. printf "%s\n" "$hardcode_action" >&6; }
  10562. if test relink = "$hardcode_action" ||
  10563. test yes = "$inherit_rpath"; then
  10564. # Fast installation is not supported
  10565. enable_fast_install=no
  10566. elif test yes = "$shlibpath_overrides_runpath" ||
  10567. test no = "$enable_shared"; then
  10568. # Fast installation is not necessary
  10569. enable_fast_install=needless
  10570. fi
  10571. if test yes != "$enable_dlopen"; then
  10572. enable_dlopen=unknown
  10573. enable_dlopen_self=unknown
  10574. enable_dlopen_self_static=unknown
  10575. else
  10576. lt_cv_dlopen=no
  10577. lt_cv_dlopen_libs=
  10578. case $host_os in
  10579. beos*)
  10580. lt_cv_dlopen=load_add_on
  10581. lt_cv_dlopen_libs=
  10582. lt_cv_dlopen_self=yes
  10583. ;;
  10584. mingw* | pw32* | cegcc*)
  10585. lt_cv_dlopen=LoadLibrary
  10586. lt_cv_dlopen_libs=
  10587. ;;
  10588. cygwin*)
  10589. lt_cv_dlopen=dlopen
  10590. lt_cv_dlopen_libs=
  10591. ;;
  10592. darwin*)
  10593. # if libdl is installed we need to link against it
  10594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10595. printf %s "checking for dlopen in -ldl... " >&6; }
  10596. if test ${ac_cv_lib_dl_dlopen+y}
  10597. then :
  10598. printf %s "(cached) " >&6
  10599. else $as_nop
  10600. ac_check_lib_save_LIBS=$LIBS
  10601. LIBS="-ldl $LIBS"
  10602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10603. /* end confdefs.h. */
  10604. /* Override any GCC internal prototype to avoid an error.
  10605. Use char because int might match the return type of a GCC
  10606. builtin and then its argument prototype would still apply. */
  10607. char dlopen ();
  10608. int
  10609. main (void)
  10610. {
  10611. return dlopen ();
  10612. ;
  10613. return 0;
  10614. }
  10615. _ACEOF
  10616. if ac_fn_c_try_link "$LINENO"
  10617. then :
  10618. ac_cv_lib_dl_dlopen=yes
  10619. else $as_nop
  10620. ac_cv_lib_dl_dlopen=no
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10623. conftest$ac_exeext conftest.$ac_ext
  10624. LIBS=$ac_check_lib_save_LIBS
  10625. fi
  10626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10627. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10628. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10629. then :
  10630. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10631. else $as_nop
  10632. lt_cv_dlopen=dyld
  10633. lt_cv_dlopen_libs=
  10634. lt_cv_dlopen_self=yes
  10635. fi
  10636. ;;
  10637. tpf*)
  10638. # Don't try to run any link tests for TPF. We know it's impossible
  10639. # because TPF is a cross-compiler, and we know how we open DSOs.
  10640. lt_cv_dlopen=dlopen
  10641. lt_cv_dlopen_libs=
  10642. lt_cv_dlopen_self=no
  10643. ;;
  10644. *)
  10645. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10646. if test "x$ac_cv_func_shl_load" = xyes
  10647. then :
  10648. lt_cv_dlopen=shl_load
  10649. else $as_nop
  10650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10651. printf %s "checking for shl_load in -ldld... " >&6; }
  10652. if test ${ac_cv_lib_dld_shl_load+y}
  10653. then :
  10654. printf %s "(cached) " >&6
  10655. else $as_nop
  10656. ac_check_lib_save_LIBS=$LIBS
  10657. LIBS="-ldld $LIBS"
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. /* Override any GCC internal prototype to avoid an error.
  10661. Use char because int might match the return type of a GCC
  10662. builtin and then its argument prototype would still apply. */
  10663. char shl_load ();
  10664. int
  10665. main (void)
  10666. {
  10667. return shl_load ();
  10668. ;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. if ac_fn_c_try_link "$LINENO"
  10673. then :
  10674. ac_cv_lib_dld_shl_load=yes
  10675. else $as_nop
  10676. ac_cv_lib_dld_shl_load=no
  10677. fi
  10678. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10679. conftest$ac_exeext conftest.$ac_ext
  10680. LIBS=$ac_check_lib_save_LIBS
  10681. fi
  10682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10683. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10684. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10685. then :
  10686. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10687. else $as_nop
  10688. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10689. if test "x$ac_cv_func_dlopen" = xyes
  10690. then :
  10691. lt_cv_dlopen=dlopen
  10692. else $as_nop
  10693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10694. printf %s "checking for dlopen in -ldl... " >&6; }
  10695. if test ${ac_cv_lib_dl_dlopen+y}
  10696. then :
  10697. printf %s "(cached) " >&6
  10698. else $as_nop
  10699. ac_check_lib_save_LIBS=$LIBS
  10700. LIBS="-ldl $LIBS"
  10701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10702. /* end confdefs.h. */
  10703. /* Override any GCC internal prototype to avoid an error.
  10704. Use char because int might match the return type of a GCC
  10705. builtin and then its argument prototype would still apply. */
  10706. char dlopen ();
  10707. int
  10708. main (void)
  10709. {
  10710. return dlopen ();
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. if ac_fn_c_try_link "$LINENO"
  10716. then :
  10717. ac_cv_lib_dl_dlopen=yes
  10718. else $as_nop
  10719. ac_cv_lib_dl_dlopen=no
  10720. fi
  10721. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10722. conftest$ac_exeext conftest.$ac_ext
  10723. LIBS=$ac_check_lib_save_LIBS
  10724. fi
  10725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10726. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10727. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10728. then :
  10729. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10730. else $as_nop
  10731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10732. printf %s "checking for dlopen in -lsvld... " >&6; }
  10733. if test ${ac_cv_lib_svld_dlopen+y}
  10734. then :
  10735. printf %s "(cached) " >&6
  10736. else $as_nop
  10737. ac_check_lib_save_LIBS=$LIBS
  10738. LIBS="-lsvld $LIBS"
  10739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10740. /* end confdefs.h. */
  10741. /* Override any GCC internal prototype to avoid an error.
  10742. Use char because int might match the return type of a GCC
  10743. builtin and then its argument prototype would still apply. */
  10744. char dlopen ();
  10745. int
  10746. main (void)
  10747. {
  10748. return dlopen ();
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. if ac_fn_c_try_link "$LINENO"
  10754. then :
  10755. ac_cv_lib_svld_dlopen=yes
  10756. else $as_nop
  10757. ac_cv_lib_svld_dlopen=no
  10758. fi
  10759. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10760. conftest$ac_exeext conftest.$ac_ext
  10761. LIBS=$ac_check_lib_save_LIBS
  10762. fi
  10763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10764. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10765. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10766. then :
  10767. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10768. else $as_nop
  10769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10770. printf %s "checking for dld_link in -ldld... " >&6; }
  10771. if test ${ac_cv_lib_dld_dld_link+y}
  10772. then :
  10773. printf %s "(cached) " >&6
  10774. else $as_nop
  10775. ac_check_lib_save_LIBS=$LIBS
  10776. LIBS="-ldld $LIBS"
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. /* Override any GCC internal prototype to avoid an error.
  10780. Use char because int might match the return type of a GCC
  10781. builtin and then its argument prototype would still apply. */
  10782. char dld_link ();
  10783. int
  10784. main (void)
  10785. {
  10786. return dld_link ();
  10787. ;
  10788. return 0;
  10789. }
  10790. _ACEOF
  10791. if ac_fn_c_try_link "$LINENO"
  10792. then :
  10793. ac_cv_lib_dld_dld_link=yes
  10794. else $as_nop
  10795. ac_cv_lib_dld_dld_link=no
  10796. fi
  10797. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10798. conftest$ac_exeext conftest.$ac_ext
  10799. LIBS=$ac_check_lib_save_LIBS
  10800. fi
  10801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10802. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10803. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10804. then :
  10805. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10806. fi
  10807. fi
  10808. fi
  10809. fi
  10810. fi
  10811. fi
  10812. ;;
  10813. esac
  10814. if test no = "$lt_cv_dlopen"; then
  10815. enable_dlopen=no
  10816. else
  10817. enable_dlopen=yes
  10818. fi
  10819. case $lt_cv_dlopen in
  10820. dlopen)
  10821. save_CPPFLAGS=$CPPFLAGS
  10822. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10823. save_LDFLAGS=$LDFLAGS
  10824. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10825. save_LIBS=$LIBS
  10826. LIBS="$lt_cv_dlopen_libs $LIBS"
  10827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10828. printf %s "checking whether a program can dlopen itself... " >&6; }
  10829. if test ${lt_cv_dlopen_self+y}
  10830. then :
  10831. printf %s "(cached) " >&6
  10832. else $as_nop
  10833. if test yes = "$cross_compiling"; then :
  10834. lt_cv_dlopen_self=cross
  10835. else
  10836. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10837. lt_status=$lt_dlunknown
  10838. cat > conftest.$ac_ext <<_LT_EOF
  10839. #line $LINENO "configure"
  10840. #include "confdefs.h"
  10841. #if HAVE_DLFCN_H
  10842. #include <dlfcn.h>
  10843. #endif
  10844. #include <stdio.h>
  10845. #ifdef RTLD_GLOBAL
  10846. # define LT_DLGLOBAL RTLD_GLOBAL
  10847. #else
  10848. # ifdef DL_GLOBAL
  10849. # define LT_DLGLOBAL DL_GLOBAL
  10850. # else
  10851. # define LT_DLGLOBAL 0
  10852. # endif
  10853. #endif
  10854. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10855. find out it does not work in some platform. */
  10856. #ifndef LT_DLLAZY_OR_NOW
  10857. # ifdef RTLD_LAZY
  10858. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10859. # else
  10860. # ifdef DL_LAZY
  10861. # define LT_DLLAZY_OR_NOW DL_LAZY
  10862. # else
  10863. # ifdef RTLD_NOW
  10864. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10865. # else
  10866. # ifdef DL_NOW
  10867. # define LT_DLLAZY_OR_NOW DL_NOW
  10868. # else
  10869. # define LT_DLLAZY_OR_NOW 0
  10870. # endif
  10871. # endif
  10872. # endif
  10873. # endif
  10874. #endif
  10875. /* When -fvisibility=hidden is used, assume the code has been annotated
  10876. correspondingly for the symbols needed. */
  10877. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10878. int fnord () __attribute__((visibility("default")));
  10879. #endif
  10880. int fnord () { return 42; }
  10881. int main ()
  10882. {
  10883. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10884. int status = $lt_dlunknown;
  10885. if (self)
  10886. {
  10887. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10888. else
  10889. {
  10890. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10891. else puts (dlerror ());
  10892. }
  10893. /* dlclose (self); */
  10894. }
  10895. else
  10896. puts (dlerror ());
  10897. return status;
  10898. }
  10899. _LT_EOF
  10900. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10901. (eval $ac_link) 2>&5
  10902. ac_status=$?
  10903. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10904. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10905. (./conftest; exit; ) >&5 2>/dev/null
  10906. lt_status=$?
  10907. case x$lt_status in
  10908. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10909. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10910. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10911. esac
  10912. else :
  10913. # compilation failed
  10914. lt_cv_dlopen_self=no
  10915. fi
  10916. fi
  10917. rm -fr conftest*
  10918. fi
  10919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10920. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10921. if test yes = "$lt_cv_dlopen_self"; then
  10922. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10924. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10925. if test ${lt_cv_dlopen_self_static+y}
  10926. then :
  10927. printf %s "(cached) " >&6
  10928. else $as_nop
  10929. if test yes = "$cross_compiling"; then :
  10930. lt_cv_dlopen_self_static=cross
  10931. else
  10932. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10933. lt_status=$lt_dlunknown
  10934. cat > conftest.$ac_ext <<_LT_EOF
  10935. #line $LINENO "configure"
  10936. #include "confdefs.h"
  10937. #if HAVE_DLFCN_H
  10938. #include <dlfcn.h>
  10939. #endif
  10940. #include <stdio.h>
  10941. #ifdef RTLD_GLOBAL
  10942. # define LT_DLGLOBAL RTLD_GLOBAL
  10943. #else
  10944. # ifdef DL_GLOBAL
  10945. # define LT_DLGLOBAL DL_GLOBAL
  10946. # else
  10947. # define LT_DLGLOBAL 0
  10948. # endif
  10949. #endif
  10950. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10951. find out it does not work in some platform. */
  10952. #ifndef LT_DLLAZY_OR_NOW
  10953. # ifdef RTLD_LAZY
  10954. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10955. # else
  10956. # ifdef DL_LAZY
  10957. # define LT_DLLAZY_OR_NOW DL_LAZY
  10958. # else
  10959. # ifdef RTLD_NOW
  10960. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10961. # else
  10962. # ifdef DL_NOW
  10963. # define LT_DLLAZY_OR_NOW DL_NOW
  10964. # else
  10965. # define LT_DLLAZY_OR_NOW 0
  10966. # endif
  10967. # endif
  10968. # endif
  10969. # endif
  10970. #endif
  10971. /* When -fvisibility=hidden is used, assume the code has been annotated
  10972. correspondingly for the symbols needed. */
  10973. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10974. int fnord () __attribute__((visibility("default")));
  10975. #endif
  10976. int fnord () { return 42; }
  10977. int main ()
  10978. {
  10979. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10980. int status = $lt_dlunknown;
  10981. if (self)
  10982. {
  10983. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10984. else
  10985. {
  10986. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10987. else puts (dlerror ());
  10988. }
  10989. /* dlclose (self); */
  10990. }
  10991. else
  10992. puts (dlerror ());
  10993. return status;
  10994. }
  10995. _LT_EOF
  10996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10997. (eval $ac_link) 2>&5
  10998. ac_status=$?
  10999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11000. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11001. (./conftest; exit; ) >&5 2>/dev/null
  11002. lt_status=$?
  11003. case x$lt_status in
  11004. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11005. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11006. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11007. esac
  11008. else :
  11009. # compilation failed
  11010. lt_cv_dlopen_self_static=no
  11011. fi
  11012. fi
  11013. rm -fr conftest*
  11014. fi
  11015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11016. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11017. fi
  11018. CPPFLAGS=$save_CPPFLAGS
  11019. LDFLAGS=$save_LDFLAGS
  11020. LIBS=$save_LIBS
  11021. ;;
  11022. esac
  11023. case $lt_cv_dlopen_self in
  11024. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11025. *) enable_dlopen_self=unknown ;;
  11026. esac
  11027. case $lt_cv_dlopen_self_static in
  11028. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11029. *) enable_dlopen_self_static=unknown ;;
  11030. esac
  11031. fi
  11032. striplib=
  11033. old_striplib=
  11034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11035. printf %s "checking whether stripping libraries is possible... " >&6; }
  11036. if test -z "$STRIP"; then
  11037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11038. printf "%s\n" "no" >&6; }
  11039. else
  11040. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11041. old_striplib="$STRIP --strip-debug"
  11042. striplib="$STRIP --strip-unneeded"
  11043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11044. printf "%s\n" "yes" >&6; }
  11045. else
  11046. case $host_os in
  11047. darwin*)
  11048. # FIXME - insert some real tests, host_os isn't really good enough
  11049. striplib="$STRIP -x"
  11050. old_striplib="$STRIP -S"
  11051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11052. printf "%s\n" "yes" >&6; }
  11053. ;;
  11054. freebsd*)
  11055. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11056. old_striplib="$STRIP --strip-debug"
  11057. striplib="$STRIP --strip-unneeded"
  11058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11059. printf "%s\n" "yes" >&6; }
  11060. else
  11061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11062. printf "%s\n" "no" >&6; }
  11063. fi
  11064. ;;
  11065. *)
  11066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11067. printf "%s\n" "no" >&6; }
  11068. ;;
  11069. esac
  11070. fi
  11071. fi
  11072. # Report what library types will actually be built
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11074. printf %s "checking if libtool supports shared libraries... " >&6; }
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11076. printf "%s\n" "$can_build_shared" >&6; }
  11077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11078. printf %s "checking whether to build shared libraries... " >&6; }
  11079. test no = "$can_build_shared" && enable_shared=no
  11080. # On AIX, shared libraries and static libraries use the same namespace, and
  11081. # are all built from PIC.
  11082. case $host_os in
  11083. aix3*)
  11084. test yes = "$enable_shared" && enable_static=no
  11085. if test -n "$RANLIB"; then
  11086. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11087. postinstall_cmds='$RANLIB $lib'
  11088. fi
  11089. ;;
  11090. aix[4-9]*)
  11091. if test ia64 != "$host_cpu"; then
  11092. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11093. yes,aix,yes) ;; # shared object as lib.so file only
  11094. yes,svr4,*) ;; # shared object as lib.so archive member only
  11095. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11096. esac
  11097. fi
  11098. ;;
  11099. esac
  11100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11101. printf "%s\n" "$enable_shared" >&6; }
  11102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11103. printf %s "checking whether to build static libraries... " >&6; }
  11104. # Make sure either enable_shared or enable_static is yes.
  11105. test yes = "$enable_shared" || enable_static=yes
  11106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11107. printf "%s\n" "$enable_static" >&6; }
  11108. fi
  11109. ac_ext=c
  11110. ac_cpp='$CPP $CPPFLAGS'
  11111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11114. CC=$lt_save_CC
  11115. ac_config_commands="$ac_config_commands libtool"
  11116. # Only expand once:
  11117. if test -n "$ac_tool_prefix"; then
  11118. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11119. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11121. printf %s "checking for $ac_word... " >&6; }
  11122. if test ${ac_cv_prog_RC+y}
  11123. then :
  11124. printf %s "(cached) " >&6
  11125. else $as_nop
  11126. if test -n "$RC"; then
  11127. ac_cv_prog_RC="$RC" # Let the user override the test.
  11128. else
  11129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11130. for as_dir in $PATH
  11131. do
  11132. IFS=$as_save_IFS
  11133. case $as_dir in #(((
  11134. '') as_dir=./ ;;
  11135. */) ;;
  11136. *) as_dir=$as_dir/ ;;
  11137. esac
  11138. for ac_exec_ext in '' $ac_executable_extensions; do
  11139. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11140. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11142. break 2
  11143. fi
  11144. done
  11145. done
  11146. IFS=$as_save_IFS
  11147. fi
  11148. fi
  11149. RC=$ac_cv_prog_RC
  11150. if test -n "$RC"; then
  11151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11152. printf "%s\n" "$RC" >&6; }
  11153. else
  11154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11155. printf "%s\n" "no" >&6; }
  11156. fi
  11157. fi
  11158. if test -z "$ac_cv_prog_RC"; then
  11159. ac_ct_RC=$RC
  11160. # Extract the first word of "windres", so it can be a program name with args.
  11161. set dummy windres; ac_word=$2
  11162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11163. printf %s "checking for $ac_word... " >&6; }
  11164. if test ${ac_cv_prog_ac_ct_RC+y}
  11165. then :
  11166. printf %s "(cached) " >&6
  11167. else $as_nop
  11168. if test -n "$ac_ct_RC"; then
  11169. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11170. else
  11171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11172. for as_dir in $PATH
  11173. do
  11174. IFS=$as_save_IFS
  11175. case $as_dir in #(((
  11176. '') as_dir=./ ;;
  11177. */) ;;
  11178. *) as_dir=$as_dir/ ;;
  11179. esac
  11180. for ac_exec_ext in '' $ac_executable_extensions; do
  11181. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11182. ac_cv_prog_ac_ct_RC="windres"
  11183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11184. break 2
  11185. fi
  11186. done
  11187. done
  11188. IFS=$as_save_IFS
  11189. fi
  11190. fi
  11191. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11192. if test -n "$ac_ct_RC"; then
  11193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11194. printf "%s\n" "$ac_ct_RC" >&6; }
  11195. else
  11196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11197. printf "%s\n" "no" >&6; }
  11198. fi
  11199. if test "x$ac_ct_RC" = x; then
  11200. RC=""
  11201. else
  11202. case $cross_compiling:$ac_tool_warned in
  11203. yes:)
  11204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11205. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11206. ac_tool_warned=yes ;;
  11207. esac
  11208. RC=$ac_ct_RC
  11209. fi
  11210. else
  11211. RC="$ac_cv_prog_RC"
  11212. fi
  11213. # Source file extension for RC test sources.
  11214. ac_ext=rc
  11215. # Object file extension for compiled RC test sources.
  11216. objext=o
  11217. objext_RC=$objext
  11218. # Code to be used in simple compile tests
  11219. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11220. # Code to be used in simple link tests
  11221. lt_simple_link_test_code=$lt_simple_compile_test_code
  11222. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11223. # If no C compiler was specified, use CC.
  11224. LTCC=${LTCC-"$CC"}
  11225. # If no C compiler flags were specified, use CFLAGS.
  11226. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11227. # Allow CC to be a program name with arguments.
  11228. compiler=$CC
  11229. # save warnings/boilerplate of simple test code
  11230. ac_outfile=conftest.$ac_objext
  11231. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11232. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11233. _lt_compiler_boilerplate=`cat conftest.err`
  11234. $RM conftest*
  11235. ac_outfile=conftest.$ac_objext
  11236. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11237. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11238. _lt_linker_boilerplate=`cat conftest.err`
  11239. $RM -r conftest*
  11240. # Allow CC to be a program name with arguments.
  11241. lt_save_CC=$CC
  11242. lt_save_CFLAGS=$CFLAGS
  11243. lt_save_GCC=$GCC
  11244. GCC=
  11245. CC=${RC-"windres"}
  11246. CFLAGS=
  11247. compiler=$CC
  11248. compiler_RC=$CC
  11249. func_cc_basename $compiler
  11250. cc_basename=$func_cc_basename_result
  11251. lt_cv_prog_compiler_c_o_RC=yes
  11252. if test -n "$compiler"; then
  11253. :
  11254. fi
  11255. GCC=$lt_save_GCC
  11256. ac_ext=c
  11257. ac_cpp='$CPP $CPPFLAGS'
  11258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11261. CC=$lt_save_CC
  11262. CFLAGS=$lt_save_CFLAGS
  11263. # For historical reasons, the library name redundantly includes the major
  11264. # version twice: libSDL2-2.0.so.0.
  11265. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11266. LT_RELEASE=2.0
  11267. # Increment this if there is an incompatible change - but if that happens,
  11268. # we should rename the library from SDL2 to SDL3, at which point this would
  11269. # reset to 0 anyway.
  11270. LT_MAJOR=0
  11271. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11272. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11273. LT_REVISION=$SDL_INTERFACE_AGE
  11274. ac_ext=c
  11275. ac_cpp='$CPP $CPPFLAGS'
  11276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11279. if test -n "$ac_tool_prefix"; then
  11280. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11281. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11283. printf %s "checking for $ac_word... " >&6; }
  11284. if test ${ac_cv_prog_CC+y}
  11285. then :
  11286. printf %s "(cached) " >&6
  11287. else $as_nop
  11288. if test -n "$CC"; then
  11289. ac_cv_prog_CC="$CC" # Let the user override the test.
  11290. else
  11291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11292. for as_dir in $PATH
  11293. do
  11294. IFS=$as_save_IFS
  11295. case $as_dir in #(((
  11296. '') as_dir=./ ;;
  11297. */) ;;
  11298. *) as_dir=$as_dir/ ;;
  11299. esac
  11300. for ac_exec_ext in '' $ac_executable_extensions; do
  11301. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11302. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11303. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11304. break 2
  11305. fi
  11306. done
  11307. done
  11308. IFS=$as_save_IFS
  11309. fi
  11310. fi
  11311. CC=$ac_cv_prog_CC
  11312. if test -n "$CC"; then
  11313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11314. printf "%s\n" "$CC" >&6; }
  11315. else
  11316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11317. printf "%s\n" "no" >&6; }
  11318. fi
  11319. fi
  11320. if test -z "$ac_cv_prog_CC"; then
  11321. ac_ct_CC=$CC
  11322. # Extract the first word of "gcc", so it can be a program name with args.
  11323. set dummy gcc; ac_word=$2
  11324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11325. printf %s "checking for $ac_word... " >&6; }
  11326. if test ${ac_cv_prog_ac_ct_CC+y}
  11327. then :
  11328. printf %s "(cached) " >&6
  11329. else $as_nop
  11330. if test -n "$ac_ct_CC"; then
  11331. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11332. else
  11333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11334. for as_dir in $PATH
  11335. do
  11336. IFS=$as_save_IFS
  11337. case $as_dir in #(((
  11338. '') as_dir=./ ;;
  11339. */) ;;
  11340. *) as_dir=$as_dir/ ;;
  11341. esac
  11342. for ac_exec_ext in '' $ac_executable_extensions; do
  11343. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11344. ac_cv_prog_ac_ct_CC="gcc"
  11345. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11346. break 2
  11347. fi
  11348. done
  11349. done
  11350. IFS=$as_save_IFS
  11351. fi
  11352. fi
  11353. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11354. if test -n "$ac_ct_CC"; then
  11355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11356. printf "%s\n" "$ac_ct_CC" >&6; }
  11357. else
  11358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11359. printf "%s\n" "no" >&6; }
  11360. fi
  11361. if test "x$ac_ct_CC" = x; then
  11362. CC=""
  11363. else
  11364. case $cross_compiling:$ac_tool_warned in
  11365. yes:)
  11366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11367. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11368. ac_tool_warned=yes ;;
  11369. esac
  11370. CC=$ac_ct_CC
  11371. fi
  11372. else
  11373. CC="$ac_cv_prog_CC"
  11374. fi
  11375. if test -z "$CC"; then
  11376. if test -n "$ac_tool_prefix"; then
  11377. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11378. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11380. printf %s "checking for $ac_word... " >&6; }
  11381. if test ${ac_cv_prog_CC+y}
  11382. then :
  11383. printf %s "(cached) " >&6
  11384. else $as_nop
  11385. if test -n "$CC"; then
  11386. ac_cv_prog_CC="$CC" # Let the user override the test.
  11387. else
  11388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11389. for as_dir in $PATH
  11390. do
  11391. IFS=$as_save_IFS
  11392. case $as_dir in #(((
  11393. '') as_dir=./ ;;
  11394. */) ;;
  11395. *) as_dir=$as_dir/ ;;
  11396. esac
  11397. for ac_exec_ext in '' $ac_executable_extensions; do
  11398. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11399. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11401. break 2
  11402. fi
  11403. done
  11404. done
  11405. IFS=$as_save_IFS
  11406. fi
  11407. fi
  11408. CC=$ac_cv_prog_CC
  11409. if test -n "$CC"; then
  11410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11411. printf "%s\n" "$CC" >&6; }
  11412. else
  11413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11414. printf "%s\n" "no" >&6; }
  11415. fi
  11416. fi
  11417. fi
  11418. if test -z "$CC"; then
  11419. # Extract the first word of "cc", so it can be a program name with args.
  11420. set dummy cc; ac_word=$2
  11421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11422. printf %s "checking for $ac_word... " >&6; }
  11423. if test ${ac_cv_prog_CC+y}
  11424. then :
  11425. printf %s "(cached) " >&6
  11426. else $as_nop
  11427. if test -n "$CC"; then
  11428. ac_cv_prog_CC="$CC" # Let the user override the test.
  11429. else
  11430. ac_prog_rejected=no
  11431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11432. for as_dir in $PATH
  11433. do
  11434. IFS=$as_save_IFS
  11435. case $as_dir in #(((
  11436. '') as_dir=./ ;;
  11437. */) ;;
  11438. *) as_dir=$as_dir/ ;;
  11439. esac
  11440. for ac_exec_ext in '' $ac_executable_extensions; do
  11441. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11442. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11443. ac_prog_rejected=yes
  11444. continue
  11445. fi
  11446. ac_cv_prog_CC="cc"
  11447. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11448. break 2
  11449. fi
  11450. done
  11451. done
  11452. IFS=$as_save_IFS
  11453. if test $ac_prog_rejected = yes; then
  11454. # We found a bogon in the path, so make sure we never use it.
  11455. set dummy $ac_cv_prog_CC
  11456. shift
  11457. if test $# != 0; then
  11458. # We chose a different compiler from the bogus one.
  11459. # However, it has the same basename, so the bogon will be chosen
  11460. # first if we set CC to just the basename; use the full file name.
  11461. shift
  11462. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11463. fi
  11464. fi
  11465. fi
  11466. fi
  11467. CC=$ac_cv_prog_CC
  11468. if test -n "$CC"; then
  11469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11470. printf "%s\n" "$CC" >&6; }
  11471. else
  11472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11473. printf "%s\n" "no" >&6; }
  11474. fi
  11475. fi
  11476. if test -z "$CC"; then
  11477. if test -n "$ac_tool_prefix"; then
  11478. for ac_prog in cl.exe
  11479. do
  11480. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11481. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. printf %s "checking for $ac_word... " >&6; }
  11484. if test ${ac_cv_prog_CC+y}
  11485. then :
  11486. printf %s "(cached) " >&6
  11487. else $as_nop
  11488. if test -n "$CC"; then
  11489. ac_cv_prog_CC="$CC" # Let the user override the test.
  11490. else
  11491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11492. for as_dir in $PATH
  11493. do
  11494. IFS=$as_save_IFS
  11495. case $as_dir in #(((
  11496. '') as_dir=./ ;;
  11497. */) ;;
  11498. *) as_dir=$as_dir/ ;;
  11499. esac
  11500. for ac_exec_ext in '' $ac_executable_extensions; do
  11501. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11502. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11504. break 2
  11505. fi
  11506. done
  11507. done
  11508. IFS=$as_save_IFS
  11509. fi
  11510. fi
  11511. CC=$ac_cv_prog_CC
  11512. if test -n "$CC"; then
  11513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11514. printf "%s\n" "$CC" >&6; }
  11515. else
  11516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11517. printf "%s\n" "no" >&6; }
  11518. fi
  11519. test -n "$CC" && break
  11520. done
  11521. fi
  11522. if test -z "$CC"; then
  11523. ac_ct_CC=$CC
  11524. for ac_prog in cl.exe
  11525. do
  11526. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11527. set dummy $ac_prog; ac_word=$2
  11528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11529. printf %s "checking for $ac_word... " >&6; }
  11530. if test ${ac_cv_prog_ac_ct_CC+y}
  11531. then :
  11532. printf %s "(cached) " >&6
  11533. else $as_nop
  11534. if test -n "$ac_ct_CC"; then
  11535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11536. else
  11537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11538. for as_dir in $PATH
  11539. do
  11540. IFS=$as_save_IFS
  11541. case $as_dir in #(((
  11542. '') as_dir=./ ;;
  11543. */) ;;
  11544. *) as_dir=$as_dir/ ;;
  11545. esac
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11548. ac_cv_prog_ac_ct_CC="$ac_prog"
  11549. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11550. break 2
  11551. fi
  11552. done
  11553. done
  11554. IFS=$as_save_IFS
  11555. fi
  11556. fi
  11557. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11558. if test -n "$ac_ct_CC"; then
  11559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11560. printf "%s\n" "$ac_ct_CC" >&6; }
  11561. else
  11562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11563. printf "%s\n" "no" >&6; }
  11564. fi
  11565. test -n "$ac_ct_CC" && break
  11566. done
  11567. if test "x$ac_ct_CC" = x; then
  11568. CC=""
  11569. else
  11570. case $cross_compiling:$ac_tool_warned in
  11571. yes:)
  11572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11573. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11574. ac_tool_warned=yes ;;
  11575. esac
  11576. CC=$ac_ct_CC
  11577. fi
  11578. fi
  11579. fi
  11580. if test -z "$CC"; then
  11581. if test -n "$ac_tool_prefix"; then
  11582. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11583. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11585. printf %s "checking for $ac_word... " >&6; }
  11586. if test ${ac_cv_prog_CC+y}
  11587. then :
  11588. printf %s "(cached) " >&6
  11589. else $as_nop
  11590. if test -n "$CC"; then
  11591. ac_cv_prog_CC="$CC" # Let the user override the test.
  11592. else
  11593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11594. for as_dir in $PATH
  11595. do
  11596. IFS=$as_save_IFS
  11597. case $as_dir in #(((
  11598. '') as_dir=./ ;;
  11599. */) ;;
  11600. *) as_dir=$as_dir/ ;;
  11601. esac
  11602. for ac_exec_ext in '' $ac_executable_extensions; do
  11603. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11604. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11605. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11606. break 2
  11607. fi
  11608. done
  11609. done
  11610. IFS=$as_save_IFS
  11611. fi
  11612. fi
  11613. CC=$ac_cv_prog_CC
  11614. if test -n "$CC"; then
  11615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11616. printf "%s\n" "$CC" >&6; }
  11617. else
  11618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11619. printf "%s\n" "no" >&6; }
  11620. fi
  11621. fi
  11622. if test -z "$ac_cv_prog_CC"; then
  11623. ac_ct_CC=$CC
  11624. # Extract the first word of "clang", so it can be a program name with args.
  11625. set dummy clang; ac_word=$2
  11626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11627. printf %s "checking for $ac_word... " >&6; }
  11628. if test ${ac_cv_prog_ac_ct_CC+y}
  11629. then :
  11630. printf %s "(cached) " >&6
  11631. else $as_nop
  11632. if test -n "$ac_ct_CC"; then
  11633. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11634. else
  11635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11636. for as_dir in $PATH
  11637. do
  11638. IFS=$as_save_IFS
  11639. case $as_dir in #(((
  11640. '') as_dir=./ ;;
  11641. */) ;;
  11642. *) as_dir=$as_dir/ ;;
  11643. esac
  11644. for ac_exec_ext in '' $ac_executable_extensions; do
  11645. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11646. ac_cv_prog_ac_ct_CC="clang"
  11647. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11648. break 2
  11649. fi
  11650. done
  11651. done
  11652. IFS=$as_save_IFS
  11653. fi
  11654. fi
  11655. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11656. if test -n "$ac_ct_CC"; then
  11657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11658. printf "%s\n" "$ac_ct_CC" >&6; }
  11659. else
  11660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11661. printf "%s\n" "no" >&6; }
  11662. fi
  11663. if test "x$ac_ct_CC" = x; then
  11664. CC=""
  11665. else
  11666. case $cross_compiling:$ac_tool_warned in
  11667. yes:)
  11668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11669. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11670. ac_tool_warned=yes ;;
  11671. esac
  11672. CC=$ac_ct_CC
  11673. fi
  11674. else
  11675. CC="$ac_cv_prog_CC"
  11676. fi
  11677. fi
  11678. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11679. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11680. as_fn_error $? "no acceptable C compiler found in \$PATH
  11681. See \`config.log' for more details" "$LINENO" 5; }
  11682. # Provide some information about the compiler.
  11683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11684. set X $ac_compile
  11685. ac_compiler=$2
  11686. for ac_option in --version -v -V -qversion -version; do
  11687. { { ac_try="$ac_compiler $ac_option >&5"
  11688. case "(($ac_try" in
  11689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11690. *) ac_try_echo=$ac_try;;
  11691. esac
  11692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11693. printf "%s\n" "$ac_try_echo"; } >&5
  11694. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11695. ac_status=$?
  11696. if test -s conftest.err; then
  11697. sed '10a\
  11698. ... rest of stderr output deleted ...
  11699. 10q' conftest.err >conftest.er1
  11700. cat conftest.er1 >&5
  11701. fi
  11702. rm -f conftest.er1 conftest.err
  11703. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11704. test $ac_status = 0; }
  11705. done
  11706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11707. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11708. if test ${ac_cv_c_compiler_gnu+y}
  11709. then :
  11710. printf %s "(cached) " >&6
  11711. else $as_nop
  11712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11713. /* end confdefs.h. */
  11714. int
  11715. main (void)
  11716. {
  11717. #ifndef __GNUC__
  11718. choke me
  11719. #endif
  11720. ;
  11721. return 0;
  11722. }
  11723. _ACEOF
  11724. if ac_fn_c_try_compile "$LINENO"
  11725. then :
  11726. ac_compiler_gnu=yes
  11727. else $as_nop
  11728. ac_compiler_gnu=no
  11729. fi
  11730. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11731. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11732. fi
  11733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11734. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11735. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11736. if test $ac_compiler_gnu = yes; then
  11737. GCC=yes
  11738. else
  11739. GCC=
  11740. fi
  11741. ac_test_CFLAGS=${CFLAGS+y}
  11742. ac_save_CFLAGS=$CFLAGS
  11743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11744. printf %s "checking whether $CC accepts -g... " >&6; }
  11745. if test ${ac_cv_prog_cc_g+y}
  11746. then :
  11747. printf %s "(cached) " >&6
  11748. else $as_nop
  11749. ac_save_c_werror_flag=$ac_c_werror_flag
  11750. ac_c_werror_flag=yes
  11751. ac_cv_prog_cc_g=no
  11752. CFLAGS="-g"
  11753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11754. /* end confdefs.h. */
  11755. int
  11756. main (void)
  11757. {
  11758. ;
  11759. return 0;
  11760. }
  11761. _ACEOF
  11762. if ac_fn_c_try_compile "$LINENO"
  11763. then :
  11764. ac_cv_prog_cc_g=yes
  11765. else $as_nop
  11766. CFLAGS=""
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. int
  11770. main (void)
  11771. {
  11772. ;
  11773. return 0;
  11774. }
  11775. _ACEOF
  11776. if ac_fn_c_try_compile "$LINENO"
  11777. then :
  11778. else $as_nop
  11779. ac_c_werror_flag=$ac_save_c_werror_flag
  11780. CFLAGS="-g"
  11781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11782. /* end confdefs.h. */
  11783. int
  11784. main (void)
  11785. {
  11786. ;
  11787. return 0;
  11788. }
  11789. _ACEOF
  11790. if ac_fn_c_try_compile "$LINENO"
  11791. then :
  11792. ac_cv_prog_cc_g=yes
  11793. fi
  11794. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11795. fi
  11796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11799. ac_c_werror_flag=$ac_save_c_werror_flag
  11800. fi
  11801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11802. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11803. if test $ac_test_CFLAGS; then
  11804. CFLAGS=$ac_save_CFLAGS
  11805. elif test $ac_cv_prog_cc_g = yes; then
  11806. if test "$GCC" = yes; then
  11807. CFLAGS="-g -O2"
  11808. else
  11809. CFLAGS="-g"
  11810. fi
  11811. else
  11812. if test "$GCC" = yes; then
  11813. CFLAGS="-O2"
  11814. else
  11815. CFLAGS=
  11816. fi
  11817. fi
  11818. ac_prog_cc_stdc=no
  11819. if test x$ac_prog_cc_stdc = xno
  11820. then :
  11821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11822. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11823. if test ${ac_cv_prog_cc_c11+y}
  11824. then :
  11825. printf %s "(cached) " >&6
  11826. else $as_nop
  11827. ac_cv_prog_cc_c11=no
  11828. ac_save_CC=$CC
  11829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11830. /* end confdefs.h. */
  11831. $ac_c_conftest_c11_program
  11832. _ACEOF
  11833. for ac_arg in '' -std=gnu11
  11834. do
  11835. CC="$ac_save_CC $ac_arg"
  11836. if ac_fn_c_try_compile "$LINENO"
  11837. then :
  11838. ac_cv_prog_cc_c11=$ac_arg
  11839. fi
  11840. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11841. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11842. done
  11843. rm -f conftest.$ac_ext
  11844. CC=$ac_save_CC
  11845. fi
  11846. if test "x$ac_cv_prog_cc_c11" = xno
  11847. then :
  11848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11849. printf "%s\n" "unsupported" >&6; }
  11850. else $as_nop
  11851. if test "x$ac_cv_prog_cc_c11" = x
  11852. then :
  11853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11854. printf "%s\n" "none needed" >&6; }
  11855. else $as_nop
  11856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11857. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11858. CC="$CC $ac_cv_prog_cc_c11"
  11859. fi
  11860. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11861. ac_prog_cc_stdc=c11
  11862. fi
  11863. fi
  11864. if test x$ac_prog_cc_stdc = xno
  11865. then :
  11866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11867. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11868. if test ${ac_cv_prog_cc_c99+y}
  11869. then :
  11870. printf %s "(cached) " >&6
  11871. else $as_nop
  11872. ac_cv_prog_cc_c99=no
  11873. ac_save_CC=$CC
  11874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11875. /* end confdefs.h. */
  11876. $ac_c_conftest_c99_program
  11877. _ACEOF
  11878. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11879. do
  11880. CC="$ac_save_CC $ac_arg"
  11881. if ac_fn_c_try_compile "$LINENO"
  11882. then :
  11883. ac_cv_prog_cc_c99=$ac_arg
  11884. fi
  11885. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11886. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11887. done
  11888. rm -f conftest.$ac_ext
  11889. CC=$ac_save_CC
  11890. fi
  11891. if test "x$ac_cv_prog_cc_c99" = xno
  11892. then :
  11893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11894. printf "%s\n" "unsupported" >&6; }
  11895. else $as_nop
  11896. if test "x$ac_cv_prog_cc_c99" = x
  11897. then :
  11898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11899. printf "%s\n" "none needed" >&6; }
  11900. else $as_nop
  11901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11902. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11903. CC="$CC $ac_cv_prog_cc_c99"
  11904. fi
  11905. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11906. ac_prog_cc_stdc=c99
  11907. fi
  11908. fi
  11909. if test x$ac_prog_cc_stdc = xno
  11910. then :
  11911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11912. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11913. if test ${ac_cv_prog_cc_c89+y}
  11914. then :
  11915. printf %s "(cached) " >&6
  11916. else $as_nop
  11917. ac_cv_prog_cc_c89=no
  11918. ac_save_CC=$CC
  11919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11920. /* end confdefs.h. */
  11921. $ac_c_conftest_c89_program
  11922. _ACEOF
  11923. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11924. do
  11925. CC="$ac_save_CC $ac_arg"
  11926. if ac_fn_c_try_compile "$LINENO"
  11927. then :
  11928. ac_cv_prog_cc_c89=$ac_arg
  11929. fi
  11930. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11931. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11932. done
  11933. rm -f conftest.$ac_ext
  11934. CC=$ac_save_CC
  11935. fi
  11936. if test "x$ac_cv_prog_cc_c89" = xno
  11937. then :
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11939. printf "%s\n" "unsupported" >&6; }
  11940. else $as_nop
  11941. if test "x$ac_cv_prog_cc_c89" = x
  11942. then :
  11943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11944. printf "%s\n" "none needed" >&6; }
  11945. else $as_nop
  11946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11947. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11948. CC="$CC $ac_cv_prog_cc_c89"
  11949. fi
  11950. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11951. ac_prog_cc_stdc=c89
  11952. fi
  11953. fi
  11954. ac_ext=c
  11955. ac_cpp='$CPP $CPPFLAGS'
  11956. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11957. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11958. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11959. ac_ext=cpp
  11960. ac_cpp='$CXXCPP $CPPFLAGS'
  11961. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11962. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11963. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11964. if test -z "$CXX"; then
  11965. if test -n "$CCC"; then
  11966. CXX=$CCC
  11967. else
  11968. if test -n "$ac_tool_prefix"; then
  11969. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11970. do
  11971. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11972. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11974. printf %s "checking for $ac_word... " >&6; }
  11975. if test ${ac_cv_prog_CXX+y}
  11976. then :
  11977. printf %s "(cached) " >&6
  11978. else $as_nop
  11979. if test -n "$CXX"; then
  11980. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11981. else
  11982. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11983. for as_dir in $PATH
  11984. do
  11985. IFS=$as_save_IFS
  11986. case $as_dir in #(((
  11987. '') as_dir=./ ;;
  11988. */) ;;
  11989. *) as_dir=$as_dir/ ;;
  11990. esac
  11991. for ac_exec_ext in '' $ac_executable_extensions; do
  11992. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11993. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  11994. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11995. break 2
  11996. fi
  11997. done
  11998. done
  11999. IFS=$as_save_IFS
  12000. fi
  12001. fi
  12002. CXX=$ac_cv_prog_CXX
  12003. if test -n "$CXX"; then
  12004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12005. printf "%s\n" "$CXX" >&6; }
  12006. else
  12007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12008. printf "%s\n" "no" >&6; }
  12009. fi
  12010. test -n "$CXX" && break
  12011. done
  12012. fi
  12013. if test -z "$CXX"; then
  12014. ac_ct_CXX=$CXX
  12015. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12016. do
  12017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12018. set dummy $ac_prog; ac_word=$2
  12019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12020. printf %s "checking for $ac_word... " >&6; }
  12021. if test ${ac_cv_prog_ac_ct_CXX+y}
  12022. then :
  12023. printf %s "(cached) " >&6
  12024. else $as_nop
  12025. if test -n "$ac_ct_CXX"; then
  12026. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12027. else
  12028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12029. for as_dir in $PATH
  12030. do
  12031. IFS=$as_save_IFS
  12032. case $as_dir in #(((
  12033. '') as_dir=./ ;;
  12034. */) ;;
  12035. *) as_dir=$as_dir/ ;;
  12036. esac
  12037. for ac_exec_ext in '' $ac_executable_extensions; do
  12038. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12039. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12040. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12041. break 2
  12042. fi
  12043. done
  12044. done
  12045. IFS=$as_save_IFS
  12046. fi
  12047. fi
  12048. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12049. if test -n "$ac_ct_CXX"; then
  12050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12051. printf "%s\n" "$ac_ct_CXX" >&6; }
  12052. else
  12053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12054. printf "%s\n" "no" >&6; }
  12055. fi
  12056. test -n "$ac_ct_CXX" && break
  12057. done
  12058. if test "x$ac_ct_CXX" = x; then
  12059. CXX="g++"
  12060. else
  12061. case $cross_compiling:$ac_tool_warned in
  12062. yes:)
  12063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12064. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12065. ac_tool_warned=yes ;;
  12066. esac
  12067. CXX=$ac_ct_CXX
  12068. fi
  12069. fi
  12070. fi
  12071. fi
  12072. # Provide some information about the compiler.
  12073. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12074. set X $ac_compile
  12075. ac_compiler=$2
  12076. for ac_option in --version -v -V -qversion; do
  12077. { { ac_try="$ac_compiler $ac_option >&5"
  12078. case "(($ac_try" in
  12079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12080. *) ac_try_echo=$ac_try;;
  12081. esac
  12082. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12083. printf "%s\n" "$ac_try_echo"; } >&5
  12084. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12085. ac_status=$?
  12086. if test -s conftest.err; then
  12087. sed '10a\
  12088. ... rest of stderr output deleted ...
  12089. 10q' conftest.err >conftest.er1
  12090. cat conftest.er1 >&5
  12091. fi
  12092. rm -f conftest.er1 conftest.err
  12093. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12094. test $ac_status = 0; }
  12095. done
  12096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12097. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12098. if test ${ac_cv_cxx_compiler_gnu+y}
  12099. then :
  12100. printf %s "(cached) " >&6
  12101. else $as_nop
  12102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12103. /* end confdefs.h. */
  12104. int
  12105. main (void)
  12106. {
  12107. #ifndef __GNUC__
  12108. choke me
  12109. #endif
  12110. ;
  12111. return 0;
  12112. }
  12113. _ACEOF
  12114. if ac_fn_cxx_try_compile "$LINENO"
  12115. then :
  12116. ac_compiler_gnu=yes
  12117. else $as_nop
  12118. ac_compiler_gnu=no
  12119. fi
  12120. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12121. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12122. fi
  12123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12124. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12126. if test $ac_compiler_gnu = yes; then
  12127. GXX=yes
  12128. else
  12129. GXX=
  12130. fi
  12131. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12132. ac_save_CXXFLAGS=$CXXFLAGS
  12133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12134. printf %s "checking whether $CXX accepts -g... " >&6; }
  12135. if test ${ac_cv_prog_cxx_g+y}
  12136. then :
  12137. printf %s "(cached) " >&6
  12138. else $as_nop
  12139. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12140. ac_cxx_werror_flag=yes
  12141. ac_cv_prog_cxx_g=no
  12142. CXXFLAGS="-g"
  12143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12144. /* end confdefs.h. */
  12145. int
  12146. main (void)
  12147. {
  12148. ;
  12149. return 0;
  12150. }
  12151. _ACEOF
  12152. if ac_fn_cxx_try_compile "$LINENO"
  12153. then :
  12154. ac_cv_prog_cxx_g=yes
  12155. else $as_nop
  12156. CXXFLAGS=""
  12157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12158. /* end confdefs.h. */
  12159. int
  12160. main (void)
  12161. {
  12162. ;
  12163. return 0;
  12164. }
  12165. _ACEOF
  12166. if ac_fn_cxx_try_compile "$LINENO"
  12167. then :
  12168. else $as_nop
  12169. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12170. CXXFLAGS="-g"
  12171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12172. /* end confdefs.h. */
  12173. int
  12174. main (void)
  12175. {
  12176. ;
  12177. return 0;
  12178. }
  12179. _ACEOF
  12180. if ac_fn_cxx_try_compile "$LINENO"
  12181. then :
  12182. ac_cv_prog_cxx_g=yes
  12183. fi
  12184. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12185. fi
  12186. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12187. fi
  12188. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12189. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12190. fi
  12191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12192. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12193. if test $ac_test_CXXFLAGS; then
  12194. CXXFLAGS=$ac_save_CXXFLAGS
  12195. elif test $ac_cv_prog_cxx_g = yes; then
  12196. if test "$GXX" = yes; then
  12197. CXXFLAGS="-g -O2"
  12198. else
  12199. CXXFLAGS="-g"
  12200. fi
  12201. else
  12202. if test "$GXX" = yes; then
  12203. CXXFLAGS="-O2"
  12204. else
  12205. CXXFLAGS=
  12206. fi
  12207. fi
  12208. ac_prog_cxx_stdcxx=no
  12209. if test x$ac_prog_cxx_stdcxx = xno
  12210. then :
  12211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12212. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12213. if test ${ac_cv_prog_cxx_cxx11+y}
  12214. then :
  12215. printf %s "(cached) " >&6
  12216. else $as_nop
  12217. ac_cv_prog_cxx_cxx11=no
  12218. ac_save_CXX=$CXX
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. $ac_cxx_conftest_cxx11_program
  12222. _ACEOF
  12223. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12224. do
  12225. CXX="$ac_save_CXX $ac_arg"
  12226. if ac_fn_cxx_try_compile "$LINENO"
  12227. then :
  12228. ac_cv_prog_cxx_cxx11=$ac_arg
  12229. fi
  12230. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12231. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12232. done
  12233. rm -f conftest.$ac_ext
  12234. CXX=$ac_save_CXX
  12235. fi
  12236. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12237. then :
  12238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12239. printf "%s\n" "unsupported" >&6; }
  12240. else $as_nop
  12241. if test "x$ac_cv_prog_cxx_cxx11" = x
  12242. then :
  12243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12244. printf "%s\n" "none needed" >&6; }
  12245. else $as_nop
  12246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12247. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12248. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12249. fi
  12250. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12251. ac_prog_cxx_stdcxx=cxx11
  12252. fi
  12253. fi
  12254. if test x$ac_prog_cxx_stdcxx = xno
  12255. then :
  12256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12257. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12258. if test ${ac_cv_prog_cxx_cxx98+y}
  12259. then :
  12260. printf %s "(cached) " >&6
  12261. else $as_nop
  12262. ac_cv_prog_cxx_cxx98=no
  12263. ac_save_CXX=$CXX
  12264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12265. /* end confdefs.h. */
  12266. $ac_cxx_conftest_cxx98_program
  12267. _ACEOF
  12268. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12269. do
  12270. CXX="$ac_save_CXX $ac_arg"
  12271. if ac_fn_cxx_try_compile "$LINENO"
  12272. then :
  12273. ac_cv_prog_cxx_cxx98=$ac_arg
  12274. fi
  12275. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12276. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12277. done
  12278. rm -f conftest.$ac_ext
  12279. CXX=$ac_save_CXX
  12280. fi
  12281. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12282. then :
  12283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12284. printf "%s\n" "unsupported" >&6; }
  12285. else $as_nop
  12286. if test "x$ac_cv_prog_cxx_cxx98" = x
  12287. then :
  12288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12289. printf "%s\n" "none needed" >&6; }
  12290. else $as_nop
  12291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12292. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12293. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12294. fi
  12295. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12296. ac_prog_cxx_stdcxx=cxx98
  12297. fi
  12298. fi
  12299. ac_ext=c
  12300. ac_cpp='$CPP $CPPFLAGS'
  12301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12304. func_stripname_cnf ()
  12305. {
  12306. case $2 in
  12307. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12308. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12309. esac
  12310. } # func_stripname_cnf
  12311. if test -n "$CXX" && ( test no != "$CXX" &&
  12312. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12313. (test g++ != "$CXX"))); then
  12314. ac_ext=cpp
  12315. ac_cpp='$CXXCPP $CPPFLAGS'
  12316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12320. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12321. if test -z "$CXXCPP"; then
  12322. if test ${ac_cv_prog_CXXCPP+y}
  12323. then :
  12324. printf %s "(cached) " >&6
  12325. else $as_nop
  12326. # Double quotes because $CXX needs to be expanded
  12327. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12328. do
  12329. ac_preproc_ok=false
  12330. for ac_cxx_preproc_warn_flag in '' yes
  12331. do
  12332. # Use a header file that comes with gcc, so configuring glibc
  12333. # with a fresh cross-compiler works.
  12334. # On the NeXT, cc -E runs the code through the compiler's parser,
  12335. # not just through cpp. "Syntax error" is here to catch this case.
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. #include <limits.h>
  12339. Syntax error
  12340. _ACEOF
  12341. if ac_fn_cxx_try_cpp "$LINENO"
  12342. then :
  12343. else $as_nop
  12344. # Broken: fails on valid input.
  12345. continue
  12346. fi
  12347. rm -f conftest.err conftest.i conftest.$ac_ext
  12348. # OK, works on sane cases. Now check whether nonexistent headers
  12349. # can be detected and how.
  12350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12351. /* end confdefs.h. */
  12352. #include <ac_nonexistent.h>
  12353. _ACEOF
  12354. if ac_fn_cxx_try_cpp "$LINENO"
  12355. then :
  12356. # Broken: success on invalid input.
  12357. continue
  12358. else $as_nop
  12359. # Passes both tests.
  12360. ac_preproc_ok=:
  12361. break
  12362. fi
  12363. rm -f conftest.err conftest.i conftest.$ac_ext
  12364. done
  12365. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12366. rm -f conftest.i conftest.err conftest.$ac_ext
  12367. if $ac_preproc_ok
  12368. then :
  12369. break
  12370. fi
  12371. done
  12372. ac_cv_prog_CXXCPP=$CXXCPP
  12373. fi
  12374. CXXCPP=$ac_cv_prog_CXXCPP
  12375. else
  12376. ac_cv_prog_CXXCPP=$CXXCPP
  12377. fi
  12378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12379. printf "%s\n" "$CXXCPP" >&6; }
  12380. ac_preproc_ok=false
  12381. for ac_cxx_preproc_warn_flag in '' yes
  12382. do
  12383. # Use a header file that comes with gcc, so configuring glibc
  12384. # with a fresh cross-compiler works.
  12385. # On the NeXT, cc -E runs the code through the compiler's parser,
  12386. # not just through cpp. "Syntax error" is here to catch this case.
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. #include <limits.h>
  12390. Syntax error
  12391. _ACEOF
  12392. if ac_fn_cxx_try_cpp "$LINENO"
  12393. then :
  12394. else $as_nop
  12395. # Broken: fails on valid input.
  12396. continue
  12397. fi
  12398. rm -f conftest.err conftest.i conftest.$ac_ext
  12399. # OK, works on sane cases. Now check whether nonexistent headers
  12400. # can be detected and how.
  12401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12402. /* end confdefs.h. */
  12403. #include <ac_nonexistent.h>
  12404. _ACEOF
  12405. if ac_fn_cxx_try_cpp "$LINENO"
  12406. then :
  12407. # Broken: success on invalid input.
  12408. continue
  12409. else $as_nop
  12410. # Passes both tests.
  12411. ac_preproc_ok=:
  12412. break
  12413. fi
  12414. rm -f conftest.err conftest.i conftest.$ac_ext
  12415. done
  12416. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12417. rm -f conftest.i conftest.err conftest.$ac_ext
  12418. if $ac_preproc_ok
  12419. then :
  12420. else $as_nop
  12421. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12422. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12423. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12424. See \`config.log' for more details" "$LINENO" 5; }
  12425. fi
  12426. ac_ext=c
  12427. ac_cpp='$CPP $CPPFLAGS'
  12428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12431. else
  12432. _lt_caught_CXX_error=yes
  12433. fi
  12434. ac_ext=cpp
  12435. ac_cpp='$CXXCPP $CPPFLAGS'
  12436. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12437. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12438. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12439. archive_cmds_need_lc_CXX=no
  12440. allow_undefined_flag_CXX=
  12441. always_export_symbols_CXX=no
  12442. archive_expsym_cmds_CXX=
  12443. compiler_needs_object_CXX=no
  12444. export_dynamic_flag_spec_CXX=
  12445. hardcode_direct_CXX=no
  12446. hardcode_direct_absolute_CXX=no
  12447. hardcode_libdir_flag_spec_CXX=
  12448. hardcode_libdir_separator_CXX=
  12449. hardcode_minus_L_CXX=no
  12450. hardcode_shlibpath_var_CXX=unsupported
  12451. hardcode_automatic_CXX=no
  12452. inherit_rpath_CXX=no
  12453. module_cmds_CXX=
  12454. module_expsym_cmds_CXX=
  12455. link_all_deplibs_CXX=unknown
  12456. old_archive_cmds_CXX=$old_archive_cmds
  12457. reload_flag_CXX=$reload_flag
  12458. reload_cmds_CXX=$reload_cmds
  12459. no_undefined_flag_CXX=
  12460. whole_archive_flag_spec_CXX=
  12461. enable_shared_with_static_runtimes_CXX=no
  12462. # Source file extension for C++ test sources.
  12463. ac_ext=cpp
  12464. # Object file extension for compiled C++ test sources.
  12465. objext=o
  12466. objext_CXX=$objext
  12467. # No sense in running all these tests if we already determined that
  12468. # the CXX compiler isn't working. Some variables (like enable_shared)
  12469. # are currently assumed to apply to all compilers on this platform,
  12470. # and will be corrupted by setting them based on a non-working compiler.
  12471. if test yes != "$_lt_caught_CXX_error"; then
  12472. # Code to be used in simple compile tests
  12473. lt_simple_compile_test_code="int some_variable = 0;"
  12474. # Code to be used in simple link tests
  12475. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12476. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12477. # If no C compiler was specified, use CC.
  12478. LTCC=${LTCC-"$CC"}
  12479. # If no C compiler flags were specified, use CFLAGS.
  12480. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12481. # Allow CC to be a program name with arguments.
  12482. compiler=$CC
  12483. # save warnings/boilerplate of simple test code
  12484. ac_outfile=conftest.$ac_objext
  12485. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12486. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12487. _lt_compiler_boilerplate=`cat conftest.err`
  12488. $RM conftest*
  12489. ac_outfile=conftest.$ac_objext
  12490. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12491. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12492. _lt_linker_boilerplate=`cat conftest.err`
  12493. $RM -r conftest*
  12494. # Allow CC to be a program name with arguments.
  12495. lt_save_CC=$CC
  12496. lt_save_CFLAGS=$CFLAGS
  12497. lt_save_LD=$LD
  12498. lt_save_GCC=$GCC
  12499. GCC=$GXX
  12500. lt_save_with_gnu_ld=$with_gnu_ld
  12501. lt_save_path_LD=$lt_cv_path_LD
  12502. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12503. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12504. else
  12505. $as_unset lt_cv_prog_gnu_ld
  12506. fi
  12507. if test -n "${lt_cv_path_LDCXX+set}"; then
  12508. lt_cv_path_LD=$lt_cv_path_LDCXX
  12509. else
  12510. $as_unset lt_cv_path_LD
  12511. fi
  12512. test -z "${LDCXX+set}" || LD=$LDCXX
  12513. CC=${CXX-"c++"}
  12514. CFLAGS=$CXXFLAGS
  12515. compiler=$CC
  12516. compiler_CXX=$CC
  12517. func_cc_basename $compiler
  12518. cc_basename=$func_cc_basename_result
  12519. if test -n "$compiler"; then
  12520. # We don't want -fno-exception when compiling C++ code, so set the
  12521. # no_builtin_flag separately
  12522. if test yes = "$GXX"; then
  12523. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12524. else
  12525. lt_prog_compiler_no_builtin_flag_CXX=
  12526. fi
  12527. if test yes = "$GXX"; then
  12528. # Set up default GNU C++ configuration
  12529. # Check whether --with-gnu-ld was given.
  12530. if test ${with_gnu_ld+y}
  12531. then :
  12532. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12533. else $as_nop
  12534. with_gnu_ld=no
  12535. fi
  12536. ac_prog=ld
  12537. if test yes = "$GCC"; then
  12538. # Check if gcc -print-prog-name=ld gives a path.
  12539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12540. printf %s "checking for ld used by $CC... " >&6; }
  12541. case $host in
  12542. *-*-mingw*)
  12543. # gcc leaves a trailing carriage return, which upsets mingw
  12544. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12545. *)
  12546. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12547. esac
  12548. case $ac_prog in
  12549. # Accept absolute paths.
  12550. [\\/]* | ?:[\\/]*)
  12551. re_direlt='/[^/][^/]*/\.\./'
  12552. # Canonicalize the pathname of ld
  12553. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12554. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12555. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12556. done
  12557. test -z "$LD" && LD=$ac_prog
  12558. ;;
  12559. "")
  12560. # If it fails, then pretend we aren't using GCC.
  12561. ac_prog=ld
  12562. ;;
  12563. *)
  12564. # If it is relative, then search for the first ld in PATH.
  12565. with_gnu_ld=unknown
  12566. ;;
  12567. esac
  12568. elif test yes = "$with_gnu_ld"; then
  12569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12570. printf %s "checking for GNU ld... " >&6; }
  12571. else
  12572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12573. printf %s "checking for non-GNU ld... " >&6; }
  12574. fi
  12575. if test ${lt_cv_path_LD+y}
  12576. then :
  12577. printf %s "(cached) " >&6
  12578. else $as_nop
  12579. if test -z "$LD"; then
  12580. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12581. for ac_dir in $PATH; do
  12582. IFS=$lt_save_ifs
  12583. test -z "$ac_dir" && ac_dir=.
  12584. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12585. lt_cv_path_LD=$ac_dir/$ac_prog
  12586. # Check to see if the program is GNU ld. I'd rather use --version,
  12587. # but apparently some variants of GNU ld only accept -v.
  12588. # Break only if it was the GNU/non-GNU ld that we prefer.
  12589. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12590. *GNU* | *'with BFD'*)
  12591. test no != "$with_gnu_ld" && break
  12592. ;;
  12593. *)
  12594. test yes != "$with_gnu_ld" && break
  12595. ;;
  12596. esac
  12597. fi
  12598. done
  12599. IFS=$lt_save_ifs
  12600. else
  12601. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12602. fi
  12603. fi
  12604. LD=$lt_cv_path_LD
  12605. if test -n "$LD"; then
  12606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12607. printf "%s\n" "$LD" >&6; }
  12608. else
  12609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12610. printf "%s\n" "no" >&6; }
  12611. fi
  12612. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12614. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12615. if test ${lt_cv_prog_gnu_ld+y}
  12616. then :
  12617. printf %s "(cached) " >&6
  12618. else $as_nop
  12619. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12620. case `$LD -v 2>&1 </dev/null` in
  12621. *GNU* | *'with BFD'*)
  12622. lt_cv_prog_gnu_ld=yes
  12623. ;;
  12624. *)
  12625. lt_cv_prog_gnu_ld=no
  12626. ;;
  12627. esac
  12628. fi
  12629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12630. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12631. with_gnu_ld=$lt_cv_prog_gnu_ld
  12632. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12633. # archiving commands below assume that GNU ld is being used.
  12634. if test yes = "$with_gnu_ld"; then
  12635. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12636. 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'
  12637. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12638. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12639. # If archive_cmds runs LD, not CC, wlarc should be empty
  12640. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12641. # investigate it a little bit more. (MM)
  12642. wlarc='$wl'
  12643. # ancient GNU ld didn't support --whole-archive et. al.
  12644. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12645. $GREP 'no-whole-archive' > /dev/null; then
  12646. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12647. else
  12648. whole_archive_flag_spec_CXX=
  12649. fi
  12650. else
  12651. with_gnu_ld=no
  12652. wlarc=
  12653. # A generic and very simple default shared library creation
  12654. # command for GNU C++ for the case where it uses the native
  12655. # linker, instead of GNU ld. If possible, this setting should
  12656. # overridden to take advantage of the native linker features on
  12657. # the platform it is being used on.
  12658. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12659. fi
  12660. # Commands to make compiler produce verbose output that lists
  12661. # what "hidden" libraries, object files and flags are used when
  12662. # linking a shared library.
  12663. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12664. else
  12665. GXX=no
  12666. with_gnu_ld=no
  12667. wlarc=
  12668. fi
  12669. # PORTME: fill in a description of your system's C++ link characteristics
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12671. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12672. ld_shlibs_CXX=yes
  12673. case $host_os in
  12674. aix3*)
  12675. # FIXME: insert proper C++ library support
  12676. ld_shlibs_CXX=no
  12677. ;;
  12678. aix[4-9]*)
  12679. if test ia64 = "$host_cpu"; then
  12680. # On IA64, the linker does run time linking by default, so we don't
  12681. # have to do anything special.
  12682. aix_use_runtimelinking=no
  12683. exp_sym_flag='-Bexport'
  12684. no_entry_flag=
  12685. else
  12686. aix_use_runtimelinking=no
  12687. # Test if we are trying to use run time linking or normal
  12688. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12689. # have runtime linking enabled, and use it for executables.
  12690. # For shared libraries, we enable/disable runtime linking
  12691. # depending on the kind of the shared library created -
  12692. # when "with_aix_soname,aix_use_runtimelinking" is:
  12693. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12694. # "aix,yes" lib.so shared, rtl:yes, for executables
  12695. # lib.a static archive
  12696. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12697. # lib.a(lib.so.V) shared, rtl:no, for executables
  12698. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12699. # lib.a(lib.so.V) shared, rtl:no
  12700. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12701. # lib.a static archive
  12702. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12703. for ld_flag in $LDFLAGS; do
  12704. case $ld_flag in
  12705. *-brtl*)
  12706. aix_use_runtimelinking=yes
  12707. break
  12708. ;;
  12709. esac
  12710. done
  12711. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12712. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12713. # so we don't have lib.a shared libs to link our executables.
  12714. # We have to force runtime linking in this case.
  12715. aix_use_runtimelinking=yes
  12716. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12717. fi
  12718. ;;
  12719. esac
  12720. exp_sym_flag='-bexport'
  12721. no_entry_flag='-bnoentry'
  12722. fi
  12723. # When large executables or shared objects are built, AIX ld can
  12724. # have problems creating the table of contents. If linking a library
  12725. # or program results in "error TOC overflow" add -mminimal-toc to
  12726. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12727. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12728. archive_cmds_CXX=''
  12729. hardcode_direct_CXX=yes
  12730. hardcode_direct_absolute_CXX=yes
  12731. hardcode_libdir_separator_CXX=':'
  12732. link_all_deplibs_CXX=yes
  12733. file_list_spec_CXX='$wl-f,'
  12734. case $with_aix_soname,$aix_use_runtimelinking in
  12735. aix,*) ;; # no import file
  12736. svr4,* | *,yes) # use import file
  12737. # The Import File defines what to hardcode.
  12738. hardcode_direct_CXX=no
  12739. hardcode_direct_absolute_CXX=no
  12740. ;;
  12741. esac
  12742. if test yes = "$GXX"; then
  12743. case $host_os in aix4.[012]|aix4.[012].*)
  12744. # We only want to do this on AIX 4.2 and lower, the check
  12745. # below for broken collect2 doesn't work under 4.3+
  12746. collect2name=`$CC -print-prog-name=collect2`
  12747. if test -f "$collect2name" &&
  12748. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12749. then
  12750. # We have reworked collect2
  12751. :
  12752. else
  12753. # We have old collect2
  12754. hardcode_direct_CXX=unsupported
  12755. # It fails to find uninstalled libraries when the uninstalled
  12756. # path is not listed in the libpath. Setting hardcode_minus_L
  12757. # to unsupported forces relinking
  12758. hardcode_minus_L_CXX=yes
  12759. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12760. hardcode_libdir_separator_CXX=
  12761. fi
  12762. esac
  12763. shared_flag='-shared'
  12764. if test yes = "$aix_use_runtimelinking"; then
  12765. shared_flag=$shared_flag' $wl-G'
  12766. fi
  12767. # Need to ensure runtime linking is disabled for the traditional
  12768. # shared library, or the linker may eventually find shared libraries
  12769. # /with/ Import File - we do not want to mix them.
  12770. shared_flag_aix='-shared'
  12771. shared_flag_svr4='-shared $wl-G'
  12772. else
  12773. # not using gcc
  12774. if test ia64 = "$host_cpu"; then
  12775. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12776. # chokes on -Wl,-G. The following line is correct:
  12777. shared_flag='-G'
  12778. else
  12779. if test yes = "$aix_use_runtimelinking"; then
  12780. shared_flag='$wl-G'
  12781. else
  12782. shared_flag='$wl-bM:SRE'
  12783. fi
  12784. shared_flag_aix='$wl-bM:SRE'
  12785. shared_flag_svr4='$wl-G'
  12786. fi
  12787. fi
  12788. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12789. # It seems that -bexpall does not export symbols beginning with
  12790. # underscore (_), so it is better to generate a list of symbols to
  12791. # export.
  12792. always_export_symbols_CXX=yes
  12793. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12794. # Warning - without using the other runtime loading flags (-brtl),
  12795. # -berok will link without error, but may produce a broken library.
  12796. # The "-G" linker flag allows undefined symbols.
  12797. no_undefined_flag_CXX='-bernotok'
  12798. # Determine the default libpath from the value encoded in an empty
  12799. # executable.
  12800. if test set = "${lt_cv_aix_libpath+set}"; then
  12801. aix_libpath=$lt_cv_aix_libpath
  12802. else
  12803. if test ${lt_cv_aix_libpath__CXX+y}
  12804. then :
  12805. printf %s "(cached) " >&6
  12806. else $as_nop
  12807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12808. /* end confdefs.h. */
  12809. int
  12810. main (void)
  12811. {
  12812. ;
  12813. return 0;
  12814. }
  12815. _ACEOF
  12816. if ac_fn_cxx_try_link "$LINENO"
  12817. then :
  12818. lt_aix_libpath_sed='
  12819. /Import File Strings/,/^$/ {
  12820. /^0/ {
  12821. s/^0 *\([^ ]*\) *$/\1/
  12822. p
  12823. }
  12824. }'
  12825. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12826. # Check for a 64-bit object if we didn't find anything.
  12827. if test -z "$lt_cv_aix_libpath__CXX"; then
  12828. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12829. fi
  12830. fi
  12831. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12832. conftest$ac_exeext conftest.$ac_ext
  12833. if test -z "$lt_cv_aix_libpath__CXX"; then
  12834. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12835. fi
  12836. fi
  12837. aix_libpath=$lt_cv_aix_libpath__CXX
  12838. fi
  12839. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12840. 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
  12841. else
  12842. if test ia64 = "$host_cpu"; then
  12843. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12844. allow_undefined_flag_CXX="-z nodefs"
  12845. 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"
  12846. else
  12847. # Determine the default libpath from the value encoded in an
  12848. # empty executable.
  12849. if test set = "${lt_cv_aix_libpath+set}"; then
  12850. aix_libpath=$lt_cv_aix_libpath
  12851. else
  12852. if test ${lt_cv_aix_libpath__CXX+y}
  12853. then :
  12854. printf %s "(cached) " >&6
  12855. else $as_nop
  12856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12857. /* end confdefs.h. */
  12858. int
  12859. main (void)
  12860. {
  12861. ;
  12862. return 0;
  12863. }
  12864. _ACEOF
  12865. if ac_fn_cxx_try_link "$LINENO"
  12866. then :
  12867. lt_aix_libpath_sed='
  12868. /Import File Strings/,/^$/ {
  12869. /^0/ {
  12870. s/^0 *\([^ ]*\) *$/\1/
  12871. p
  12872. }
  12873. }'
  12874. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12875. # Check for a 64-bit object if we didn't find anything.
  12876. if test -z "$lt_cv_aix_libpath__CXX"; then
  12877. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12878. fi
  12879. fi
  12880. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12881. conftest$ac_exeext conftest.$ac_ext
  12882. if test -z "$lt_cv_aix_libpath__CXX"; then
  12883. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12884. fi
  12885. fi
  12886. aix_libpath=$lt_cv_aix_libpath__CXX
  12887. fi
  12888. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12889. # Warning - without using the other run time loading flags,
  12890. # -berok will link without error, but may produce a broken library.
  12891. no_undefined_flag_CXX=' $wl-bernotok'
  12892. allow_undefined_flag_CXX=' $wl-berok'
  12893. if test yes = "$with_gnu_ld"; then
  12894. # We only use this code for GNU lds that support --whole-archive.
  12895. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12896. else
  12897. # Exported symbols can be pulled into shared objects from archives
  12898. whole_archive_flag_spec_CXX='$convenience'
  12899. fi
  12900. archive_cmds_need_lc_CXX=yes
  12901. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12902. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12903. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12904. if test svr4 != "$with_aix_soname"; then
  12905. # This is similar to how AIX traditionally builds its shared
  12906. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12907. 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'
  12908. fi
  12909. if test aix != "$with_aix_soname"; then
  12910. 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'
  12911. else
  12912. # used by -dlpreopen to get the symbols
  12913. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12914. fi
  12915. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12916. fi
  12917. fi
  12918. ;;
  12919. beos*)
  12920. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12921. allow_undefined_flag_CXX=unsupported
  12922. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12923. # support --undefined. This deserves some investigation. FIXME
  12924. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12925. else
  12926. ld_shlibs_CXX=no
  12927. fi
  12928. ;;
  12929. chorus*)
  12930. case $cc_basename in
  12931. *)
  12932. # FIXME: insert proper C++ library support
  12933. ld_shlibs_CXX=no
  12934. ;;
  12935. esac
  12936. ;;
  12937. cygwin* | mingw* | pw32* | cegcc*)
  12938. case $GXX,$cc_basename in
  12939. ,cl* | no,cl*)
  12940. # Native MSVC
  12941. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12942. # no search path for DLLs.
  12943. hardcode_libdir_flag_spec_CXX=' '
  12944. allow_undefined_flag_CXX=unsupported
  12945. always_export_symbols_CXX=yes
  12946. file_list_spec_CXX='@'
  12947. # Tell ltmain to make .lib files, not .a files.
  12948. libext=lib
  12949. # Tell ltmain to make .dll files, not .so files.
  12950. shrext_cmds=.dll
  12951. # FIXME: Setting linknames here is a bad hack.
  12952. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12953. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12954. cp "$export_symbols" "$output_objdir/$soname.def";
  12955. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12956. else
  12957. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12958. fi~
  12959. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12960. linknames='
  12961. # The linker will not automatically build a static lib if we build a DLL.
  12962. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12963. enable_shared_with_static_runtimes_CXX=yes
  12964. # Don't use ranlib
  12965. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12966. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12967. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12968. case $lt_outputfile in
  12969. *.exe|*.EXE) ;;
  12970. *)
  12971. lt_outputfile=$lt_outputfile.exe
  12972. lt_tool_outputfile=$lt_tool_outputfile.exe
  12973. ;;
  12974. esac~
  12975. func_to_tool_file "$lt_outputfile"~
  12976. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12977. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12978. $RM "$lt_outputfile.manifest";
  12979. fi'
  12980. ;;
  12981. *)
  12982. # g++
  12983. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12984. # as there is no search path for DLLs.
  12985. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12986. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12987. allow_undefined_flag_CXX=unsupported
  12988. always_export_symbols_CXX=no
  12989. enable_shared_with_static_runtimes_CXX=yes
  12990. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12991. 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'
  12992. # If the export-symbols file already is a .def file, use it as
  12993. # is; otherwise, prepend EXPORTS...
  12994. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12995. cp $export_symbols $output_objdir/$soname.def;
  12996. else
  12997. echo EXPORTS > $output_objdir/$soname.def;
  12998. cat $export_symbols >> $output_objdir/$soname.def;
  12999. fi~
  13000. $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'
  13001. else
  13002. ld_shlibs_CXX=no
  13003. fi
  13004. ;;
  13005. esac
  13006. ;;
  13007. darwin* | rhapsody*)
  13008. archive_cmds_need_lc_CXX=no
  13009. hardcode_direct_CXX=no
  13010. hardcode_automatic_CXX=yes
  13011. hardcode_shlibpath_var_CXX=unsupported
  13012. if test yes = "$lt_cv_ld_force_load"; then
  13013. 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\"`'
  13014. else
  13015. whole_archive_flag_spec_CXX=''
  13016. fi
  13017. link_all_deplibs_CXX=yes
  13018. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13019. case $cc_basename in
  13020. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13021. *) _lt_dar_can_shared=$GCC ;;
  13022. esac
  13023. if test yes = "$_lt_dar_can_shared"; then
  13024. output_verbose_link_cmd=func_echo_all
  13025. 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"
  13026. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13027. 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"
  13028. 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"
  13029. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13030. 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"
  13031. 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"
  13032. fi
  13033. else
  13034. ld_shlibs_CXX=no
  13035. fi
  13036. ;;
  13037. os2*)
  13038. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13039. hardcode_minus_L_CXX=yes
  13040. allow_undefined_flag_CXX=unsupported
  13041. shrext_cmds=.dll
  13042. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13043. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13044. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13045. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13046. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13047. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13048. emximp -o $lib $output_objdir/$libname.def'
  13049. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13050. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13051. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13052. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13053. prefix_cmds="$SED"~
  13054. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13055. prefix_cmds="$prefix_cmds -e 1d";
  13056. fi~
  13057. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13058. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13059. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13060. emximp -o $lib $output_objdir/$libname.def'
  13061. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13062. enable_shared_with_static_runtimes_CXX=yes
  13063. file_list_spec_CXX='@'
  13064. ;;
  13065. dgux*)
  13066. case $cc_basename in
  13067. ec++*)
  13068. # FIXME: insert proper C++ library support
  13069. ld_shlibs_CXX=no
  13070. ;;
  13071. ghcx*)
  13072. # Green Hills C++ Compiler
  13073. # FIXME: insert proper C++ library support
  13074. ld_shlibs_CXX=no
  13075. ;;
  13076. *)
  13077. # FIXME: insert proper C++ library support
  13078. ld_shlibs_CXX=no
  13079. ;;
  13080. esac
  13081. ;;
  13082. freebsd2.*)
  13083. # C++ shared libraries reported to be fairly broken before
  13084. # switch to ELF
  13085. ld_shlibs_CXX=no
  13086. ;;
  13087. freebsd-elf*)
  13088. archive_cmds_need_lc_CXX=no
  13089. ;;
  13090. freebsd* | dragonfly* | midnightbsd*)
  13091. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13092. # conventions
  13093. ld_shlibs_CXX=yes
  13094. ;;
  13095. haiku*)
  13096. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13097. link_all_deplibs_CXX=yes
  13098. ;;
  13099. hpux9*)
  13100. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13101. hardcode_libdir_separator_CXX=:
  13102. export_dynamic_flag_spec_CXX='$wl-E'
  13103. hardcode_direct_CXX=yes
  13104. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13105. # but as the default
  13106. # location of the library.
  13107. case $cc_basename in
  13108. CC*)
  13109. # FIXME: insert proper C++ library support
  13110. ld_shlibs_CXX=no
  13111. ;;
  13112. aCC*)
  13113. 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'
  13114. # Commands to make compiler produce verbose output that lists
  13115. # what "hidden" libraries, object files and flags are used when
  13116. # linking a shared library.
  13117. #
  13118. # There doesn't appear to be a way to prevent this compiler from
  13119. # explicitly linking system object files so we need to strip them
  13120. # from the output so that they don't get included in the library
  13121. # dependencies.
  13122. 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"'
  13123. ;;
  13124. *)
  13125. if test yes = "$GXX"; then
  13126. 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'
  13127. else
  13128. # FIXME: insert proper C++ library support
  13129. ld_shlibs_CXX=no
  13130. fi
  13131. ;;
  13132. esac
  13133. ;;
  13134. hpux10*|hpux11*)
  13135. if test no = "$with_gnu_ld"; then
  13136. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13137. hardcode_libdir_separator_CXX=:
  13138. case $host_cpu in
  13139. hppa*64*|ia64*)
  13140. ;;
  13141. *)
  13142. export_dynamic_flag_spec_CXX='$wl-E'
  13143. ;;
  13144. esac
  13145. fi
  13146. case $host_cpu in
  13147. hppa*64*|ia64*)
  13148. hardcode_direct_CXX=no
  13149. hardcode_shlibpath_var_CXX=no
  13150. ;;
  13151. *)
  13152. hardcode_direct_CXX=yes
  13153. hardcode_direct_absolute_CXX=yes
  13154. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13155. # but as the default
  13156. # location of the library.
  13157. ;;
  13158. esac
  13159. case $cc_basename in
  13160. CC*)
  13161. # FIXME: insert proper C++ library support
  13162. ld_shlibs_CXX=no
  13163. ;;
  13164. aCC*)
  13165. case $host_cpu in
  13166. hppa*64*)
  13167. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13168. ;;
  13169. ia64*)
  13170. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13171. ;;
  13172. *)
  13173. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13174. ;;
  13175. esac
  13176. # Commands to make compiler produce verbose output that lists
  13177. # what "hidden" libraries, object files and flags are used when
  13178. # linking a shared library.
  13179. #
  13180. # There doesn't appear to be a way to prevent this compiler from
  13181. # explicitly linking system object files so we need to strip them
  13182. # from the output so that they don't get included in the library
  13183. # dependencies.
  13184. 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"'
  13185. ;;
  13186. *)
  13187. if test yes = "$GXX"; then
  13188. if test no = "$with_gnu_ld"; then
  13189. case $host_cpu in
  13190. hppa*64*)
  13191. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13192. ;;
  13193. ia64*)
  13194. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13195. ;;
  13196. *)
  13197. 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'
  13198. ;;
  13199. esac
  13200. fi
  13201. else
  13202. # FIXME: insert proper C++ library support
  13203. ld_shlibs_CXX=no
  13204. fi
  13205. ;;
  13206. esac
  13207. ;;
  13208. interix[3-9]*)
  13209. hardcode_direct_CXX=no
  13210. hardcode_shlibpath_var_CXX=no
  13211. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13212. export_dynamic_flag_spec_CXX='$wl-E'
  13213. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13214. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13215. # default) and relocated if they conflict, which is a slow very memory
  13216. # consuming and fragmenting process. To avoid this, we pick a random,
  13217. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13218. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13219. 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'
  13220. 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'
  13221. ;;
  13222. irix5* | irix6*)
  13223. case $cc_basename in
  13224. CC*)
  13225. # SGI C++
  13226. 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'
  13227. # Archives containing C++ object files must be created using
  13228. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13229. # necessary to make sure instantiated templates are included
  13230. # in the archive.
  13231. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13232. ;;
  13233. *)
  13234. if test yes = "$GXX"; then
  13235. if test no = "$with_gnu_ld"; then
  13236. 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'
  13237. else
  13238. 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'
  13239. fi
  13240. fi
  13241. link_all_deplibs_CXX=yes
  13242. ;;
  13243. esac
  13244. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13245. hardcode_libdir_separator_CXX=:
  13246. inherit_rpath_CXX=yes
  13247. ;;
  13248. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13249. case $cc_basename in
  13250. KCC*)
  13251. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13252. # KCC will only create a shared library if the output file
  13253. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13254. # to its proper name (with version) after linking.
  13255. 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'
  13256. 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'
  13257. # Commands to make compiler produce verbose output that lists
  13258. # what "hidden" libraries, object files and flags are used when
  13259. # linking a shared library.
  13260. #
  13261. # There doesn't appear to be a way to prevent this compiler from
  13262. # explicitly linking system object files so we need to strip them
  13263. # from the output so that they don't get included in the library
  13264. # dependencies.
  13265. 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"'
  13266. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13267. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13268. # Archives containing C++ object files must be created using
  13269. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13270. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13271. ;;
  13272. icpc* | ecpc* )
  13273. # Intel C++
  13274. with_gnu_ld=yes
  13275. # version 8.0 and above of icpc choke on multiply defined symbols
  13276. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13277. # earlier do not add the objects themselves.
  13278. case `$CC -V 2>&1` in
  13279. *"Version 7."*)
  13280. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13281. 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'
  13282. ;;
  13283. *) # Version 8.0 or newer
  13284. tmp_idyn=
  13285. case $host_cpu in
  13286. ia64*) tmp_idyn=' -i_dynamic';;
  13287. esac
  13288. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13289. 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'
  13290. ;;
  13291. esac
  13292. archive_cmds_need_lc_CXX=no
  13293. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13294. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13295. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13296. ;;
  13297. pgCC* | pgcpp*)
  13298. # Portland Group C++ compiler
  13299. case `$CC -V` in
  13300. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13301. prelink_cmds_CXX='tpldir=Template.dir~
  13302. rm -rf $tpldir~
  13303. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13304. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13305. old_archive_cmds_CXX='tpldir=Template.dir~
  13306. rm -rf $tpldir~
  13307. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13308. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13309. $RANLIB $oldlib'
  13310. archive_cmds_CXX='tpldir=Template.dir~
  13311. rm -rf $tpldir~
  13312. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13313. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13314. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13315. rm -rf $tpldir~
  13316. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13317. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13318. ;;
  13319. *) # Version 6 and above use weak symbols
  13320. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13321. 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'
  13322. ;;
  13323. esac
  13324. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13325. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13326. 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'
  13327. ;;
  13328. cxx*)
  13329. # Compaq C++
  13330. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13331. 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'
  13332. runpath_var=LD_RUN_PATH
  13333. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13334. hardcode_libdir_separator_CXX=:
  13335. # Commands to make compiler produce verbose output that lists
  13336. # what "hidden" libraries, object files and flags are used when
  13337. # linking a shared library.
  13338. #
  13339. # There doesn't appear to be a way to prevent this compiler from
  13340. # explicitly linking system object files so we need to strip them
  13341. # from the output so that they don't get included in the library
  13342. # dependencies.
  13343. 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'
  13344. ;;
  13345. xl* | mpixl* | bgxl*)
  13346. # IBM XL 8.0 on PPC, with GNU ld
  13347. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13348. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13349. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13350. if test yes = "$supports_anon_versioning"; then
  13351. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13352. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13353. echo "local: *; };" >> $output_objdir/$libname.ver~
  13354. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13355. fi
  13356. ;;
  13357. *)
  13358. case `$CC -V 2>&1 | sed 5q` in
  13359. *Sun\ C*)
  13360. # Sun C++ 5.9
  13361. no_undefined_flag_CXX=' -zdefs'
  13362. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13363. 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'
  13364. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13365. 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'
  13366. compiler_needs_object_CXX=yes
  13367. # Not sure whether something based on
  13368. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13369. # would be better.
  13370. output_verbose_link_cmd='func_echo_all'
  13371. # Archives containing C++ object files must be created using
  13372. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13373. # necessary to make sure instantiated templates are included
  13374. # in the archive.
  13375. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13376. ;;
  13377. esac
  13378. ;;
  13379. esac
  13380. ;;
  13381. lynxos*)
  13382. # FIXME: insert proper C++ library support
  13383. ld_shlibs_CXX=no
  13384. ;;
  13385. m88k*)
  13386. # FIXME: insert proper C++ library support
  13387. ld_shlibs_CXX=no
  13388. ;;
  13389. mvs*)
  13390. case $cc_basename in
  13391. cxx*)
  13392. # FIXME: insert proper C++ library support
  13393. ld_shlibs_CXX=no
  13394. ;;
  13395. *)
  13396. # FIXME: insert proper C++ library support
  13397. ld_shlibs_CXX=no
  13398. ;;
  13399. esac
  13400. ;;
  13401. netbsd*)
  13402. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13403. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13404. wlarc=
  13405. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13406. hardcode_direct_CXX=yes
  13407. hardcode_shlibpath_var_CXX=no
  13408. fi
  13409. # Workaround some broken pre-1.5 toolchains
  13410. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13411. ;;
  13412. *nto* | *qnx*)
  13413. ld_shlibs_CXX=yes
  13414. ;;
  13415. openbsd* | bitrig*)
  13416. if test -f /usr/libexec/ld.so; then
  13417. hardcode_direct_CXX=yes
  13418. hardcode_shlibpath_var_CXX=no
  13419. hardcode_direct_absolute_CXX=yes
  13420. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13421. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13422. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13423. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13424. export_dynamic_flag_spec_CXX='$wl-E'
  13425. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13426. fi
  13427. output_verbose_link_cmd=func_echo_all
  13428. else
  13429. ld_shlibs_CXX=no
  13430. fi
  13431. ;;
  13432. osf3* | osf4* | osf5*)
  13433. case $cc_basename in
  13434. KCC*)
  13435. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13436. # KCC will only create a shared library if the output file
  13437. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13438. # to its proper name (with version) after linking.
  13439. 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'
  13440. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13441. hardcode_libdir_separator_CXX=:
  13442. # Archives containing C++ object files must be created using
  13443. # the KAI C++ compiler.
  13444. case $host in
  13445. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13446. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13447. esac
  13448. ;;
  13449. RCC*)
  13450. # Rational C++ 2.4.1
  13451. # FIXME: insert proper C++ library support
  13452. ld_shlibs_CXX=no
  13453. ;;
  13454. cxx*)
  13455. case $host in
  13456. osf3*)
  13457. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13458. 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'
  13459. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13460. ;;
  13461. *)
  13462. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13463. 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'
  13464. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13465. echo "-hidden">> $lib.exp~
  13466. $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~
  13467. $RM $lib.exp'
  13468. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13469. ;;
  13470. esac
  13471. hardcode_libdir_separator_CXX=:
  13472. # Commands to make compiler produce verbose output that lists
  13473. # what "hidden" libraries, object files and flags are used when
  13474. # linking a shared library.
  13475. #
  13476. # There doesn't appear to be a way to prevent this compiler from
  13477. # explicitly linking system object files so we need to strip them
  13478. # from the output so that they don't get included in the library
  13479. # dependencies.
  13480. 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"'
  13481. ;;
  13482. *)
  13483. if test yes,no = "$GXX,$with_gnu_ld"; then
  13484. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13485. case $host in
  13486. osf3*)
  13487. 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'
  13488. ;;
  13489. *)
  13490. 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'
  13491. ;;
  13492. esac
  13493. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13494. hardcode_libdir_separator_CXX=:
  13495. # Commands to make compiler produce verbose output that lists
  13496. # what "hidden" libraries, object files and flags are used when
  13497. # linking a shared library.
  13498. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13499. else
  13500. # FIXME: insert proper C++ library support
  13501. ld_shlibs_CXX=no
  13502. fi
  13503. ;;
  13504. esac
  13505. ;;
  13506. psos*)
  13507. # FIXME: insert proper C++ library support
  13508. ld_shlibs_CXX=no
  13509. ;;
  13510. sunos4*)
  13511. case $cc_basename in
  13512. CC*)
  13513. # Sun C++ 4.x
  13514. # FIXME: insert proper C++ library support
  13515. ld_shlibs_CXX=no
  13516. ;;
  13517. lcc*)
  13518. # Lucid
  13519. # FIXME: insert proper C++ library support
  13520. ld_shlibs_CXX=no
  13521. ;;
  13522. *)
  13523. # FIXME: insert proper C++ library support
  13524. ld_shlibs_CXX=no
  13525. ;;
  13526. esac
  13527. ;;
  13528. solaris*)
  13529. case $cc_basename in
  13530. CC* | sunCC*)
  13531. # Sun C++ 4.2, 5.x and Centerline C++
  13532. archive_cmds_need_lc_CXX=yes
  13533. no_undefined_flag_CXX=' -zdefs'
  13534. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13535. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13536. $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'
  13537. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13538. hardcode_shlibpath_var_CXX=no
  13539. case $host_os in
  13540. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13541. *)
  13542. # The compiler driver will combine and reorder linker options,
  13543. # but understands '-z linker_flag'.
  13544. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13545. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13546. ;;
  13547. esac
  13548. link_all_deplibs_CXX=yes
  13549. output_verbose_link_cmd='func_echo_all'
  13550. # Archives containing C++ object files must be created using
  13551. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13552. # necessary to make sure instantiated templates are included
  13553. # in the archive.
  13554. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13555. ;;
  13556. gcx*)
  13557. # Green Hills C++ Compiler
  13558. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13559. # The C++ compiler must be used to create the archive.
  13560. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13561. ;;
  13562. *)
  13563. # GNU C++ compiler with Solaris linker
  13564. if test yes,no = "$GXX,$with_gnu_ld"; then
  13565. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13566. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13567. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13568. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13569. $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'
  13570. # Commands to make compiler produce verbose output that lists
  13571. # what "hidden" libraries, object files and flags are used when
  13572. # linking a shared library.
  13573. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13574. else
  13575. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13576. # platform.
  13577. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13578. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13579. $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'
  13580. # Commands to make compiler produce verbose output that lists
  13581. # what "hidden" libraries, object files and flags are used when
  13582. # linking a shared library.
  13583. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13584. fi
  13585. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13586. case $host_os in
  13587. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13588. *)
  13589. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13590. ;;
  13591. esac
  13592. fi
  13593. ;;
  13594. esac
  13595. ;;
  13596. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13597. no_undefined_flag_CXX='$wl-z,text'
  13598. archive_cmds_need_lc_CXX=no
  13599. hardcode_shlibpath_var_CXX=no
  13600. runpath_var='LD_RUN_PATH'
  13601. case $cc_basename in
  13602. CC*)
  13603. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13604. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13605. ;;
  13606. *)
  13607. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13608. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13609. ;;
  13610. esac
  13611. ;;
  13612. sysv5* | sco3.2v5* | sco5v6*)
  13613. # Note: We CANNOT use -z defs as we might desire, because we do not
  13614. # link with -lc, and that would cause any symbols used from libc to
  13615. # always be unresolved, which means just about no library would
  13616. # ever link correctly. If we're not using GNU ld we use -z text
  13617. # though, which does catch some bad symbols but isn't as heavy-handed
  13618. # as -z defs.
  13619. no_undefined_flag_CXX='$wl-z,text'
  13620. allow_undefined_flag_CXX='$wl-z,nodefs'
  13621. archive_cmds_need_lc_CXX=no
  13622. hardcode_shlibpath_var_CXX=no
  13623. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13624. hardcode_libdir_separator_CXX=':'
  13625. link_all_deplibs_CXX=yes
  13626. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13627. runpath_var='LD_RUN_PATH'
  13628. case $cc_basename in
  13629. CC*)
  13630. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13631. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13632. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13633. '"$old_archive_cmds_CXX"
  13634. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13635. '"$reload_cmds_CXX"
  13636. ;;
  13637. *)
  13638. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13639. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13640. ;;
  13641. esac
  13642. ;;
  13643. tandem*)
  13644. case $cc_basename in
  13645. NCC*)
  13646. # NonStop-UX NCC 3.20
  13647. # FIXME: insert proper C++ library support
  13648. ld_shlibs_CXX=no
  13649. ;;
  13650. *)
  13651. # FIXME: insert proper C++ library support
  13652. ld_shlibs_CXX=no
  13653. ;;
  13654. esac
  13655. ;;
  13656. vxworks*)
  13657. # FIXME: insert proper C++ library support
  13658. ld_shlibs_CXX=no
  13659. ;;
  13660. *)
  13661. # FIXME: insert proper C++ library support
  13662. ld_shlibs_CXX=no
  13663. ;;
  13664. esac
  13665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13666. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13667. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13668. GCC_CXX=$GXX
  13669. LD_CXX=$LD
  13670. ## CAVEAT EMPTOR:
  13671. ## There is no encapsulation within the following macros, do not change
  13672. ## the running order or otherwise move them around unless you know exactly
  13673. ## what you are doing...
  13674. # Dependencies to place before and after the object being linked:
  13675. predep_objects_CXX=
  13676. postdep_objects_CXX=
  13677. predeps_CXX=
  13678. postdeps_CXX=
  13679. compiler_lib_search_path_CXX=
  13680. cat > conftest.$ac_ext <<_LT_EOF
  13681. class Foo
  13682. {
  13683. public:
  13684. Foo (void) { a = 0; }
  13685. private:
  13686. int a;
  13687. };
  13688. _LT_EOF
  13689. _lt_libdeps_save_CFLAGS=$CFLAGS
  13690. case "$CC $CFLAGS " in #(
  13691. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13692. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13693. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13694. esac
  13695. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13696. (eval $ac_compile) 2>&5
  13697. ac_status=$?
  13698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13699. test $ac_status = 0; }; then
  13700. # Parse the compiler output and extract the necessary
  13701. # objects, libraries and library flags.
  13702. # Sentinel used to keep track of whether or not we are before
  13703. # the conftest object file.
  13704. pre_test_object_deps_done=no
  13705. for p in `eval "$output_verbose_link_cmd"`; do
  13706. case $prev$p in
  13707. -L* | -R* | -l*)
  13708. # Some compilers place space between "-{L,R}" and the path.
  13709. # Remove the space.
  13710. if test x-L = "x$p" ||
  13711. test x-R = "x$p" ||
  13712. test x-l = "x$p"; then
  13713. prev=$p
  13714. continue
  13715. fi
  13716. # Expand the sysroot to ease extracting the directories later.
  13717. if test -z "$prev"; then
  13718. case $p in
  13719. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13720. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13721. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13722. esac
  13723. fi
  13724. case $p in
  13725. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13726. esac
  13727. if test no = "$pre_test_object_deps_done"; then
  13728. case $prev in
  13729. -L | -R)
  13730. # Internal compiler library paths should come after those
  13731. # provided the user. The postdeps already come after the
  13732. # user supplied libs so there is no need to process them.
  13733. if test -z "$compiler_lib_search_path_CXX"; then
  13734. compiler_lib_search_path_CXX=$prev$p
  13735. else
  13736. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13737. fi
  13738. ;;
  13739. # The "-l" case would never come before the object being
  13740. # linked, so don't bother handling this case.
  13741. esac
  13742. else
  13743. if test -z "$postdeps_CXX"; then
  13744. postdeps_CXX=$prev$p
  13745. else
  13746. postdeps_CXX="${postdeps_CXX} $prev$p"
  13747. fi
  13748. fi
  13749. prev=
  13750. ;;
  13751. *.lto.$objext) ;; # Ignore GCC LTO objects
  13752. *.$objext)
  13753. # This assumes that the test object file only shows up
  13754. # once in the compiler output.
  13755. if test "$p" = "conftest.$objext"; then
  13756. pre_test_object_deps_done=yes
  13757. continue
  13758. fi
  13759. if test no = "$pre_test_object_deps_done"; then
  13760. if test -z "$predep_objects_CXX"; then
  13761. predep_objects_CXX=$p
  13762. else
  13763. predep_objects_CXX="$predep_objects_CXX $p"
  13764. fi
  13765. else
  13766. if test -z "$postdep_objects_CXX"; then
  13767. postdep_objects_CXX=$p
  13768. else
  13769. postdep_objects_CXX="$postdep_objects_CXX $p"
  13770. fi
  13771. fi
  13772. ;;
  13773. *) ;; # Ignore the rest.
  13774. esac
  13775. done
  13776. # Clean up.
  13777. rm -f a.out a.exe
  13778. else
  13779. echo "libtool.m4: error: problem compiling CXX test program"
  13780. fi
  13781. $RM -f confest.$objext
  13782. CFLAGS=$_lt_libdeps_save_CFLAGS
  13783. # PORTME: override above test on systems where it is broken
  13784. case $host_os in
  13785. interix[3-9]*)
  13786. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13787. # hack all around it, let's just trust "g++" to DTRT.
  13788. predep_objects_CXX=
  13789. postdep_objects_CXX=
  13790. postdeps_CXX=
  13791. ;;
  13792. esac
  13793. case " $postdeps_CXX " in
  13794. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13795. esac
  13796. compiler_lib_search_dirs_CXX=
  13797. if test -n "${compiler_lib_search_path_CXX}"; then
  13798. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13799. fi
  13800. lt_prog_compiler_wl_CXX=
  13801. lt_prog_compiler_pic_CXX=
  13802. lt_prog_compiler_static_CXX=
  13803. # C++ specific cases for pic, static, wl, etc.
  13804. if test yes = "$GXX"; then
  13805. lt_prog_compiler_wl_CXX='-Wl,'
  13806. lt_prog_compiler_static_CXX='-static'
  13807. case $host_os in
  13808. aix*)
  13809. # All AIX code is PIC.
  13810. if test ia64 = "$host_cpu"; then
  13811. # AIX 5 now supports IA64 processor
  13812. lt_prog_compiler_static_CXX='-Bstatic'
  13813. fi
  13814. lt_prog_compiler_pic_CXX='-fPIC'
  13815. ;;
  13816. amigaos*)
  13817. case $host_cpu in
  13818. powerpc)
  13819. # see comment about AmigaOS4 .so support
  13820. lt_prog_compiler_pic_CXX='-fPIC'
  13821. ;;
  13822. m68k)
  13823. # FIXME: we need at least 68020 code to build shared libraries, but
  13824. # adding the '-m68020' flag to GCC prevents building anything better,
  13825. # like '-m68040'.
  13826. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13827. ;;
  13828. esac
  13829. ;;
  13830. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13831. # PIC is the default for these OSes.
  13832. ;;
  13833. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13834. # This hack is so that the source file can tell whether it is being
  13835. # built for inclusion in a dll (and should export symbols for example).
  13836. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13837. # (--disable-auto-import) libraries
  13838. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13839. case $host_os in
  13840. os2*)
  13841. lt_prog_compiler_static_CXX='$wl-static'
  13842. ;;
  13843. esac
  13844. ;;
  13845. darwin* | rhapsody*)
  13846. # PIC is the default on this platform
  13847. # Common symbols not allowed in MH_DYLIB files
  13848. lt_prog_compiler_pic_CXX='-fno-common'
  13849. ;;
  13850. *djgpp*)
  13851. # DJGPP does not support shared libraries at all
  13852. lt_prog_compiler_pic_CXX=
  13853. ;;
  13854. haiku*)
  13855. # PIC is the default for Haiku.
  13856. # The "-static" flag exists, but is broken.
  13857. lt_prog_compiler_static_CXX=
  13858. ;;
  13859. interix[3-9]*)
  13860. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13861. # Instead, we relocate shared libraries at runtime.
  13862. ;;
  13863. sysv4*MP*)
  13864. if test -d /usr/nec; then
  13865. lt_prog_compiler_pic_CXX=-Kconform_pic
  13866. fi
  13867. ;;
  13868. hpux*)
  13869. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13870. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13871. # sets the default TLS model and affects inlining.
  13872. case $host_cpu in
  13873. hppa*64*)
  13874. ;;
  13875. *)
  13876. lt_prog_compiler_pic_CXX='-fPIC'
  13877. ;;
  13878. esac
  13879. ;;
  13880. *qnx* | *nto*)
  13881. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13882. # it will coredump.
  13883. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13884. ;;
  13885. *)
  13886. lt_prog_compiler_pic_CXX='-fPIC'
  13887. ;;
  13888. esac
  13889. else
  13890. case $host_os in
  13891. aix[4-9]*)
  13892. # All AIX code is PIC.
  13893. if test ia64 = "$host_cpu"; then
  13894. # AIX 5 now supports IA64 processor
  13895. lt_prog_compiler_static_CXX='-Bstatic'
  13896. else
  13897. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13898. fi
  13899. ;;
  13900. chorus*)
  13901. case $cc_basename in
  13902. cxch68*)
  13903. # Green Hills C++ Compiler
  13904. # _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"
  13905. ;;
  13906. esac
  13907. ;;
  13908. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13909. # This hack is so that the source file can tell whether it is being
  13910. # built for inclusion in a dll (and should export symbols for example).
  13911. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13912. ;;
  13913. dgux*)
  13914. case $cc_basename in
  13915. ec++*)
  13916. lt_prog_compiler_pic_CXX='-KPIC'
  13917. ;;
  13918. ghcx*)
  13919. # Green Hills C++ Compiler
  13920. lt_prog_compiler_pic_CXX='-pic'
  13921. ;;
  13922. *)
  13923. ;;
  13924. esac
  13925. ;;
  13926. freebsd* | dragonfly* | midnightbsd*)
  13927. # FreeBSD uses GNU C++
  13928. ;;
  13929. hpux9* | hpux10* | hpux11*)
  13930. case $cc_basename in
  13931. CC*)
  13932. lt_prog_compiler_wl_CXX='-Wl,'
  13933. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13934. if test ia64 != "$host_cpu"; then
  13935. lt_prog_compiler_pic_CXX='+Z'
  13936. fi
  13937. ;;
  13938. aCC*)
  13939. lt_prog_compiler_wl_CXX='-Wl,'
  13940. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13941. case $host_cpu in
  13942. hppa*64*|ia64*)
  13943. # +Z the default
  13944. ;;
  13945. *)
  13946. lt_prog_compiler_pic_CXX='+Z'
  13947. ;;
  13948. esac
  13949. ;;
  13950. *)
  13951. ;;
  13952. esac
  13953. ;;
  13954. interix*)
  13955. # This is c89, which is MS Visual C++ (no shared libs)
  13956. # Anyone wants to do a port?
  13957. ;;
  13958. irix5* | irix6* | nonstopux*)
  13959. case $cc_basename in
  13960. CC*)
  13961. lt_prog_compiler_wl_CXX='-Wl,'
  13962. lt_prog_compiler_static_CXX='-non_shared'
  13963. # CC pic flag -KPIC is the default.
  13964. ;;
  13965. *)
  13966. ;;
  13967. esac
  13968. ;;
  13969. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13970. case $cc_basename in
  13971. KCC*)
  13972. # KAI C++ Compiler
  13973. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13974. lt_prog_compiler_pic_CXX='-fPIC'
  13975. ;;
  13976. ecpc* )
  13977. # old Intel C++ for x86_64, which still supported -KPIC.
  13978. lt_prog_compiler_wl_CXX='-Wl,'
  13979. lt_prog_compiler_pic_CXX='-KPIC'
  13980. lt_prog_compiler_static_CXX='-static'
  13981. ;;
  13982. icpc* )
  13983. # Intel C++, used to be incompatible with GCC.
  13984. # ICC 10 doesn't accept -KPIC any more.
  13985. lt_prog_compiler_wl_CXX='-Wl,'
  13986. lt_prog_compiler_pic_CXX='-fPIC'
  13987. lt_prog_compiler_static_CXX='-static'
  13988. ;;
  13989. pgCC* | pgcpp*)
  13990. # Portland Group C++ compiler
  13991. lt_prog_compiler_wl_CXX='-Wl,'
  13992. lt_prog_compiler_pic_CXX='-fpic'
  13993. lt_prog_compiler_static_CXX='-Bstatic'
  13994. ;;
  13995. cxx*)
  13996. # Compaq C++
  13997. # Make sure the PIC flag is empty. It appears that all Alpha
  13998. # Linux and Compaq Tru64 Unix objects are PIC.
  13999. lt_prog_compiler_pic_CXX=
  14000. lt_prog_compiler_static_CXX='-non_shared'
  14001. ;;
  14002. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14003. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14004. lt_prog_compiler_wl_CXX='-Wl,'
  14005. lt_prog_compiler_pic_CXX='-qpic'
  14006. lt_prog_compiler_static_CXX='-qstaticlink'
  14007. ;;
  14008. *)
  14009. case `$CC -V 2>&1 | sed 5q` in
  14010. *Sun\ C*)
  14011. # Sun C++ 5.9
  14012. lt_prog_compiler_pic_CXX='-KPIC'
  14013. lt_prog_compiler_static_CXX='-Bstatic'
  14014. lt_prog_compiler_wl_CXX='-Qoption ld '
  14015. ;;
  14016. esac
  14017. ;;
  14018. esac
  14019. ;;
  14020. lynxos*)
  14021. ;;
  14022. m88k*)
  14023. ;;
  14024. mvs*)
  14025. case $cc_basename in
  14026. cxx*)
  14027. lt_prog_compiler_pic_CXX='-W c,exportall'
  14028. ;;
  14029. *)
  14030. ;;
  14031. esac
  14032. ;;
  14033. netbsd*)
  14034. ;;
  14035. *qnx* | *nto*)
  14036. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14037. # it will coredump.
  14038. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14039. ;;
  14040. osf3* | osf4* | osf5*)
  14041. case $cc_basename in
  14042. KCC*)
  14043. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14044. ;;
  14045. RCC*)
  14046. # Rational C++ 2.4.1
  14047. lt_prog_compiler_pic_CXX='-pic'
  14048. ;;
  14049. cxx*)
  14050. # Digital/Compaq C++
  14051. lt_prog_compiler_wl_CXX='-Wl,'
  14052. # Make sure the PIC flag is empty. It appears that all Alpha
  14053. # Linux and Compaq Tru64 Unix objects are PIC.
  14054. lt_prog_compiler_pic_CXX=
  14055. lt_prog_compiler_static_CXX='-non_shared'
  14056. ;;
  14057. *)
  14058. ;;
  14059. esac
  14060. ;;
  14061. psos*)
  14062. ;;
  14063. solaris*)
  14064. case $cc_basename in
  14065. CC* | sunCC*)
  14066. # Sun C++ 4.2, 5.x and Centerline C++
  14067. lt_prog_compiler_pic_CXX='-KPIC'
  14068. lt_prog_compiler_static_CXX='-Bstatic'
  14069. lt_prog_compiler_wl_CXX='-Qoption ld '
  14070. ;;
  14071. gcx*)
  14072. # Green Hills C++ Compiler
  14073. lt_prog_compiler_pic_CXX='-PIC'
  14074. ;;
  14075. *)
  14076. ;;
  14077. esac
  14078. ;;
  14079. sunos4*)
  14080. case $cc_basename in
  14081. CC*)
  14082. # Sun C++ 4.x
  14083. lt_prog_compiler_pic_CXX='-pic'
  14084. lt_prog_compiler_static_CXX='-Bstatic'
  14085. ;;
  14086. lcc*)
  14087. # Lucid
  14088. lt_prog_compiler_pic_CXX='-pic'
  14089. ;;
  14090. *)
  14091. ;;
  14092. esac
  14093. ;;
  14094. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14095. case $cc_basename in
  14096. CC*)
  14097. lt_prog_compiler_wl_CXX='-Wl,'
  14098. lt_prog_compiler_pic_CXX='-KPIC'
  14099. lt_prog_compiler_static_CXX='-Bstatic'
  14100. ;;
  14101. esac
  14102. ;;
  14103. tandem*)
  14104. case $cc_basename in
  14105. NCC*)
  14106. # NonStop-UX NCC 3.20
  14107. lt_prog_compiler_pic_CXX='-KPIC'
  14108. ;;
  14109. *)
  14110. ;;
  14111. esac
  14112. ;;
  14113. vxworks*)
  14114. ;;
  14115. *)
  14116. lt_prog_compiler_can_build_shared_CXX=no
  14117. ;;
  14118. esac
  14119. fi
  14120. case $host_os in
  14121. # For platforms that do not support PIC, -DPIC is meaningless:
  14122. *djgpp*)
  14123. lt_prog_compiler_pic_CXX=
  14124. ;;
  14125. *)
  14126. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14127. ;;
  14128. esac
  14129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14130. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14131. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14132. then :
  14133. printf %s "(cached) " >&6
  14134. else $as_nop
  14135. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14136. fi
  14137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14138. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14139. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14140. #
  14141. # Check to make sure the PIC flag actually works.
  14142. #
  14143. if test -n "$lt_prog_compiler_pic_CXX"; then
  14144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14145. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14146. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14147. then :
  14148. printf %s "(cached) " >&6
  14149. else $as_nop
  14150. lt_cv_prog_compiler_pic_works_CXX=no
  14151. ac_outfile=conftest.$ac_objext
  14152. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14153. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14154. # Insert the option either (1) after the last *FLAGS variable, or
  14155. # (2) before a word containing "conftest.", or (3) at the end.
  14156. # Note that $ac_compile itself does not contain backslashes and begins
  14157. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14158. # The option is referenced via a variable to avoid confusing sed.
  14159. lt_compile=`echo "$ac_compile" | $SED \
  14160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14162. -e 's:$: $lt_compiler_flag:'`
  14163. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14164. (eval "$lt_compile" 2>conftest.err)
  14165. ac_status=$?
  14166. cat conftest.err >&5
  14167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14168. if (exit $ac_status) && test -s "$ac_outfile"; then
  14169. # The compiler can only warn and ignore the option if not recognized
  14170. # So say no if there are warnings other than the usual output.
  14171. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14173. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14174. lt_cv_prog_compiler_pic_works_CXX=yes
  14175. fi
  14176. fi
  14177. $RM conftest*
  14178. fi
  14179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14180. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14181. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14182. case $lt_prog_compiler_pic_CXX in
  14183. "" | " "*) ;;
  14184. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14185. esac
  14186. else
  14187. lt_prog_compiler_pic_CXX=
  14188. lt_prog_compiler_can_build_shared_CXX=no
  14189. fi
  14190. fi
  14191. #
  14192. # Check to make sure the static flag actually works.
  14193. #
  14194. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14196. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14197. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14198. then :
  14199. printf %s "(cached) " >&6
  14200. else $as_nop
  14201. lt_cv_prog_compiler_static_works_CXX=no
  14202. save_LDFLAGS=$LDFLAGS
  14203. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14204. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14205. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14206. # The linker can only warn and ignore the option if not recognized
  14207. # So say no if there are warnings
  14208. if test -s conftest.err; then
  14209. # Append any errors to the config.log.
  14210. cat conftest.err 1>&5
  14211. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14212. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14213. if diff conftest.exp conftest.er2 >/dev/null; then
  14214. lt_cv_prog_compiler_static_works_CXX=yes
  14215. fi
  14216. else
  14217. lt_cv_prog_compiler_static_works_CXX=yes
  14218. fi
  14219. fi
  14220. $RM -r conftest*
  14221. LDFLAGS=$save_LDFLAGS
  14222. fi
  14223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14224. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14225. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14226. :
  14227. else
  14228. lt_prog_compiler_static_CXX=
  14229. fi
  14230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14231. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14232. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14233. then :
  14234. printf %s "(cached) " >&6
  14235. else $as_nop
  14236. lt_cv_prog_compiler_c_o_CXX=no
  14237. $RM -r conftest 2>/dev/null
  14238. mkdir conftest
  14239. cd conftest
  14240. mkdir out
  14241. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14242. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14243. # Insert the option either (1) after the last *FLAGS variable, or
  14244. # (2) before a word containing "conftest.", or (3) at the end.
  14245. # Note that $ac_compile itself does not contain backslashes and begins
  14246. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14247. lt_compile=`echo "$ac_compile" | $SED \
  14248. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14249. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14250. -e 's:$: $lt_compiler_flag:'`
  14251. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14252. (eval "$lt_compile" 2>out/conftest.err)
  14253. ac_status=$?
  14254. cat out/conftest.err >&5
  14255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14256. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14257. then
  14258. # The compiler can only warn and ignore the option if not recognized
  14259. # So say no if there are warnings
  14260. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14261. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14262. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14263. lt_cv_prog_compiler_c_o_CXX=yes
  14264. fi
  14265. fi
  14266. chmod u+w . 2>&5
  14267. $RM conftest*
  14268. # SGI C++ compiler will create directory out/ii_files/ for
  14269. # template instantiation
  14270. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14271. $RM out/* && rmdir out
  14272. cd ..
  14273. $RM -r conftest
  14274. $RM conftest*
  14275. fi
  14276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14277. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14279. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14280. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14281. then :
  14282. printf %s "(cached) " >&6
  14283. else $as_nop
  14284. lt_cv_prog_compiler_c_o_CXX=no
  14285. $RM -r conftest 2>/dev/null
  14286. mkdir conftest
  14287. cd conftest
  14288. mkdir out
  14289. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14290. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14291. # Insert the option either (1) after the last *FLAGS variable, or
  14292. # (2) before a word containing "conftest.", or (3) at the end.
  14293. # Note that $ac_compile itself does not contain backslashes and begins
  14294. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14295. lt_compile=`echo "$ac_compile" | $SED \
  14296. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14297. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14298. -e 's:$: $lt_compiler_flag:'`
  14299. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14300. (eval "$lt_compile" 2>out/conftest.err)
  14301. ac_status=$?
  14302. cat out/conftest.err >&5
  14303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14304. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14305. then
  14306. # The compiler can only warn and ignore the option if not recognized
  14307. # So say no if there are warnings
  14308. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14309. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14310. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14311. lt_cv_prog_compiler_c_o_CXX=yes
  14312. fi
  14313. fi
  14314. chmod u+w . 2>&5
  14315. $RM conftest*
  14316. # SGI C++ compiler will create directory out/ii_files/ for
  14317. # template instantiation
  14318. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14319. $RM out/* && rmdir out
  14320. cd ..
  14321. $RM -r conftest
  14322. $RM conftest*
  14323. fi
  14324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14325. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14326. hard_links=nottested
  14327. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14328. # do not overwrite the value of need_locks provided by the user
  14329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14330. printf %s "checking if we can lock with hard links... " >&6; }
  14331. hard_links=yes
  14332. $RM conftest*
  14333. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14334. touch conftest.a
  14335. ln conftest.a conftest.b 2>&5 || hard_links=no
  14336. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14338. printf "%s\n" "$hard_links" >&6; }
  14339. if test no = "$hard_links"; then
  14340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14341. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14342. need_locks=warn
  14343. fi
  14344. else
  14345. need_locks=no
  14346. fi
  14347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14348. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14349. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14350. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14351. case $host_os in
  14352. aix[4-9]*)
  14353. # If we're using GNU nm, then we don't want the "-C" option.
  14354. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14355. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14356. # weak defined symbols like other global defined symbols, whereas
  14357. # GNU nm marks them as "W".
  14358. # While the 'weak' keyword is ignored in the Export File, we need
  14359. # it in the Import File for the 'aix-soname' feature, so we have
  14360. # to replace the "-B" option with "-P" for AIX nm.
  14361. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14362. 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'
  14363. else
  14364. 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'
  14365. fi
  14366. ;;
  14367. pw32*)
  14368. export_symbols_cmds_CXX=$ltdll_cmds
  14369. ;;
  14370. cygwin* | mingw* | cegcc*)
  14371. case $cc_basename in
  14372. cl*)
  14373. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14374. ;;
  14375. *)
  14376. 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'
  14377. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14378. ;;
  14379. esac
  14380. ;;
  14381. *)
  14382. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14383. ;;
  14384. esac
  14385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14386. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14387. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14388. with_gnu_ld_CXX=$with_gnu_ld
  14389. #
  14390. # Do we need to explicitly link libc?
  14391. #
  14392. case "x$archive_cmds_need_lc_CXX" in
  14393. x|xyes)
  14394. # Assume -lc should be added
  14395. archive_cmds_need_lc_CXX=yes
  14396. if test yes,yes = "$GCC,$enable_shared"; then
  14397. case $archive_cmds_CXX in
  14398. *'~'*)
  14399. # FIXME: we may have to deal with multi-command sequences.
  14400. ;;
  14401. '$CC '*)
  14402. # Test whether the compiler implicitly links with -lc since on some
  14403. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14404. # to ld, don't add -lc before -lgcc.
  14405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14406. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14407. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14408. then :
  14409. printf %s "(cached) " >&6
  14410. else $as_nop
  14411. $RM conftest*
  14412. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14413. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14414. (eval $ac_compile) 2>&5
  14415. ac_status=$?
  14416. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14417. test $ac_status = 0; } 2>conftest.err; then
  14418. soname=conftest
  14419. lib=conftest
  14420. libobjs=conftest.$ac_objext
  14421. deplibs=
  14422. wl=$lt_prog_compiler_wl_CXX
  14423. pic_flag=$lt_prog_compiler_pic_CXX
  14424. compiler_flags=-v
  14425. linker_flags=-v
  14426. verstring=
  14427. output_objdir=.
  14428. libname=conftest
  14429. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14430. allow_undefined_flag_CXX=
  14431. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14432. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14433. ac_status=$?
  14434. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14435. test $ac_status = 0; }
  14436. then
  14437. lt_cv_archive_cmds_need_lc_CXX=no
  14438. else
  14439. lt_cv_archive_cmds_need_lc_CXX=yes
  14440. fi
  14441. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14442. else
  14443. cat conftest.err 1>&5
  14444. fi
  14445. $RM conftest*
  14446. fi
  14447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14448. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14449. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14450. ;;
  14451. esac
  14452. fi
  14453. ;;
  14454. esac
  14455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14456. printf %s "checking dynamic linker characteristics... " >&6; }
  14457. library_names_spec=
  14458. libname_spec='lib$name'
  14459. soname_spec=
  14460. shrext_cmds=.so
  14461. postinstall_cmds=
  14462. postuninstall_cmds=
  14463. finish_cmds=
  14464. finish_eval=
  14465. shlibpath_var=
  14466. shlibpath_overrides_runpath=unknown
  14467. version_type=none
  14468. dynamic_linker="$host_os ld.so"
  14469. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14470. need_lib_prefix=unknown
  14471. hardcode_into_libs=no
  14472. # when you set need_version to no, make sure it does not cause -set_version
  14473. # flags to be left without arguments
  14474. need_version=unknown
  14475. case $host_os in
  14476. aix3*)
  14477. version_type=linux # correct to gnu/linux during the next big refactor
  14478. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14479. shlibpath_var=LIBPATH
  14480. # AIX 3 has no versioning support, so we append a major version to the name.
  14481. soname_spec='$libname$release$shared_ext$major'
  14482. ;;
  14483. aix[4-9]*)
  14484. version_type=linux # correct to gnu/linux during the next big refactor
  14485. need_lib_prefix=no
  14486. need_version=no
  14487. hardcode_into_libs=yes
  14488. if test ia64 = "$host_cpu"; then
  14489. # AIX 5 supports IA64
  14490. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14491. shlibpath_var=LD_LIBRARY_PATH
  14492. else
  14493. # With GCC up to 2.95.x, collect2 would create an import file
  14494. # for dependence libraries. The import file would start with
  14495. # the line '#! .'. This would cause the generated library to
  14496. # depend on '.', always an invalid library. This was fixed in
  14497. # development snapshots of GCC prior to 3.0.
  14498. case $host_os in
  14499. aix4 | aix4.[01] | aix4.[01].*)
  14500. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14501. echo ' yes '
  14502. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14503. :
  14504. else
  14505. can_build_shared=no
  14506. fi
  14507. ;;
  14508. esac
  14509. # Using Import Files as archive members, it is possible to support
  14510. # filename-based versioning of shared library archives on AIX. While
  14511. # this would work for both with and without runtime linking, it will
  14512. # prevent static linking of such archives. So we do filename-based
  14513. # shared library versioning with .so extension only, which is used
  14514. # when both runtime linking and shared linking is enabled.
  14515. # Unfortunately, runtime linking may impact performance, so we do
  14516. # not want this to be the default eventually. Also, we use the
  14517. # versioned .so libs for executables only if there is the -brtl
  14518. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14519. # To allow for filename-based versioning support, we need to create
  14520. # libNAME.so.V as an archive file, containing:
  14521. # *) an Import File, referring to the versioned filename of the
  14522. # archive as well as the shared archive member, telling the
  14523. # bitwidth (32 or 64) of that shared object, and providing the
  14524. # list of exported symbols of that shared object, eventually
  14525. # decorated with the 'weak' keyword
  14526. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14527. # it being seen by the linker.
  14528. # At run time we better use the real file rather than another symlink,
  14529. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14530. case $with_aix_soname,$aix_use_runtimelinking in
  14531. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14532. # soname into executable. Probably we can add versioning support to
  14533. # collect2, so additional links can be useful in future.
  14534. aix,yes) # traditional libtool
  14535. dynamic_linker='AIX unversionable lib.so'
  14536. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14537. # instead of lib<name>.a to let people know that these are not
  14538. # typical AIX shared libraries.
  14539. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14540. ;;
  14541. aix,no) # traditional AIX only
  14542. dynamic_linker='AIX lib.a(lib.so.V)'
  14543. # We preserve .a as extension for shared libraries through AIX4.2
  14544. # and later when we are not doing run time linking.
  14545. library_names_spec='$libname$release.a $libname.a'
  14546. soname_spec='$libname$release$shared_ext$major'
  14547. ;;
  14548. svr4,*) # full svr4 only
  14549. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14550. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14551. # We do not specify a path in Import Files, so LIBPATH fires.
  14552. shlibpath_overrides_runpath=yes
  14553. ;;
  14554. *,yes) # both, prefer svr4
  14555. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14556. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14557. # unpreferred sharedlib libNAME.a needs extra handling
  14558. 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"'
  14559. 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"'
  14560. # We do not specify a path in Import Files, so LIBPATH fires.
  14561. shlibpath_overrides_runpath=yes
  14562. ;;
  14563. *,no) # both, prefer aix
  14564. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14565. library_names_spec='$libname$release.a $libname.a'
  14566. soname_spec='$libname$release$shared_ext$major'
  14567. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14568. 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)'
  14569. 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"'
  14570. ;;
  14571. esac
  14572. shlibpath_var=LIBPATH
  14573. fi
  14574. ;;
  14575. amigaos*)
  14576. case $host_cpu in
  14577. powerpc)
  14578. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14579. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14581. ;;
  14582. m68k)
  14583. library_names_spec='$libname.ixlibrary $libname.a'
  14584. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14585. 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'
  14586. ;;
  14587. esac
  14588. ;;
  14589. beos*)
  14590. library_names_spec='$libname$shared_ext'
  14591. dynamic_linker="$host_os ld.so"
  14592. shlibpath_var=LIBRARY_PATH
  14593. ;;
  14594. bsdi[45]*)
  14595. version_type=linux # correct to gnu/linux during the next big refactor
  14596. need_version=no
  14597. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14598. soname_spec='$libname$release$shared_ext$major'
  14599. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14600. shlibpath_var=LD_LIBRARY_PATH
  14601. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14602. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14603. # the default ld.so.conf also contains /usr/contrib/lib and
  14604. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14605. # libtool to hard-code these into programs
  14606. ;;
  14607. cygwin* | mingw* | pw32* | cegcc*)
  14608. version_type=windows
  14609. shrext_cmds=.dll
  14610. need_version=no
  14611. need_lib_prefix=no
  14612. case $GCC,$cc_basename in
  14613. yes,*)
  14614. # gcc
  14615. library_names_spec='$libname.dll.a'
  14616. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14617. postinstall_cmds='base_file=`basename \$file`~
  14618. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14619. dldir=$destdir/`dirname \$dlpath`~
  14620. test -d \$dldir || mkdir -p \$dldir~
  14621. $install_prog $dir/$dlname \$dldir/$dlname~
  14622. chmod a+x \$dldir/$dlname~
  14623. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14624. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14625. fi'
  14626. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14627. dlpath=$dir/\$dldll~
  14628. $RM \$dlpath'
  14629. shlibpath_overrides_runpath=yes
  14630. case $host_os in
  14631. cygwin*)
  14632. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14633. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14634. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14635. ;;
  14636. mingw* | cegcc*)
  14637. # MinGW DLLs use traditional 'lib' prefix
  14638. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14639. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14640. ;;
  14641. pw32*)
  14642. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14643. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14644. ;;
  14645. esac
  14646. dynamic_linker='Win32 ld.exe'
  14647. ;;
  14648. *,cl*)
  14649. # Native MSVC
  14650. libname_spec='$name'
  14651. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14652. library_names_spec='$libname.dll.lib'
  14653. case $build_os in
  14654. mingw*)
  14655. sys_lib_search_path_spec=
  14656. lt_save_ifs=$IFS
  14657. IFS=';'
  14658. for lt_path in $LIB
  14659. do
  14660. IFS=$lt_save_ifs
  14661. # Let DOS variable expansion print the short 8.3 style file name.
  14662. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14663. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14664. done
  14665. IFS=$lt_save_ifs
  14666. # Convert to MSYS style.
  14667. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14668. ;;
  14669. cygwin*)
  14670. # Convert to unix form, then to dos form, then back to unix form
  14671. # but this time dos style (no spaces!) so that the unix form looks
  14672. # like /cygdrive/c/PROGRA~1:/cygdr...
  14673. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14674. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14675. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14676. ;;
  14677. *)
  14678. sys_lib_search_path_spec=$LIB
  14679. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14680. # It is most probably a Windows format PATH.
  14681. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14682. else
  14683. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14684. fi
  14685. # FIXME: find the short name or the path components, as spaces are
  14686. # common. (e.g. "Program Files" -> "PROGRA~1")
  14687. ;;
  14688. esac
  14689. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14690. postinstall_cmds='base_file=`basename \$file`~
  14691. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14692. dldir=$destdir/`dirname \$dlpath`~
  14693. test -d \$dldir || mkdir -p \$dldir~
  14694. $install_prog $dir/$dlname \$dldir/$dlname'
  14695. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14696. dlpath=$dir/\$dldll~
  14697. $RM \$dlpath'
  14698. shlibpath_overrides_runpath=yes
  14699. dynamic_linker='Win32 link.exe'
  14700. ;;
  14701. *)
  14702. # Assume MSVC wrapper
  14703. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14704. dynamic_linker='Win32 ld.exe'
  14705. ;;
  14706. esac
  14707. # FIXME: first we should search . and the directory the executable is in
  14708. shlibpath_var=PATH
  14709. ;;
  14710. darwin* | rhapsody*)
  14711. dynamic_linker="$host_os dyld"
  14712. version_type=darwin
  14713. need_lib_prefix=no
  14714. need_version=no
  14715. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14716. soname_spec='$libname$release$major$shared_ext'
  14717. shlibpath_overrides_runpath=yes
  14718. shlibpath_var=DYLD_LIBRARY_PATH
  14719. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14720. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14721. ;;
  14722. dgux*)
  14723. version_type=linux # correct to gnu/linux during the next big refactor
  14724. need_lib_prefix=no
  14725. need_version=no
  14726. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14727. soname_spec='$libname$release$shared_ext$major'
  14728. shlibpath_var=LD_LIBRARY_PATH
  14729. ;;
  14730. freebsd* | dragonfly* | midnightbsd*)
  14731. # DragonFly does not have aout. When/if they implement a new
  14732. # versioning mechanism, adjust this.
  14733. if test -x /usr/bin/objformat; then
  14734. objformat=`/usr/bin/objformat`
  14735. else
  14736. case $host_os in
  14737. freebsd[23].*) objformat=aout ;;
  14738. *) objformat=elf ;;
  14739. esac
  14740. fi
  14741. version_type=freebsd-$objformat
  14742. case $version_type in
  14743. freebsd-elf*)
  14744. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14745. soname_spec='$libname$release$shared_ext$major'
  14746. need_version=no
  14747. need_lib_prefix=no
  14748. ;;
  14749. freebsd-*)
  14750. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14751. need_version=yes
  14752. ;;
  14753. esac
  14754. shlibpath_var=LD_LIBRARY_PATH
  14755. case $host_os in
  14756. freebsd2.*)
  14757. shlibpath_overrides_runpath=yes
  14758. ;;
  14759. freebsd3.[01]* | freebsdelf3.[01]*)
  14760. shlibpath_overrides_runpath=yes
  14761. hardcode_into_libs=yes
  14762. ;;
  14763. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14764. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14765. shlibpath_overrides_runpath=no
  14766. hardcode_into_libs=yes
  14767. ;;
  14768. *) # from 4.6 on, and DragonFly
  14769. shlibpath_overrides_runpath=yes
  14770. hardcode_into_libs=yes
  14771. ;;
  14772. esac
  14773. ;;
  14774. haiku*)
  14775. version_type=linux # correct to gnu/linux during the next big refactor
  14776. need_lib_prefix=no
  14777. need_version=no
  14778. dynamic_linker="$host_os runtime_loader"
  14779. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14780. soname_spec='$libname$release$shared_ext$major'
  14781. shlibpath_var=LIBRARY_PATH
  14782. shlibpath_overrides_runpath=no
  14783. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14784. hardcode_into_libs=yes
  14785. ;;
  14786. hpux9* | hpux10* | hpux11*)
  14787. # Give a soname corresponding to the major version so that dld.sl refuses to
  14788. # link against other versions.
  14789. version_type=sunos
  14790. need_lib_prefix=no
  14791. need_version=no
  14792. case $host_cpu in
  14793. ia64*)
  14794. shrext_cmds='.so'
  14795. hardcode_into_libs=yes
  14796. dynamic_linker="$host_os dld.so"
  14797. shlibpath_var=LD_LIBRARY_PATH
  14798. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14799. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14800. soname_spec='$libname$release$shared_ext$major'
  14801. if test 32 = "$HPUX_IA64_MODE"; then
  14802. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14803. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14804. else
  14805. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14806. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14807. fi
  14808. ;;
  14809. hppa*64*)
  14810. shrext_cmds='.sl'
  14811. hardcode_into_libs=yes
  14812. dynamic_linker="$host_os dld.sl"
  14813. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14814. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14815. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14816. soname_spec='$libname$release$shared_ext$major'
  14817. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14818. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14819. ;;
  14820. *)
  14821. shrext_cmds='.sl'
  14822. dynamic_linker="$host_os dld.sl"
  14823. shlibpath_var=SHLIB_PATH
  14824. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14825. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14826. soname_spec='$libname$release$shared_ext$major'
  14827. ;;
  14828. esac
  14829. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14830. postinstall_cmds='chmod 555 $lib'
  14831. # or fails outright, so override atomically:
  14832. install_override_mode=555
  14833. ;;
  14834. interix[3-9]*)
  14835. version_type=linux # correct to gnu/linux during the next big refactor
  14836. need_lib_prefix=no
  14837. need_version=no
  14838. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14839. soname_spec='$libname$release$shared_ext$major'
  14840. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. shlibpath_overrides_runpath=no
  14843. hardcode_into_libs=yes
  14844. ;;
  14845. irix5* | irix6* | nonstopux*)
  14846. case $host_os in
  14847. nonstopux*) version_type=nonstopux ;;
  14848. *)
  14849. if test yes = "$lt_cv_prog_gnu_ld"; then
  14850. version_type=linux # correct to gnu/linux during the next big refactor
  14851. else
  14852. version_type=irix
  14853. fi ;;
  14854. esac
  14855. need_lib_prefix=no
  14856. need_version=no
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14859. case $host_os in
  14860. irix5* | nonstopux*)
  14861. libsuff= shlibsuff=
  14862. ;;
  14863. *)
  14864. case $LD in # libtool.m4 will add one of these switches to LD
  14865. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14866. libsuff= shlibsuff= libmagic=32-bit;;
  14867. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14868. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14869. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14870. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14871. *) libsuff= shlibsuff= libmagic=never-match;;
  14872. esac
  14873. ;;
  14874. esac
  14875. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14876. shlibpath_overrides_runpath=no
  14877. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14878. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14879. hardcode_into_libs=yes
  14880. ;;
  14881. # No shared lib support for Linux oldld, aout, or coff.
  14882. linux*oldld* | linux*aout* | linux*coff*)
  14883. dynamic_linker=no
  14884. ;;
  14885. linux*android*)
  14886. version_type=none # Android doesn't support versioned libraries.
  14887. need_lib_prefix=no
  14888. need_version=no
  14889. library_names_spec='$libname$release$shared_ext'
  14890. soname_spec='$libname$release$shared_ext'
  14891. finish_cmds=
  14892. shlibpath_var=LD_LIBRARY_PATH
  14893. shlibpath_overrides_runpath=yes
  14894. # This implies no fast_install, which is unacceptable.
  14895. # Some rework will be needed to allow for fast_install
  14896. # before this can be enabled.
  14897. hardcode_into_libs=yes
  14898. dynamic_linker='Android linker'
  14899. # Don't embed -rpath directories since the linker doesn't support them.
  14900. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14901. ;;
  14902. # This must be glibc/ELF.
  14903. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14904. version_type=linux # correct to gnu/linux during the next big refactor
  14905. need_lib_prefix=no
  14906. need_version=no
  14907. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14908. soname_spec='$libname$release$shared_ext$major'
  14909. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14910. shlibpath_var=LD_LIBRARY_PATH
  14911. shlibpath_overrides_runpath=no
  14912. # Some binutils ld are patched to set DT_RUNPATH
  14913. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14914. then :
  14915. printf %s "(cached) " >&6
  14916. else $as_nop
  14917. lt_cv_shlibpath_overrides_runpath=no
  14918. save_LDFLAGS=$LDFLAGS
  14919. save_libdir=$libdir
  14920. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14921. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. int
  14925. main (void)
  14926. {
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. if ac_fn_cxx_try_link "$LINENO"
  14932. then :
  14933. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14934. then :
  14935. lt_cv_shlibpath_overrides_runpath=yes
  14936. fi
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14939. conftest$ac_exeext conftest.$ac_ext
  14940. LDFLAGS=$save_LDFLAGS
  14941. libdir=$save_libdir
  14942. fi
  14943. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14944. # This implies no fast_install, which is unacceptable.
  14945. # Some rework will be needed to allow for fast_install
  14946. # before this can be enabled.
  14947. hardcode_into_libs=yes
  14948. # Add ABI-specific directories to the system library path.
  14949. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14950. # Ideally, we could use ldconfig to report *all* directores which are
  14951. # searched for libraries, however this is still not possible. Aside from not
  14952. # being certain /sbin/ldconfig is available, command
  14953. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14954. # even though it is searched at run-time. Try to do the best guess by
  14955. # appending ld.so.conf contents (and includes) to the search path.
  14956. if test -f /etc/ld.so.conf; then
  14957. 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' ' '`
  14958. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14959. fi
  14960. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14961. # powerpc, because MkLinux only supported shared libraries with the
  14962. # GNU dynamic linker. Since this was broken with cross compilers,
  14963. # most powerpc-linux boxes support dynamic linking these days and
  14964. # people can always --disable-shared, the test was removed, and we
  14965. # assume the GNU/Linux dynamic linker is in use.
  14966. dynamic_linker='GNU/Linux ld.so'
  14967. ;;
  14968. netbsd*)
  14969. version_type=sunos
  14970. need_lib_prefix=no
  14971. need_version=no
  14972. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14973. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14974. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14975. dynamic_linker='NetBSD (a.out) ld.so'
  14976. else
  14977. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14978. soname_spec='$libname$release$shared_ext$major'
  14979. dynamic_linker='NetBSD ld.elf_so'
  14980. fi
  14981. shlibpath_var=LD_LIBRARY_PATH
  14982. shlibpath_overrides_runpath=yes
  14983. hardcode_into_libs=yes
  14984. ;;
  14985. newsos6)
  14986. version_type=linux # correct to gnu/linux during the next big refactor
  14987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14988. shlibpath_var=LD_LIBRARY_PATH
  14989. shlibpath_overrides_runpath=yes
  14990. ;;
  14991. *nto* | *qnx*)
  14992. version_type=qnx
  14993. need_lib_prefix=no
  14994. need_version=no
  14995. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14996. soname_spec='$libname$release$shared_ext$major'
  14997. shlibpath_var=LD_LIBRARY_PATH
  14998. shlibpath_overrides_runpath=no
  14999. hardcode_into_libs=yes
  15000. dynamic_linker='ldqnx.so'
  15001. ;;
  15002. openbsd* | bitrig*)
  15003. version_type=sunos
  15004. sys_lib_dlsearch_path_spec=/usr/lib
  15005. need_lib_prefix=no
  15006. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15007. need_version=no
  15008. else
  15009. need_version=yes
  15010. fi
  15011. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15012. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15013. shlibpath_var=LD_LIBRARY_PATH
  15014. shlibpath_overrides_runpath=yes
  15015. ;;
  15016. os2*)
  15017. libname_spec='$name'
  15018. shrext_cmds=.dll
  15019. need_lib_prefix=no
  15020. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15021. # SDL customization: removed versioning support.
  15022. # version_type=windows
  15023. # need_version=no
  15024. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15025. # v=$($ECHO $release$versuffix | tr -d .-);
  15026. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15027. # $ECHO $n$v`$shared_ext'
  15028. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15029. library_names_spec='${libname}_dll.$libext'
  15030. dynamic_linker='OS/2 ld.exe'
  15031. shlibpath_var=BEGINLIBPATH
  15032. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15033. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15034. postinstall_cmds='base_file=`basename \$file`~
  15035. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15036. dldir=$destdir/`dirname \$dlpath`~
  15037. test -d \$dldir || mkdir -p \$dldir~
  15038. $install_prog $dir/$dlname \$dldir/$dlname~
  15039. chmod a+x \$dldir/$dlname~
  15040. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15041. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15042. fi'
  15043. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15044. dlpath=$dir/\$dldll~
  15045. $RM \$dlpath'
  15046. ;;
  15047. osf3* | osf4* | osf5*)
  15048. version_type=osf
  15049. need_lib_prefix=no
  15050. need_version=no
  15051. soname_spec='$libname$release$shared_ext$major'
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15053. shlibpath_var=LD_LIBRARY_PATH
  15054. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15055. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15056. ;;
  15057. rdos*)
  15058. dynamic_linker=no
  15059. ;;
  15060. solaris*)
  15061. version_type=linux # correct to gnu/linux during the next big refactor
  15062. need_lib_prefix=no
  15063. need_version=no
  15064. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15065. soname_spec='$libname$release$shared_ext$major'
  15066. shlibpath_var=LD_LIBRARY_PATH
  15067. shlibpath_overrides_runpath=yes
  15068. hardcode_into_libs=yes
  15069. # ldd complains unless libraries are executable
  15070. postinstall_cmds='chmod +x $lib'
  15071. ;;
  15072. sunos4*)
  15073. version_type=sunos
  15074. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15075. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15076. shlibpath_var=LD_LIBRARY_PATH
  15077. shlibpath_overrides_runpath=yes
  15078. if test yes = "$with_gnu_ld"; then
  15079. need_lib_prefix=no
  15080. fi
  15081. need_version=yes
  15082. ;;
  15083. sysv4 | sysv4.3*)
  15084. version_type=linux # correct to gnu/linux during the next big refactor
  15085. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15086. soname_spec='$libname$release$shared_ext$major'
  15087. shlibpath_var=LD_LIBRARY_PATH
  15088. case $host_vendor in
  15089. sni)
  15090. shlibpath_overrides_runpath=no
  15091. need_lib_prefix=no
  15092. runpath_var=LD_RUN_PATH
  15093. ;;
  15094. siemens)
  15095. need_lib_prefix=no
  15096. ;;
  15097. motorola)
  15098. need_lib_prefix=no
  15099. need_version=no
  15100. shlibpath_overrides_runpath=no
  15101. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15102. ;;
  15103. esac
  15104. ;;
  15105. sysv4*MP*)
  15106. if test -d /usr/nec; then
  15107. version_type=linux # correct to gnu/linux during the next big refactor
  15108. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15109. soname_spec='$libname$shared_ext.$major'
  15110. shlibpath_var=LD_LIBRARY_PATH
  15111. fi
  15112. ;;
  15113. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15114. version_type=sco
  15115. need_lib_prefix=no
  15116. need_version=no
  15117. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15118. soname_spec='$libname$release$shared_ext$major'
  15119. shlibpath_var=LD_LIBRARY_PATH
  15120. shlibpath_overrides_runpath=yes
  15121. hardcode_into_libs=yes
  15122. if test yes = "$with_gnu_ld"; then
  15123. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15124. else
  15125. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15126. case $host_os in
  15127. sco3.2v5*)
  15128. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15129. ;;
  15130. esac
  15131. fi
  15132. sys_lib_dlsearch_path_spec='/usr/lib'
  15133. ;;
  15134. tpf*)
  15135. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15136. version_type=linux # correct to gnu/linux during the next big refactor
  15137. need_lib_prefix=no
  15138. need_version=no
  15139. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15140. shlibpath_var=LD_LIBRARY_PATH
  15141. shlibpath_overrides_runpath=no
  15142. hardcode_into_libs=yes
  15143. ;;
  15144. uts4*)
  15145. version_type=linux # correct to gnu/linux during the next big refactor
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. soname_spec='$libname$release$shared_ext$major'
  15148. shlibpath_var=LD_LIBRARY_PATH
  15149. ;;
  15150. *)
  15151. dynamic_linker=no
  15152. ;;
  15153. esac
  15154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15155. printf "%s\n" "$dynamic_linker" >&6; }
  15156. test no = "$dynamic_linker" && can_build_shared=no
  15157. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15158. if test yes = "$GCC"; then
  15159. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15160. fi
  15161. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15162. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15163. fi
  15164. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15165. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15166. fi
  15167. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15168. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15169. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15170. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15171. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15172. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15174. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15175. hardcode_action_CXX=
  15176. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15177. test -n "$runpath_var_CXX" ||
  15178. test yes = "$hardcode_automatic_CXX"; then
  15179. # We can hardcode non-existent directories.
  15180. if test no != "$hardcode_direct_CXX" &&
  15181. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15182. # have to relink, otherwise we might link with an installed library
  15183. # when we should be linking with a yet-to-be-installed one
  15184. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15185. test no != "$hardcode_minus_L_CXX"; then
  15186. # Linking always hardcodes the temporary library directory.
  15187. hardcode_action_CXX=relink
  15188. else
  15189. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15190. hardcode_action_CXX=immediate
  15191. fi
  15192. else
  15193. # We cannot hardcode anything, or else we can only hardcode existing
  15194. # directories.
  15195. hardcode_action_CXX=unsupported
  15196. fi
  15197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15198. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15199. if test relink = "$hardcode_action_CXX" ||
  15200. test yes = "$inherit_rpath_CXX"; then
  15201. # Fast installation is not supported
  15202. enable_fast_install=no
  15203. elif test yes = "$shlibpath_overrides_runpath" ||
  15204. test no = "$enable_shared"; then
  15205. # Fast installation is not necessary
  15206. enable_fast_install=needless
  15207. fi
  15208. fi # test -n "$compiler"
  15209. CC=$lt_save_CC
  15210. CFLAGS=$lt_save_CFLAGS
  15211. LDCXX=$LD
  15212. LD=$lt_save_LD
  15213. GCC=$lt_save_GCC
  15214. with_gnu_ld=$lt_save_with_gnu_ld
  15215. lt_cv_path_LDCXX=$lt_cv_path_LD
  15216. lt_cv_path_LD=$lt_save_path_LD
  15217. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15218. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15219. fi # test yes != "$_lt_caught_CXX_error"
  15220. ac_ext=c
  15221. ac_cpp='$CPP $CPPFLAGS'
  15222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15226. printf %s "checking for egrep... " >&6; }
  15227. if test ${ac_cv_path_EGREP+y}
  15228. then :
  15229. printf %s "(cached) " >&6
  15230. else $as_nop
  15231. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15232. then ac_cv_path_EGREP="$GREP -E"
  15233. else
  15234. if test -z "$EGREP"; then
  15235. ac_path_EGREP_found=false
  15236. # Loop through the user's path and test for each of PROGNAME-LIST
  15237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15239. do
  15240. IFS=$as_save_IFS
  15241. case $as_dir in #(((
  15242. '') as_dir=./ ;;
  15243. */) ;;
  15244. *) as_dir=$as_dir/ ;;
  15245. esac
  15246. for ac_prog in egrep
  15247. do
  15248. for ac_exec_ext in '' $ac_executable_extensions; do
  15249. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15250. as_fn_executable_p "$ac_path_EGREP" || continue
  15251. # Check for GNU ac_path_EGREP and select it if it is found.
  15252. # Check for GNU $ac_path_EGREP
  15253. case `"$ac_path_EGREP" --version 2>&1` in
  15254. *GNU*)
  15255. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15256. *)
  15257. ac_count=0
  15258. printf %s 0123456789 >"conftest.in"
  15259. while :
  15260. do
  15261. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15262. mv "conftest.tmp" "conftest.in"
  15263. cp "conftest.in" "conftest.nl"
  15264. printf "%s\n" 'EGREP' >> "conftest.nl"
  15265. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15266. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15267. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15268. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15269. # Best one so far, save it but keep looking for a better one
  15270. ac_cv_path_EGREP="$ac_path_EGREP"
  15271. ac_path_EGREP_max=$ac_count
  15272. fi
  15273. # 10*(2^10) chars as input seems more than enough
  15274. test $ac_count -gt 10 && break
  15275. done
  15276. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15277. esac
  15278. $ac_path_EGREP_found && break 3
  15279. done
  15280. done
  15281. done
  15282. IFS=$as_save_IFS
  15283. if test -z "$ac_cv_path_EGREP"; then
  15284. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15285. fi
  15286. else
  15287. ac_cv_path_EGREP=$EGREP
  15288. fi
  15289. fi
  15290. fi
  15291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15292. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15293. EGREP="$ac_cv_path_EGREP"
  15294. # Find a good install program. We prefer a C program (faster),
  15295. # so one script is as good as another. But avoid the broken or
  15296. # incompatible versions:
  15297. # SysV /etc/install, /usr/sbin/install
  15298. # SunOS /usr/etc/install
  15299. # IRIX /sbin/install
  15300. # AIX /bin/install
  15301. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15302. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15303. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15304. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15305. # OS/2's system install, which has a completely different semantic
  15306. # ./install, which can be erroneously created by make from ./install.sh.
  15307. # Reject install programs that cannot install multiple files.
  15308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15309. printf %s "checking for a BSD-compatible install... " >&6; }
  15310. if test -z "$INSTALL"; then
  15311. if test ${ac_cv_path_install+y}
  15312. then :
  15313. printf %s "(cached) " >&6
  15314. else $as_nop
  15315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15316. for as_dir in $PATH
  15317. do
  15318. IFS=$as_save_IFS
  15319. case $as_dir in #(((
  15320. '') as_dir=./ ;;
  15321. */) ;;
  15322. *) as_dir=$as_dir/ ;;
  15323. esac
  15324. # Account for fact that we put trailing slashes in our PATH walk.
  15325. case $as_dir in #((
  15326. ./ | /[cC]/* | \
  15327. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15328. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15329. /usr/ucb/* ) ;;
  15330. *)
  15331. # OSF1 and SCO ODT 3.0 have their own names for install.
  15332. # Don't use installbsd from OSF since it installs stuff as root
  15333. # by default.
  15334. for ac_prog in ginstall scoinst install; do
  15335. for ac_exec_ext in '' $ac_executable_extensions; do
  15336. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15337. if test $ac_prog = install &&
  15338. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15339. # AIX install. It has an incompatible calling convention.
  15340. :
  15341. elif test $ac_prog = install &&
  15342. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15343. # program-specific install script used by HP pwplus--don't use.
  15344. :
  15345. else
  15346. rm -rf conftest.one conftest.two conftest.dir
  15347. echo one > conftest.one
  15348. echo two > conftest.two
  15349. mkdir conftest.dir
  15350. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15351. test -s conftest.one && test -s conftest.two &&
  15352. test -s conftest.dir/conftest.one &&
  15353. test -s conftest.dir/conftest.two
  15354. then
  15355. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15356. break 3
  15357. fi
  15358. fi
  15359. fi
  15360. done
  15361. done
  15362. ;;
  15363. esac
  15364. done
  15365. IFS=$as_save_IFS
  15366. rm -rf conftest.one conftest.two conftest.dir
  15367. fi
  15368. if test ${ac_cv_path_install+y}; then
  15369. INSTALL=$ac_cv_path_install
  15370. else
  15371. # As a last resort, use the slow shell script. Don't cache a
  15372. # value for INSTALL within a source directory, because that will
  15373. # break other packages using the cache if that directory is
  15374. # removed, or if the value is a relative name.
  15375. INSTALL=$ac_install_sh
  15376. fi
  15377. fi
  15378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15379. printf "%s\n" "$INSTALL" >&6; }
  15380. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15381. # It thinks the first close brace ends the variable substitution.
  15382. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15383. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15384. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15386. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15387. set x ${MAKE-make}
  15388. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15389. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15390. then :
  15391. printf %s "(cached) " >&6
  15392. else $as_nop
  15393. cat >conftest.make <<\_ACEOF
  15394. SHELL = /bin/sh
  15395. all:
  15396. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15397. _ACEOF
  15398. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15399. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15400. *@@@%%%=?*=@@@%%%*)
  15401. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15402. *)
  15403. eval ac_cv_prog_make_${ac_make}_set=no;;
  15404. esac
  15405. rm -f conftest.make
  15406. fi
  15407. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15409. printf "%s\n" "yes" >&6; }
  15410. SET_MAKE=
  15411. else
  15412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15413. printf "%s\n" "no" >&6; }
  15414. SET_MAKE="MAKE=${MAKE-make}"
  15415. fi
  15416. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15417. if test -n "$ac_tool_prefix"; then
  15418. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15419. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15421. printf %s "checking for $ac_word... " >&6; }
  15422. if test ${ac_cv_path_PKG_CONFIG+y}
  15423. then :
  15424. printf %s "(cached) " >&6
  15425. else $as_nop
  15426. case $PKG_CONFIG in
  15427. [\\/]* | ?:[\\/]*)
  15428. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15429. ;;
  15430. *)
  15431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15432. for as_dir in $PATH
  15433. do
  15434. IFS=$as_save_IFS
  15435. case $as_dir in #(((
  15436. '') as_dir=./ ;;
  15437. */) ;;
  15438. *) as_dir=$as_dir/ ;;
  15439. esac
  15440. for ac_exec_ext in '' $ac_executable_extensions; do
  15441. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15442. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15443. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15444. break 2
  15445. fi
  15446. done
  15447. done
  15448. IFS=$as_save_IFS
  15449. ;;
  15450. esac
  15451. fi
  15452. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15453. if test -n "$PKG_CONFIG"; then
  15454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15455. printf "%s\n" "$PKG_CONFIG" >&6; }
  15456. else
  15457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15458. printf "%s\n" "no" >&6; }
  15459. fi
  15460. fi
  15461. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15462. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15463. # Extract the first word of "pkg-config", so it can be a program name with args.
  15464. set dummy pkg-config; ac_word=$2
  15465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15466. printf %s "checking for $ac_word... " >&6; }
  15467. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15468. then :
  15469. printf %s "(cached) " >&6
  15470. else $as_nop
  15471. case $ac_pt_PKG_CONFIG in
  15472. [\\/]* | ?:[\\/]*)
  15473. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15474. ;;
  15475. *)
  15476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15477. for as_dir in $PATH
  15478. do
  15479. IFS=$as_save_IFS
  15480. case $as_dir in #(((
  15481. '') as_dir=./ ;;
  15482. */) ;;
  15483. *) as_dir=$as_dir/ ;;
  15484. esac
  15485. for ac_exec_ext in '' $ac_executable_extensions; do
  15486. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15487. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15489. break 2
  15490. fi
  15491. done
  15492. done
  15493. IFS=$as_save_IFS
  15494. ;;
  15495. esac
  15496. fi
  15497. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15498. if test -n "$ac_pt_PKG_CONFIG"; then
  15499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15500. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15501. else
  15502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15503. printf "%s\n" "no" >&6; }
  15504. fi
  15505. if test "x$ac_pt_PKG_CONFIG" = x; then
  15506. PKG_CONFIG=""
  15507. else
  15508. case $cross_compiling:$ac_tool_warned in
  15509. yes:)
  15510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15511. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15512. ac_tool_warned=yes ;;
  15513. esac
  15514. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15515. fi
  15516. else
  15517. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15518. fi
  15519. fi
  15520. if test -n "$PKG_CONFIG"; then
  15521. _pkg_min_version=0.9.0
  15522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15523. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15524. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15526. printf "%s\n" "yes" >&6; }
  15527. else
  15528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15529. printf "%s\n" "no" >&6; }
  15530. PKG_CONFIG=""
  15531. fi
  15532. fi
  15533. # Check whether --enable-largefile was given.
  15534. if test ${enable_largefile+y}
  15535. then :
  15536. enableval=$enable_largefile;
  15537. fi
  15538. if test "$enable_largefile" != no; then
  15539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15540. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15541. if test ${ac_cv_sys_largefile_CC+y}
  15542. then :
  15543. printf %s "(cached) " >&6
  15544. else $as_nop
  15545. ac_cv_sys_largefile_CC=no
  15546. if test "$GCC" != yes; then
  15547. ac_save_CC=$CC
  15548. while :; do
  15549. # IRIX 6.2 and later do not support large files by default,
  15550. # so use the C compiler's -n32 option if that helps.
  15551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15552. /* end confdefs.h. */
  15553. #include <sys/types.h>
  15554. /* Check that off_t can represent 2**63 - 1 correctly.
  15555. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15556. since some C++ compilers masquerading as C compilers
  15557. incorrectly reject 9223372036854775807. */
  15558. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15559. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15560. && LARGE_OFF_T % 2147483647 == 1)
  15561. ? 1 : -1];
  15562. int
  15563. main (void)
  15564. {
  15565. ;
  15566. return 0;
  15567. }
  15568. _ACEOF
  15569. if ac_fn_c_try_compile "$LINENO"
  15570. then :
  15571. break
  15572. fi
  15573. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15574. CC="$CC -n32"
  15575. if ac_fn_c_try_compile "$LINENO"
  15576. then :
  15577. ac_cv_sys_largefile_CC=' -n32'; break
  15578. fi
  15579. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15580. break
  15581. done
  15582. CC=$ac_save_CC
  15583. rm -f conftest.$ac_ext
  15584. fi
  15585. fi
  15586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15587. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15588. if test "$ac_cv_sys_largefile_CC" != no; then
  15589. CC=$CC$ac_cv_sys_largefile_CC
  15590. fi
  15591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15592. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15593. if test ${ac_cv_sys_file_offset_bits+y}
  15594. then :
  15595. printf %s "(cached) " >&6
  15596. else $as_nop
  15597. while :; do
  15598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15599. /* end confdefs.h. */
  15600. #include <sys/types.h>
  15601. /* Check that off_t can represent 2**63 - 1 correctly.
  15602. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15603. since some C++ compilers masquerading as C compilers
  15604. incorrectly reject 9223372036854775807. */
  15605. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15606. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15607. && LARGE_OFF_T % 2147483647 == 1)
  15608. ? 1 : -1];
  15609. int
  15610. main (void)
  15611. {
  15612. ;
  15613. return 0;
  15614. }
  15615. _ACEOF
  15616. if ac_fn_c_try_compile "$LINENO"
  15617. then :
  15618. ac_cv_sys_file_offset_bits=no; break
  15619. fi
  15620. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15622. /* end confdefs.h. */
  15623. #define _FILE_OFFSET_BITS 64
  15624. #include <sys/types.h>
  15625. /* Check that off_t can represent 2**63 - 1 correctly.
  15626. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15627. since some C++ compilers masquerading as C compilers
  15628. incorrectly reject 9223372036854775807. */
  15629. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15630. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15631. && LARGE_OFF_T % 2147483647 == 1)
  15632. ? 1 : -1];
  15633. int
  15634. main (void)
  15635. {
  15636. ;
  15637. return 0;
  15638. }
  15639. _ACEOF
  15640. if ac_fn_c_try_compile "$LINENO"
  15641. then :
  15642. ac_cv_sys_file_offset_bits=64; break
  15643. fi
  15644. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15645. ac_cv_sys_file_offset_bits=unknown
  15646. break
  15647. done
  15648. fi
  15649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15650. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15651. case $ac_cv_sys_file_offset_bits in #(
  15652. no | unknown) ;;
  15653. *)
  15654. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15655. ;;
  15656. esac
  15657. rm -rf conftest*
  15658. if test $ac_cv_sys_file_offset_bits = unknown; then
  15659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15660. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15661. if test ${ac_cv_sys_large_files+y}
  15662. then :
  15663. printf %s "(cached) " >&6
  15664. else $as_nop
  15665. while :; do
  15666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15667. /* end confdefs.h. */
  15668. #include <sys/types.h>
  15669. /* Check that off_t can represent 2**63 - 1 correctly.
  15670. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15671. since some C++ compilers masquerading as C compilers
  15672. incorrectly reject 9223372036854775807. */
  15673. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15674. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15675. && LARGE_OFF_T % 2147483647 == 1)
  15676. ? 1 : -1];
  15677. int
  15678. main (void)
  15679. {
  15680. ;
  15681. return 0;
  15682. }
  15683. _ACEOF
  15684. if ac_fn_c_try_compile "$LINENO"
  15685. then :
  15686. ac_cv_sys_large_files=no; break
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15690. /* end confdefs.h. */
  15691. #define _LARGE_FILES 1
  15692. #include <sys/types.h>
  15693. /* Check that off_t can represent 2**63 - 1 correctly.
  15694. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15695. since some C++ compilers masquerading as C compilers
  15696. incorrectly reject 9223372036854775807. */
  15697. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15698. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15699. && LARGE_OFF_T % 2147483647 == 1)
  15700. ? 1 : -1];
  15701. int
  15702. main (void)
  15703. {
  15704. ;
  15705. return 0;
  15706. }
  15707. _ACEOF
  15708. if ac_fn_c_try_compile "$LINENO"
  15709. then :
  15710. ac_cv_sys_large_files=1; break
  15711. fi
  15712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15713. ac_cv_sys_large_files=unknown
  15714. break
  15715. done
  15716. fi
  15717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15718. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15719. case $ac_cv_sys_large_files in #(
  15720. no | unknown) ;;
  15721. *)
  15722. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15723. ;;
  15724. esac
  15725. rm -rf conftest*
  15726. fi
  15727. fi
  15728. case "$host" in
  15729. *-*-mingw*)
  15730. # Except on msys, where make can't handle full pathnames (bug 1972)
  15731. ;;
  15732. *)
  15733. srcdir=`cd $srcdir && pwd`
  15734. ;;
  15735. esac
  15736. INCLUDE="-I$srcdir/include"
  15737. case "$host" in
  15738. *-*-nto-qnx*)
  15739. ;;
  15740. *)
  15741. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15742. ;;
  15743. esac
  15744. case "$host" in
  15745. *-*-haiku*)
  15746. LINKER='$(CXX)'
  15747. LIBTOOLLINKERTAG='CXX'
  15748. ;;
  15749. *)
  15750. LINKER='$(CC)'
  15751. LIBTOOLLINKERTAG='CC'
  15752. ;;
  15753. esac
  15754. if test x$srcdir != x.; then
  15755. INCLUDE="-Iinclude $INCLUDE"
  15756. elif test -d .git; then
  15757. as_fn_error $? "
  15758. *** When building from a git clone you should configure and build in a
  15759. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15760. " "$LINENO" 5
  15761. fi
  15762. BASE_CFLAGS=""
  15763. BASE_LDFLAGS=""
  15764. case "$host" in
  15765. *-*-cygwin*)
  15766. # We build SDL on cygwin without the UNIX emulation layer
  15767. save_CFLAGS="$CFLAGS"
  15768. have_no_cygwin=no
  15769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15770. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15771. CFLAGS="$save_CFLAGS -mno-cygwin"
  15772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15773. /* end confdefs.h. */
  15774. int
  15775. main (void)
  15776. {
  15777. ;
  15778. return 0;
  15779. }
  15780. _ACEOF
  15781. if ac_fn_c_try_compile "$LINENO"
  15782. then :
  15783. have_no_cygwin=yes
  15784. fi
  15785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15787. printf "%s\n" "$have_no_cygwin" >&6; }
  15788. CFLAGS="$save_CFLAGS"
  15789. if test x$have_no_cygwin = xyes; then
  15790. BASE_CFLAGS="-mno-cygwin"
  15791. BASE_LDFLAGS="-mno-cygwin"
  15792. fi
  15793. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15794. ;;
  15795. esac
  15796. # Uncomment the following line if you want to force SDL and applications
  15797. # built with it to be compiled for a particular architecture.
  15798. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15799. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15800. # The default optimization for SDL is -O3 (Bug #31)
  15801. if test "x$orig_CFLAGS" = x; then
  15802. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15803. fi
  15804. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15805. BUILD_LDFLAGS="$LDFLAGS"
  15806. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15807. ## These are common directories to find software packages
  15808. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15809. # if test -d $path/include; then
  15810. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15811. # fi
  15812. # if test -d $path/lib; then
  15813. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15814. # fi
  15815. #done
  15816. SDL_CFLAGS="$BASE_CFLAGS"
  15817. SDL_LIBS="-lSDL2"
  15818. if test "x$BASE_LDFLAGS" != x; then
  15819. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15820. fi
  15821. if test "x$EXTRA_CFLAGS" != x; then
  15822. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15823. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15824. fi
  15825. if test "x$EXTRA_LDFLAGS" != x; then
  15826. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15827. fi
  15828. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15829. find_lib()
  15830. {
  15831. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15832. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15833. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15834. if test "$cross_compiling" = yes; then
  15835. host_lib_path=""
  15836. else
  15837. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15838. fi
  15839. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15840. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  15841. if test x$lib != x; then
  15842. echo $lib
  15843. return
  15844. fi
  15845. done
  15846. # Try again, this time allowing more than one version digit after the .so
  15847. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15848. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  15849. if test x$lib != x; then
  15850. echo $lib
  15851. return
  15852. fi
  15853. done
  15854. }
  15855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15856. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15857. if test ${ac_cv_c_const+y}
  15858. then :
  15859. printf %s "(cached) " >&6
  15860. else $as_nop
  15861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15862. /* end confdefs.h. */
  15863. int
  15864. main (void)
  15865. {
  15866. #ifndef __cplusplus
  15867. /* Ultrix mips cc rejects this sort of thing. */
  15868. typedef int charset[2];
  15869. const charset cs = { 0, 0 };
  15870. /* SunOS 4.1.1 cc rejects this. */
  15871. char const *const *pcpcc;
  15872. char **ppc;
  15873. /* NEC SVR4.0.2 mips cc rejects this. */
  15874. struct point {int x, y;};
  15875. static struct point const zero = {0,0};
  15876. /* IBM XL C 1.02.0.0 rejects this.
  15877. It does not let you subtract one const X* pointer from another in
  15878. an arm of an if-expression whose if-part is not a constant
  15879. expression */
  15880. const char *g = "string";
  15881. pcpcc = &g + (g ? g-g : 0);
  15882. /* HPUX 7.0 cc rejects these. */
  15883. ++pcpcc;
  15884. ppc = (char**) pcpcc;
  15885. pcpcc = (char const *const *) ppc;
  15886. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15887. char tx;
  15888. char *t = &tx;
  15889. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15890. *t++ = 0;
  15891. if (s) return 0;
  15892. }
  15893. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15894. int x[] = {25, 17};
  15895. const int *foo = &x[0];
  15896. ++foo;
  15897. }
  15898. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15899. typedef const int *iptr;
  15900. iptr p = 0;
  15901. ++p;
  15902. }
  15903. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15904. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15905. struct s { int j; const int *ap[3]; } bx;
  15906. struct s *b = &bx; b->j = 5;
  15907. }
  15908. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15909. const int foo = 10;
  15910. if (!foo) return 0;
  15911. }
  15912. return !cs[0] && !zero.x;
  15913. #endif
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. if ac_fn_c_try_compile "$LINENO"
  15919. then :
  15920. ac_cv_c_const=yes
  15921. else $as_nop
  15922. ac_cv_c_const=no
  15923. fi
  15924. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15925. fi
  15926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15927. printf "%s\n" "$ac_cv_c_const" >&6; }
  15928. if test $ac_cv_c_const = no; then
  15929. printf "%s\n" "#define const /**/" >>confdefs.h
  15930. fi
  15931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  15932. printf %s "checking for inline... " >&6; }
  15933. if test ${ac_cv_c_inline+y}
  15934. then :
  15935. printf %s "(cached) " >&6
  15936. else $as_nop
  15937. ac_cv_c_inline=no
  15938. for ac_kw in inline __inline__ __inline; do
  15939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15940. /* end confdefs.h. */
  15941. #ifndef __cplusplus
  15942. typedef int foo_t;
  15943. static $ac_kw foo_t static_foo (void) {return 0; }
  15944. $ac_kw foo_t foo (void) {return 0; }
  15945. #endif
  15946. _ACEOF
  15947. if ac_fn_c_try_compile "$LINENO"
  15948. then :
  15949. ac_cv_c_inline=$ac_kw
  15950. fi
  15951. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15952. test "$ac_cv_c_inline" != no && break
  15953. done
  15954. fi
  15955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  15956. printf "%s\n" "$ac_cv_c_inline" >&6; }
  15957. case $ac_cv_c_inline in
  15958. inline | yes) ;;
  15959. *)
  15960. case $ac_cv_c_inline in
  15961. no) ac_val=;;
  15962. *) ac_val=$ac_cv_c_inline;;
  15963. esac
  15964. cat >>confdefs.h <<_ACEOF
  15965. #ifndef __cplusplus
  15966. #define inline $ac_val
  15967. #endif
  15968. _ACEOF
  15969. ;;
  15970. esac
  15971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  15972. printf %s "checking for working volatile... " >&6; }
  15973. if test ${ac_cv_c_volatile+y}
  15974. then :
  15975. printf %s "(cached) " >&6
  15976. else $as_nop
  15977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15978. /* end confdefs.h. */
  15979. int
  15980. main (void)
  15981. {
  15982. volatile int x;
  15983. int * volatile y = (int *) 0;
  15984. return !x && !y;
  15985. ;
  15986. return 0;
  15987. }
  15988. _ACEOF
  15989. if ac_fn_c_try_compile "$LINENO"
  15990. then :
  15991. ac_cv_c_volatile=yes
  15992. else $as_nop
  15993. ac_cv_c_volatile=no
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15996. fi
  15997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  15998. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  15999. if test $ac_cv_c_volatile = no; then
  16000. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16001. fi
  16002. # Check whether --enable-assertions was given.
  16003. if test ${enable_assertions+y}
  16004. then :
  16005. enableval=$enable_assertions;
  16006. else $as_nop
  16007. enable_assertions=auto
  16008. fi
  16009. case "$enable_assertions" in
  16010. auto) # Use optimization settings to determine assertion level
  16011. ;;
  16012. disabled)
  16013. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16014. ;;
  16015. release)
  16016. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16017. ;;
  16018. enabled)
  16019. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16020. ;;
  16021. paranoid)
  16022. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16023. ;;
  16024. *)
  16025. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16026. ;;
  16027. esac
  16028. printf "%s\n" "#define SDL_BUILD_MAJOR_VERSION $SDL_MAJOR_VERSION" >>confdefs.h
  16029. printf "%s\n" "#define SDL_BUILD_MINOR_VERSION $SDL_MINOR_VERSION" >>confdefs.h
  16030. printf "%s\n" "#define SDL_BUILD_MICRO_VERSION $SDL_MICRO_VERSION" >>confdefs.h
  16031. # Check whether --enable-dependency-tracking was given.
  16032. if test ${enable_dependency_tracking+y}
  16033. then :
  16034. enableval=$enable_dependency_tracking;
  16035. else $as_nop
  16036. enable_dependency_tracking=yes
  16037. fi
  16038. if test x$enable_dependency_tracking = xyes; then
  16039. have_gcc_mmd_mt=no
  16040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16041. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16043. /* end confdefs.h. */
  16044. #if !defined(__GNUC__) || __GNUC__ < 3
  16045. #error Dependency tracking requires GCC 3.0 or newer
  16046. #endif
  16047. int
  16048. main (void)
  16049. {
  16050. ;
  16051. return 0;
  16052. }
  16053. _ACEOF
  16054. if ac_fn_c_try_compile "$LINENO"
  16055. then :
  16056. have_gcc_mmd_mt=yes
  16057. fi
  16058. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16060. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16061. if test x$have_gcc_mmd_mt = xyes; then
  16062. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16063. fi
  16064. fi
  16065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16066. printf %s "checking for linker option --no-undefined... " >&6; }
  16067. have_no_undefined=no
  16068. case "$host" in
  16069. *-*-openbsd*)
  16070. ;;
  16071. *)
  16072. save_LDFLAGS="$LDFLAGS"
  16073. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16075. /* end confdefs.h. */
  16076. int
  16077. main (void)
  16078. {
  16079. ;
  16080. return 0;
  16081. }
  16082. _ACEOF
  16083. if ac_fn_c_try_link "$LINENO"
  16084. then :
  16085. have_no_undefined=yes
  16086. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16087. fi
  16088. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16089. conftest$ac_exeext conftest.$ac_ext
  16090. LDFLAGS="$save_LDFLAGS"
  16091. ;;
  16092. esac
  16093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16094. printf "%s\n" "$have_no_undefined" >&6; }
  16095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16096. printf %s "checking for linker option --dynamicbase... " >&6; }
  16097. have_dynamicbase=no
  16098. case "$host" in
  16099. *)
  16100. save_LDFLAGS="$LDFLAGS"
  16101. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16103. /* end confdefs.h. */
  16104. int
  16105. main (void)
  16106. {
  16107. ;
  16108. return 0;
  16109. }
  16110. _ACEOF
  16111. if ac_fn_c_try_link "$LINENO"
  16112. then :
  16113. have_dynamicbase=yes
  16114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16115. fi
  16116. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16117. conftest$ac_exeext conftest.$ac_ext
  16118. LDFLAGS="$save_LDFLAGS"
  16119. ;;
  16120. esac
  16121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16122. printf "%s\n" "$have_dynamicbase" >&6; }
  16123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16124. printf %s "checking for linker option --nxcompat... " >&6; }
  16125. have_nxcompat=no
  16126. case "$host" in
  16127. *)
  16128. save_LDFLAGS="$LDFLAGS"
  16129. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16131. /* end confdefs.h. */
  16132. int
  16133. main (void)
  16134. {
  16135. ;
  16136. return 0;
  16137. }
  16138. _ACEOF
  16139. if ac_fn_c_try_link "$LINENO"
  16140. then :
  16141. have_nxcompat=yes
  16142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16143. fi
  16144. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16145. conftest$ac_exeext conftest.$ac_ext
  16146. LDFLAGS="$save_LDFLAGS"
  16147. ;;
  16148. esac
  16149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16150. printf "%s\n" "$have_nxcompat" >&6; }
  16151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16152. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16153. have_high_entropy_va=no
  16154. case "$host" in
  16155. *)
  16156. save_LDFLAGS="$LDFLAGS"
  16157. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16159. /* end confdefs.h. */
  16160. int
  16161. main (void)
  16162. {
  16163. ;
  16164. return 0;
  16165. }
  16166. _ACEOF
  16167. if ac_fn_c_try_link "$LINENO"
  16168. then :
  16169. have_high_entropy_va=yes
  16170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16171. fi
  16172. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16173. conftest$ac_exeext conftest.$ac_ext
  16174. LDFLAGS="$save_LDFLAGS"
  16175. ;;
  16176. esac
  16177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16178. printf "%s\n" "$have_high_entropy_va" >&6; }
  16179. # Check whether --enable-libc was given.
  16180. if test ${enable_libc+y}
  16181. then :
  16182. enableval=$enable_libc;
  16183. else $as_nop
  16184. enable_libc=yes
  16185. fi
  16186. if test x$enable_libc = xyes; then
  16187. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16188. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16189. if test "x$ac_cv_header_sys_types_h" = xyes
  16190. then :
  16191. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16192. fi
  16193. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16194. if test "x$ac_cv_header_stdio_h" = xyes
  16195. then :
  16196. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16197. fi
  16198. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16199. if test "x$ac_cv_header_stdlib_h" = xyes
  16200. then :
  16201. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16202. fi
  16203. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16204. if test "x$ac_cv_header_stddef_h" = xyes
  16205. then :
  16206. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16207. fi
  16208. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16209. if test "x$ac_cv_header_stdarg_h" = xyes
  16210. then :
  16211. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16212. fi
  16213. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16214. if test "x$ac_cv_header_malloc_h" = xyes
  16215. then :
  16216. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16217. fi
  16218. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16219. if test "x$ac_cv_header_memory_h" = xyes
  16220. then :
  16221. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16222. fi
  16223. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16224. if test "x$ac_cv_header_string_h" = xyes
  16225. then :
  16226. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16227. fi
  16228. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16229. if test "x$ac_cv_header_strings_h" = xyes
  16230. then :
  16231. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16232. fi
  16233. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16234. if test "x$ac_cv_header_wchar_h" = xyes
  16235. then :
  16236. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16237. fi
  16238. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16239. if test "x$ac_cv_header_inttypes_h" = xyes
  16240. then :
  16241. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16242. fi
  16243. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16244. if test "x$ac_cv_header_stdint_h" = xyes
  16245. then :
  16246. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16247. fi
  16248. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16249. if test "x$ac_cv_header_limits_h" = xyes
  16250. then :
  16251. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16252. fi
  16253. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16254. if test "x$ac_cv_header_ctype_h" = xyes
  16255. then :
  16256. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16257. fi
  16258. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16259. if test "x$ac_cv_header_math_h" = xyes
  16260. then :
  16261. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16262. fi
  16263. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16264. if test "x$ac_cv_header_float_h" = xyes
  16265. then :
  16266. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16267. fi
  16268. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16269. if test "x$ac_cv_header_iconv_h" = xyes
  16270. then :
  16271. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16272. fi
  16273. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16274. if test "x$ac_cv_header_signal_h" = xyes
  16275. then :
  16276. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16277. fi
  16278. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16279. if test "x$ac_cv_type_size_t" = xyes
  16280. then :
  16281. else $as_nop
  16282. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16283. fi
  16284. ac_ext=c
  16285. ac_cpp='$CPP $CPPFLAGS'
  16286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16290. printf %s "checking how to run the C preprocessor... " >&6; }
  16291. # On Suns, sometimes $CPP names a directory.
  16292. if test -n "$CPP" && test -d "$CPP"; then
  16293. CPP=
  16294. fi
  16295. if test -z "$CPP"; then
  16296. if test ${ac_cv_prog_CPP+y}
  16297. then :
  16298. printf %s "(cached) " >&6
  16299. else $as_nop
  16300. # Double quotes because $CC needs to be expanded
  16301. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16302. do
  16303. ac_preproc_ok=false
  16304. for ac_c_preproc_warn_flag in '' yes
  16305. do
  16306. # Use a header file that comes with gcc, so configuring glibc
  16307. # with a fresh cross-compiler works.
  16308. # On the NeXT, cc -E runs the code through the compiler's parser,
  16309. # not just through cpp. "Syntax error" is here to catch this case.
  16310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16311. /* end confdefs.h. */
  16312. #include <limits.h>
  16313. Syntax error
  16314. _ACEOF
  16315. if ac_fn_c_try_cpp "$LINENO"
  16316. then :
  16317. else $as_nop
  16318. # Broken: fails on valid input.
  16319. continue
  16320. fi
  16321. rm -f conftest.err conftest.i conftest.$ac_ext
  16322. # OK, works on sane cases. Now check whether nonexistent headers
  16323. # can be detected and how.
  16324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16325. /* end confdefs.h. */
  16326. #include <ac_nonexistent.h>
  16327. _ACEOF
  16328. if ac_fn_c_try_cpp "$LINENO"
  16329. then :
  16330. # Broken: success on invalid input.
  16331. continue
  16332. else $as_nop
  16333. # Passes both tests.
  16334. ac_preproc_ok=:
  16335. break
  16336. fi
  16337. rm -f conftest.err conftest.i conftest.$ac_ext
  16338. done
  16339. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16340. rm -f conftest.i conftest.err conftest.$ac_ext
  16341. if $ac_preproc_ok
  16342. then :
  16343. break
  16344. fi
  16345. done
  16346. ac_cv_prog_CPP=$CPP
  16347. fi
  16348. CPP=$ac_cv_prog_CPP
  16349. else
  16350. ac_cv_prog_CPP=$CPP
  16351. fi
  16352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16353. printf "%s\n" "$CPP" >&6; }
  16354. ac_preproc_ok=false
  16355. for ac_c_preproc_warn_flag in '' yes
  16356. do
  16357. # Use a header file that comes with gcc, so configuring glibc
  16358. # with a fresh cross-compiler works.
  16359. # On the NeXT, cc -E runs the code through the compiler's parser,
  16360. # not just through cpp. "Syntax error" is here to catch this case.
  16361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16362. /* end confdefs.h. */
  16363. #include <limits.h>
  16364. Syntax error
  16365. _ACEOF
  16366. if ac_fn_c_try_cpp "$LINENO"
  16367. then :
  16368. else $as_nop
  16369. # Broken: fails on valid input.
  16370. continue
  16371. fi
  16372. rm -f conftest.err conftest.i conftest.$ac_ext
  16373. # OK, works on sane cases. Now check whether nonexistent headers
  16374. # can be detected and how.
  16375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16376. /* end confdefs.h. */
  16377. #include <ac_nonexistent.h>
  16378. _ACEOF
  16379. if ac_fn_c_try_cpp "$LINENO"
  16380. then :
  16381. # Broken: success on invalid input.
  16382. continue
  16383. else $as_nop
  16384. # Passes both tests.
  16385. ac_preproc_ok=:
  16386. break
  16387. fi
  16388. rm -f conftest.err conftest.i conftest.$ac_ext
  16389. done
  16390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16391. rm -f conftest.i conftest.err conftest.$ac_ext
  16392. if $ac_preproc_ok
  16393. then :
  16394. else $as_nop
  16395. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16396. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16397. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16398. See \`config.log' for more details" "$LINENO" 5; }
  16399. fi
  16400. ac_ext=c
  16401. ac_cpp='$CPP $CPPFLAGS'
  16402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16406. printf %s "checking for M_PI in math.h... " >&6; }
  16407. if test ${ac_cv_define_M_PI+y}
  16408. then :
  16409. printf %s "(cached) " >&6
  16410. else $as_nop
  16411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16412. /* end confdefs.h. */
  16413. #include <math.h>
  16414. #ifdef M_PI
  16415. YES_IS_DEFINED
  16416. #endif
  16417. _ACEOF
  16418. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16419. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16420. then :
  16421. ac_cv_define_M_PI=yes
  16422. else $as_nop
  16423. ac_cv_define_M_PI=no
  16424. fi
  16425. rm -rf conftest*
  16426. fi
  16427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16428. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16429. if test "$ac_cv_define_M_PI" = "yes" ; then
  16430. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16431. fi
  16432. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16433. # for constant arguments. Useless!
  16434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16435. printf %s "checking for working alloca.h... " >&6; }
  16436. if test ${ac_cv_working_alloca_h+y}
  16437. then :
  16438. printf %s "(cached) " >&6
  16439. else $as_nop
  16440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16441. /* end confdefs.h. */
  16442. #include <alloca.h>
  16443. int
  16444. main (void)
  16445. {
  16446. char *p = (char *) alloca (2 * sizeof (int));
  16447. if (p) return 0;
  16448. ;
  16449. return 0;
  16450. }
  16451. _ACEOF
  16452. if ac_fn_c_try_link "$LINENO"
  16453. then :
  16454. ac_cv_working_alloca_h=yes
  16455. else $as_nop
  16456. ac_cv_working_alloca_h=no
  16457. fi
  16458. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16459. conftest$ac_exeext conftest.$ac_ext
  16460. fi
  16461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16462. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16463. if test $ac_cv_working_alloca_h = yes; then
  16464. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16465. fi
  16466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16467. printf %s "checking for alloca... " >&6; }
  16468. if test ${ac_cv_func_alloca_works+y}
  16469. then :
  16470. printf %s "(cached) " >&6
  16471. else $as_nop
  16472. if test $ac_cv_working_alloca_h = yes; then
  16473. ac_cv_func_alloca_works=yes
  16474. else
  16475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16476. /* end confdefs.h. */
  16477. #include <stdlib.h>
  16478. #include <stddef.h>
  16479. #ifndef alloca
  16480. # ifdef __GNUC__
  16481. # define alloca __builtin_alloca
  16482. # elif defined _MSC_VER
  16483. # include <malloc.h>
  16484. # define alloca _alloca
  16485. # else
  16486. # ifdef __cplusplus
  16487. extern "C"
  16488. # endif
  16489. void *alloca (size_t);
  16490. # endif
  16491. #endif
  16492. int
  16493. main (void)
  16494. {
  16495. char *p = (char *) alloca (1);
  16496. if (p) return 0;
  16497. ;
  16498. return 0;
  16499. }
  16500. _ACEOF
  16501. if ac_fn_c_try_link "$LINENO"
  16502. then :
  16503. ac_cv_func_alloca_works=yes
  16504. else $as_nop
  16505. ac_cv_func_alloca_works=no
  16506. fi
  16507. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16508. conftest$ac_exeext conftest.$ac_ext
  16509. fi
  16510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16511. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16512. fi
  16513. if test $ac_cv_func_alloca_works = yes; then
  16514. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16515. else
  16516. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16517. # that cause trouble. Some versions do not even contain alloca or
  16518. # contain a buggy version. If you still want to use their alloca,
  16519. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16520. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16521. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16523. printf %s "checking stack direction for C alloca... " >&6; }
  16524. if test ${ac_cv_c_stack_direction+y}
  16525. then :
  16526. printf %s "(cached) " >&6
  16527. else $as_nop
  16528. if test "$cross_compiling" = yes
  16529. then :
  16530. ac_cv_c_stack_direction=0
  16531. else $as_nop
  16532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16533. /* end confdefs.h. */
  16534. $ac_includes_default
  16535. int
  16536. find_stack_direction (int *addr, int depth)
  16537. {
  16538. int dir, dummy = 0;
  16539. if (! addr)
  16540. addr = &dummy;
  16541. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16542. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16543. return dir + dummy;
  16544. }
  16545. int
  16546. main (int argc, char **argv)
  16547. {
  16548. return find_stack_direction (0, argc + !argv + 20) < 0;
  16549. }
  16550. _ACEOF
  16551. if ac_fn_c_try_run "$LINENO"
  16552. then :
  16553. ac_cv_c_stack_direction=1
  16554. else $as_nop
  16555. ac_cv_c_stack_direction=-1
  16556. fi
  16557. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16558. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16559. fi
  16560. fi
  16561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16562. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16563. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16564. fi
  16565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16566. printf %s "checking for working memcmp... " >&6; }
  16567. if test ${ac_cv_func_memcmp_working+y}
  16568. then :
  16569. printf %s "(cached) " >&6
  16570. else $as_nop
  16571. if test "$cross_compiling" = yes
  16572. then :
  16573. ac_cv_func_memcmp_working=no
  16574. else $as_nop
  16575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16576. /* end confdefs.h. */
  16577. $ac_includes_default
  16578. int
  16579. main (void)
  16580. {
  16581. /* Some versions of memcmp are not 8-bit clean. */
  16582. char c0 = '\100', c1 = '\200', c2 = '\201';
  16583. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16584. return 1;
  16585. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16586. or more and with at least one buffer not starting on a 4-byte boundary.
  16587. William Lewis provided this test program. */
  16588. {
  16589. char foo[21];
  16590. char bar[21];
  16591. int i;
  16592. for (i = 0; i < 4; i++)
  16593. {
  16594. char *a = foo + i;
  16595. char *b = bar + i;
  16596. strcpy (a, "--------01111111");
  16597. strcpy (b, "--------10000000");
  16598. if (memcmp (a, b, 16) >= 0)
  16599. return 1;
  16600. }
  16601. return 0;
  16602. }
  16603. ;
  16604. return 0;
  16605. }
  16606. _ACEOF
  16607. if ac_fn_c_try_run "$LINENO"
  16608. then :
  16609. ac_cv_func_memcmp_working=yes
  16610. else $as_nop
  16611. ac_cv_func_memcmp_working=no
  16612. fi
  16613. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16614. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16615. fi
  16616. fi
  16617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16618. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  16619. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16620. *" memcmp.$ac_objext "* ) ;;
  16621. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16622. ;;
  16623. esac
  16624. if test x$ac_cv_func_memcmp_working = xyes; then
  16625. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16626. fi
  16627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  16628. printf %s "checking for working strtod... " >&6; }
  16629. if test ${ac_cv_func_strtod+y}
  16630. then :
  16631. printf %s "(cached) " >&6
  16632. else $as_nop
  16633. if test "$cross_compiling" = yes
  16634. then :
  16635. ac_cv_func_strtod=no
  16636. else $as_nop
  16637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16638. /* end confdefs.h. */
  16639. $ac_includes_default
  16640. #ifndef strtod
  16641. double strtod ();
  16642. #endif
  16643. int
  16644. main (void)
  16645. {
  16646. {
  16647. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  16648. char *string = " +69";
  16649. char *term;
  16650. double value;
  16651. value = strtod (string, &term);
  16652. if (value != 69 || term != (string + 4))
  16653. return 1;
  16654. }
  16655. {
  16656. /* Under Solaris 2.4, strtod returns the wrong value for the
  16657. terminating character under some conditions. */
  16658. char *string = "NaN";
  16659. char *term;
  16660. strtod (string, &term);
  16661. if (term != string && *(term - 1) == 0)
  16662. return 1;
  16663. }
  16664. return 0;
  16665. }
  16666. _ACEOF
  16667. if ac_fn_c_try_run "$LINENO"
  16668. then :
  16669. ac_cv_func_strtod=yes
  16670. else $as_nop
  16671. ac_cv_func_strtod=no
  16672. fi
  16673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16675. fi
  16676. fi
  16677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  16678. printf "%s\n" "$ac_cv_func_strtod" >&6; }
  16679. if test $ac_cv_func_strtod = no; then
  16680. case " $LIBOBJS " in
  16681. *" strtod.$ac_objext "* ) ;;
  16682. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  16683. ;;
  16684. esac
  16685. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16686. if test "x$ac_cv_func_pow" = xyes
  16687. then :
  16688. fi
  16689. if test $ac_cv_func_pow = no; then
  16690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  16691. printf %s "checking for pow in -lm... " >&6; }
  16692. if test ${ac_cv_lib_m_pow+y}
  16693. then :
  16694. printf %s "(cached) " >&6
  16695. else $as_nop
  16696. ac_check_lib_save_LIBS=$LIBS
  16697. LIBS="-lm $LIBS"
  16698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16699. /* end confdefs.h. */
  16700. /* Override any GCC internal prototype to avoid an error.
  16701. Use char because int might match the return type of a GCC
  16702. builtin and then its argument prototype would still apply. */
  16703. char pow ();
  16704. int
  16705. main (void)
  16706. {
  16707. return pow ();
  16708. ;
  16709. return 0;
  16710. }
  16711. _ACEOF
  16712. if ac_fn_c_try_link "$LINENO"
  16713. then :
  16714. ac_cv_lib_m_pow=yes
  16715. else $as_nop
  16716. ac_cv_lib_m_pow=no
  16717. fi
  16718. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16719. conftest$ac_exeext conftest.$ac_ext
  16720. LIBS=$ac_check_lib_save_LIBS
  16721. fi
  16722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  16723. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  16724. if test "x$ac_cv_lib_m_pow" = xyes
  16725. then :
  16726. POW_LIB=-lm
  16727. else $as_nop
  16728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  16729. printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  16730. fi
  16731. fi
  16732. fi
  16733. if test x$ac_cv_func_strtod = xyes; then
  16734. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16737. if test "x$ac_cv_func_mprotect" = xyes
  16738. then :
  16739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16740. /* end confdefs.h. */
  16741. #include <sys/types.h>
  16742. #include <sys/mman.h>
  16743. int
  16744. main (void)
  16745. {
  16746. ;
  16747. return 0;
  16748. }
  16749. _ACEOF
  16750. if ac_fn_c_try_compile "$LINENO"
  16751. then :
  16752. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16753. fi
  16754. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16757. if test "x$ac_cv_func_malloc" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16762. if test "x$ac_cv_func_calloc" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16767. if test "x$ac_cv_func_realloc" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16772. if test "x$ac_cv_func_free" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16777. if test "x$ac_cv_func_getenv" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16782. if test "x$ac_cv_func_setenv" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16787. if test "x$ac_cv_func_putenv" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16792. if test "x$ac_cv_func_unsetenv" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16797. if test "x$ac_cv_func_bsearch" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16802. if test "x$ac_cv_func_qsort" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16807. if test "x$ac_cv_func_abs" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16812. if test "x$ac_cv_func_bcopy" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16817. if test "x$ac_cv_func_memset" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16822. if test "x$ac_cv_func_memcpy" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16827. if test "x$ac_cv_func_memmove" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16832. if test "x$ac_cv_func_wcslen" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16837. if test "x$ac_cv_func_wcslcpy" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16842. if test "x$ac_cv_func_wcslcat" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16847. if test "x$ac_cv_func__wcsdup" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16852. if test "x$ac_cv_func_wcsdup" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16857. if test "x$ac_cv_func_wcsstr" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16862. if test "x$ac_cv_func_wcscmp" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16867. if test "x$ac_cv_func_wcsncmp" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16872. if test "x$ac_cv_func_wcscasecmp" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16877. if test "x$ac_cv_func__wcsicmp" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16882. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16887. if test "x$ac_cv_func__wcsnicmp" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16892. if test "x$ac_cv_func_strlen" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16897. if test "x$ac_cv_func_strlcpy" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16902. if test "x$ac_cv_func_strlcat" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16907. if test "x$ac_cv_func__strrev" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16912. if test "x$ac_cv_func__strupr" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16917. if test "x$ac_cv_func__strlwr" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16922. if test "x$ac_cv_func_index" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16927. if test "x$ac_cv_func_rindex" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16932. if test "x$ac_cv_func_strchr" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16937. if test "x$ac_cv_func_strrchr" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16942. if test "x$ac_cv_func_strstr" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16947. if test "x$ac_cv_func_strtok_r" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16952. if test "x$ac_cv_func_itoa" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16957. if test "x$ac_cv_func__ltoa" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16962. if test "x$ac_cv_func__uitoa" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16967. if test "x$ac_cv_func__ultoa" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16972. if test "x$ac_cv_func_strtol" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16977. if test "x$ac_cv_func_strtoul" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16982. if test "x$ac_cv_func__i64toa" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16987. if test "x$ac_cv_func__ui64toa" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16992. if test "x$ac_cv_func_strtoll" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16997. if test "x$ac_cv_func_strtoull" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17002. if test "x$ac_cv_func_atoi" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17007. if test "x$ac_cv_func_atof" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17012. if test "x$ac_cv_func_strcmp" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17017. if test "x$ac_cv_func_strncmp" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17022. if test "x$ac_cv_func__stricmp" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17027. if test "x$ac_cv_func_strcasecmp" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17032. if test "x$ac_cv_func__strnicmp" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17037. if test "x$ac_cv_func_strncasecmp" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17042. if test "x$ac_cv_func_vsscanf" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17047. if test "x$ac_cv_func_vsnprintf" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17052. if test "x$ac_cv_func_fopen64" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17055. fi
  17056. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17057. if test "x$ac_cv_func_fseeko" = xyes
  17058. then :
  17059. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17060. fi
  17061. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17062. if test "x$ac_cv_func_fseeko64" = xyes
  17063. then :
  17064. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17065. fi
  17066. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17067. if test "x$ac_cv_func_sigaction" = xyes
  17068. then :
  17069. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17070. fi
  17071. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17072. if test "x$ac_cv_func_setjmp" = xyes
  17073. then :
  17074. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17075. fi
  17076. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17077. if test "x$ac_cv_func_nanosleep" = xyes
  17078. then :
  17079. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17080. fi
  17081. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17082. if test "x$ac_cv_func_sysconf" = xyes
  17083. then :
  17084. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17085. fi
  17086. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17087. if test "x$ac_cv_func_sysctlbyname" = xyes
  17088. then :
  17089. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17090. fi
  17091. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17092. if test "x$ac_cv_func_getauxval" = xyes
  17093. then :
  17094. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17095. fi
  17096. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17097. if test "x$ac_cv_func_elf_aux_info" = xyes
  17098. then :
  17099. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17100. fi
  17101. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17102. if test "x$ac_cv_func_poll" = xyes
  17103. then :
  17104. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17105. fi
  17106. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17107. if test "x$ac_cv_func__Exit" = xyes
  17108. then :
  17109. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17110. fi
  17111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17112. printf %s "checking for pow in -lm... " >&6; }
  17113. if test ${ac_cv_lib_m_pow+y}
  17114. then :
  17115. printf %s "(cached) " >&6
  17116. else $as_nop
  17117. ac_check_lib_save_LIBS=$LIBS
  17118. LIBS="-lm $LIBS"
  17119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17120. /* end confdefs.h. */
  17121. /* Override any GCC internal prototype to avoid an error.
  17122. Use char because int might match the return type of a GCC
  17123. builtin and then its argument prototype would still apply. */
  17124. char pow ();
  17125. int
  17126. main (void)
  17127. {
  17128. return pow ();
  17129. ;
  17130. return 0;
  17131. }
  17132. _ACEOF
  17133. if ac_fn_c_try_link "$LINENO"
  17134. then :
  17135. ac_cv_lib_m_pow=yes
  17136. else $as_nop
  17137. ac_cv_lib_m_pow=no
  17138. fi
  17139. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17140. conftest$ac_exeext conftest.$ac_ext
  17141. LIBS=$ac_check_lib_save_LIBS
  17142. fi
  17143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17144. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17145. if test "x$ac_cv_lib_m_pow" = xyes
  17146. then :
  17147. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17150. if test "x$ac_cv_func_acos" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17155. if test "x$ac_cv_func_acosf" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17160. if test "x$ac_cv_func_asin" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17165. if test "x$ac_cv_func_asinf" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17170. if test "x$ac_cv_func_atan" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17175. if test "x$ac_cv_func_atanf" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17180. if test "x$ac_cv_func_atan2" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17185. if test "x$ac_cv_func_atan2f" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17190. if test "x$ac_cv_func_ceil" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17195. if test "x$ac_cv_func_ceilf" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17200. if test "x$ac_cv_func_copysign" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17205. if test "x$ac_cv_func_copysignf" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17210. if test "x$ac_cv_func_cos" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17215. if test "x$ac_cv_func_cosf" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17220. if test "x$ac_cv_func_exp" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17225. if test "x$ac_cv_func_expf" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17230. if test "x$ac_cv_func_fabs" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17235. if test "x$ac_cv_func_fabsf" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17240. if test "x$ac_cv_func_floor" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17245. if test "x$ac_cv_func_floorf" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17248. fi
  17249. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17250. if test "x$ac_cv_func_trunc" = xyes
  17251. then :
  17252. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17253. fi
  17254. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17255. if test "x$ac_cv_func_truncf" = xyes
  17256. then :
  17257. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17258. fi
  17259. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17260. if test "x$ac_cv_func_fmod" = xyes
  17261. then :
  17262. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17263. fi
  17264. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17265. if test "x$ac_cv_func_fmodf" = xyes
  17266. then :
  17267. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17270. if test "x$ac_cv_func_log" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17275. if test "x$ac_cv_func_logf" = xyes
  17276. then :
  17277. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17280. if test "x$ac_cv_func_log10" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17285. if test "x$ac_cv_func_log10f" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17290. if test "x$ac_cv_func_lround" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17295. if test "x$ac_cv_func_lroundf" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17298. fi
  17299. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17300. if test "x$ac_cv_func_pow" = xyes
  17301. then :
  17302. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17303. fi
  17304. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17305. if test "x$ac_cv_func_powf" = xyes
  17306. then :
  17307. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17308. fi
  17309. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17310. if test "x$ac_cv_func_round" = xyes
  17311. then :
  17312. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17313. fi
  17314. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17315. if test "x$ac_cv_func_roundf" = xyes
  17316. then :
  17317. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17318. fi
  17319. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17320. if test "x$ac_cv_func_scalbn" = xyes
  17321. then :
  17322. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17323. fi
  17324. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17325. if test "x$ac_cv_func_scalbnf" = xyes
  17326. then :
  17327. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17328. fi
  17329. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17330. if test "x$ac_cv_func_sin" = xyes
  17331. then :
  17332. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17333. fi
  17334. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17335. if test "x$ac_cv_func_sinf" = xyes
  17336. then :
  17337. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17338. fi
  17339. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17340. if test "x$ac_cv_func_sqrt" = xyes
  17341. then :
  17342. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17343. fi
  17344. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17345. if test "x$ac_cv_func_sqrtf" = xyes
  17346. then :
  17347. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17348. fi
  17349. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17350. if test "x$ac_cv_func_tan" = xyes
  17351. then :
  17352. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17353. fi
  17354. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17355. if test "x$ac_cv_func_tanf" = xyes
  17356. then :
  17357. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17358. fi
  17359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17360. printf %s "checking for iconv_open in -liconv... " >&6; }
  17361. if test ${ac_cv_lib_iconv_iconv_open+y}
  17362. then :
  17363. printf %s "(cached) " >&6
  17364. else $as_nop
  17365. ac_check_lib_save_LIBS=$LIBS
  17366. LIBS="-liconv $LIBS"
  17367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17368. /* end confdefs.h. */
  17369. /* Override any GCC internal prototype to avoid an error.
  17370. Use char because int might match the return type of a GCC
  17371. builtin and then its argument prototype would still apply. */
  17372. char iconv_open ();
  17373. int
  17374. main (void)
  17375. {
  17376. return iconv_open ();
  17377. ;
  17378. return 0;
  17379. }
  17380. _ACEOF
  17381. if ac_fn_c_try_link "$LINENO"
  17382. then :
  17383. ac_cv_lib_iconv_iconv_open=yes
  17384. else $as_nop
  17385. ac_cv_lib_iconv_iconv_open=no
  17386. fi
  17387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17388. conftest$ac_exeext conftest.$ac_ext
  17389. LIBS=$ac_check_lib_save_LIBS
  17390. fi
  17391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17392. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17393. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17394. then :
  17395. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17398. if test "x$ac_cv_func_iconv" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17403. "
  17404. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17405. then :
  17406. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17407. fi
  17408. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17409. if test "x$ac_cv_header_libunwind_h" = xyes
  17410. then :
  17411. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17412. fi
  17413. fi
  17414. # Check whether --enable-gcc-atomics was given.
  17415. if test ${enable_gcc_atomics+y}
  17416. then :
  17417. enableval=$enable_gcc_atomics;
  17418. else $as_nop
  17419. enable_gcc_atomics=yes
  17420. fi
  17421. if test x$enable_gcc_atomics = xyes; then
  17422. have_gcc_atomics=no
  17423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17424. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17426. /* end confdefs.h. */
  17427. int
  17428. main (void)
  17429. {
  17430. int a;
  17431. void *x, *y, *z;
  17432. __sync_lock_test_and_set(&a, 4);
  17433. __sync_lock_test_and_set(&x, y);
  17434. __sync_fetch_and_add(&a, 1);
  17435. __sync_bool_compare_and_swap(&a, 5, 10);
  17436. __sync_bool_compare_and_swap(&x, y, z);
  17437. ;
  17438. return 0;
  17439. }
  17440. _ACEOF
  17441. if ac_fn_c_try_link "$LINENO"
  17442. then :
  17443. have_gcc_atomics=yes
  17444. fi
  17445. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17446. conftest$ac_exeext conftest.$ac_ext
  17447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17448. printf "%s\n" "$have_gcc_atomics" >&6; }
  17449. if test x$have_gcc_atomics = xyes; then
  17450. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17451. else
  17452. # See if we have the minimum operation needed for GCC atomics
  17453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17454. /* end confdefs.h. */
  17455. int
  17456. main (void)
  17457. {
  17458. int a;
  17459. __sync_lock_test_and_set(&a, 1);
  17460. __sync_lock_release(&a);
  17461. ;
  17462. return 0;
  17463. }
  17464. _ACEOF
  17465. if ac_fn_c_try_link "$LINENO"
  17466. then :
  17467. have_gcc_sync_lock_test_and_set=yes
  17468. fi
  17469. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17470. conftest$ac_exeext conftest.$ac_ext
  17471. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17472. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17473. fi
  17474. fi
  17475. fi
  17476. # Standard C sources
  17477. SOURCES="$SOURCES $srcdir/src/*.c"
  17478. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17479. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17480. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17481. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17482. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17483. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17484. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17485. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17486. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17487. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17488. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17489. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17490. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17491. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17492. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17493. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17494. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17495. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17496. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17497. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17498. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17499. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17500. case "$host" in
  17501. *-*-emscripten*)
  17502. default_atomic=no
  17503. ;;
  17504. *)
  17505. default_atomic=yes
  17506. ;;
  17507. esac
  17508. # Check whether --enable-atomic was given.
  17509. if test ${enable_atomic+y}
  17510. then :
  17511. enableval=$enable_atomic;
  17512. else $as_nop
  17513. enable_atomic=$default_atomic
  17514. fi
  17515. if test x$enable_atomic != xyes; then
  17516. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17517. else
  17518. SUMMARY_modules="${SUMMARY_modules} atomic"
  17519. fi
  17520. # Check whether --enable-audio was given.
  17521. if test ${enable_audio+y}
  17522. then :
  17523. enableval=$enable_audio;
  17524. else $as_nop
  17525. enable_audio=yes
  17526. fi
  17527. if test x$enable_audio != xyes; then
  17528. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17529. else
  17530. SUMMARY_modules="${SUMMARY_modules} audio"
  17531. fi
  17532. # Check whether --enable-video was given.
  17533. if test ${enable_video+y}
  17534. then :
  17535. enableval=$enable_video;
  17536. else $as_nop
  17537. enable_video=yes
  17538. fi
  17539. if test x$enable_video != xyes; then
  17540. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17541. else
  17542. SUMMARY_modules="${SUMMARY_modules} video"
  17543. fi
  17544. # Check whether --enable-render was given.
  17545. if test ${enable_render+y}
  17546. then :
  17547. enableval=$enable_render;
  17548. else $as_nop
  17549. enable_render=yes
  17550. fi
  17551. if test x$enable_render != xyes; then
  17552. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17553. else
  17554. SUMMARY_modules="${SUMMARY_modules} render"
  17555. fi
  17556. # Check whether --enable-events was given.
  17557. if test ${enable_events+y}
  17558. then :
  17559. enableval=$enable_events;
  17560. else $as_nop
  17561. enable_events=yes
  17562. fi
  17563. if test x$enable_events != xyes; then
  17564. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17565. else
  17566. SUMMARY_modules="${SUMMARY_modules} events"
  17567. fi
  17568. # Check whether --enable-joystick was given.
  17569. if test ${enable_joystick+y}
  17570. then :
  17571. enableval=$enable_joystick;
  17572. else $as_nop
  17573. enable_joystick=yes
  17574. fi
  17575. if test x$enable_joystick != xyes; then
  17576. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17577. else
  17578. SUMMARY_modules="${SUMMARY_modules} joystick"
  17579. fi
  17580. # Check whether --enable-haptic was given.
  17581. if test ${enable_haptic+y}
  17582. then :
  17583. enableval=$enable_haptic;
  17584. else $as_nop
  17585. enable_haptic=yes
  17586. fi
  17587. if test x$enable_haptic != xyes; then
  17588. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17589. else
  17590. SUMMARY_modules="${SUMMARY_modules} haptic"
  17591. fi
  17592. # Check whether --enable-hidapi was given.
  17593. if test ${enable_hidapi+y}
  17594. then :
  17595. enableval=$enable_hidapi;
  17596. else $as_nop
  17597. enable_hidapi=yes
  17598. fi
  17599. if test x$enable_hidapi != xyes; then
  17600. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17601. else
  17602. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17603. fi
  17604. # Check whether --enable-sensor was given.
  17605. if test ${enable_sensor+y}
  17606. then :
  17607. enableval=$enable_sensor;
  17608. else $as_nop
  17609. enable_sensor=yes
  17610. fi
  17611. if test x$enable_sensor != xyes; then
  17612. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17613. else
  17614. SUMMARY_modules="${SUMMARY_modules} sensor"
  17615. fi
  17616. # Check whether --enable-power was given.
  17617. if test ${enable_power+y}
  17618. then :
  17619. enableval=$enable_power;
  17620. else $as_nop
  17621. enable_power=yes
  17622. fi
  17623. if test x$enable_power != xyes; then
  17624. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17625. else
  17626. SUMMARY_modules="${SUMMARY_modules} power"
  17627. fi
  17628. # Check whether --enable-filesystem was given.
  17629. if test ${enable_filesystem+y}
  17630. then :
  17631. enableval=$enable_filesystem;
  17632. else $as_nop
  17633. enable_filesystem=yes
  17634. fi
  17635. if test x$enable_filesystem != xyes; then
  17636. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17637. else
  17638. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17639. fi
  17640. # Check whether --enable-threads was given.
  17641. if test ${enable_threads+y}
  17642. then :
  17643. enableval=$enable_threads;
  17644. else $as_nop
  17645. enable_threads=yes
  17646. fi
  17647. if test x$enable_threads != xyes; then
  17648. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17649. else
  17650. SUMMARY_modules="${SUMMARY_modules} threads"
  17651. fi
  17652. # Check whether --enable-timers was given.
  17653. if test ${enable_timers+y}
  17654. then :
  17655. enableval=$enable_timers;
  17656. else $as_nop
  17657. enable_timers=yes
  17658. fi
  17659. if test x$enable_timers != xyes; then
  17660. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17661. else
  17662. SUMMARY_modules="${SUMMARY_modules} timers"
  17663. fi
  17664. # Check whether --enable-file was given.
  17665. if test ${enable_file+y}
  17666. then :
  17667. enableval=$enable_file;
  17668. else $as_nop
  17669. enable_file=yes
  17670. fi
  17671. if test x$enable_file != xyes; then
  17672. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17673. else
  17674. SUMMARY_modules="${SUMMARY_modules} file"
  17675. fi
  17676. # Check whether --enable-misc was given.
  17677. if test ${enable_misc+y}
  17678. then :
  17679. enableval=$enable_misc;
  17680. else $as_nop
  17681. enable_misc=yes
  17682. fi
  17683. if test x$enable_misc != xyes; then
  17684. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17685. else
  17686. SUMMARY_modules="${SUMMARY_modules} misc"
  17687. fi
  17688. # Check whether --enable-locale was given.
  17689. if test ${enable_locale+y}
  17690. then :
  17691. enableval=$enable_locale;
  17692. else $as_nop
  17693. enable_locale=yes
  17694. fi
  17695. if test x$enable_locale != xyes; then
  17696. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17697. else
  17698. SUMMARY_modules="${SUMMARY_modules} locale"
  17699. fi
  17700. # Check whether --enable-loadso was given.
  17701. if test ${enable_loadso+y}
  17702. then :
  17703. enableval=$enable_loadso;
  17704. else $as_nop
  17705. enable_loadso=yes
  17706. fi
  17707. if test x$enable_loadso != xyes; then
  17708. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17709. else
  17710. SUMMARY_modules="${SUMMARY_modules} loadso"
  17711. fi
  17712. # Check whether --enable-cpuinfo was given.
  17713. if test ${enable_cpuinfo+y}
  17714. then :
  17715. enableval=$enable_cpuinfo;
  17716. else $as_nop
  17717. enable_cpuinfo=yes
  17718. fi
  17719. if test x$enable_cpuinfo != xyes; then
  17720. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17721. else
  17722. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17723. fi
  17724. # Check whether --enable-assembly was given.
  17725. if test ${enable_assembly+y}
  17726. then :
  17727. enableval=$enable_assembly;
  17728. else $as_nop
  17729. enable_assembly=yes
  17730. fi
  17731. if test x$enable_assembly = xyes; then
  17732. SUMMARY_modules="${SUMMARY_modules} assembly"
  17733. # Make sure that we don't generate floating point code that would
  17734. # cause illegal instruction exceptions on older processors
  17735. case "$host" in
  17736. *-*-darwin*)
  17737. # Don't need to worry about Apple hardware, it's all SSE capable
  17738. default_ssemath=yes
  17739. ;;
  17740. *64-*-*)
  17741. # x86 64-bit architectures all have SSE instructions
  17742. default_ssemath=yes
  17743. ;;
  17744. *)
  17745. default_ssemath=no
  17746. ;;
  17747. esac
  17748. # Check whether --enable-ssemath was given.
  17749. if test ${enable_ssemath+y}
  17750. then :
  17751. enableval=$enable_ssemath;
  17752. else $as_nop
  17753. enable_ssemath=$default_ssemath
  17754. fi
  17755. if test x$enable_ssemath = xno; then
  17756. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17757. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17758. fi
  17759. fi
  17760. # Check whether --enable-mmx was given.
  17761. if test ${enable_mmx+y}
  17762. then :
  17763. enableval=$enable_mmx;
  17764. else $as_nop
  17765. enable_mmx=yes
  17766. fi
  17767. if test x$enable_mmx = xyes; then
  17768. save_CFLAGS="$CFLAGS"
  17769. have_gcc_mmx=no
  17770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17771. printf %s "checking for GCC -mmmx option... " >&6; }
  17772. mmx_CFLAGS="-mmmx"
  17773. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17775. /* end confdefs.h. */
  17776. #ifdef __MINGW32__
  17777. #include <_mingw.h>
  17778. #ifdef __MINGW64_VERSION_MAJOR
  17779. #include <intrin.h>
  17780. #else
  17781. #include <mmintrin.h>
  17782. #endif
  17783. #else
  17784. #include <mmintrin.h>
  17785. #endif
  17786. #ifndef __MMX__
  17787. #error Assembler CPP flag not enabled
  17788. #endif
  17789. int
  17790. main (void)
  17791. {
  17792. ;
  17793. return 0;
  17794. }
  17795. _ACEOF
  17796. if ac_fn_c_try_compile "$LINENO"
  17797. then :
  17798. have_gcc_mmx=yes
  17799. fi
  17800. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17802. printf "%s\n" "$have_gcc_mmx" >&6; }
  17803. CFLAGS="$save_CFLAGS"
  17804. if test x$have_gcc_mmx = xyes; then
  17805. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17806. SUMMARY_math="${SUMMARY_math} mmx"
  17807. fi
  17808. fi
  17809. # Check whether --enable-3dnow was given.
  17810. if test ${enable_3dnow+y}
  17811. then :
  17812. enableval=$enable_3dnow;
  17813. else $as_nop
  17814. enable_3dnow=yes
  17815. fi
  17816. if test x$enable_3dnow = xyes; then
  17817. save_CFLAGS="$CFLAGS"
  17818. have_gcc_3dnow=no
  17819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17820. printf %s "checking for GCC -m3dnow option... " >&6; }
  17821. amd3dnow_CFLAGS="-m3dnow"
  17822. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17824. /* end confdefs.h. */
  17825. #include <mm3dnow.h>
  17826. #ifndef __3dNOW__
  17827. #error Assembler CPP flag not enabled
  17828. #endif
  17829. int
  17830. main (void)
  17831. {
  17832. void *p = 0;
  17833. _m_prefetch(p);
  17834. ;
  17835. return 0;
  17836. }
  17837. _ACEOF
  17838. if ac_fn_c_try_link "$LINENO"
  17839. then :
  17840. have_gcc_3dnow=yes
  17841. fi
  17842. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17843. conftest$ac_exeext conftest.$ac_ext
  17844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17845. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17846. CFLAGS="$save_CFLAGS"
  17847. if test x$have_gcc_3dnow = xyes; then
  17848. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17849. SUMMARY_math="${SUMMARY_math} 3dnow"
  17850. fi
  17851. fi
  17852. # Check whether --enable-sse was given.
  17853. if test ${enable_sse+y}
  17854. then :
  17855. enableval=$enable_sse;
  17856. else $as_nop
  17857. enable_sse=yes
  17858. fi
  17859. if test x$enable_sse = xyes; then
  17860. save_CFLAGS="$CFLAGS"
  17861. have_gcc_sse=no
  17862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17863. printf %s "checking for GCC -msse option... " >&6; }
  17864. sse_CFLAGS="-msse"
  17865. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. #ifdef __MINGW32__
  17869. #include <_mingw.h>
  17870. #ifdef __MINGW64_VERSION_MAJOR
  17871. #include <intrin.h>
  17872. #else
  17873. #include <xmmintrin.h>
  17874. #endif
  17875. #else
  17876. #include <xmmintrin.h>
  17877. #endif
  17878. #ifndef __SSE__
  17879. #error Assembler CPP flag not enabled
  17880. #endif
  17881. int
  17882. main (void)
  17883. {
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_compile "$LINENO"
  17889. then :
  17890. have_gcc_sse=yes
  17891. fi
  17892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17894. printf "%s\n" "$have_gcc_sse" >&6; }
  17895. CFLAGS="$save_CFLAGS"
  17896. if test x$have_gcc_sse = xyes; then
  17897. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17898. SUMMARY_math="${SUMMARY_math} sse"
  17899. fi
  17900. fi
  17901. # Check whether --enable-sse2 was given.
  17902. if test ${enable_sse2+y}
  17903. then :
  17904. enableval=$enable_sse2;
  17905. else $as_nop
  17906. enable_sse2=$default_ssemath
  17907. fi
  17908. if test x$enable_sse2 = xyes; then
  17909. save_CFLAGS="$CFLAGS"
  17910. have_gcc_sse2=no
  17911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17912. printf %s "checking for GCC -msse2 option... " >&6; }
  17913. sse2_CFLAGS="-msse2"
  17914. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17916. /* end confdefs.h. */
  17917. #ifdef __MINGW32__
  17918. #include <_mingw.h>
  17919. #ifdef __MINGW64_VERSION_MAJOR
  17920. #include <intrin.h>
  17921. #else
  17922. #include <emmintrin.h>
  17923. #endif
  17924. #else
  17925. #include <emmintrin.h>
  17926. #endif
  17927. #ifndef __SSE2__
  17928. #error Assembler CPP flag not enabled
  17929. #endif
  17930. int
  17931. main (void)
  17932. {
  17933. ;
  17934. return 0;
  17935. }
  17936. _ACEOF
  17937. if ac_fn_c_try_compile "$LINENO"
  17938. then :
  17939. have_gcc_sse2=yes
  17940. fi
  17941. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17943. printf "%s\n" "$have_gcc_sse2" >&6; }
  17944. CFLAGS="$save_CFLAGS"
  17945. if test x$have_gcc_sse2 = xyes; then
  17946. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17947. SUMMARY_math="${SUMMARY_math} sse2"
  17948. fi
  17949. fi
  17950. # Check whether --enable-sse3 was given.
  17951. if test ${enable_sse3+y}
  17952. then :
  17953. enableval=$enable_sse3;
  17954. else $as_nop
  17955. enable_sse3=$default_ssemath
  17956. fi
  17957. if test x$enable_sse3 = xyes; then
  17958. save_CFLAGS="$CFLAGS"
  17959. have_gcc_sse3=no
  17960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17961. printf %s "checking for GCC -msse3 option... " >&6; }
  17962. sse3_CFLAGS="-msse3"
  17963. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17965. /* end confdefs.h. */
  17966. #ifdef __MINGW32__
  17967. #include <_mingw.h>
  17968. #ifdef __MINGW64_VERSION_MAJOR
  17969. #include <intrin.h>
  17970. #else
  17971. #include <pmmintrin.h>
  17972. #endif
  17973. #else
  17974. #include <pmmintrin.h>
  17975. #endif
  17976. #ifndef __SSE2__
  17977. #error Assembler CPP flag not enabled
  17978. #endif
  17979. int
  17980. main (void)
  17981. {
  17982. ;
  17983. return 0;
  17984. }
  17985. _ACEOF
  17986. if ac_fn_c_try_compile "$LINENO"
  17987. then :
  17988. have_gcc_sse3=yes
  17989. fi
  17990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17992. printf "%s\n" "$have_gcc_sse3" >&6; }
  17993. CFLAGS="$save_CFLAGS"
  17994. if test x$have_gcc_sse3 = xyes; then
  17995. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17996. SUMMARY_math="${SUMMARY_math} sse3"
  17997. fi
  17998. fi
  17999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18000. printf %s "checking for immintrin.h... " >&6; }
  18001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18002. /* end confdefs.h. */
  18003. #include <immintrin.h>
  18004. int
  18005. main (void)
  18006. {
  18007. ;
  18008. return 0;
  18009. }
  18010. _ACEOF
  18011. if ac_fn_c_try_compile "$LINENO"
  18012. then :
  18013. have_immintrin_h_hdr=yes
  18014. else $as_nop
  18015. have_immintrin_h_hdr=no
  18016. fi
  18017. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18019. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18020. if test x$have_immintrin_h_hdr = xyes; then
  18021. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18022. fi
  18023. # Check whether --enable-altivec was given.
  18024. if test ${enable_altivec+y}
  18025. then :
  18026. enableval=$enable_altivec;
  18027. else $as_nop
  18028. enable_altivec=yes
  18029. fi
  18030. if test x$enable_altivec = xyes; then
  18031. save_CFLAGS="$CFLAGS"
  18032. have_gcc_altivec=no
  18033. have_altivec_h_hdr=no
  18034. altivec_CFLAGS="-maltivec"
  18035. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18037. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18039. /* end confdefs.h. */
  18040. #include <altivec.h>
  18041. vector unsigned int vzero() {
  18042. return vec_splat_u32(0);
  18043. }
  18044. int
  18045. main (void)
  18046. {
  18047. ;
  18048. return 0;
  18049. }
  18050. _ACEOF
  18051. if ac_fn_c_try_compile "$LINENO"
  18052. then :
  18053. have_gcc_altivec=yes
  18054. have_altivec_h_hdr=yes
  18055. fi
  18056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18058. printf "%s\n" "$have_gcc_altivec" >&6; }
  18059. if test x$have_gcc_altivec = xno; then
  18060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18061. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18063. /* end confdefs.h. */
  18064. vector unsigned int vzero() {
  18065. return vec_splat_u32(0);
  18066. }
  18067. int
  18068. main (void)
  18069. {
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. if ac_fn_c_try_compile "$LINENO"
  18075. then :
  18076. have_gcc_altivec=yes
  18077. fi
  18078. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18080. printf "%s\n" "$have_gcc_altivec" >&6; }
  18081. fi
  18082. if test x$have_gcc_altivec = xno; then
  18083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18084. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18085. altivec_CFLAGS="-faltivec"
  18086. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18088. /* end confdefs.h. */
  18089. #include <altivec.h>
  18090. vector unsigned int vzero() {
  18091. return vec_splat_u32(0);
  18092. }
  18093. int
  18094. main (void)
  18095. {
  18096. ;
  18097. return 0;
  18098. }
  18099. _ACEOF
  18100. if ac_fn_c_try_compile "$LINENO"
  18101. then :
  18102. have_gcc_altivec=yes
  18103. have_altivec_h_hdr=yes
  18104. fi
  18105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18107. printf "%s\n" "$have_gcc_altivec" >&6; }
  18108. fi
  18109. if test x$have_gcc_altivec = xno; then
  18110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18111. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18113. /* end confdefs.h. */
  18114. vector unsigned int vzero() {
  18115. return vec_splat_u32(0);
  18116. }
  18117. int
  18118. main (void)
  18119. {
  18120. ;
  18121. return 0;
  18122. }
  18123. _ACEOF
  18124. if ac_fn_c_try_compile "$LINENO"
  18125. then :
  18126. have_gcc_altivec=yes
  18127. fi
  18128. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18130. printf "%s\n" "$have_gcc_altivec" >&6; }
  18131. fi
  18132. CFLAGS="$save_CFLAGS"
  18133. if test x$have_gcc_altivec = xyes; then
  18134. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18135. if test x$have_altivec_h_hdr = xyes; then
  18136. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18137. fi
  18138. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18139. SUMMARY_math="${SUMMARY_math} altivec"
  18140. fi
  18141. fi
  18142. fi
  18143. # Check whether --enable-lsx was given.
  18144. if test ${enable_lsx+y}
  18145. then :
  18146. enableval=$enable_lsx;
  18147. else $as_nop
  18148. enable_lsx=yes
  18149. fi
  18150. if test x$enable_lsx = xyes; then
  18151. save_CFLAGS="$CFLAGS"
  18152. have_gcc_lsx=no
  18153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18154. printf %s "checking for GCC -mlsx option... " >&6; }
  18155. lsx_CFLAGS="-mlsx"
  18156. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18158. /* end confdefs.h. */
  18159. #ifndef __loongarch_sx
  18160. #error Assembler CPP flag not enabled
  18161. #endif
  18162. int
  18163. main (void)
  18164. {
  18165. ;
  18166. return 0;
  18167. }
  18168. _ACEOF
  18169. if ac_fn_c_try_compile "$LINENO"
  18170. then :
  18171. have_gcc_lsx=yes
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18175. printf "%s\n" "$have_gcc_lsx" >&6; }
  18176. CFLAGS="$save_CFLAGS"
  18177. if test x$have_gcc_lsx = xyes; then
  18178. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18179. SUMMARY_math="${SUMMARY_math} lsx"
  18180. fi
  18181. fi
  18182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18183. printf %s "checking for lsxintrin.h... " >&6; }
  18184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18185. /* end confdefs.h. */
  18186. #include <lsxintrin.h>
  18187. int
  18188. main (void)
  18189. {
  18190. ;
  18191. return 0;
  18192. }
  18193. _ACEOF
  18194. if ac_fn_c_try_compile "$LINENO"
  18195. then :
  18196. have_lsxintrin_h_hdr=yes
  18197. else $as_nop
  18198. have_lsxintrin_h_hdr=no
  18199. fi
  18200. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18202. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18203. if test x$have_lsxintrin_h_hdr = xyes; then
  18204. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18205. fi
  18206. # Check whether --enable-lasx was given.
  18207. if test ${enable_lasx+y}
  18208. then :
  18209. enableval=$enable_lasx;
  18210. else $as_nop
  18211. enable_LASX=yes
  18212. fi
  18213. if test x$enable_LASX = xyes; then
  18214. save_CFLAGS="$CFLAGS"
  18215. have_gcc_lasx=no
  18216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18217. printf %s "checking for GCC -mlasx option... " >&6; }
  18218. lasx_CFLAGS="-mlasx"
  18219. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. #ifndef __loongarch_asx
  18223. #error Assembler CPP flag not enabled
  18224. #endif
  18225. int
  18226. main (void)
  18227. {
  18228. ;
  18229. return 0;
  18230. }
  18231. _ACEOF
  18232. if ac_fn_c_try_compile "$LINENO"
  18233. then :
  18234. have_gcc_lasx=yes
  18235. fi
  18236. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18238. printf "%s\n" "$have_gcc_lasx" >&6; }
  18239. CFLAGS="$save_CFLAGS"
  18240. if test x$have_gcc_lasx = xyes; then
  18241. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18242. SUMMARY_math="${SUMMARY_math} lasx"
  18243. fi
  18244. fi
  18245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18246. printf %s "checking for lasxintrin.h... " >&6; }
  18247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18248. /* end confdefs.h. */
  18249. #include <lasxintrin.h>
  18250. int
  18251. main (void)
  18252. {
  18253. ;
  18254. return 0;
  18255. }
  18256. _ACEOF
  18257. if ac_fn_c_try_compile "$LINENO"
  18258. then :
  18259. have_lasxintrin_h_hdr=yes
  18260. else $as_nop
  18261. have_lasxintrin_h_hdr=no
  18262. fi
  18263. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18265. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18266. if test x$have_lasxintrin_h_hdr = xyes; then
  18267. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18268. fi
  18269. CheckOSS()
  18270. {
  18271. # Check whether --enable-oss was given.
  18272. if test ${enable_oss+y}
  18273. then :
  18274. enableval=$enable_oss;
  18275. else $as_nop
  18276. enable_oss=maybe
  18277. fi
  18278. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18279. # use sndio instead. So on there, we default to disabled. You can force
  18280. # it on if you really want, though.
  18281. if test x$enable_oss = xmaybe; then
  18282. enable_oss=yes
  18283. case "$host" in
  18284. *-*-openbsd*)
  18285. enable_oss=no;;
  18286. esac
  18287. fi
  18288. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18290. printf %s "checking for OSS audio support... " >&6; }
  18291. have_oss=no
  18292. if test x$have_oss != xyes; then
  18293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18294. /* end confdefs.h. */
  18295. #include <sys/soundcard.h>
  18296. int
  18297. main (void)
  18298. {
  18299. int arg = SNDCTL_DSP_SETFRAGMENT;
  18300. ;
  18301. return 0;
  18302. }
  18303. _ACEOF
  18304. if ac_fn_c_try_compile "$LINENO"
  18305. then :
  18306. have_oss=yes
  18307. fi
  18308. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18309. fi
  18310. if test x$have_oss != xyes; then
  18311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18312. /* end confdefs.h. */
  18313. #include <soundcard.h>
  18314. int
  18315. main (void)
  18316. {
  18317. int arg = SNDCTL_DSP_SETFRAGMENT;
  18318. ;
  18319. return 0;
  18320. }
  18321. _ACEOF
  18322. if ac_fn_c_try_compile "$LINENO"
  18323. then :
  18324. have_oss=yes
  18325. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18326. fi
  18327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18328. fi
  18329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18330. printf "%s\n" "$have_oss" >&6; }
  18331. if test x$have_oss = xyes; then
  18332. SUMMARY_audio="${SUMMARY_audio} oss"
  18333. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18334. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18335. have_audio=yes
  18336. # We may need to link with ossaudio emulation library
  18337. case "$host" in
  18338. *-*-openbsd*|*-*-netbsd*)
  18339. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18340. esac
  18341. fi
  18342. fi
  18343. }
  18344. CheckALSA()
  18345. {
  18346. # Check whether --enable-alsa was given.
  18347. if test ${enable_alsa+y}
  18348. then :
  18349. enableval=$enable_alsa;
  18350. else $as_nop
  18351. enable_alsa=yes
  18352. fi
  18353. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18354. alsa_save_CFLAGS="$CFLAGS"
  18355. alsa_save_LDFLAGS="$LDFLAGS"
  18356. alsa_save_LIBS="$LIBS"
  18357. alsa_found=yes
  18358. # Check whether --with-alsa-prefix was given.
  18359. if test ${with_alsa_prefix+y}
  18360. then :
  18361. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18362. else $as_nop
  18363. alsa_prefix=""
  18364. fi
  18365. # Check whether --with-alsa-inc-prefix was given.
  18366. if test ${with_alsa_inc_prefix+y}
  18367. then :
  18368. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18369. else $as_nop
  18370. alsa_inc_prefix=""
  18371. fi
  18372. # Check whether --enable-alsatest was given.
  18373. if test ${enable_alsatest+y}
  18374. then :
  18375. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18376. else $as_nop
  18377. enable_alsatest=yes
  18378. fi
  18379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18380. printf %s "checking for ALSA CFLAGS... " >&6; }
  18381. if test "$alsa_inc_prefix" != "" ; then
  18382. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18383. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18384. fi
  18385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18386. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18388. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18389. if test "$alsa_prefix" != "" ; then
  18390. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18391. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18392. fi
  18393. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18394. LIBS=`echo $LIBS | sed 's/-lm//'`
  18395. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18396. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18397. LIBS=`echo $LIBS | sed 's/ //'`
  18398. LIBS="$ALSA_LIBS $LIBS"
  18399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18400. printf "%s\n" "$ALSA_LIBS" >&6; }
  18401. min_alsa_version=1.0.11
  18402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18403. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18404. no_alsa=""
  18405. alsa_min_major_version=`echo $min_alsa_version | \
  18406. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18407. alsa_min_minor_version=`echo $min_alsa_version | \
  18408. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18409. alsa_min_micro_version=`echo $min_alsa_version | \
  18410. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18411. ac_ext=c
  18412. ac_cpp='$CPP $CPPFLAGS'
  18413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18417. /* end confdefs.h. */
  18418. #include <alsa/asoundlib.h>
  18419. int
  18420. main (void)
  18421. {
  18422. /* ensure backward compatibility */
  18423. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18424. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18425. #endif
  18426. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18427. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18428. #endif
  18429. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18430. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18431. #endif
  18432. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18433. exit(0);
  18434. # else
  18435. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18436. # error not present
  18437. # endif
  18438. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18439. exit(0);
  18440. # else
  18441. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18442. # error not present
  18443. # endif
  18444. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18445. # error not present
  18446. # endif
  18447. # endif
  18448. # endif
  18449. exit(0);
  18450. ;
  18451. return 0;
  18452. }
  18453. _ACEOF
  18454. if ac_fn_c_try_compile "$LINENO"
  18455. then :
  18456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18457. printf "%s\n" "found." >&6; }
  18458. else $as_nop
  18459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18460. printf "%s\n" "not present." >&6; }
  18461. alsa_found=no
  18462. fi
  18463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18464. ac_ext=c
  18465. ac_cpp='$CPP $CPPFLAGS'
  18466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18469. if test "x$enable_alsatest" = "xyes"; then
  18470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18471. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18472. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18473. then :
  18474. printf %s "(cached) " >&6
  18475. else $as_nop
  18476. ac_check_lib_save_LIBS=$LIBS
  18477. LIBS="-lasound $LIBS"
  18478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18479. /* end confdefs.h. */
  18480. /* Override any GCC internal prototype to avoid an error.
  18481. Use char because int might match the return type of a GCC
  18482. builtin and then its argument prototype would still apply. */
  18483. char snd_ctl_open ();
  18484. int
  18485. main (void)
  18486. {
  18487. return snd_ctl_open ();
  18488. ;
  18489. return 0;
  18490. }
  18491. _ACEOF
  18492. if ac_fn_c_try_link "$LINENO"
  18493. then :
  18494. ac_cv_lib_asound_snd_ctl_open=yes
  18495. else $as_nop
  18496. ac_cv_lib_asound_snd_ctl_open=no
  18497. fi
  18498. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18499. conftest$ac_exeext conftest.$ac_ext
  18500. LIBS=$ac_check_lib_save_LIBS
  18501. fi
  18502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18503. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18504. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18505. then :
  18506. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18507. LIBS="-lasound $LIBS"
  18508. else $as_nop
  18509. alsa_found=no
  18510. fi
  18511. fi
  18512. if test "x$alsa_found" = "xyes" ; then
  18513. have_alsa=yes
  18514. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18515. LIBS=`echo $LIBS | sed 's/ //'`
  18516. LIBS="-lasound $LIBS"
  18517. fi
  18518. if test "x$alsa_found" = "xno" ; then
  18519. have_alsa=no
  18520. CFLAGS="$alsa_save_CFLAGS"
  18521. LDFLAGS="$alsa_save_LDFLAGS"
  18522. LIBS="$alsa_save_LIBS"
  18523. ALSA_CFLAGS=""
  18524. ALSA_LIBS=""
  18525. fi
  18526. # Restore all flags from before the ALSA detection runs
  18527. CFLAGS="$alsa_save_CFLAGS"
  18528. LDFLAGS="$alsa_save_LDFLAGS"
  18529. LIBS="$alsa_save_LIBS"
  18530. if test x$have_alsa = xyes; then
  18531. # Check whether --enable-alsa-shared was given.
  18532. if test ${enable_alsa_shared+y}
  18533. then :
  18534. enableval=$enable_alsa_shared;
  18535. else $as_nop
  18536. enable_alsa_shared=yes
  18537. fi
  18538. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18539. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18540. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18541. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18542. if test x$have_loadso != xyes && \
  18543. test x$enable_alsa_shared = xyes; then
  18544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18545. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18546. fi
  18547. if test x$have_loadso = xyes && \
  18548. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18549. echo "-- dynamic libasound -> $alsa_lib"
  18550. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18551. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18552. else
  18553. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18554. SUMMARY_audio="${SUMMARY_audio} alsa"
  18555. fi
  18556. have_audio=yes
  18557. fi
  18558. fi
  18559. }
  18560. CheckJACK()
  18561. {
  18562. # Check whether --enable-jack was given.
  18563. if test ${enable_jack+y}
  18564. then :
  18565. enableval=$enable_jack;
  18566. else $as_nop
  18567. enable_jack=yes
  18568. fi
  18569. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18570. pkg_failed=no
  18571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18572. printf %s "checking for jack >= 0.125... " >&6; }
  18573. if test -n "$JACK_CFLAGS"; then
  18574. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18575. elif test -n "$PKG_CONFIG"; then
  18576. if test -n "$PKG_CONFIG" && \
  18577. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18578. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18579. ac_status=$?
  18580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18581. test $ac_status = 0; }; then
  18582. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18583. test "x$?" != "x0" && pkg_failed=yes
  18584. else
  18585. pkg_failed=yes
  18586. fi
  18587. else
  18588. pkg_failed=untried
  18589. fi
  18590. if test -n "$JACK_LIBS"; then
  18591. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18592. elif test -n "$PKG_CONFIG"; then
  18593. if test -n "$PKG_CONFIG" && \
  18594. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18595. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18596. ac_status=$?
  18597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18598. test $ac_status = 0; }; then
  18599. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18600. test "x$?" != "x0" && pkg_failed=yes
  18601. else
  18602. pkg_failed=yes
  18603. fi
  18604. else
  18605. pkg_failed=untried
  18606. fi
  18607. if test $pkg_failed = yes; then
  18608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18609. printf "%s\n" "no" >&6; }
  18610. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18611. _pkg_short_errors_supported=yes
  18612. else
  18613. _pkg_short_errors_supported=no
  18614. fi
  18615. if test $_pkg_short_errors_supported = yes; then
  18616. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18617. else
  18618. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18619. fi
  18620. # Put the nasty error message in config.log where it belongs
  18621. echo "$JACK_PKG_ERRORS" >&5
  18622. audio_jack=no
  18623. elif test $pkg_failed = untried; then
  18624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18625. printf "%s\n" "no" >&6; }
  18626. audio_jack=no
  18627. else
  18628. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18629. JACK_LIBS=$pkg_cv_JACK_LIBS
  18630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18631. printf "%s\n" "yes" >&6; }
  18632. audio_jack=yes
  18633. fi
  18634. if test x$audio_jack = xyes; then
  18635. # Check whether --enable-jack-shared was given.
  18636. if test ${enable_jack_shared+y}
  18637. then :
  18638. enableval=$enable_jack_shared;
  18639. else $as_nop
  18640. enable_jack_shared=yes
  18641. fi
  18642. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18643. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18644. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18645. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18646. if test x$have_loadso != xyes && \
  18647. test x$enable_jack_shared = xyes; then
  18648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18649. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18650. fi
  18651. if test x$have_loadso = xyes && \
  18652. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18653. echo "-- dynamic libjack -> $jack_lib"
  18654. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18655. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18656. case "$host" in
  18657. # On Solaris, jack must be linked deferred explicitly
  18658. # to prevent undefined symbol failures.
  18659. *-*-solaris*)
  18660. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18661. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18662. esac
  18663. else
  18664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18665. SUMMARY_audio="${SUMMARY_audio} jack"
  18666. fi
  18667. have_audio=yes
  18668. fi
  18669. fi
  18670. }
  18671. CheckESD()
  18672. {
  18673. # Check whether --enable-esd was given.
  18674. if test ${enable_esd+y}
  18675. then :
  18676. enableval=$enable_esd;
  18677. else $as_nop
  18678. enable_esd=yes
  18679. fi
  18680. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18681. # Check whether --with-esd-prefix was given.
  18682. if test ${with_esd_prefix+y}
  18683. then :
  18684. withval=$with_esd_prefix; esd_prefix="$withval"
  18685. else $as_nop
  18686. esd_prefix=""
  18687. fi
  18688. # Check whether --with-esd-exec-prefix was given.
  18689. if test ${with_esd_exec_prefix+y}
  18690. then :
  18691. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18692. else $as_nop
  18693. esd_exec_prefix=""
  18694. fi
  18695. # Check whether --enable-esdtest was given.
  18696. if test ${enable_esdtest+y}
  18697. then :
  18698. enableval=$enable_esdtest;
  18699. else $as_nop
  18700. enable_esdtest=yes
  18701. fi
  18702. if test x$esd_exec_prefix != x ; then
  18703. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18704. if test x${ESD_CONFIG+set} != xset ; then
  18705. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18706. fi
  18707. fi
  18708. if test x$esd_prefix != x ; then
  18709. esd_args="$esd_args --prefix=$esd_prefix"
  18710. if test x${ESD_CONFIG+set} != xset ; then
  18711. ESD_CONFIG=$esd_prefix/bin/esd-config
  18712. fi
  18713. fi
  18714. # Extract the first word of "esd-config", so it can be a program name with args.
  18715. set dummy esd-config; ac_word=$2
  18716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18717. printf %s "checking for $ac_word... " >&6; }
  18718. if test ${ac_cv_path_ESD_CONFIG+y}
  18719. then :
  18720. printf %s "(cached) " >&6
  18721. else $as_nop
  18722. case $ESD_CONFIG in
  18723. [\\/]* | ?:[\\/]*)
  18724. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18725. ;;
  18726. *)
  18727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18728. for as_dir in $PATH
  18729. do
  18730. IFS=$as_save_IFS
  18731. case $as_dir in #(((
  18732. '') as_dir=./ ;;
  18733. */) ;;
  18734. *) as_dir=$as_dir/ ;;
  18735. esac
  18736. for ac_exec_ext in '' $ac_executable_extensions; do
  18737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18738. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18740. break 2
  18741. fi
  18742. done
  18743. done
  18744. IFS=$as_save_IFS
  18745. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18746. ;;
  18747. esac
  18748. fi
  18749. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18750. if test -n "$ESD_CONFIG"; then
  18751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18752. printf "%s\n" "$ESD_CONFIG" >&6; }
  18753. else
  18754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18755. printf "%s\n" "no" >&6; }
  18756. fi
  18757. min_esd_version=0.2.8
  18758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18759. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18760. no_esd=""
  18761. if test "$ESD_CONFIG" = "no" ; then
  18762. no_esd=yes
  18763. else
  18764. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18765. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18766. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18767. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18768. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18769. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18770. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18771. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18772. if test "x$enable_esdtest" = "xyes" ; then
  18773. ac_ext=c
  18774. ac_cpp='$CPP $CPPFLAGS'
  18775. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18776. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18777. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18778. ac_save_CFLAGS="$CFLAGS"
  18779. ac_save_LIBS="$LIBS"
  18780. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18781. LIBS="$LIBS $ESD_LIBS"
  18782. rm -f conf.esdtest
  18783. if test "$cross_compiling" = yes
  18784. then :
  18785. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18786. else $as_nop
  18787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18788. /* end confdefs.h. */
  18789. #include <stdio.h>
  18790. #include <stdlib.h>
  18791. #include <esd.h>
  18792. int main (void)
  18793. {
  18794. int major, minor, micro;
  18795. FILE *fp = fopen("conf.esdtest", "w");
  18796. if (fp) fclose(fp);
  18797. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18798. printf("%s, bad version string\n", "$min_esd_version");
  18799. exit(1);
  18800. }
  18801. if (($esd_major_version > major) ||
  18802. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18803. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18804. {
  18805. return 0;
  18806. }
  18807. else
  18808. {
  18809. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18810. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18811. printf("*** best to upgrade to the required version.\n");
  18812. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18813. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18814. printf("*** config.cache before re-running configure\n");
  18815. return 1;
  18816. }
  18817. }
  18818. _ACEOF
  18819. if ac_fn_c_try_run "$LINENO"
  18820. then :
  18821. else $as_nop
  18822. no_esd=yes
  18823. fi
  18824. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18825. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18826. fi
  18827. CFLAGS="$ac_save_CFLAGS"
  18828. LIBS="$ac_save_LIBS"
  18829. ac_ext=c
  18830. ac_cpp='$CPP $CPPFLAGS'
  18831. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18832. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18833. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18834. fi
  18835. fi
  18836. if test "x$no_esd" = x ; then
  18837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18838. printf "%s\n" "yes" >&6; }
  18839. have_esd=yes
  18840. else
  18841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18842. printf "%s\n" "no" >&6; }
  18843. if test "$ESD_CONFIG" = "no" ; then
  18844. echo "*** The esd-config script installed by ESD could not be found"
  18845. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  18846. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  18847. echo "*** full path to esd-config."
  18848. else
  18849. if test -f conf.esdtest ; then
  18850. :
  18851. else
  18852. echo "*** Could not run ESD test program, checking why..."
  18853. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18854. LIBS="$LIBS $ESD_LIBS"
  18855. ac_ext=c
  18856. ac_cpp='$CPP $CPPFLAGS'
  18857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18861. /* end confdefs.h. */
  18862. #include <stdio.h>
  18863. #include <esd.h>
  18864. int
  18865. main (void)
  18866. {
  18867. return 0;
  18868. ;
  18869. return 0;
  18870. }
  18871. _ACEOF
  18872. if ac_fn_c_try_link "$LINENO"
  18873. then :
  18874. echo "*** The test program compiled, but did not run. This usually means"
  18875. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18876. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18877. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18878. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18879. echo "*** is required on your system"
  18880. echo "***"
  18881. echo "*** If you have an old version installed, it is best to remove it, although"
  18882. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18883. else $as_nop
  18884. echo "*** The test program failed to compile or link. See the file config.log for the"
  18885. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18886. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18887. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18888. fi
  18889. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18890. conftest$ac_exeext conftest.$ac_ext
  18891. CFLAGS="$ac_save_CFLAGS"
  18892. LIBS="$ac_save_LIBS"
  18893. ac_ext=c
  18894. ac_cpp='$CPP $CPPFLAGS'
  18895. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18896. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18897. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18898. fi
  18899. fi
  18900. ESD_CFLAGS=""
  18901. ESD_LIBS=""
  18902. have_esd=no
  18903. fi
  18904. rm -f conf.esdtest
  18905. if test x$have_esd = xyes; then
  18906. # Check whether --enable-esd-shared was given.
  18907. if test ${enable_esd_shared+y}
  18908. then :
  18909. enableval=$enable_esd_shared;
  18910. else $as_nop
  18911. enable_esd_shared=yes
  18912. fi
  18913. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18914. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18915. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18916. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18917. if test x$have_loadso != xyes && \
  18918. test x$enable_esd_shared = xyes; then
  18919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18920. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18921. fi
  18922. if test x$have_loadso = xyes && \
  18923. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18924. echo "-- dynamic libesd -> $esd_lib"
  18925. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18926. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18927. else
  18928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18929. SUMMARY_audio="${SUMMARY_audio} esd"
  18930. fi
  18931. have_audio=yes
  18932. fi
  18933. fi
  18934. }
  18935. CheckPipewire()
  18936. {
  18937. # Check whether --enable-pipewire was given.
  18938. if test ${enable_pipewire+y}
  18939. then :
  18940. enableval=$enable_pipewire;
  18941. else $as_nop
  18942. enable_pipewire=yes
  18943. fi
  18944. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18945. pkg_failed=no
  18946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18947. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18948. if test -n "$PIPEWIRE_CFLAGS"; then
  18949. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18950. elif test -n "$PKG_CONFIG"; then
  18951. if test -n "$PKG_CONFIG" && \
  18952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18953. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18954. ac_status=$?
  18955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18956. test $ac_status = 0; }; then
  18957. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18958. test "x$?" != "x0" && pkg_failed=yes
  18959. else
  18960. pkg_failed=yes
  18961. fi
  18962. else
  18963. pkg_failed=untried
  18964. fi
  18965. if test -n "$PIPEWIRE_LIBS"; then
  18966. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18967. elif test -n "$PKG_CONFIG"; then
  18968. if test -n "$PKG_CONFIG" && \
  18969. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18970. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18971. ac_status=$?
  18972. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18973. test $ac_status = 0; }; then
  18974. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18975. test "x$?" != "x0" && pkg_failed=yes
  18976. else
  18977. pkg_failed=yes
  18978. fi
  18979. else
  18980. pkg_failed=untried
  18981. fi
  18982. if test $pkg_failed = yes; then
  18983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18984. printf "%s\n" "no" >&6; }
  18985. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18986. _pkg_short_errors_supported=yes
  18987. else
  18988. _pkg_short_errors_supported=no
  18989. fi
  18990. if test $_pkg_short_errors_supported = yes; then
  18991. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18992. else
  18993. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18994. fi
  18995. # Put the nasty error message in config.log where it belongs
  18996. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18997. audio_pipewire=no
  18998. elif test $pkg_failed = untried; then
  18999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19000. printf "%s\n" "no" >&6; }
  19001. audio_pipewire=no
  19002. else
  19003. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19004. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19006. printf "%s\n" "yes" >&6; }
  19007. audio_pipewire=yes
  19008. fi
  19009. if test x$audio_pipewire = xyes; then
  19010. # Check whether --enable-pipewire-shared was given.
  19011. if test ${enable_pipewire_shared+y}
  19012. then :
  19013. enableval=$enable_pipewire_shared;
  19014. else $as_nop
  19015. enable_pipewire_shared=yes
  19016. fi
  19017. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19018. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19019. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19020. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19021. if test x$have_loadso != xyes && \
  19022. test x$enable_pipewire_shared = xyes; then
  19023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19024. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19025. fi
  19026. if test x$have_loadso = xyes && \
  19027. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19028. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19029. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19030. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19031. else
  19032. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19033. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19034. fi
  19035. have_audio=yes
  19036. fi
  19037. fi
  19038. }
  19039. CheckPulseAudio()
  19040. {
  19041. # Check whether --enable-pulseaudio was given.
  19042. if test ${enable_pulseaudio+y}
  19043. then :
  19044. enableval=$enable_pulseaudio;
  19045. else $as_nop
  19046. enable_pulseaudio=yes
  19047. fi
  19048. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19049. pkg_failed=no
  19050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19051. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19052. if test -n "$PULSEAUDIO_CFLAGS"; then
  19053. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19054. elif test -n "$PKG_CONFIG"; then
  19055. if test -n "$PKG_CONFIG" && \
  19056. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19057. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19058. ac_status=$?
  19059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19060. test $ac_status = 0; }; then
  19061. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19062. test "x$?" != "x0" && pkg_failed=yes
  19063. else
  19064. pkg_failed=yes
  19065. fi
  19066. else
  19067. pkg_failed=untried
  19068. fi
  19069. if test -n "$PULSEAUDIO_LIBS"; then
  19070. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19071. elif test -n "$PKG_CONFIG"; then
  19072. if test -n "$PKG_CONFIG" && \
  19073. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19074. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19075. ac_status=$?
  19076. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19077. test $ac_status = 0; }; then
  19078. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19079. test "x$?" != "x0" && pkg_failed=yes
  19080. else
  19081. pkg_failed=yes
  19082. fi
  19083. else
  19084. pkg_failed=untried
  19085. fi
  19086. if test $pkg_failed = yes; then
  19087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19088. printf "%s\n" "no" >&6; }
  19089. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19090. _pkg_short_errors_supported=yes
  19091. else
  19092. _pkg_short_errors_supported=no
  19093. fi
  19094. if test $_pkg_short_errors_supported = yes; then
  19095. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19096. else
  19097. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19098. fi
  19099. # Put the nasty error message in config.log where it belongs
  19100. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19101. audio_pulseaudio=no
  19102. elif test $pkg_failed = untried; then
  19103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19104. printf "%s\n" "no" >&6; }
  19105. audio_pulseaudio=no
  19106. else
  19107. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19108. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19110. printf "%s\n" "yes" >&6; }
  19111. audio_pulseaudio=yes
  19112. fi
  19113. if test x$audio_pulseaudio = xyes; then
  19114. # Check whether --enable-pulseaudio-shared was given.
  19115. if test ${enable_pulseaudio_shared+y}
  19116. then :
  19117. enableval=$enable_pulseaudio_shared;
  19118. else $as_nop
  19119. enable_pulseaudio_shared=yes
  19120. fi
  19121. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19122. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19123. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19124. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19125. if test x$have_loadso != xyes && \
  19126. test x$enable_pulseaudio_shared = xyes; then
  19127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19128. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19129. fi
  19130. if test x$have_loadso = xyes && \
  19131. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19132. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19133. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19134. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19135. case "$host" in
  19136. # On Solaris, pulseaudio must be linked deferred explicitly
  19137. # to prevent undefined symbol failures.
  19138. *-*-solaris*)
  19139. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19141. esac
  19142. else
  19143. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19144. SUMMARY_audio="${SUMMARY_audio} pulse"
  19145. fi
  19146. have_audio=yes
  19147. fi
  19148. fi
  19149. }
  19150. CheckARTSC()
  19151. {
  19152. # Check whether --enable-arts was given.
  19153. if test ${enable_arts+y}
  19154. then :
  19155. enableval=$enable_arts;
  19156. else $as_nop
  19157. enable_arts=yes
  19158. fi
  19159. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19160. # Extract the first word of "artsc-config", so it can be a program name with args.
  19161. set dummy artsc-config; ac_word=$2
  19162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19163. printf %s "checking for $ac_word... " >&6; }
  19164. if test ${ac_cv_path_ARTSCONFIG+y}
  19165. then :
  19166. printf %s "(cached) " >&6
  19167. else $as_nop
  19168. case $ARTSCONFIG in
  19169. [\\/]* | ?:[\\/]*)
  19170. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19171. ;;
  19172. *)
  19173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19174. for as_dir in $PATH
  19175. do
  19176. IFS=$as_save_IFS
  19177. case $as_dir in #(((
  19178. '') as_dir=./ ;;
  19179. */) ;;
  19180. *) as_dir=$as_dir/ ;;
  19181. esac
  19182. for ac_exec_ext in '' $ac_executable_extensions; do
  19183. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19184. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19186. break 2
  19187. fi
  19188. done
  19189. done
  19190. IFS=$as_save_IFS
  19191. ;;
  19192. esac
  19193. fi
  19194. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19195. if test -n "$ARTSCONFIG"; then
  19196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19197. printf "%s\n" "$ARTSCONFIG" >&6; }
  19198. else
  19199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19200. printf "%s\n" "no" >&6; }
  19201. fi
  19202. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19203. : # arts isn't installed
  19204. else
  19205. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19206. ARTS_LIBS=`$ARTSCONFIG --libs`
  19207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19208. printf %s "checking for aRts development environment... " >&6; }
  19209. audio_arts=no
  19210. save_CFLAGS="$CFLAGS"
  19211. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19213. /* end confdefs.h. */
  19214. #include <artsc.h>
  19215. int
  19216. main (void)
  19217. {
  19218. arts_stream_t stream;
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. if ac_fn_c_try_compile "$LINENO"
  19224. then :
  19225. audio_arts=yes
  19226. fi
  19227. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19228. CFLAGS="$save_CFLAGS"
  19229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19230. printf "%s\n" "$audio_arts" >&6; }
  19231. if test x$audio_arts = xyes; then
  19232. # Check whether --enable-arts-shared was given.
  19233. if test ${enable_arts_shared+y}
  19234. then :
  19235. enableval=$enable_arts_shared;
  19236. else $as_nop
  19237. enable_arts_shared=yes
  19238. fi
  19239. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19240. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19241. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19242. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19243. if test x$have_loadso != xyes && \
  19244. test x$enable_arts_shared = xyes; then
  19245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19246. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19247. fi
  19248. if test x$have_loadso = xyes && \
  19249. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19250. echo "-- dynamic libartsc -> $arts_lib"
  19251. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19252. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19253. else
  19254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19255. SUMMARY_audio="${SUMMARY_audio} arts"
  19256. fi
  19257. have_audio=yes
  19258. fi
  19259. fi
  19260. fi
  19261. }
  19262. CheckNAS()
  19263. {
  19264. # Check whether --enable-nas was given.
  19265. if test ${enable_nas+y}
  19266. then :
  19267. enableval=$enable_nas;
  19268. else $as_nop
  19269. enable_nas=yes
  19270. fi
  19271. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19272. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19273. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19274. then :
  19275. have_nas_hdr=yes
  19276. fi
  19277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19278. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19279. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19280. then :
  19281. printf %s "(cached) " >&6
  19282. else $as_nop
  19283. ac_check_lib_save_LIBS=$LIBS
  19284. LIBS="-laudio $LIBS"
  19285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19286. /* end confdefs.h. */
  19287. /* Override any GCC internal prototype to avoid an error.
  19288. Use char because int might match the return type of a GCC
  19289. builtin and then its argument prototype would still apply. */
  19290. char AuOpenServer ();
  19291. int
  19292. main (void)
  19293. {
  19294. return AuOpenServer ();
  19295. ;
  19296. return 0;
  19297. }
  19298. _ACEOF
  19299. if ac_fn_c_try_link "$LINENO"
  19300. then :
  19301. ac_cv_lib_audio_AuOpenServer=yes
  19302. else $as_nop
  19303. ac_cv_lib_audio_AuOpenServer=no
  19304. fi
  19305. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19306. conftest$ac_exeext conftest.$ac_ext
  19307. LIBS=$ac_check_lib_save_LIBS
  19308. fi
  19309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19310. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19311. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19312. then :
  19313. have_nas_lib=yes
  19314. fi
  19315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19316. printf %s "checking for NAS audio support... " >&6; }
  19317. have_nas=no
  19318. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19319. have_nas=yes
  19320. NAS_LIBS="-laudio"
  19321. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19322. have_nas=yes
  19323. NAS_CFLAGS="-I/usr/X11R6/include/"
  19324. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19325. fi
  19326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19327. printf "%s\n" "$have_nas" >&6; }
  19328. if test x$have_nas = xyes; then
  19329. # Check whether --enable-nas-shared was given.
  19330. if test ${enable_nas_shared+y}
  19331. then :
  19332. enableval=$enable_nas_shared;
  19333. else $as_nop
  19334. enable_nas_shared=yes
  19335. fi
  19336. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19337. if test x$have_loadso != xyes && \
  19338. test x$enable_nas_shared = xyes; then
  19339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19340. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19341. fi
  19342. if test x$have_loadso = xyes && \
  19343. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19344. echo "-- dynamic libaudio -> $nas_lib"
  19345. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19346. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19347. else
  19348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19349. SUMMARY_audio="${SUMMARY_audio} nas"
  19350. fi
  19351. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19352. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19353. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19354. have_audio=yes
  19355. fi
  19356. fi
  19357. }
  19358. CheckSNDIO()
  19359. {
  19360. # Check whether --enable-sndio was given.
  19361. if test ${enable_sndio+y}
  19362. then :
  19363. enableval=$enable_sndio;
  19364. else $as_nop
  19365. enable_sndio=yes
  19366. fi
  19367. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19368. ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  19369. if test "x$ac_cv_header_sndio_h" = xyes
  19370. then :
  19371. have_sndio_hdr=yes
  19372. fi
  19373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  19374. printf %s "checking for sio_open in -lsndio... " >&6; }
  19375. if test ${ac_cv_lib_sndio_sio_open+y}
  19376. then :
  19377. printf %s "(cached) " >&6
  19378. else $as_nop
  19379. ac_check_lib_save_LIBS=$LIBS
  19380. LIBS="-lsndio $LIBS"
  19381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19382. /* end confdefs.h. */
  19383. /* Override any GCC internal prototype to avoid an error.
  19384. Use char because int might match the return type of a GCC
  19385. builtin and then its argument prototype would still apply. */
  19386. char sio_open ();
  19387. int
  19388. main (void)
  19389. {
  19390. return sio_open ();
  19391. ;
  19392. return 0;
  19393. }
  19394. _ACEOF
  19395. if ac_fn_c_try_link "$LINENO"
  19396. then :
  19397. ac_cv_lib_sndio_sio_open=yes
  19398. else $as_nop
  19399. ac_cv_lib_sndio_sio_open=no
  19400. fi
  19401. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19402. conftest$ac_exeext conftest.$ac_ext
  19403. LIBS=$ac_check_lib_save_LIBS
  19404. fi
  19405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  19406. printf "%s\n" "$ac_cv_lib_sndio_sio_open" >&6; }
  19407. if test "x$ac_cv_lib_sndio_sio_open" = xyes
  19408. then :
  19409. have_sndio_lib=yes
  19410. fi
  19411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  19412. printf %s "checking for sndio audio support... " >&6; }
  19413. have_sndio=no
  19414. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  19415. have_sndio=yes
  19416. SNDIO_LIBS="-lsndio"
  19417. fi
  19418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  19419. printf "%s\n" "$have_sndio" >&6; }
  19420. if test x$have_sndio = xyes; then
  19421. # Check whether --enable-sndio-shared was given.
  19422. if test ${enable_sndio_shared+y}
  19423. then :
  19424. enableval=$enable_sndio_shared;
  19425. else $as_nop
  19426. enable_sndio_shared=yes
  19427. fi
  19428. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19429. if test x$have_loadso != xyes && \
  19430. test x$enable_sndio_shared = xyes; then
  19431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19432. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19433. fi
  19434. if test x$have_loadso = xyes && \
  19435. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19436. echo "-- dynamic libsndio -> $sndio_lib"
  19437. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19438. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19439. else
  19440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19441. SUMMARY_audio="${SUMMARY_audio} sndio"
  19442. fi
  19443. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19444. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19445. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19446. have_audio=yes
  19447. fi
  19448. fi
  19449. }
  19450. CheckFusionSound()
  19451. {
  19452. # Check whether --enable-fusionsound was given.
  19453. if test ${enable_fusionsound+y}
  19454. then :
  19455. enableval=$enable_fusionsound;
  19456. else $as_nop
  19457. enable_fusionsound=no
  19458. fi
  19459. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19460. pkg_failed=no
  19461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19462. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19463. if test -n "$FUSIONSOUND_CFLAGS"; then
  19464. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19465. elif test -n "$PKG_CONFIG"; then
  19466. if test -n "$PKG_CONFIG" && \
  19467. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19468. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19469. ac_status=$?
  19470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19471. test $ac_status = 0; }; then
  19472. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19473. test "x$?" != "x0" && pkg_failed=yes
  19474. else
  19475. pkg_failed=yes
  19476. fi
  19477. else
  19478. pkg_failed=untried
  19479. fi
  19480. if test -n "$FUSIONSOUND_LIBS"; then
  19481. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19482. elif test -n "$PKG_CONFIG"; then
  19483. if test -n "$PKG_CONFIG" && \
  19484. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19485. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19486. ac_status=$?
  19487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19488. test $ac_status = 0; }; then
  19489. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19490. test "x$?" != "x0" && pkg_failed=yes
  19491. else
  19492. pkg_failed=yes
  19493. fi
  19494. else
  19495. pkg_failed=untried
  19496. fi
  19497. if test $pkg_failed = yes; then
  19498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19499. printf "%s\n" "no" >&6; }
  19500. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19501. _pkg_short_errors_supported=yes
  19502. else
  19503. _pkg_short_errors_supported=no
  19504. fi
  19505. if test $_pkg_short_errors_supported = yes; then
  19506. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19507. else
  19508. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19509. fi
  19510. # Put the nasty error message in config.log where it belongs
  19511. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19512. fusionsound=no
  19513. elif test $pkg_failed = untried; then
  19514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19515. printf "%s\n" "no" >&6; }
  19516. fusionsound=no
  19517. else
  19518. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19519. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19521. printf "%s\n" "yes" >&6; }
  19522. fusionsound=yes
  19523. fi
  19524. if test x$fusionsound = xyes; then
  19525. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19526. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19527. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19528. # Check whether --enable-fusionsound-shared was given.
  19529. if test ${enable_fusionsound_shared+y}
  19530. then :
  19531. enableval=$enable_fusionsound_shared;
  19532. else $as_nop
  19533. enable_fusionsound_shared=yes
  19534. fi
  19535. fusionsound_shared=no
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19537. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19538. if test x$have_loadso != xyes && \
  19539. test x$enable_fusionsound_shared = xyes; then
  19540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19541. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19542. fi
  19543. if test x$have_loadso = xyes && \
  19544. test x$enable_fusionsound_shared = xyes; then
  19545. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19546. fusionsound_shared=yes
  19547. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19548. else
  19549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19550. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19551. fi
  19552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19553. printf "%s\n" "$fusionsound_shared" >&6; }
  19554. have_audio=yes
  19555. fi
  19556. fi
  19557. }
  19558. CheckDiskAudio()
  19559. {
  19560. # Check whether --enable-diskaudio was given.
  19561. if test ${enable_diskaudio+y}
  19562. then :
  19563. enableval=$enable_diskaudio;
  19564. else $as_nop
  19565. enable_diskaudio=yes
  19566. fi
  19567. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19568. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19569. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19570. SUMMARY_audio="${SUMMARY_audio} disk"
  19571. have_audio=yes
  19572. fi
  19573. }
  19574. CheckDummyAudio()
  19575. {
  19576. # Check whether --enable-dummyaudio was given.
  19577. if test ${enable_dummyaudio+y}
  19578. then :
  19579. enableval=$enable_dummyaudio;
  19580. else $as_nop
  19581. enable_dummyaudio=yes
  19582. fi
  19583. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19584. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19585. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19586. SUMMARY_audio="${SUMMARY_audio} dummy"
  19587. have_audio=yes
  19588. fi
  19589. }
  19590. CheckLibSampleRate()
  19591. {
  19592. # Check whether --enable-libsamplerate was given.
  19593. if test ${enable_libsamplerate+y}
  19594. then :
  19595. enableval=$enable_libsamplerate;
  19596. else $as_nop
  19597. enable_libsamplerate=yes
  19598. fi
  19599. if test x$enable_libsamplerate = xyes; then
  19600. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19601. if test "x$ac_cv_header_samplerate_h" = xyes
  19602. then :
  19603. have_samplerate_h_hdr=yes
  19604. else $as_nop
  19605. have_samplerate_h_hdr=no
  19606. fi
  19607. if test x$have_samplerate_h_hdr = xyes; then
  19608. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19609. # Check whether --enable-libsamplerate-shared was given.
  19610. if test ${enable_libsamplerate_shared+y}
  19611. then :
  19612. enableval=$enable_libsamplerate_shared;
  19613. else $as_nop
  19614. enable_libsamplerate_shared=yes
  19615. fi
  19616. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19617. if test x$have_loadso != xyes && \
  19618. test x$enable_libsamplerate_shared = xyes; then
  19619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19620. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19621. fi
  19622. if test x$have_loadso = xyes && \
  19623. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19624. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19625. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19626. else
  19627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19628. fi
  19629. fi
  19630. fi
  19631. }
  19632. CheckARM()
  19633. {
  19634. # Check whether --enable-arm-simd was given.
  19635. if test ${enable_arm_simd+y}
  19636. then :
  19637. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19638. else $as_nop
  19639. enable_arm_simd=no
  19640. fi
  19641. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19642. save_CFLAGS="$CFLAGS"
  19643. have_arm_simd=no
  19644. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19646. printf %s "checking for ARM SIMD... " >&6; }
  19647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19648. /* end confdefs.h. */
  19649. .text
  19650. .arch armv6
  19651. .object_arch armv4
  19652. .arm
  19653. .altmacro
  19654. #ifndef __ARM_EABI__
  19655. #error EABI is required (to be sure that calling conventions are compatible)
  19656. #endif
  19657. pld [r0]
  19658. uqadd8 r0, r0, r0
  19659. _ACEOF
  19660. if ac_fn_c_try_compile "$LINENO"
  19661. then :
  19662. have_arm_simd=yes
  19663. fi
  19664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19666. printf "%s\n" "$have_arm_simd" >&6; }
  19667. CFLAGS="$save_CFLAGS"
  19668. if test x$have_arm_simd = xyes; then
  19669. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19670. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19671. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19672. fi
  19673. fi
  19674. }
  19675. CheckNEON()
  19676. {
  19677. # Check whether --enable-arm-neon was given.
  19678. if test ${enable_arm_neon+y}
  19679. then :
  19680. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19681. else $as_nop
  19682. enable_arm_neon=no
  19683. fi
  19684. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19685. save_CFLAGS="$CFLAGS"
  19686. have_arm_neon=no
  19687. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19689. printf %s "checking for ARM NEON... " >&6; }
  19690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19691. /* end confdefs.h. */
  19692. .text
  19693. .fpu neon
  19694. .arch armv7a
  19695. .object_arch armv4
  19696. .eabi_attribute 10, 0
  19697. .arm
  19698. .altmacro
  19699. #ifndef __ARM_EABI__
  19700. #error EABI is required (to be sure that calling conventions are compatible)
  19701. #endif
  19702. pld [r0]
  19703. vmovn.u16 d0, q0
  19704. _ACEOF
  19705. if ac_fn_c_try_compile "$LINENO"
  19706. then :
  19707. have_arm_neon=yes
  19708. fi
  19709. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19711. printf "%s\n" "$have_arm_neon" >&6; }
  19712. CFLAGS="$save_CFLAGS"
  19713. if test x$have_arm_neon = xyes; then
  19714. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19715. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19716. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19717. fi
  19718. fi
  19719. }
  19720. CheckObjectiveCARC()
  19721. {
  19722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19723. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19724. have_clang_objc_arc=no
  19725. save_CFLAGS="$CFLAGS"
  19726. CFLAGS="$save_CFLAGS -fobjc-arc"
  19727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19728. /* end confdefs.h. */
  19729. int x = 0;
  19730. int
  19731. main (void)
  19732. {
  19733. ;
  19734. return 0;
  19735. }
  19736. _ACEOF
  19737. if ac_fn_c_try_compile "$LINENO"
  19738. then :
  19739. have_clang_objc_arc=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19743. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19744. CFLAGS="$save_CFLAGS"
  19745. if test x$have_clang_objc_arc = xyes; then
  19746. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19747. fi
  19748. }
  19749. CheckVisibilityHidden()
  19750. {
  19751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19752. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19753. have_gcc_fvisibility=no
  19754. visibility_CFLAGS="-fvisibility=hidden"
  19755. save_CFLAGS="$CFLAGS"
  19756. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19758. /* end confdefs.h. */
  19759. #if !defined(__GNUC__) || __GNUC__ < 4
  19760. #error SDL only uses visibility attributes in GCC 4 or newer
  19761. #endif
  19762. int
  19763. main (void)
  19764. {
  19765. ;
  19766. return 0;
  19767. }
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"
  19770. then :
  19771. have_gcc_fvisibility=yes
  19772. fi
  19773. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19775. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19776. CFLAGS="$save_CFLAGS"
  19777. if test x$have_gcc_fvisibility = xyes; then
  19778. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19779. fi
  19780. }
  19781. CheckNoStrictAliasing()
  19782. {
  19783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19784. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19785. have_gcc_no_strict_aliasing=no
  19786. save_CFLAGS="$CFLAGS"
  19787. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19789. /* end confdefs.h. */
  19790. int x = 0;
  19791. int
  19792. main (void)
  19793. {
  19794. ;
  19795. return 0;
  19796. }
  19797. _ACEOF
  19798. if ac_fn_c_try_compile "$LINENO"
  19799. then :
  19800. have_gcc_no_strict_aliasing=yes
  19801. fi
  19802. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19804. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19805. CFLAGS="$save_CFLAGS"
  19806. if test x$have_gcc_no_strict_aliasing = xyes; then
  19807. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19808. fi
  19809. }
  19810. CheckStackBoundary()
  19811. {
  19812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19813. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19814. have_gcc_preferred_stack_boundary=no
  19815. save_CFLAGS="$CFLAGS"
  19816. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19818. /* end confdefs.h. */
  19819. int x = 0;
  19820. int
  19821. main (void)
  19822. {
  19823. ;
  19824. return 0;
  19825. }
  19826. _ACEOF
  19827. if ac_fn_c_try_compile "$LINENO"
  19828. then :
  19829. have_gcc_preferred_stack_boundary=yes
  19830. fi
  19831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19833. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19834. CFLAGS="$save_CFLAGS"
  19835. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19836. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19837. fi
  19838. }
  19839. CheckDeclarationAfterStatement()
  19840. {
  19841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19842. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19843. have_gcc_declaration_after_statement=no
  19844. save_CFLAGS="$CFLAGS"
  19845. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19847. /* end confdefs.h. */
  19848. int x = 0;
  19849. int
  19850. main (void)
  19851. {
  19852. ;
  19853. return 0;
  19854. }
  19855. _ACEOF
  19856. if ac_fn_c_try_compile "$LINENO"
  19857. then :
  19858. have_gcc_declaration_after_statement=yes
  19859. fi
  19860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19862. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19863. CFLAGS="$save_CFLAGS"
  19864. if test x$have_gcc_declaration_after_statement = xyes; then
  19865. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19866. fi
  19867. }
  19868. CheckWarnAll()
  19869. {
  19870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19871. printf %s "checking for GCC -Wall option... " >&6; }
  19872. have_gcc_Wall=no
  19873. save_CFLAGS="$CFLAGS"
  19874. CFLAGS="$save_CFLAGS -Wall"
  19875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19876. /* end confdefs.h. */
  19877. int x = 0;
  19878. int
  19879. main (void)
  19880. {
  19881. ;
  19882. return 0;
  19883. }
  19884. _ACEOF
  19885. if ac_fn_c_try_compile "$LINENO"
  19886. then :
  19887. have_gcc_Wall=yes
  19888. fi
  19889. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19891. printf "%s\n" "$have_gcc_Wall" >&6; }
  19892. CFLAGS="$save_CFLAGS"
  19893. if test x$have_gcc_Wall = xyes; then
  19894. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19896. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19897. need_gcc_Wno_multichar=no
  19898. case "$host" in
  19899. *-*-haiku*)
  19900. need_gcc_Wno_multichar=yes
  19901. ;;
  19902. esac
  19903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19904. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19905. if test x$need_gcc_Wno_multichar = xyes; then
  19906. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19907. fi
  19908. fi
  19909. }
  19910. CheckWayland()
  19911. {
  19912. # Check whether --enable-video-wayland was given.
  19913. if test ${enable_video_wayland+y}
  19914. then :
  19915. enableval=$enable_video_wayland;
  19916. else $as_nop
  19917. enable_video_wayland=yes
  19918. fi
  19919. # Check whether --enable-video-wayland-qt-touch was given.
  19920. if test ${enable_video_wayland_qt_touch+y}
  19921. then :
  19922. enableval=$enable_video_wayland_qt_touch;
  19923. else $as_nop
  19924. enable_video_wayland_qt_touch=yes
  19925. fi
  19926. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19928. printf %s "checking for Wayland support... " >&6; }
  19929. video_wayland=no
  19930. if test x$video_opengl_egl = xyes && \
  19931. test x$video_opengles_v2 = xyes; then
  19932. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19933. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19934. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19935. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19936. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19937. then :
  19938. WAYLAND_SCANNER_CODE_MODE=private-code
  19939. else $as_nop
  19940. WAYLAND_SCANNER_CODE_MODE=code
  19941. fi
  19942. video_wayland=yes
  19943. fi
  19944. fi
  19945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19946. printf "%s\n" "$video_wayland" >&6; }
  19947. if test x$video_wayland = xyes; then
  19948. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19949. if test x$enable_video_wayland_qt_touch = xyes; then
  19950. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19951. fi
  19952. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19953. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19954. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19955. # Check whether --enable-wayland-shared was given.
  19956. if test ${enable_wayland_shared+y}
  19957. then :
  19958. enableval=$enable_wayland_shared;
  19959. else $as_nop
  19960. enable_wayland_shared=maybe
  19961. fi
  19962. case "$host" in
  19963. *)
  19964. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19965. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19966. if test x$wayland_egl_lib = x; then
  19967. # This works in Ubuntu 13.10, maybe others
  19968. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19969. fi
  19970. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19971. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19972. ;;
  19973. esac
  19974. if test x$enable_wayland_shared = xmaybe; then
  19975. enable_wayland_shared=yes
  19976. fi
  19977. if test x$have_loadso != xyes && \
  19978. test x$enable_wayland_shared = xyes; then
  19979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19980. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19981. enable_wayland_shared=no
  19982. fi
  19983. if test x$have_loadso = xyes && \
  19984. test x$enable_wayland_shared = xyes && \
  19985. test x$wayland_client_lib != x && \
  19986. test x$wayland_egl_lib != x && \
  19987. test x$wayland_cursor_lib != x && \
  19988. test x$xkbcommon_lib != x; then
  19989. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19990. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19991. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19992. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19993. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19994. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19995. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19996. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19997. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19998. else
  19999. enable_wayland_shared=no
  20000. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20001. SUMMARY_video="${SUMMARY_video} wayland"
  20002. fi
  20003. have_video=yes
  20004. # Check whether --enable-libdecor was given.
  20005. if test ${enable_libdecor+y}
  20006. then :
  20007. enableval=$enable_libdecor;
  20008. else $as_nop
  20009. enable_libdecor=yes
  20010. fi
  20011. if test x$enable_libdecor = xyes; then
  20012. pkg_failed=no
  20013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20014. printf %s "checking for libdecor-0... " >&6; }
  20015. if test -n "$DECOR_CFLAGS"; then
  20016. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20017. elif test -n "$PKG_CONFIG"; then
  20018. if test -n "$PKG_CONFIG" && \
  20019. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20020. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20021. ac_status=$?
  20022. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20023. test $ac_status = 0; }; then
  20024. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20025. test "x$?" != "x0" && pkg_failed=yes
  20026. else
  20027. pkg_failed=yes
  20028. fi
  20029. else
  20030. pkg_failed=untried
  20031. fi
  20032. if test -n "$DECOR_LIBS"; then
  20033. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20034. elif test -n "$PKG_CONFIG"; then
  20035. if test -n "$PKG_CONFIG" && \
  20036. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20037. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20038. ac_status=$?
  20039. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20040. test $ac_status = 0; }; then
  20041. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20042. test "x$?" != "x0" && pkg_failed=yes
  20043. else
  20044. pkg_failed=yes
  20045. fi
  20046. else
  20047. pkg_failed=untried
  20048. fi
  20049. if test $pkg_failed = yes; then
  20050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20051. printf "%s\n" "no" >&6; }
  20052. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20053. _pkg_short_errors_supported=yes
  20054. else
  20055. _pkg_short_errors_supported=no
  20056. fi
  20057. if test $_pkg_short_errors_supported = yes; then
  20058. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20059. else
  20060. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20061. fi
  20062. # Put the nasty error message in config.log where it belongs
  20063. echo "$DECOR_PKG_ERRORS" >&5
  20064. video_libdecor=no
  20065. elif test $pkg_failed = untried; then
  20066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20067. printf "%s\n" "no" >&6; }
  20068. video_libdecor=no
  20069. else
  20070. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20071. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20073. printf "%s\n" "yes" >&6; }
  20074. video_libdecor=yes
  20075. fi
  20076. if test x$video_libdecor = xyes; then
  20077. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20078. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20079. # Check whether --enable-libdecor-shared was given.
  20080. if test ${enable_libdecor_shared+y}
  20081. then :
  20082. enableval=$enable_libdecor_shared;
  20083. else $as_nop
  20084. enable_libdecor_shared=yes
  20085. fi
  20086. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20087. if test x$enable_wayland_shared != xyes; then
  20088. enable_libdecor_shared=no
  20089. fi
  20090. if test x$have_loadso != xyes && \
  20091. test x$enable_libdecor_shared = xyes; then
  20092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20093. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20094. fi
  20095. if test x$have_loadso = xyes && \
  20096. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20097. echo "-- dynamic libdecor -> $decor_lib"
  20098. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20099. else
  20100. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20101. fi
  20102. fi
  20103. fi
  20104. fi
  20105. fi
  20106. }
  20107. CheckNativeClient()
  20108. {
  20109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20110. /* end confdefs.h. */
  20111. #if !defined(__native_client__)
  20112. #error "NO NACL"
  20113. #endif
  20114. int
  20115. main (void)
  20116. {
  20117. ;
  20118. return 0;
  20119. }
  20120. _ACEOF
  20121. if ac_fn_c_try_compile "$LINENO"
  20122. then :
  20123. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20124. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20125. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20126. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20127. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20128. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20129. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20130. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20131. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20132. SUMMARY_audio="${SUMMARY_audio} nacl"
  20133. have_audio=yes
  20134. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20135. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20136. have_video=yes
  20137. fi
  20138. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20139. }
  20140. CheckRPI()
  20141. {
  20142. # Check whether --enable-video-rpi was given.
  20143. if test ${enable_video_rpi+y}
  20144. then :
  20145. enableval=$enable_video_rpi;
  20146. else $as_nop
  20147. enable_video_rpi=yes
  20148. fi
  20149. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20150. pkg_failed=no
  20151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20152. printf %s "checking for bcm_host brcmegl... " >&6; }
  20153. if test -n "$RPI_CFLAGS"; then
  20154. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20155. elif test -n "$PKG_CONFIG"; then
  20156. if test -n "$PKG_CONFIG" && \
  20157. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20158. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20159. ac_status=$?
  20160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20161. test $ac_status = 0; }; then
  20162. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20163. test "x$?" != "x0" && pkg_failed=yes
  20164. else
  20165. pkg_failed=yes
  20166. fi
  20167. else
  20168. pkg_failed=untried
  20169. fi
  20170. if test -n "$RPI_LIBS"; then
  20171. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20172. elif test -n "$PKG_CONFIG"; then
  20173. if test -n "$PKG_CONFIG" && \
  20174. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20175. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20176. ac_status=$?
  20177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20178. test $ac_status = 0; }; then
  20179. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20180. test "x$?" != "x0" && pkg_failed=yes
  20181. else
  20182. pkg_failed=yes
  20183. fi
  20184. else
  20185. pkg_failed=untried
  20186. fi
  20187. if test $pkg_failed = yes; then
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20189. printf "%s\n" "no" >&6; }
  20190. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20191. _pkg_short_errors_supported=yes
  20192. else
  20193. _pkg_short_errors_supported=no
  20194. fi
  20195. if test $_pkg_short_errors_supported = yes; then
  20196. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20197. else
  20198. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20199. fi
  20200. # Put the nasty error message in config.log where it belongs
  20201. echo "$RPI_PKG_ERRORS" >&5
  20202. video_rpi=no
  20203. elif test $pkg_failed = untried; then
  20204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20205. printf "%s\n" "no" >&6; }
  20206. video_rpi=no
  20207. else
  20208. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20209. RPI_LIBS=$pkg_cv_RPI_LIBS
  20210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20211. printf "%s\n" "yes" >&6; }
  20212. video_rpi=yes
  20213. fi
  20214. if test x$video_rpi = xno; then
  20215. if test x$ARCH = xnetbsd; then
  20216. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20217. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20218. else
  20219. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20220. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20221. fi
  20222. fi
  20223. # Save the original compiler flags and libraries
  20224. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20225. # Add the Raspberry Pi compiler flags and libraries
  20226. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20228. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20229. have_video_rpi=no
  20230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20231. /* end confdefs.h. */
  20232. #include <bcm_host.h>
  20233. #include <EGL/eglplatform.h>
  20234. int
  20235. main (void)
  20236. {
  20237. EGL_DISPMANX_WINDOW_T window;
  20238. bcm_host_init();
  20239. ;
  20240. return 0;
  20241. }
  20242. _ACEOF
  20243. if ac_fn_c_try_link "$LINENO"
  20244. then :
  20245. have_video_rpi=yes
  20246. fi
  20247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20248. conftest$ac_exeext conftest.$ac_ext
  20249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20250. printf "%s\n" "$have_video_rpi" >&6; }
  20251. # Restore the compiler flags and libraries
  20252. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20253. if test x$have_video_rpi = xyes; then
  20254. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20255. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20256. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20257. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20258. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20259. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20260. SUMMARY_video="${SUMMARY_video} rpi"
  20261. have_video=yes
  20262. fi
  20263. fi
  20264. }
  20265. CheckX11()
  20266. {
  20267. # Check whether --enable-video-x11 was given.
  20268. if test ${enable_video_x11+y}
  20269. then :
  20270. enableval=$enable_video_x11;
  20271. else $as_nop
  20272. enable_video_x11=yes
  20273. fi
  20274. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20275. case "$host" in
  20276. *-*-darwin*)
  20277. # This isn't necessary for X11, but fixes GLX detection
  20278. if test "x$x_includes" = xNONE && \
  20279. test "x$x_libraries" = xNONE && \
  20280. test -d /opt/X11/include && \
  20281. test -d /opt/X11/lib; then
  20282. x_includes="/opt/X11/include"
  20283. x_libraries="/opt/X11/lib"
  20284. fi
  20285. ;;
  20286. esac
  20287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20288. printf %s "checking for X... " >&6; }
  20289. # Check whether --with-x was given.
  20290. if test ${with_x+y}
  20291. then :
  20292. withval=$with_x;
  20293. fi
  20294. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20295. if test "x$with_x" = xno; then
  20296. # The user explicitly disabled X.
  20297. have_x=disabled
  20298. else
  20299. case $x_includes,$x_libraries in #(
  20300. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20301. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20302. then :
  20303. printf %s "(cached) " >&6
  20304. else $as_nop
  20305. # One or both of the vars are not set, and there is no cached value.
  20306. ac_x_includes=no
  20307. ac_x_libraries=no
  20308. # Do we need to do anything special at all?
  20309. ac_save_LIBS=$LIBS
  20310. LIBS="-lX11 $LIBS"
  20311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20312. /* end confdefs.h. */
  20313. #include <X11/Xlib.h>
  20314. int
  20315. main (void)
  20316. {
  20317. XrmInitialize ()
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_link "$LINENO"
  20323. then :
  20324. # We can compile and link X programs with no special options.
  20325. ac_x_includes=
  20326. ac_x_libraries=
  20327. fi
  20328. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20329. conftest$ac_exeext conftest.$ac_ext
  20330. LIBS="$ac_save_LIBS"
  20331. # If that didn't work, only try xmkmf and file system searches
  20332. # for native compilation.
  20333. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20334. then :
  20335. rm -f -r conftest.dir
  20336. if mkdir conftest.dir; then
  20337. cd conftest.dir
  20338. cat >Imakefile <<'_ACEOF'
  20339. incroot:
  20340. @echo incroot='${INCROOT}'
  20341. usrlibdir:
  20342. @echo usrlibdir='${USRLIBDIR}'
  20343. libdir:
  20344. @echo libdir='${LIBDIR}'
  20345. _ACEOF
  20346. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20347. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20348. for ac_var in incroot usrlibdir libdir; do
  20349. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20350. done
  20351. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20352. for ac_extension in a so sl dylib la dll; do
  20353. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20354. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20355. ac_im_usrlibdir=$ac_im_libdir; break
  20356. fi
  20357. done
  20358. # Screen out bogus values from the imake configuration. They are
  20359. # bogus both because they are the default anyway, and because
  20360. # using them would break gcc on systems where it needs fixed includes.
  20361. case $ac_im_incroot in
  20362. /usr/include) ac_x_includes= ;;
  20363. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20364. esac
  20365. case $ac_im_usrlibdir in
  20366. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20367. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20368. esac
  20369. fi
  20370. cd ..
  20371. rm -f -r conftest.dir
  20372. fi
  20373. # Standard set of common directories for X headers.
  20374. # Check X11 before X11Rn because it is often a symlink to the current release.
  20375. ac_x_header_dirs='
  20376. /usr/X11/include
  20377. /usr/X11R7/include
  20378. /usr/X11R6/include
  20379. /usr/X11R5/include
  20380. /usr/X11R4/include
  20381. /usr/include/X11
  20382. /usr/include/X11R7
  20383. /usr/include/X11R6
  20384. /usr/include/X11R5
  20385. /usr/include/X11R4
  20386. /usr/local/X11/include
  20387. /usr/local/X11R7/include
  20388. /usr/local/X11R6/include
  20389. /usr/local/X11R5/include
  20390. /usr/local/X11R4/include
  20391. /usr/local/include/X11
  20392. /usr/local/include/X11R7
  20393. /usr/local/include/X11R6
  20394. /usr/local/include/X11R5
  20395. /usr/local/include/X11R4
  20396. /opt/X11/include
  20397. /usr/X386/include
  20398. /usr/x386/include
  20399. /usr/XFree86/include/X11
  20400. /usr/include
  20401. /usr/local/include
  20402. /usr/unsupported/include
  20403. /usr/athena/include
  20404. /usr/local/x11r5/include
  20405. /usr/lpp/Xamples/include
  20406. /usr/openwin/include
  20407. /usr/openwin/share/include'
  20408. if test "$ac_x_includes" = no; then
  20409. # Guess where to find include files, by looking for Xlib.h.
  20410. # First, try using that file with no special directory specified.
  20411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20412. /* end confdefs.h. */
  20413. #include <X11/Xlib.h>
  20414. _ACEOF
  20415. if ac_fn_c_try_cpp "$LINENO"
  20416. then :
  20417. # We can compile using X headers with no special include directory.
  20418. ac_x_includes=
  20419. else $as_nop
  20420. for ac_dir in $ac_x_header_dirs; do
  20421. if test -r "$ac_dir/X11/Xlib.h"; then
  20422. ac_x_includes=$ac_dir
  20423. break
  20424. fi
  20425. done
  20426. fi
  20427. rm -f conftest.err conftest.i conftest.$ac_ext
  20428. fi # $ac_x_includes = no
  20429. if test "$ac_x_libraries" = no; then
  20430. # Check for the libraries.
  20431. # See if we find them without any special options.
  20432. # Don't add to $LIBS permanently.
  20433. ac_save_LIBS=$LIBS
  20434. LIBS="-lX11 $LIBS"
  20435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20436. /* end confdefs.h. */
  20437. #include <X11/Xlib.h>
  20438. int
  20439. main (void)
  20440. {
  20441. XrmInitialize ()
  20442. ;
  20443. return 0;
  20444. }
  20445. _ACEOF
  20446. if ac_fn_c_try_link "$LINENO"
  20447. then :
  20448. LIBS=$ac_save_LIBS
  20449. # We can link X programs with no special library path.
  20450. ac_x_libraries=
  20451. else $as_nop
  20452. LIBS=$ac_save_LIBS
  20453. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20454. do
  20455. # Don't even attempt the hair of trying to link an X program!
  20456. for ac_extension in a so sl dylib la dll; do
  20457. if test -r "$ac_dir/libX11.$ac_extension"; then
  20458. ac_x_libraries=$ac_dir
  20459. break 2
  20460. fi
  20461. done
  20462. done
  20463. fi
  20464. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20465. conftest$ac_exeext conftest.$ac_ext
  20466. fi # $ac_x_libraries = no
  20467. fi
  20468. # Record the results.
  20469. case $ac_x_includes,$ac_x_libraries in #(
  20470. no,* | *,no | *\'*) :
  20471. # Didn't find X, or a directory has "'" in its name.
  20472. ac_cv_have_x="have_x=no" ;; #(
  20473. *) :
  20474. # Record where we found X for the cache.
  20475. ac_cv_have_x="have_x=yes\
  20476. ac_x_includes='$ac_x_includes'\
  20477. ac_x_libraries='$ac_x_libraries'" ;;
  20478. esac
  20479. fi
  20480. ;; #(
  20481. *) have_x=yes;;
  20482. esac
  20483. eval "$ac_cv_have_x"
  20484. fi # $with_x != no
  20485. if test "$have_x" != yes; then
  20486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20487. printf "%s\n" "$have_x" >&6; }
  20488. no_x=yes
  20489. else
  20490. # If each of the values was on the command line, it overrides each guess.
  20491. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20492. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20493. # Update the cache value to reflect the command line values.
  20494. ac_cv_have_x="have_x=yes\
  20495. ac_x_includes='$x_includes'\
  20496. ac_x_libraries='$x_libraries'"
  20497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20498. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20499. fi
  20500. if test "$no_x" = yes; then
  20501. # Not all programs may use this symbol, but it does not hurt to define it.
  20502. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20503. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20504. else
  20505. if test -n "$x_includes"; then
  20506. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20507. fi
  20508. # It would also be nice to do this for all -L options, not just this one.
  20509. if test -n "$x_libraries"; then
  20510. X_LIBS="$X_LIBS -L$x_libraries"
  20511. # For Solaris; some versions of Sun CC require a space after -R and
  20512. # others require no space. Words are not sufficient . . . .
  20513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20514. printf %s "checking whether -R must be followed by a space... " >&6; }
  20515. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20516. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20517. ac_c_werror_flag=yes
  20518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20519. /* end confdefs.h. */
  20520. int
  20521. main (void)
  20522. {
  20523. ;
  20524. return 0;
  20525. }
  20526. _ACEOF
  20527. if ac_fn_c_try_link "$LINENO"
  20528. then :
  20529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20530. printf "%s\n" "no" >&6; }
  20531. X_LIBS="$X_LIBS -R$x_libraries"
  20532. else $as_nop
  20533. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20535. /* end confdefs.h. */
  20536. int
  20537. main (void)
  20538. {
  20539. ;
  20540. return 0;
  20541. }
  20542. _ACEOF
  20543. if ac_fn_c_try_link "$LINENO"
  20544. then :
  20545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20546. printf "%s\n" "yes" >&6; }
  20547. X_LIBS="$X_LIBS -R $x_libraries"
  20548. else $as_nop
  20549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20550. printf "%s\n" "neither works" >&6; }
  20551. fi
  20552. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20553. conftest$ac_exeext conftest.$ac_ext
  20554. fi
  20555. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20556. conftest$ac_exeext conftest.$ac_ext
  20557. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20558. LIBS=$ac_xsave_LIBS
  20559. fi
  20560. # Check for system-dependent libraries X programs must link with.
  20561. # Do this before checking for the system-independent R6 libraries
  20562. # (-lICE), since we may need -lsocket or whatever for X linking.
  20563. if test "$ISC" = yes; then
  20564. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20565. else
  20566. # Martyn Johnson says this is needed for Ultrix, if the X
  20567. # libraries were built with DECnet support. And Karl Berry says
  20568. # the Alpha needs dnet_stub (dnet does not exist).
  20569. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20571. /* end confdefs.h. */
  20572. /* Override any GCC internal prototype to avoid an error.
  20573. Use char because int might match the return type of a GCC
  20574. builtin and then its argument prototype would still apply. */
  20575. char XOpenDisplay ();
  20576. int
  20577. main (void)
  20578. {
  20579. return XOpenDisplay ();
  20580. ;
  20581. return 0;
  20582. }
  20583. _ACEOF
  20584. if ac_fn_c_try_link "$LINENO"
  20585. then :
  20586. else $as_nop
  20587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20588. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20589. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20590. then :
  20591. printf %s "(cached) " >&6
  20592. else $as_nop
  20593. ac_check_lib_save_LIBS=$LIBS
  20594. LIBS="-ldnet $LIBS"
  20595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20596. /* end confdefs.h. */
  20597. /* Override any GCC internal prototype to avoid an error.
  20598. Use char because int might match the return type of a GCC
  20599. builtin and then its argument prototype would still apply. */
  20600. char dnet_ntoa ();
  20601. int
  20602. main (void)
  20603. {
  20604. return dnet_ntoa ();
  20605. ;
  20606. return 0;
  20607. }
  20608. _ACEOF
  20609. if ac_fn_c_try_link "$LINENO"
  20610. then :
  20611. ac_cv_lib_dnet_dnet_ntoa=yes
  20612. else $as_nop
  20613. ac_cv_lib_dnet_dnet_ntoa=no
  20614. fi
  20615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20616. conftest$ac_exeext conftest.$ac_ext
  20617. LIBS=$ac_check_lib_save_LIBS
  20618. fi
  20619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20620. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20621. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20622. then :
  20623. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20624. fi
  20625. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20627. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20628. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20629. then :
  20630. printf %s "(cached) " >&6
  20631. else $as_nop
  20632. ac_check_lib_save_LIBS=$LIBS
  20633. LIBS="-ldnet_stub $LIBS"
  20634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20635. /* end confdefs.h. */
  20636. /* Override any GCC internal prototype to avoid an error.
  20637. Use char because int might match the return type of a GCC
  20638. builtin and then its argument prototype would still apply. */
  20639. char dnet_ntoa ();
  20640. int
  20641. main (void)
  20642. {
  20643. return dnet_ntoa ();
  20644. ;
  20645. return 0;
  20646. }
  20647. _ACEOF
  20648. if ac_fn_c_try_link "$LINENO"
  20649. then :
  20650. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20651. else $as_nop
  20652. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20653. fi
  20654. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20655. conftest$ac_exeext conftest.$ac_ext
  20656. LIBS=$ac_check_lib_save_LIBS
  20657. fi
  20658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20659. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20660. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20661. then :
  20662. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20663. fi
  20664. fi
  20665. fi
  20666. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20667. conftest$ac_exeext conftest.$ac_ext
  20668. LIBS="$ac_xsave_LIBS"
  20669. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20670. # to get the SysV transport functions.
  20671. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20672. # needs -lnsl.
  20673. # The nsl library prevents programs from opening the X display
  20674. # on Irix 5.2, according to T.E. Dickey.
  20675. # The functions gethostbyname, getservbyname, and inet_addr are
  20676. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20677. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20678. if test "x$ac_cv_func_gethostbyname" = xyes
  20679. then :
  20680. fi
  20681. if test $ac_cv_func_gethostbyname = no; then
  20682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20683. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20684. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20685. then :
  20686. printf %s "(cached) " >&6
  20687. else $as_nop
  20688. ac_check_lib_save_LIBS=$LIBS
  20689. LIBS="-lnsl $LIBS"
  20690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20691. /* end confdefs.h. */
  20692. /* Override any GCC internal prototype to avoid an error.
  20693. Use char because int might match the return type of a GCC
  20694. builtin and then its argument prototype would still apply. */
  20695. char gethostbyname ();
  20696. int
  20697. main (void)
  20698. {
  20699. return gethostbyname ();
  20700. ;
  20701. return 0;
  20702. }
  20703. _ACEOF
  20704. if ac_fn_c_try_link "$LINENO"
  20705. then :
  20706. ac_cv_lib_nsl_gethostbyname=yes
  20707. else $as_nop
  20708. ac_cv_lib_nsl_gethostbyname=no
  20709. fi
  20710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20711. conftest$ac_exeext conftest.$ac_ext
  20712. LIBS=$ac_check_lib_save_LIBS
  20713. fi
  20714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20715. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20716. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20717. then :
  20718. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20719. fi
  20720. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20722. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20723. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20724. then :
  20725. printf %s "(cached) " >&6
  20726. else $as_nop
  20727. ac_check_lib_save_LIBS=$LIBS
  20728. LIBS="-lbsd $LIBS"
  20729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20730. /* end confdefs.h. */
  20731. /* Override any GCC internal prototype to avoid an error.
  20732. Use char because int might match the return type of a GCC
  20733. builtin and then its argument prototype would still apply. */
  20734. char gethostbyname ();
  20735. int
  20736. main (void)
  20737. {
  20738. return gethostbyname ();
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"
  20744. then :
  20745. ac_cv_lib_bsd_gethostbyname=yes
  20746. else $as_nop
  20747. ac_cv_lib_bsd_gethostbyname=no
  20748. fi
  20749. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20750. conftest$ac_exeext conftest.$ac_ext
  20751. LIBS=$ac_check_lib_save_LIBS
  20752. fi
  20753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20754. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20755. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20756. then :
  20757. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20758. fi
  20759. fi
  20760. fi
  20761. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20762. # socket/setsockopt and other routines are undefined under SCO ODT
  20763. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20764. # on later versions), says Simon Leinen: it contains gethostby*
  20765. # variants that don't use the name server (or something). -lsocket
  20766. # must be given before -lnsl if both are needed. We assume that
  20767. # if connect needs -lnsl, so does gethostbyname.
  20768. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20769. if test "x$ac_cv_func_connect" = xyes
  20770. then :
  20771. fi
  20772. if test $ac_cv_func_connect = no; then
  20773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20774. printf %s "checking for connect in -lsocket... " >&6; }
  20775. if test ${ac_cv_lib_socket_connect+y}
  20776. then :
  20777. printf %s "(cached) " >&6
  20778. else $as_nop
  20779. ac_check_lib_save_LIBS=$LIBS
  20780. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20782. /* end confdefs.h. */
  20783. /* Override any GCC internal prototype to avoid an error.
  20784. Use char because int might match the return type of a GCC
  20785. builtin and then its argument prototype would still apply. */
  20786. char connect ();
  20787. int
  20788. main (void)
  20789. {
  20790. return connect ();
  20791. ;
  20792. return 0;
  20793. }
  20794. _ACEOF
  20795. if ac_fn_c_try_link "$LINENO"
  20796. then :
  20797. ac_cv_lib_socket_connect=yes
  20798. else $as_nop
  20799. ac_cv_lib_socket_connect=no
  20800. fi
  20801. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20802. conftest$ac_exeext conftest.$ac_ext
  20803. LIBS=$ac_check_lib_save_LIBS
  20804. fi
  20805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20806. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20807. if test "x$ac_cv_lib_socket_connect" = xyes
  20808. then :
  20809. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20810. fi
  20811. fi
  20812. # Guillermo Gomez says -lposix is necessary on A/UX.
  20813. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20814. if test "x$ac_cv_func_remove" = xyes
  20815. then :
  20816. fi
  20817. if test $ac_cv_func_remove = no; then
  20818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20819. printf %s "checking for remove in -lposix... " >&6; }
  20820. if test ${ac_cv_lib_posix_remove+y}
  20821. then :
  20822. printf %s "(cached) " >&6
  20823. else $as_nop
  20824. ac_check_lib_save_LIBS=$LIBS
  20825. LIBS="-lposix $LIBS"
  20826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20827. /* end confdefs.h. */
  20828. /* Override any GCC internal prototype to avoid an error.
  20829. Use char because int might match the return type of a GCC
  20830. builtin and then its argument prototype would still apply. */
  20831. char remove ();
  20832. int
  20833. main (void)
  20834. {
  20835. return remove ();
  20836. ;
  20837. return 0;
  20838. }
  20839. _ACEOF
  20840. if ac_fn_c_try_link "$LINENO"
  20841. then :
  20842. ac_cv_lib_posix_remove=yes
  20843. else $as_nop
  20844. ac_cv_lib_posix_remove=no
  20845. fi
  20846. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20847. conftest$ac_exeext conftest.$ac_ext
  20848. LIBS=$ac_check_lib_save_LIBS
  20849. fi
  20850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20851. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20852. if test "x$ac_cv_lib_posix_remove" = xyes
  20853. then :
  20854. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20855. fi
  20856. fi
  20857. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20858. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20859. if test "x$ac_cv_func_shmat" = xyes
  20860. then :
  20861. fi
  20862. if test $ac_cv_func_shmat = no; then
  20863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20864. printf %s "checking for shmat in -lipc... " >&6; }
  20865. if test ${ac_cv_lib_ipc_shmat+y}
  20866. then :
  20867. printf %s "(cached) " >&6
  20868. else $as_nop
  20869. ac_check_lib_save_LIBS=$LIBS
  20870. LIBS="-lipc $LIBS"
  20871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20872. /* end confdefs.h. */
  20873. /* Override any GCC internal prototype to avoid an error.
  20874. Use char because int might match the return type of a GCC
  20875. builtin and then its argument prototype would still apply. */
  20876. char shmat ();
  20877. int
  20878. main (void)
  20879. {
  20880. return shmat ();
  20881. ;
  20882. return 0;
  20883. }
  20884. _ACEOF
  20885. if ac_fn_c_try_link "$LINENO"
  20886. then :
  20887. ac_cv_lib_ipc_shmat=yes
  20888. else $as_nop
  20889. ac_cv_lib_ipc_shmat=no
  20890. fi
  20891. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20892. conftest$ac_exeext conftest.$ac_ext
  20893. LIBS=$ac_check_lib_save_LIBS
  20894. fi
  20895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20896. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20897. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20898. then :
  20899. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20900. fi
  20901. fi
  20902. fi
  20903. # Check for libraries that X11R6 Xt/Xaw programs need.
  20904. ac_save_LDFLAGS=$LDFLAGS
  20905. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20906. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20907. # check for ICE first), but we must link in the order -lSM -lICE or
  20908. # we get undefined symbols. So assume we have SM if we have ICE.
  20909. # These have to be linked with before -lX11, unlike the other
  20910. # libraries we check for below, so use a different variable.
  20911. # John Interrante, Karl Berry
  20912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20913. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20914. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20915. then :
  20916. printf %s "(cached) " >&6
  20917. else $as_nop
  20918. ac_check_lib_save_LIBS=$LIBS
  20919. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20921. /* end confdefs.h. */
  20922. /* Override any GCC internal prototype to avoid an error.
  20923. Use char because int might match the return type of a GCC
  20924. builtin and then its argument prototype would still apply. */
  20925. char IceConnectionNumber ();
  20926. int
  20927. main (void)
  20928. {
  20929. return IceConnectionNumber ();
  20930. ;
  20931. return 0;
  20932. }
  20933. _ACEOF
  20934. if ac_fn_c_try_link "$LINENO"
  20935. then :
  20936. ac_cv_lib_ICE_IceConnectionNumber=yes
  20937. else $as_nop
  20938. ac_cv_lib_ICE_IceConnectionNumber=no
  20939. fi
  20940. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20941. conftest$ac_exeext conftest.$ac_ext
  20942. LIBS=$ac_check_lib_save_LIBS
  20943. fi
  20944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20945. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20946. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20947. then :
  20948. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20949. fi
  20950. LDFLAGS=$ac_save_LDFLAGS
  20951. fi
  20952. if test x$have_x = xyes; then
  20953. # Check whether --enable-x11-shared was given.
  20954. if test ${enable_x11_shared+y}
  20955. then :
  20956. enableval=$enable_x11_shared;
  20957. else $as_nop
  20958. enable_x11_shared=maybe
  20959. fi
  20960. case "$host" in
  20961. *-*-darwin*)
  20962. # Apple now puts this in /opt/X11
  20963. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20964. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20965. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20966. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20967. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20968. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20969. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20970. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20971. ;;
  20972. *-*-openbsd*)
  20973. x11_lib='libX11.so'
  20974. x11ext_lib='libXext.so'
  20975. xcursor_lib='libXcursor.so'
  20976. xinput_lib='libXi.so'
  20977. xfixes_lib='libXfixes.so'
  20978. xrandr_lib='libXrandr.so'
  20979. xrender_lib='libXrender.so'
  20980. xss_lib='libXss.so'
  20981. ;;
  20982. *)
  20983. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20984. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20985. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20986. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20987. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20988. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20989. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20990. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20991. ;;
  20992. esac
  20993. if test x$ac_cv_func_shmat != xyes; then
  20994. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20995. fi
  20996. CFLAGS="$CFLAGS $X_CFLAGS"
  20997. LDFLAGS="$LDFLAGS $X_LIBS"
  20998. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20999. #include <X11/Xproto.h>
  21000. "
  21001. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21002. then :
  21003. have_xext_h_hdr=yes
  21004. else $as_nop
  21005. have_xext_h_hdr=no
  21006. fi
  21007. if test x$have_xext_h_hdr != xyes; then
  21008. as_fn_error $? "
  21009. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21010. " "$LINENO" 5
  21011. fi
  21012. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21013. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21014. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21015. # Needed so SDL applications can include SDL_syswm.h
  21016. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21017. if test x$enable_x11_shared = xmaybe; then
  21018. enable_x11_shared=yes
  21019. fi
  21020. if test x$have_loadso != xyes && \
  21021. test x$enable_x11_shared = xyes; then
  21022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21023. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21024. enable_x11_shared=no
  21025. fi
  21026. if test x$have_loadso = xyes && \
  21027. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21028. echo "-- dynamic libX11 -> $x11_lib"
  21029. echo "-- dynamic libX11ext -> $x11ext_lib"
  21030. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21031. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21032. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21033. else
  21034. enable_x11_shared=no
  21035. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21036. SUMMARY_video="${SUMMARY_video} x11"
  21037. fi
  21038. have_video=yes
  21039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21040. printf %s "checking for XGenericEvent... " >&6; }
  21041. have_XGenericEvent=no
  21042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21043. /* end confdefs.h. */
  21044. #include <X11/Xlib.h>
  21045. int
  21046. main (void)
  21047. {
  21048. Display *display;
  21049. XEvent event;
  21050. XGenericEventCookie *cookie = &event.xcookie;
  21051. XNextEvent(display, &event);
  21052. XGetEventData(display, cookie);
  21053. XFreeEventData(display, cookie);
  21054. ;
  21055. return 0;
  21056. }
  21057. _ACEOF
  21058. if ac_fn_c_try_compile "$LINENO"
  21059. then :
  21060. have_XGenericEvent=yes
  21061. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21062. fi
  21063. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21065. printf "%s\n" "$have_XGenericEvent" >&6; }
  21066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21067. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21068. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21069. then :
  21070. printf %s "(cached) " >&6
  21071. else $as_nop
  21072. ac_check_lib_save_LIBS=$LIBS
  21073. LIBS="-lX11 $LIBS"
  21074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21075. /* end confdefs.h. */
  21076. /* Override any GCC internal prototype to avoid an error.
  21077. Use char because int might match the return type of a GCC
  21078. builtin and then its argument prototype would still apply. */
  21079. char XkbKeycodeToKeysym ();
  21080. int
  21081. main (void)
  21082. {
  21083. return XkbKeycodeToKeysym ();
  21084. ;
  21085. return 0;
  21086. }
  21087. _ACEOF
  21088. if ac_fn_c_try_link "$LINENO"
  21089. then :
  21090. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21091. else $as_nop
  21092. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21093. fi
  21094. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21095. conftest$ac_exeext conftest.$ac_ext
  21096. LIBS=$ac_check_lib_save_LIBS
  21097. fi
  21098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21099. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21100. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21101. then :
  21102. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21103. fi
  21104. # Check whether --enable-video-x11-xcursor was given.
  21105. if test ${enable_video_x11_xcursor+y}
  21106. then :
  21107. enableval=$enable_video_x11_xcursor;
  21108. else $as_nop
  21109. enable_video_x11_xcursor=yes
  21110. fi
  21111. if test x$enable_video_x11_xcursor = xyes; then
  21112. definitely_enable_video_x11_xcursor=no
  21113. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21114. "
  21115. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21116. then :
  21117. have_xcursor_h_hdr=yes
  21118. else $as_nop
  21119. have_xcursor_h_hdr=no
  21120. fi
  21121. if test x$have_xcursor_h_hdr = xyes; then
  21122. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21123. echo "-- dynamic libXcursor -> $xcursor_lib"
  21124. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21125. definitely_enable_video_x11_xcursor=yes
  21126. else
  21127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21128. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21129. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21130. then :
  21131. printf %s "(cached) " >&6
  21132. else $as_nop
  21133. ac_check_lib_save_LIBS=$LIBS
  21134. LIBS="-lXcursor $LIBS"
  21135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21136. /* end confdefs.h. */
  21137. /* Override any GCC internal prototype to avoid an error.
  21138. Use char because int might match the return type of a GCC
  21139. builtin and then its argument prototype would still apply. */
  21140. char XcursorImageCreate ();
  21141. int
  21142. main (void)
  21143. {
  21144. return XcursorImageCreate ();
  21145. ;
  21146. return 0;
  21147. }
  21148. _ACEOF
  21149. if ac_fn_c_try_link "$LINENO"
  21150. then :
  21151. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21152. else $as_nop
  21153. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21154. fi
  21155. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21156. conftest$ac_exeext conftest.$ac_ext
  21157. LIBS=$ac_check_lib_save_LIBS
  21158. fi
  21159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21160. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21161. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21162. then :
  21163. have_xcursor_lib=yes
  21164. fi
  21165. if test x$have_xcursor_lib = xyes ; then
  21166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21167. definitely_enable_video_x11_xcursor=yes
  21168. fi
  21169. fi
  21170. fi
  21171. fi
  21172. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21173. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21174. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21175. fi
  21176. # Check whether --enable-video-x11-xdbe was given.
  21177. if test ${enable_video_x11_xdbe+y}
  21178. then :
  21179. enableval=$enable_video_x11_xdbe;
  21180. else $as_nop
  21181. enable_video_x11_xdbe=yes
  21182. fi
  21183. if test x$enable_video_x11_xdbe = xyes; then
  21184. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21185. "
  21186. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21187. then :
  21188. have_dbe_h_hdr=yes
  21189. else $as_nop
  21190. have_dbe_h_hdr=no
  21191. fi
  21192. if test x$have_dbe_h_hdr = xyes; then
  21193. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21194. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21195. fi
  21196. fi
  21197. # Check whether --enable-video-x11-xinput was given.
  21198. if test ${enable_video_x11_xinput+y}
  21199. then :
  21200. enableval=$enable_video_x11_xinput;
  21201. else $as_nop
  21202. enable_video_x11_xinput=yes
  21203. fi
  21204. if test x$enable_video_x11_xinput = xyes; then
  21205. definitely_enable_video_x11_xinput=no
  21206. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21207. "
  21208. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21209. then :
  21210. have_xinput_h_hdr=yes
  21211. else $as_nop
  21212. have_xinput_h_hdr=no
  21213. fi
  21214. if test x$have_xinput_h_hdr = xyes; then
  21215. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21216. echo "-- dynamic libXi -> $xinput_lib"
  21217. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21218. definitely_enable_video_x11_xinput=yes
  21219. else
  21220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21221. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21222. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21223. then :
  21224. printf %s "(cached) " >&6
  21225. else $as_nop
  21226. ac_check_lib_save_LIBS=$LIBS
  21227. LIBS="-lXi $LIBS"
  21228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21229. /* end confdefs.h. */
  21230. /* Override any GCC internal prototype to avoid an error.
  21231. Use char because int might match the return type of a GCC
  21232. builtin and then its argument prototype would still apply. */
  21233. char XOpenDevice ();
  21234. int
  21235. main (void)
  21236. {
  21237. return XOpenDevice ();
  21238. ;
  21239. return 0;
  21240. }
  21241. _ACEOF
  21242. if ac_fn_c_try_link "$LINENO"
  21243. then :
  21244. ac_cv_lib_Xi_XOpenDevice=yes
  21245. else $as_nop
  21246. ac_cv_lib_Xi_XOpenDevice=no
  21247. fi
  21248. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21249. conftest$ac_exeext conftest.$ac_ext
  21250. LIBS=$ac_check_lib_save_LIBS
  21251. fi
  21252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21253. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21254. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21255. then :
  21256. have_xinput_lib=yes
  21257. fi
  21258. if test x$have_xinput_lib = xyes ; then
  21259. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21260. definitely_enable_video_x11_xinput=yes
  21261. fi
  21262. fi
  21263. fi
  21264. fi
  21265. if test x$definitely_enable_video_x11_xinput = xyes; then
  21266. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21267. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21269. printf %s "checking for xinput2 multitouch... " >&6; }
  21270. have_xinput2_multitouch=no
  21271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21272. /* end confdefs.h. */
  21273. #include <X11/Xlib.h>
  21274. #include <X11/Xproto.h>
  21275. #include <X11/extensions/XInput2.h>
  21276. int
  21277. main (void)
  21278. {
  21279. int event_type = XI_TouchBegin;
  21280. XITouchClassInfo *t;
  21281. ;
  21282. return 0;
  21283. }
  21284. _ACEOF
  21285. if ac_fn_c_try_compile "$LINENO"
  21286. then :
  21287. have_xinput2_multitouch=yes
  21288. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21289. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21290. fi
  21291. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21293. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21294. fi
  21295. # Check whether --enable-video-x11-xfixes was given.
  21296. if test ${enable_video_x11_xfixes+y}
  21297. then :
  21298. enableval=$enable_video_x11_xfixes;
  21299. else $as_nop
  21300. enable_video_x11_xfixes=yes
  21301. fi
  21302. if test x$enable_video_x11_xfixes = xyes; then
  21303. definitely_enable_video_x11_xfixes=no
  21304. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21306. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21308. /* end confdefs.h. */
  21309. #include <X11/Xlib.h>
  21310. #include <X11/Xproto.h>
  21311. #include <X11/extensions/XInput2.h>
  21312. #include <X11/extensions/Xfixes.h>
  21313. int
  21314. main (void)
  21315. {
  21316. BarrierEventID b;
  21317. ;
  21318. return 0;
  21319. }
  21320. _ACEOF
  21321. if ac_fn_c_try_compile "$LINENO"
  21322. then :
  21323. have_xfixes_h_hdr=yes
  21324. else $as_nop
  21325. have_xfixes_h_hdr=no
  21326. fi
  21327. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21329. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21330. if test x$have_xfixes_h_hdr = xyes; then
  21331. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21332. echo "-- dynamic libXfixes -> $xfixes_lib"
  21333. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21334. definitely_enable_video_x11_xfixes=yes
  21335. else
  21336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21337. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21338. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21339. then :
  21340. printf %s "(cached) " >&6
  21341. else $as_nop
  21342. ac_check_lib_save_LIBS=$LIBS
  21343. LIBS="-lXfixes $LIBS"
  21344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21345. /* end confdefs.h. */
  21346. /* Override any GCC internal prototype to avoid an error.
  21347. Use char because int might match the return type of a GCC
  21348. builtin and then its argument prototype would still apply. */
  21349. char XFixesCreatePointerBarrier ();
  21350. int
  21351. main (void)
  21352. {
  21353. return XFixesCreatePointerBarrier ();
  21354. ;
  21355. return 0;
  21356. }
  21357. _ACEOF
  21358. if ac_fn_c_try_link "$LINENO"
  21359. then :
  21360. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21361. else $as_nop
  21362. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21363. fi
  21364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21365. conftest$ac_exeext conftest.$ac_ext
  21366. LIBS=$ac_check_lib_save_LIBS
  21367. fi
  21368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21369. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21370. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21371. then :
  21372. have_xfixes_lib=yes
  21373. fi
  21374. if test x$have_xfixes_lib = xyes ; then
  21375. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21376. definitely_enable_video_x11_xfixes=yes
  21377. fi
  21378. fi
  21379. fi
  21380. fi
  21381. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21382. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21383. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21384. fi
  21385. # Check whether --enable-video-x11-xrandr was given.
  21386. if test ${enable_video_x11_xrandr+y}
  21387. then :
  21388. enableval=$enable_video_x11_xrandr;
  21389. else $as_nop
  21390. enable_video_x11_xrandr=yes
  21391. fi
  21392. if test x$enable_video_x11_xrandr = xyes; then
  21393. definitely_enable_video_x11_xrandr=no
  21394. have_xrandr_h_hdr=no
  21395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21396. /* end confdefs.h. */
  21397. #include <X11/Xlib.h>
  21398. #include <X11/extensions/Xrandr.h>
  21399. int
  21400. main (void)
  21401. {
  21402. XRRScreenResources *res = NULL;
  21403. ;
  21404. return 0;
  21405. }
  21406. _ACEOF
  21407. if ac_fn_c_try_compile "$LINENO"
  21408. then :
  21409. have_xrandr_h_hdr=yes
  21410. fi
  21411. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21412. if test x$have_xrandr_h_hdr = xyes; then
  21413. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21414. echo "-- dynamic libXrandr -> $xrandr_lib"
  21415. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21416. definitely_enable_video_x11_xrandr=yes
  21417. else
  21418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21419. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21420. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21421. then :
  21422. printf %s "(cached) " >&6
  21423. else $as_nop
  21424. ac_check_lib_save_LIBS=$LIBS
  21425. LIBS="-lXrandr $LIBS"
  21426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21427. /* end confdefs.h. */
  21428. /* Override any GCC internal prototype to avoid an error.
  21429. Use char because int might match the return type of a GCC
  21430. builtin and then its argument prototype would still apply. */
  21431. char XRRQueryExtension ();
  21432. int
  21433. main (void)
  21434. {
  21435. return XRRQueryExtension ();
  21436. ;
  21437. return 0;
  21438. }
  21439. _ACEOF
  21440. if ac_fn_c_try_link "$LINENO"
  21441. then :
  21442. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21443. else $as_nop
  21444. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21445. fi
  21446. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21447. conftest$ac_exeext conftest.$ac_ext
  21448. LIBS=$ac_check_lib_save_LIBS
  21449. fi
  21450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21451. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21452. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21453. then :
  21454. have_xrandr_lib=yes
  21455. fi
  21456. if test x$have_xrandr_lib = xyes ; then
  21457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21458. definitely_enable_video_x11_xrandr=yes
  21459. fi
  21460. fi
  21461. fi
  21462. fi
  21463. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21464. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21465. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21466. fi
  21467. # Check whether --enable-video-x11-scrnsaver was given.
  21468. if test ${enable_video_x11_scrnsaver+y}
  21469. then :
  21470. enableval=$enable_video_x11_scrnsaver;
  21471. else $as_nop
  21472. enable_video_x11_scrnsaver=yes
  21473. fi
  21474. if test x$enable_video_x11_scrnsaver = xyes; then
  21475. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21476. "
  21477. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21478. then :
  21479. have_scrnsaver_h_hdr=yes
  21480. else $as_nop
  21481. have_scrnsaver_h_hdr=no
  21482. fi
  21483. if test x$have_scrnsaver_h_hdr = xyes; then
  21484. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21485. echo "-- dynamic libXss -> $xss_lib"
  21486. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21487. definitely_enable_video_x11_scrnsaver=yes
  21488. else
  21489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21490. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21491. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21492. then :
  21493. printf %s "(cached) " >&6
  21494. else $as_nop
  21495. ac_check_lib_save_LIBS=$LIBS
  21496. LIBS="-lXss $LIBS"
  21497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21498. /* end confdefs.h. */
  21499. /* Override any GCC internal prototype to avoid an error.
  21500. Use char because int might match the return type of a GCC
  21501. builtin and then its argument prototype would still apply. */
  21502. char XScreenSaverSuspend ();
  21503. int
  21504. main (void)
  21505. {
  21506. return XScreenSaverSuspend ();
  21507. ;
  21508. return 0;
  21509. }
  21510. _ACEOF
  21511. if ac_fn_c_try_link "$LINENO"
  21512. then :
  21513. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21514. else $as_nop
  21515. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21516. fi
  21517. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21518. conftest$ac_exeext conftest.$ac_ext
  21519. LIBS=$ac_check_lib_save_LIBS
  21520. fi
  21521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21522. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21523. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21524. then :
  21525. have_xss_lib=yes
  21526. fi
  21527. if test x$have_xss_lib = xyes ; then
  21528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21529. definitely_enable_video_x11_scrnsaver=yes
  21530. fi
  21531. fi
  21532. fi
  21533. fi
  21534. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21535. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21536. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21537. fi
  21538. # Check whether --enable-video-x11-xshape was given.
  21539. if test ${enable_video_x11_xshape+y}
  21540. then :
  21541. enableval=$enable_video_x11_xshape;
  21542. else $as_nop
  21543. enable_video_x11_xshape=yes
  21544. fi
  21545. if test x$enable_video_x11_xshape = xyes; then
  21546. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21547. "
  21548. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21549. then :
  21550. have_shape_h_hdr=yes
  21551. else $as_nop
  21552. have_shape_h_hdr=no
  21553. fi
  21554. if test x$have_shape_h_hdr = xyes; then
  21555. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21556. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21557. fi
  21558. fi
  21559. fi
  21560. fi
  21561. if test x$have_x != xyes; then
  21562. # Prevent Mesa from including X11 headers
  21563. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21564. fi
  21565. }
  21566. CheckVivanteVideo()
  21567. {
  21568. # Check whether --enable-video-vivante was given.
  21569. if test ${enable_video_vivante+y}
  21570. then :
  21571. enableval=$enable_video_vivante;
  21572. else $as_nop
  21573. enable_video_vivante=yes
  21574. fi
  21575. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21577. printf %s "checking for Vivante VDK API... " >&6; }
  21578. have_vivante_vdk=no
  21579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21580. /* end confdefs.h. */
  21581. #define LINUX
  21582. #define EGL_API_FB
  21583. #include <gc_vdk.h>
  21584. int
  21585. main (void)
  21586. {
  21587. ;
  21588. return 0;
  21589. }
  21590. _ACEOF
  21591. if ac_fn_c_try_compile "$LINENO"
  21592. then :
  21593. have_vivante_vdk=yes
  21594. fi
  21595. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21597. printf "%s\n" "$have_vivante_vdk" >&6; }
  21598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21599. printf %s "checking for Vivante FB API... " >&6; }
  21600. have_vivante_egl=no
  21601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21602. /* end confdefs.h. */
  21603. #define LINUX
  21604. #define EGL_API_FB
  21605. #include <EGL/eglvivante.h>
  21606. int
  21607. main (void)
  21608. {
  21609. ;
  21610. return 0;
  21611. }
  21612. _ACEOF
  21613. if ac_fn_c_try_compile "$LINENO"
  21614. then :
  21615. have_vivante_egl=yes
  21616. fi
  21617. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21619. printf "%s\n" "$have_vivante_egl" >&6; }
  21620. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21621. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21622. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21623. if test x$have_vivante_vdk = xyes; then
  21624. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21626. fi
  21627. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21628. SUMMARY_video="${SUMMARY_video} vivante"
  21629. have_video=yes
  21630. fi
  21631. fi
  21632. }
  21633. CheckHaikuVideo()
  21634. {
  21635. if test x$enable_video = xyes; then
  21636. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21637. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21638. have_video=yes
  21639. SUMMARY_video="${SUMMARY_video} haiku"
  21640. fi
  21641. }
  21642. CheckCOCOA()
  21643. {
  21644. # Check whether --enable-video-cocoa was given.
  21645. if test ${enable_video_cocoa+y}
  21646. then :
  21647. enableval=$enable_video_cocoa;
  21648. else $as_nop
  21649. enable_video_cocoa=yes
  21650. fi
  21651. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21652. save_CFLAGS="$CFLAGS"
  21653. CFLAGS="$CFLAGS -x objective-c"
  21654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21655. printf %s "checking for Cocoa framework... " >&6; }
  21656. have_cocoa=no
  21657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21658. /* end confdefs.h. */
  21659. #import <Cocoa/Cocoa.h>
  21660. int
  21661. main (void)
  21662. {
  21663. ;
  21664. return 0;
  21665. }
  21666. _ACEOF
  21667. if ac_fn_c_try_compile "$LINENO"
  21668. then :
  21669. have_cocoa=yes
  21670. fi
  21671. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21673. printf "%s\n" "$have_cocoa" >&6; }
  21674. CFLAGS="$save_CFLAGS"
  21675. if test x$have_cocoa = xyes; then
  21676. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21677. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21678. SUMMARY_video="${SUMMARY_video} cocoa"
  21679. have_video=yes
  21680. fi
  21681. fi
  21682. }
  21683. CheckMETAL()
  21684. {
  21685. # Check whether --enable-video-metal was given.
  21686. if test ${enable_video_metal+y}
  21687. then :
  21688. enableval=$enable_video_metal;
  21689. else $as_nop
  21690. enable_video_metal=yes
  21691. fi
  21692. # Check whether --enable-render-metal was given.
  21693. if test ${enable_render_metal+y}
  21694. then :
  21695. enableval=$enable_render_metal;
  21696. else $as_nop
  21697. enable_render_metal=yes
  21698. fi
  21699. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21700. save_CFLAGS="$CFLAGS"
  21701. CFLAGS="$CFLAGS -x objective-c"
  21702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21703. printf %s "checking for Metal framework... " >&6; }
  21704. have_metal=no
  21705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21706. /* end confdefs.h. */
  21707. #import <Cocoa/Cocoa.h>
  21708. #import <Metal/Metal.h>
  21709. #import <QuartzCore/CAMetalLayer.h>
  21710. #if TARGET_CPU_X86
  21711. #error Metal doesn't work on this configuration
  21712. #endif
  21713. int
  21714. main (void)
  21715. {
  21716. ;
  21717. return 0;
  21718. }
  21719. _ACEOF
  21720. if ac_fn_c_try_compile "$LINENO"
  21721. then :
  21722. have_metal=yes
  21723. fi
  21724. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21725. CFLAGS="$save_CFLAGS"
  21726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21727. printf "%s\n" "$have_metal" >&6; }
  21728. if test x$have_metal = xyes; then
  21729. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21730. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21731. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21732. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21733. fi
  21734. SUMMARY_video="${SUMMARY_video} metal"
  21735. else
  21736. enable_video_metal=no
  21737. enable_render_metal=no
  21738. fi
  21739. fi
  21740. }
  21741. CheckDirectFB()
  21742. {
  21743. # Check whether --enable-video-directfb was given.
  21744. if test ${enable_video_directfb+y}
  21745. then :
  21746. enableval=$enable_video_directfb;
  21747. else $as_nop
  21748. enable_video_directfb=no
  21749. fi
  21750. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21751. pkg_failed=no
  21752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21753. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21754. if test -n "$DIRECTFB_CFLAGS"; then
  21755. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21756. elif test -n "$PKG_CONFIG"; then
  21757. if test -n "$PKG_CONFIG" && \
  21758. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21759. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21760. ac_status=$?
  21761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21762. test $ac_status = 0; }; then
  21763. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21764. test "x$?" != "x0" && pkg_failed=yes
  21765. else
  21766. pkg_failed=yes
  21767. fi
  21768. else
  21769. pkg_failed=untried
  21770. fi
  21771. if test -n "$DIRECTFB_LIBS"; then
  21772. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21773. elif test -n "$PKG_CONFIG"; then
  21774. if test -n "$PKG_CONFIG" && \
  21775. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21776. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21777. ac_status=$?
  21778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21779. test $ac_status = 0; }; then
  21780. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21781. test "x$?" != "x0" && pkg_failed=yes
  21782. else
  21783. pkg_failed=yes
  21784. fi
  21785. else
  21786. pkg_failed=untried
  21787. fi
  21788. if test $pkg_failed = yes; then
  21789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21790. printf "%s\n" "no" >&6; }
  21791. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21792. _pkg_short_errors_supported=yes
  21793. else
  21794. _pkg_short_errors_supported=no
  21795. fi
  21796. if test $_pkg_short_errors_supported = yes; then
  21797. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21798. else
  21799. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21800. fi
  21801. # Put the nasty error message in config.log where it belongs
  21802. echo "$DIRECTFB_PKG_ERRORS" >&5
  21803. video_directfb=no
  21804. elif test $pkg_failed = untried; then
  21805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21806. printf "%s\n" "no" >&6; }
  21807. video_directfb=no
  21808. else
  21809. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21810. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21812. printf "%s\n" "yes" >&6; }
  21813. video_directfb=yes
  21814. fi
  21815. if test x$video_directfb = xyes; then
  21816. # SuSE 11.1 installs directfb-config without directfb-devel
  21817. save_CPPFLAGS="$CPPFLAGS"
  21818. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21819. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21820. if test "x$ac_cv_header_directfb_h" = xyes
  21821. then :
  21822. have_directfb_hdr=yes
  21823. else $as_nop
  21824. have_directfb_hdr=no
  21825. fi
  21826. CPPFLAGS="$save_CPPFLAGS"
  21827. video_directfb=$have_directfb_hdr
  21828. fi
  21829. if test x$video_directfb = xyes; then
  21830. # Check whether --enable-directfb-shared was given.
  21831. if test ${enable_directfb_shared+y}
  21832. then :
  21833. enableval=$enable_directfb_shared;
  21834. else $as_nop
  21835. enable_directfb_shared=yes
  21836. fi
  21837. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21838. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21839. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21840. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21841. directfb_shared=no
  21842. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21843. if test x$have_loadso != xyes && \
  21844. test x$enable_directfb_shared = xyes; then
  21845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21846. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21847. fi
  21848. if test x$have_loadso = xyes && \
  21849. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21850. directfb_shared=yes
  21851. echo "-- dynamic libdirectfb -> $directfb_lib"
  21852. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21853. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21854. else
  21855. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21856. SUMMARY_video="${SUMMARY_video} directfb"
  21857. fi
  21858. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21859. have_video=yes
  21860. fi
  21861. fi
  21862. }
  21863. CheckKMSDRM()
  21864. {
  21865. # Check whether --enable-video-kmsdrm was given.
  21866. if test ${enable_video_kmsdrm+y}
  21867. then :
  21868. enableval=$enable_video_kmsdrm;
  21869. else $as_nop
  21870. enable_video_kmsdrm=yes
  21871. fi
  21872. if test x$enable_video = xyes && \
  21873. test x$enable_video_kmsdrm = xyes && \
  21874. test x$video_opengl_egl = xyes; then
  21875. video_kmsdrm=no
  21876. pkg_failed=no
  21877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21878. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21879. if test -n "$LIBDRM_CFLAGS"; then
  21880. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21881. elif test -n "$PKG_CONFIG"; then
  21882. if test -n "$PKG_CONFIG" && \
  21883. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21884. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21885. ac_status=$?
  21886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21887. test $ac_status = 0; }; then
  21888. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21889. test "x$?" != "x0" && pkg_failed=yes
  21890. else
  21891. pkg_failed=yes
  21892. fi
  21893. else
  21894. pkg_failed=untried
  21895. fi
  21896. if test -n "$LIBDRM_LIBS"; then
  21897. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21898. elif test -n "$PKG_CONFIG"; then
  21899. if test -n "$PKG_CONFIG" && \
  21900. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21901. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21902. ac_status=$?
  21903. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21904. test $ac_status = 0; }; then
  21905. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21906. test "x$?" != "x0" && pkg_failed=yes
  21907. else
  21908. pkg_failed=yes
  21909. fi
  21910. else
  21911. pkg_failed=untried
  21912. fi
  21913. if test $pkg_failed = yes; then
  21914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21915. printf "%s\n" "no" >&6; }
  21916. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21917. _pkg_short_errors_supported=yes
  21918. else
  21919. _pkg_short_errors_supported=no
  21920. fi
  21921. if test $_pkg_short_errors_supported = yes; then
  21922. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21923. else
  21924. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21925. fi
  21926. # Put the nasty error message in config.log where it belongs
  21927. echo "$LIBDRM_PKG_ERRORS" >&5
  21928. libdrm_avail=no
  21929. elif test $pkg_failed = untried; then
  21930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21931. printf "%s\n" "no" >&6; }
  21932. libdrm_avail=no
  21933. else
  21934. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21935. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21937. printf "%s\n" "yes" >&6; }
  21938. libdrm_avail=yes
  21939. fi
  21940. pkg_failed=no
  21941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21942. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21943. if test -n "$LIBGBM_CFLAGS"; then
  21944. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21945. elif test -n "$PKG_CONFIG"; then
  21946. if test -n "$PKG_CONFIG" && \
  21947. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21948. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21949. ac_status=$?
  21950. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21951. test $ac_status = 0; }; then
  21952. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21953. test "x$?" != "x0" && pkg_failed=yes
  21954. else
  21955. pkg_failed=yes
  21956. fi
  21957. else
  21958. pkg_failed=untried
  21959. fi
  21960. if test -n "$LIBGBM_LIBS"; then
  21961. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21962. elif test -n "$PKG_CONFIG"; then
  21963. if test -n "$PKG_CONFIG" && \
  21964. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21965. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21966. ac_status=$?
  21967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21968. test $ac_status = 0; }; then
  21969. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21970. test "x$?" != "x0" && pkg_failed=yes
  21971. else
  21972. pkg_failed=yes
  21973. fi
  21974. else
  21975. pkg_failed=untried
  21976. fi
  21977. if test $pkg_failed = yes; then
  21978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21979. printf "%s\n" "no" >&6; }
  21980. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21981. _pkg_short_errors_supported=yes
  21982. else
  21983. _pkg_short_errors_supported=no
  21984. fi
  21985. if test $_pkg_short_errors_supported = yes; then
  21986. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21987. else
  21988. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21989. fi
  21990. # Put the nasty error message in config.log where it belongs
  21991. echo "$LIBGBM_PKG_ERRORS" >&5
  21992. libgbm_avail=no
  21993. elif test $pkg_failed = untried; then
  21994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21995. printf "%s\n" "no" >&6; }
  21996. libgbm_avail=no
  21997. else
  21998. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21999. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22001. printf "%s\n" "yes" >&6; }
  22002. libgbm_avail=yes
  22003. fi
  22004. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22005. video_kmsdrm=yes
  22006. fi
  22007. if test x$video_kmsdrm = xyes; then
  22008. # Check whether --enable-kmsdrm-shared was given.
  22009. if test ${enable_kmsdrm_shared+y}
  22010. then :
  22011. enableval=$enable_kmsdrm_shared;
  22012. else $as_nop
  22013. enable_kmsdrm_shared=yes
  22014. fi
  22015. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22016. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22017. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22019. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22020. kmsdrm_shared=no
  22021. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22022. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22023. if test x$have_loadso != xyes && \
  22024. test x$enable_kmsdrm_shared = xyes; then
  22025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22026. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22027. fi
  22028. if test x$have_loadso = xyes && \
  22029. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22030. kmsdrm_shared=yes
  22031. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22032. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22033. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22034. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22035. else
  22036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22037. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22038. fi
  22039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22040. printf "%s\n" "$kmsdrm_shared" >&6; }
  22041. if test x$kmsdrm_shared = xyes; then
  22042. echo "-- dynamic libdrm -> $drm_lib"
  22043. echo "-- dynamic libgbm -> $gbm_lib"
  22044. fi
  22045. have_video=yes
  22046. fi
  22047. fi
  22048. }
  22049. CheckDummyVideo()
  22050. {
  22051. # Check whether --enable-video-dummy was given.
  22052. if test ${enable_video_dummy+y}
  22053. then :
  22054. enableval=$enable_video_dummy;
  22055. else $as_nop
  22056. enable_video_dummy=yes
  22057. fi
  22058. if test x$enable_video_dummy = xyes; then
  22059. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22060. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22061. have_video=yes
  22062. SUMMARY_video="${SUMMARY_video} dummy"
  22063. fi
  22064. }
  22065. CheckOffscreenVideo()
  22066. {
  22067. # Check whether --enable-video-offscreen was given.
  22068. if test ${enable_video_offscreen+y}
  22069. then :
  22070. enableval=$enable_video_offscreen;
  22071. else $as_nop
  22072. enable_video_offscreen=no
  22073. fi
  22074. if test x$enable_video_offscreen = xyes; then
  22075. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22076. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22077. have_video=yes
  22078. SUMMARY_video="${SUMMARY_video} offscreen"
  22079. fi
  22080. }
  22081. CheckQNXVideo()
  22082. {
  22083. if test x$enable_video = xyes; then
  22084. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22085. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22086. have_video=yes
  22087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22088. SUMMARY_video="${SUMMARY_video} qnx"
  22089. fi
  22090. }
  22091. CheckQNXAudio()
  22092. {
  22093. if test x$enable_audio = xyes; then
  22094. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22095. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22096. have_audio=yes
  22097. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22098. SUMMARY_audio="${SUMMARY_audio} qsa"
  22099. fi
  22100. }
  22101. # Check whether --enable-video-opengl was given.
  22102. if test ${enable_video_opengl+y}
  22103. then :
  22104. enableval=$enable_video_opengl;
  22105. else $as_nop
  22106. enable_video_opengl=yes
  22107. fi
  22108. CheckGLX()
  22109. {
  22110. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22112. printf %s "checking for GLX support... " >&6; }
  22113. video_opengl_glx=no
  22114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22115. /* end confdefs.h. */
  22116. #include <GL/glx.h>
  22117. int
  22118. main (void)
  22119. {
  22120. ;
  22121. return 0;
  22122. }
  22123. _ACEOF
  22124. if ac_fn_c_try_compile "$LINENO"
  22125. then :
  22126. video_opengl_glx=yes
  22127. fi
  22128. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22130. printf "%s\n" "$video_opengl_glx" >&6; }
  22131. if test x$video_opengl_glx = xyes; then
  22132. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22133. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22134. fi
  22135. fi
  22136. }
  22137. # Check whether --enable-video-opengles was given.
  22138. if test ${enable_video_opengles+y}
  22139. then :
  22140. enableval=$enable_video_opengles;
  22141. else $as_nop
  22142. enable_video_opengles=yes
  22143. fi
  22144. # Check whether --enable-video-opengles1 was given.
  22145. if test ${enable_video_opengles1+y}
  22146. then :
  22147. enableval=$enable_video_opengles1;
  22148. else $as_nop
  22149. enable_video_opengles1=yes
  22150. fi
  22151. # Check whether --enable-video-opengles2 was given.
  22152. if test ${enable_video_opengles2+y}
  22153. then :
  22154. enableval=$enable_video_opengles2;
  22155. else $as_nop
  22156. enable_video_opengles2=yes
  22157. fi
  22158. CheckEGL()
  22159. {
  22160. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22162. printf %s "checking for EGL support... " >&6; }
  22163. video_opengl_egl=no
  22164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22165. /* end confdefs.h. */
  22166. #define LINUX
  22167. #define EGL_API_FB
  22168. #define MESA_EGL_NO_X11_HEADERS
  22169. #define EGL_NO_X11
  22170. #include <EGL/egl.h>
  22171. #include <EGL/eglext.h>
  22172. int
  22173. main (void)
  22174. {
  22175. ;
  22176. return 0;
  22177. }
  22178. _ACEOF
  22179. if ac_fn_c_try_compile "$LINENO"
  22180. then :
  22181. video_opengl_egl=yes
  22182. fi
  22183. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22185. printf "%s\n" "$video_opengl_egl" >&6; }
  22186. if test x$video_opengl_egl = xyes; then
  22187. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22188. fi
  22189. fi
  22190. }
  22191. CheckOpenGL()
  22192. {
  22193. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22195. printf %s "checking for OpenGL headers... " >&6; }
  22196. video_opengl=no
  22197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22198. /* end confdefs.h. */
  22199. #include <GL/gl.h>
  22200. #include <GL/glext.h>
  22201. int
  22202. main (void)
  22203. {
  22204. ;
  22205. return 0;
  22206. }
  22207. _ACEOF
  22208. if ac_fn_c_try_compile "$LINENO"
  22209. then :
  22210. video_opengl=yes
  22211. fi
  22212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22214. printf "%s\n" "$video_opengl" >&6; }
  22215. if test x$video_opengl = xyes; then
  22216. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22217. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22218. SUMMARY_video="${SUMMARY_video} opengl"
  22219. fi
  22220. fi
  22221. }
  22222. CheckOpenGLES()
  22223. {
  22224. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22225. if test x$enable_video_opengles1 = xyes; then
  22226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22227. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22228. video_opengles_v1=no
  22229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22230. /* end confdefs.h. */
  22231. #include <GLES/gl.h>
  22232. #include <GLES/glext.h>
  22233. int
  22234. main (void)
  22235. {
  22236. ;
  22237. return 0;
  22238. }
  22239. _ACEOF
  22240. if ac_fn_c_try_compile "$LINENO"
  22241. then :
  22242. video_opengles_v1=yes
  22243. fi
  22244. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22246. printf "%s\n" "$video_opengles_v1" >&6; }
  22247. if test x$video_opengles_v1 = xyes; then
  22248. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22249. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22250. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22251. fi
  22252. fi
  22253. if test x$enable_video_opengles2 = xyes; then
  22254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22255. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22256. video_opengles_v2=no
  22257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22258. /* end confdefs.h. */
  22259. #include <GLES2/gl2.h>
  22260. #include <GLES2/gl2ext.h>
  22261. int
  22262. main (void)
  22263. {
  22264. ;
  22265. return 0;
  22266. }
  22267. _ACEOF
  22268. if ac_fn_c_try_compile "$LINENO"
  22269. then :
  22270. video_opengles_v2=yes
  22271. fi
  22272. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22274. printf "%s\n" "$video_opengles_v2" >&6; }
  22275. if test x$video_opengles_v2 = xyes; then
  22276. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22277. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22278. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22279. fi
  22280. fi
  22281. fi
  22282. }
  22283. CheckWINDOWSGL()
  22284. {
  22285. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22286. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22287. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22288. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22289. SUMMARY_video="${SUMMARY_video} opengl"
  22290. fi
  22291. }
  22292. CheckWINDOWSGLES()
  22293. {
  22294. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22296. printf %s "checking for EGL support... " >&6; }
  22297. video_opengl_egl=no
  22298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22299. /* end confdefs.h. */
  22300. #include <EGL/egl.h>
  22301. int
  22302. main (void)
  22303. {
  22304. ;
  22305. return 0;
  22306. }
  22307. _ACEOF
  22308. if ac_fn_c_try_compile "$LINENO"
  22309. then :
  22310. video_opengl_egl=yes
  22311. fi
  22312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22314. printf "%s\n" "$video_opengl_egl" >&6; }
  22315. if test x$video_opengl_egl = xyes; then
  22316. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22317. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22318. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22319. fi
  22320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22321. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22322. video_opengles_v2=no
  22323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22324. /* end confdefs.h. */
  22325. #include <GLES2/gl2.h>
  22326. #include <GLES2/gl2ext.h>
  22327. int
  22328. main (void)
  22329. {
  22330. ;
  22331. return 0;
  22332. }
  22333. _ACEOF
  22334. if ac_fn_c_try_compile "$LINENO"
  22335. then :
  22336. video_opengles_v2=yes
  22337. fi
  22338. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22340. printf "%s\n" "$video_opengles_v2" >&6; }
  22341. if test x$video_opengles_v2 = xyes; then
  22342. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22343. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22344. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22345. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22346. fi
  22347. fi
  22348. }
  22349. CheckHaikuGL()
  22350. {
  22351. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22352. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22353. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22354. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22356. SUMMARY_video="${SUMMARY_video} opengl"
  22357. fi
  22358. }
  22359. CheckMacGL()
  22360. {
  22361. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22362. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22363. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22364. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22365. SUMMARY_video="${SUMMARY_video} opengl"
  22366. fi
  22367. }
  22368. CheckMacGLES()
  22369. {
  22370. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22371. video_opengl_egl=yes
  22372. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22373. video_opengles_v2=yes
  22374. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22375. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22376. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22377. fi
  22378. }
  22379. CheckEmscriptenGLES()
  22380. {
  22381. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22383. printf %s "checking for EGL support... " >&6; }
  22384. video_opengl_egl=no
  22385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22386. /* end confdefs.h. */
  22387. #include <EGL/egl.h>
  22388. int
  22389. main (void)
  22390. {
  22391. ;
  22392. return 0;
  22393. }
  22394. _ACEOF
  22395. if ac_fn_c_try_compile "$LINENO"
  22396. then :
  22397. video_opengl_egl=yes
  22398. fi
  22399. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22401. printf "%s\n" "$video_opengl_egl" >&6; }
  22402. if test x$video_opengl_egl = xyes; then
  22403. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22404. fi
  22405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22406. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22407. video_opengles_v2=no
  22408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22409. /* end confdefs.h. */
  22410. #include <GLES2/gl2.h>
  22411. #include <GLES2/gl2ext.h>
  22412. int
  22413. main (void)
  22414. {
  22415. ;
  22416. return 0;
  22417. }
  22418. _ACEOF
  22419. if ac_fn_c_try_compile "$LINENO"
  22420. then :
  22421. video_opengles_v2=yes
  22422. fi
  22423. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22425. printf "%s\n" "$video_opengles_v2" >&6; }
  22426. if test x$video_opengles_v2 = xyes; then
  22427. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22428. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22429. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22430. fi
  22431. fi
  22432. }
  22433. # Check whether --enable-video-vulkan was given.
  22434. if test ${enable_video_vulkan+y}
  22435. then :
  22436. enableval=$enable_video_vulkan;
  22437. else $as_nop
  22438. enable_video_vulkan=yes
  22439. fi
  22440. CheckVulkan()
  22441. {
  22442. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22443. case "$host" in
  22444. *-*-android*)
  22445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22446. /* end confdefs.h. */
  22447. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22448. #error Vulkan doesn't work on this configuration
  22449. #endif
  22450. int
  22451. main (void)
  22452. {
  22453. ;
  22454. return 0;
  22455. }
  22456. _ACEOF
  22457. if ac_fn_c_try_compile "$LINENO"
  22458. then :
  22459. else $as_nop
  22460. enable_video_vulkan=no
  22461. fi
  22462. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22463. ;;
  22464. *-*-darwin*)
  22465. save_CFLAGS="$CFLAGS"
  22466. CFLAGS="$CFLAGS -x objective-c"
  22467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22468. /* end confdefs.h. */
  22469. #include <Cocoa/Cocoa.h>
  22470. #include <Metal/Metal.h>
  22471. #include <QuartzCore/CAMetalLayer.h>
  22472. #if TARGET_CPU_X86
  22473. #error Vulkan doesn't work on this configuration
  22474. #endif
  22475. int
  22476. main (void)
  22477. {
  22478. ;
  22479. return 0;
  22480. }
  22481. _ACEOF
  22482. if ac_fn_c_try_compile "$LINENO"
  22483. then :
  22484. else $as_nop
  22485. enable_video_vulkan=no
  22486. fi
  22487. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22488. CFLAGS="$save_CFLAGS"
  22489. ;;
  22490. *)
  22491. ;;
  22492. esac
  22493. if test x$enable_video_vulkan = xno; then
  22494. # For reasons I am totally unable to see, I get an undefined macro error if
  22495. # I put this in the AC_TRY_COMPILE.
  22496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22497. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22498. fi
  22499. fi
  22500. if test x$have_loadso != xyes; then
  22501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22502. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22503. enable_video_vulkan=no
  22504. fi
  22505. if test x$enable_video_vulkan = xyes; then
  22506. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22507. SUMMARY_video="${SUMMARY_video} vulkan"
  22508. fi
  22509. }
  22510. CheckInputEvents()
  22511. {
  22512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22513. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22514. use_input_events=no
  22515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22516. /* end confdefs.h. */
  22517. #include <linux/input.h>
  22518. int
  22519. main (void)
  22520. {
  22521. #ifndef EVIOCGNAME
  22522. #error EVIOCGNAME() ioctl not available
  22523. #endif
  22524. ;
  22525. return 0;
  22526. }
  22527. _ACEOF
  22528. if ac_fn_c_try_compile "$LINENO"
  22529. then :
  22530. use_input_events=yes
  22531. fi
  22532. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22534. printf "%s\n" "$use_input_events" >&6; }
  22535. if test x$use_input_events = xyes; then
  22536. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22537. SUMMARY_input="${SUMMARY_input} linuxev"
  22538. fi
  22539. }
  22540. CheckInputKD()
  22541. {
  22542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22543. printf %s "checking for Linux kd.h... " >&6; }
  22544. use_input_kd=no
  22545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22546. /* end confdefs.h. */
  22547. #include <linux/kd.h>
  22548. #include <linux/keyboard.h>
  22549. int
  22550. main (void)
  22551. {
  22552. struct kbentry kbe;
  22553. kbe.kb_table = KG_CTRL;
  22554. ioctl(0, KDGKBENT, &kbe);
  22555. ;
  22556. return 0;
  22557. }
  22558. _ACEOF
  22559. if ac_fn_c_try_compile "$LINENO"
  22560. then :
  22561. use_input_kd=yes
  22562. fi
  22563. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22565. printf "%s\n" "$use_input_kd" >&6; }
  22566. if test x$use_input_kd = xyes; then
  22567. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22568. SUMMARY_input="${SUMMARY_input} linuxkd"
  22569. fi
  22570. }
  22571. CheckInputKBIO()
  22572. {
  22573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22574. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22575. use_input_kbio=no
  22576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22577. /* end confdefs.h. */
  22578. #include <sys/kbio.h>
  22579. #include <sys/ioctl.h>
  22580. int
  22581. main (void)
  22582. {
  22583. accentmap_t accTable;
  22584. ioctl(0, KDENABIO, 1);
  22585. ;
  22586. return 0;
  22587. }
  22588. _ACEOF
  22589. if ac_fn_c_try_compile "$LINENO"
  22590. then :
  22591. use_input_kbio=yes
  22592. fi
  22593. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22595. printf "%s\n" "$use_input_kbio" >&6; }
  22596. if test x$use_input_kbio = xyes; then
  22597. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22598. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22599. fi
  22600. }
  22601. CheckInputWSCONS()
  22602. {
  22603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22604. printf %s "checking for OpenBSD wscons... " >&6; }
  22605. use_input_wscons=no
  22606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22607. /* end confdefs.h. */
  22608. #include <sys/time.h>
  22609. #include <dev/wscons/wsconsio.h>
  22610. #include <dev/wscons/wsksymdef.h>
  22611. #include <dev/wscons/wsksymvar.h>
  22612. #include <sys/ioctl.h>
  22613. int
  22614. main (void)
  22615. {
  22616. struct wskbd_map_data data;
  22617. ioctl(0, WSKBDIO_GETMAP, &data);
  22618. ;
  22619. return 0;
  22620. }
  22621. _ACEOF
  22622. if ac_fn_c_try_compile "$LINENO"
  22623. then :
  22624. use_input_wscons=yes
  22625. fi
  22626. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22628. printf "%s\n" "$use_input_wscons" >&6; }
  22629. if test x$use_input_wscons = xyes; then
  22630. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22631. SUMMARY_input="${SUMMARY_input} wscons"
  22632. fi
  22633. }
  22634. CheckLibUDev()
  22635. {
  22636. # Check whether --enable-libudev was given.
  22637. if test ${enable_libudev+y}
  22638. then :
  22639. enableval=$enable_libudev;
  22640. else $as_nop
  22641. enable_libudev=yes
  22642. fi
  22643. if test x$enable_libudev = xyes; then
  22644. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22645. if test "x$ac_cv_header_libudev_h" = xyes
  22646. then :
  22647. have_libudev_h_hdr=yes
  22648. else $as_nop
  22649. have_libudev_h_hdr=no
  22650. fi
  22651. if test x$have_libudev_h_hdr = xyes; then
  22652. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22653. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22654. if test x$udev_lib != x; then
  22655. echo "-- dynamic udev -> $udev_lib"
  22656. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22657. fi
  22658. fi
  22659. fi
  22660. }
  22661. CheckDBus()
  22662. {
  22663. # Check whether --enable-dbus was given.
  22664. if test ${enable_dbus+y}
  22665. then :
  22666. enableval=$enable_dbus;
  22667. else $as_nop
  22668. enable_dbus=yes
  22669. fi
  22670. if test x$enable_dbus = xyes; then
  22671. pkg_failed=no
  22672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22673. printf %s "checking for dbus-1... " >&6; }
  22674. if test -n "$DBUS_CFLAGS"; then
  22675. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22676. elif test -n "$PKG_CONFIG"; then
  22677. if test -n "$PKG_CONFIG" && \
  22678. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22679. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22680. ac_status=$?
  22681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22682. test $ac_status = 0; }; then
  22683. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22684. test "x$?" != "x0" && pkg_failed=yes
  22685. else
  22686. pkg_failed=yes
  22687. fi
  22688. else
  22689. pkg_failed=untried
  22690. fi
  22691. if test -n "$DBUS_LIBS"; then
  22692. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22693. elif test -n "$PKG_CONFIG"; then
  22694. if test -n "$PKG_CONFIG" && \
  22695. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22696. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22697. ac_status=$?
  22698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22699. test $ac_status = 0; }; then
  22700. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22701. test "x$?" != "x0" && pkg_failed=yes
  22702. else
  22703. pkg_failed=yes
  22704. fi
  22705. else
  22706. pkg_failed=untried
  22707. fi
  22708. if test $pkg_failed = yes; then
  22709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22710. printf "%s\n" "no" >&6; }
  22711. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22712. _pkg_short_errors_supported=yes
  22713. else
  22714. _pkg_short_errors_supported=no
  22715. fi
  22716. if test $_pkg_short_errors_supported = yes; then
  22717. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22718. else
  22719. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22720. fi
  22721. # Put the nasty error message in config.log where it belongs
  22722. echo "$DBUS_PKG_ERRORS" >&5
  22723. have_dbus=no
  22724. elif test $pkg_failed = untried; then
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22726. printf "%s\n" "no" >&6; }
  22727. have_dbus=no
  22728. else
  22729. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22730. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22732. printf "%s\n" "yes" >&6; }
  22733. have_dbus=yes
  22734. fi
  22735. save_CPPFLAGS="$CPPFLAGS"
  22736. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22737. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22738. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22739. then :
  22740. have_dbus_dbus_h_hdr=yes
  22741. else $as_nop
  22742. have_dbus_dbus_h_hdr=no
  22743. fi
  22744. CPPFLAGS="$save_CPPFLAGS"
  22745. if test x$have_dbus_dbus_h_hdr = xyes; then
  22746. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22747. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22748. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22749. fi
  22750. fi
  22751. }
  22752. CheckIME()
  22753. {
  22754. # Check whether --enable-ime was given.
  22755. if test ${enable_ime+y}
  22756. then :
  22757. enableval=$enable_ime;
  22758. else $as_nop
  22759. enable_ime=yes
  22760. fi
  22761. if test x$enable_ime = xyes; then
  22762. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22763. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22764. fi
  22765. }
  22766. CheckInotify()
  22767. {
  22768. save_LIBS="$LIBS"
  22769. case "$host" in
  22770. *-*-freebsd*) LIBS="$LIBS -linotify"
  22771. ;;
  22772. esac
  22773. for ac_header in sys/inotify.h
  22774. do :
  22775. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22776. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22777. then :
  22778. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22779. have_inotify_inotify_h_hdr=yes
  22780. fi
  22781. done
  22782. for ac_func in inotify_init
  22783. do :
  22784. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22785. if test "x$ac_cv_func_inotify_init" = xyes
  22786. then :
  22787. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22788. have_inotify=yes
  22789. fi
  22790. done
  22791. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22792. if test "x$ac_cv_func_inotify_init1" = xyes
  22793. then :
  22794. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22795. fi
  22796. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22797. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22798. case "$host" in
  22799. *-*-freebsd*)
  22800. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22801. ;;
  22802. esac
  22803. fi
  22804. LIBS="$save_LIBS"
  22805. }
  22806. CheckIBus()
  22807. {
  22808. # Check whether --enable-ibus was given.
  22809. if test ${enable_ibus+y}
  22810. then :
  22811. enableval=$enable_ibus;
  22812. else $as_nop
  22813. enable_ibus=yes
  22814. fi
  22815. if test x$enable_ibus = xyes; then
  22816. pkg_failed=no
  22817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22818. printf %s "checking for ibus-1.0... " >&6; }
  22819. if test -n "$IBUS_CFLAGS"; then
  22820. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22821. elif test -n "$PKG_CONFIG"; then
  22822. if test -n "$PKG_CONFIG" && \
  22823. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22824. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22825. ac_status=$?
  22826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22827. test $ac_status = 0; }; then
  22828. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22829. test "x$?" != "x0" && pkg_failed=yes
  22830. else
  22831. pkg_failed=yes
  22832. fi
  22833. else
  22834. pkg_failed=untried
  22835. fi
  22836. if test -n "$IBUS_LIBS"; then
  22837. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22838. elif test -n "$PKG_CONFIG"; then
  22839. if test -n "$PKG_CONFIG" && \
  22840. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22841. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22842. ac_status=$?
  22843. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22844. test $ac_status = 0; }; then
  22845. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22846. test "x$?" != "x0" && pkg_failed=yes
  22847. else
  22848. pkg_failed=yes
  22849. fi
  22850. else
  22851. pkg_failed=untried
  22852. fi
  22853. if test $pkg_failed = yes; then
  22854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22855. printf "%s\n" "no" >&6; }
  22856. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22857. _pkg_short_errors_supported=yes
  22858. else
  22859. _pkg_short_errors_supported=no
  22860. fi
  22861. if test $_pkg_short_errors_supported = yes; then
  22862. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22863. else
  22864. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22865. fi
  22866. # Put the nasty error message in config.log where it belongs
  22867. echo "$IBUS_PKG_ERRORS" >&5
  22868. have_ibus=no
  22869. elif test $pkg_failed = untried; then
  22870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22871. printf "%s\n" "no" >&6; }
  22872. have_ibus=no
  22873. else
  22874. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22875. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22877. printf "%s\n" "yes" >&6; }
  22878. have_ibus=yes
  22879. fi
  22880. save_CPPFLAGS="$CPPFLAGS"
  22881. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22882. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22883. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22884. then :
  22885. have_ibus_ibus_h_hdr=yes
  22886. else $as_nop
  22887. have_ibus_ibus_h_hdr=no
  22888. fi
  22889. CPPFLAGS="$save_CPPFLAGS"
  22890. if test x$have_ibus_ibus_h_hdr = xyes; then
  22891. if test x$enable_ime != xyes; then
  22892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22893. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22894. have_ibus_ibus_h_hdr=no
  22895. elif test x$enable_dbus != xyes; then
  22896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22897. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22898. have_ibus_ibus_h_hdr=no
  22899. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22901. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22902. have_ibus_ibus_h_hdr=no
  22903. else
  22904. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22905. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22906. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22907. fi
  22908. fi
  22909. fi
  22910. }
  22911. CheckFcitx()
  22912. {
  22913. # Check whether --enable-fcitx was given.
  22914. if test ${enable_fcitx+y}
  22915. then :
  22916. enableval=$enable_fcitx;
  22917. else $as_nop
  22918. enable_fcitx=yes
  22919. fi
  22920. if test x$enable_fcitx = xyes; then
  22921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22922. printf %s "checking for fcitx support... " >&6; }
  22923. have_fcitx=no
  22924. if test x$enable_ime != xyes; then
  22925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22926. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22927. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22929. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22930. else
  22931. have_fcitx=yes
  22932. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22933. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22934. fi
  22935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22936. printf "%s\n" "$have_fcitx" >&6; }
  22937. fi
  22938. }
  22939. CheckJoystickMFI()
  22940. {
  22941. # Check whether --enable-joystick-mfi was given.
  22942. if test ${enable_joystick_mfi+y}
  22943. then :
  22944. enableval=$enable_joystick_mfi;
  22945. else $as_nop
  22946. enable_joystick_mfi=yes
  22947. fi
  22948. if test x$enable_joystick_mfi = xyes; then
  22949. save_CFLAGS="$CFLAGS"
  22950. save_LDFLAGS="$LDFLAGS"
  22951. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22952. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22954. printf %s "checking for GameController framework... " >&6; }
  22955. enable_joystick_mfi=no
  22956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22957. /* end confdefs.h. */
  22958. #include <AvailabilityMacros.h>
  22959. #include <TargetConditionals.h>
  22960. #import <GameController/GameController.h>
  22961. int
  22962. main (void)
  22963. {
  22964. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22965. #error GameController framework doesn't work on this configuration
  22966. #endif
  22967. #if TARGET_CPU_X86
  22968. #error GameController framework doesn't work on this configuration
  22969. #endif
  22970. ;
  22971. return 0;
  22972. }
  22973. _ACEOF
  22974. if ac_fn_c_try_link "$LINENO"
  22975. then :
  22976. enable_joystick_mfi=yes
  22977. fi
  22978. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22979. conftest$ac_exeext conftest.$ac_ext
  22980. CFLAGS="$save_CFLAGS"
  22981. LDFLAGS="$save_LDFLAGS"
  22982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22983. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22984. if test x$enable_joystick_mfi = xyes; then
  22985. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22986. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22987. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22988. fi
  22989. fi
  22990. }
  22991. CheckPTHREAD()
  22992. {
  22993. case "$host" in
  22994. *-*-emscripten*)
  22995. enable_pthreads_default=no
  22996. ;;
  22997. *)
  22998. enable_pthreads_default=yes
  22999. ;;
  23000. esac
  23001. # Check whether --enable-pthreads was given.
  23002. if test ${enable_pthreads+y}
  23003. then :
  23004. enableval=$enable_pthreads;
  23005. else $as_nop
  23006. enable_pthreads=maybe
  23007. fi
  23008. # Check whether --enable-pthread-sem was given.
  23009. if test ${enable_pthread_sem+y}
  23010. then :
  23011. enableval=$enable_pthread_sem;
  23012. else $as_nop
  23013. enable_pthread_sem=maybe
  23014. fi
  23015. if test x$enable_pthreads = xmaybe; then
  23016. enable_pthreads=$enable_pthreads_default
  23017. fi
  23018. if test x$enable_pthread_sem = xmaybe; then
  23019. enable_pthread_sem=$enable_pthreads
  23020. fi
  23021. case "$host" in
  23022. *-*-android*)
  23023. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23024. pthread_lib=""
  23025. ;;
  23026. *-*-linux*|*-*-uclinux*)
  23027. pthread_cflags="-D_REENTRANT"
  23028. pthread_lib="-lpthread"
  23029. ;;
  23030. *-*-bsdi*)
  23031. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23032. pthread_lib=""
  23033. ;;
  23034. *-*-darwin*)
  23035. pthread_cflags="-D_THREAD_SAFE"
  23036. # causes Carbon.p complaints?
  23037. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23038. ;;
  23039. *-*-freebsd*|*-*-dragonfly*)
  23040. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23041. pthread_lib="-pthread"
  23042. ;;
  23043. *-*-netbsd*)
  23044. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23045. pthread_lib="-lpthread"
  23046. ;;
  23047. *-*-openbsd*)
  23048. pthread_cflags="-D_REENTRANT"
  23049. pthread_lib="-pthread"
  23050. ;;
  23051. *-*-solaris2.9)
  23052. # From Solaris 9+, posix4's preferred name is rt.
  23053. pthread_cflags="-D_REENTRANT"
  23054. pthread_lib="-lpthread -lrt"
  23055. ;;
  23056. *-*-solaris2.10)
  23057. # Solaris 10+ merged pthread into libc.
  23058. pthread_cflags="-D_REENTRANT"
  23059. pthread_lib="-lrt"
  23060. ;;
  23061. *-*-solaris*)
  23062. # Solaris 11+ merged rt into libc.
  23063. pthread_cflags="-D_REENTRANT"
  23064. pthread_lib=""
  23065. ;;
  23066. *-*-sysv5*)
  23067. pthread_cflags="-D_REENTRANT -Kthread"
  23068. pthread_lib=""
  23069. ;;
  23070. *-*-aix*)
  23071. pthread_cflags="-D_REENTRANT -mthreads"
  23072. pthread_lib="-lpthread"
  23073. ;;
  23074. *-*-hpux11*)
  23075. pthread_cflags="-D_REENTRANT"
  23076. pthread_lib="-L/usr/lib -lpthread"
  23077. ;;
  23078. *-*-haiku*)
  23079. pthread_cflags="-D_REENTRANT"
  23080. pthread_lib=""
  23081. ;;
  23082. *-*-nto*)
  23083. pthread_cflags="-D_REENTRANT"
  23084. pthread_lib=""
  23085. ;;
  23086. *-*-emscripten*)
  23087. pthread_cflags="-D_REENTRANT -pthread"
  23088. pthread_lib="-pthread"
  23089. ;;
  23090. *)
  23091. pthread_cflags="-D_REENTRANT"
  23092. pthread_lib="-lpthread"
  23093. ;;
  23094. esac
  23095. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23096. # Save the original compiler flags and libraries
  23097. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23098. # Add the pthread compiler flags and libraries
  23099. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23100. # Check to see if we have pthread support on this system
  23101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23102. printf %s "checking for pthreads... " >&6; }
  23103. use_pthreads=no
  23104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23105. /* end confdefs.h. */
  23106. #include <pthread.h>
  23107. int
  23108. main (void)
  23109. {
  23110. pthread_attr_t type;
  23111. pthread_attr_init(&type);
  23112. ;
  23113. return 0;
  23114. }
  23115. _ACEOF
  23116. if ac_fn_c_try_link "$LINENO"
  23117. then :
  23118. use_pthreads=yes
  23119. fi
  23120. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23121. conftest$ac_exeext conftest.$ac_ext
  23122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23123. printf "%s\n" "$use_pthreads" >&6; }
  23124. # Restore the compiler flags and libraries
  23125. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23126. # Do futher testing if we have pthread support...
  23127. if test x$use_pthreads = xyes; then
  23128. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23129. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23131. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23132. # Save the original compiler flags and libraries
  23133. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23134. # Add the pthread compiler flags and libraries
  23135. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23136. # Check to see if recursive mutexes are available
  23137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23138. printf %s "checking for recursive mutexes... " >&6; }
  23139. has_recursive_mutexes=no
  23140. if test x$has_recursive_mutexes = xno; then
  23141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23142. /* end confdefs.h. */
  23143. #define _GNU_SOURCE 1
  23144. #include <pthread.h>
  23145. int
  23146. main (void)
  23147. {
  23148. pthread_mutexattr_t attr;
  23149. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23150. ;
  23151. return 0;
  23152. }
  23153. _ACEOF
  23154. if ac_fn_c_try_link "$LINENO"
  23155. then :
  23156. has_recursive_mutexes=yes
  23157. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23158. fi
  23159. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23160. conftest$ac_exeext conftest.$ac_ext
  23161. fi
  23162. if test x$has_recursive_mutexes = xno; then
  23163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23164. /* end confdefs.h. */
  23165. #define _GNU_SOURCE 1
  23166. #include <pthread.h>
  23167. int
  23168. main (void)
  23169. {
  23170. pthread_mutexattr_t attr;
  23171. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23172. ;
  23173. return 0;
  23174. }
  23175. _ACEOF
  23176. if ac_fn_c_try_link "$LINENO"
  23177. then :
  23178. has_recursive_mutexes=yes
  23179. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23180. fi
  23181. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23182. conftest$ac_exeext conftest.$ac_ext
  23183. fi
  23184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23185. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23186. # Check to see if pthread semaphore support is missing
  23187. if test x$enable_pthread_sem = xyes; then
  23188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23189. printf %s "checking for pthread semaphores... " >&6; }
  23190. have_pthread_sem=no
  23191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23192. /* end confdefs.h. */
  23193. #include <pthread.h>
  23194. #include <semaphore.h>
  23195. int
  23196. main (void)
  23197. {
  23198. ;
  23199. return 0;
  23200. }
  23201. _ACEOF
  23202. if ac_fn_c_try_compile "$LINENO"
  23203. then :
  23204. have_pthread_sem=yes
  23205. fi
  23206. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23208. printf "%s\n" "$have_pthread_sem" >&6; }
  23209. fi
  23210. if test x$have_pthread_sem = xyes; then
  23211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23212. printf %s "checking for sem_timedwait... " >&6; }
  23213. have_sem_timedwait=no
  23214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23215. /* end confdefs.h. */
  23216. #include <pthread.h>
  23217. #include <semaphore.h>
  23218. int
  23219. main (void)
  23220. {
  23221. sem_timedwait(NULL, NULL);
  23222. ;
  23223. return 0;
  23224. }
  23225. _ACEOF
  23226. if ac_fn_c_try_link "$LINENO"
  23227. then :
  23228. have_sem_timedwait=yes
  23229. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23230. fi
  23231. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23232. conftest$ac_exeext conftest.$ac_ext
  23233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23234. printf "%s\n" "$have_sem_timedwait" >&6; }
  23235. fi
  23236. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23237. "
  23238. if test "x$ac_cv_header_pthread_np_h" = xyes
  23239. then :
  23240. have_pthread_np_h=yes
  23241. else $as_nop
  23242. have_pthread_np_h=no
  23243. fi
  23244. if test x$have_pthread_np_h = xyes; then
  23245. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23246. fi
  23247. # Check to see if pthread naming is available
  23248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23249. printf %s "checking for pthread_setname_np... " >&6; }
  23250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23251. /* end confdefs.h. */
  23252. /* Override any GCC internal prototype to avoid an error.
  23253. Use char because int might match the return type of a GCC
  23254. builtin and then its argument prototype would still apply. */
  23255. char pthread_setname_np ();
  23256. int
  23257. main (void)
  23258. {
  23259. return pthread_setname_np ();
  23260. ;
  23261. return 0;
  23262. }
  23263. _ACEOF
  23264. if ac_fn_c_try_link "$LINENO"
  23265. then :
  23266. has_pthread_setname_np=yes
  23267. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23268. else $as_nop
  23269. has_pthread_setname_np=no
  23270. fi
  23271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23272. conftest$ac_exeext conftest.$ac_ext
  23273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23274. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23276. printf %s "checking for pthread_set_name_np... " >&6; }
  23277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23278. /* end confdefs.h. */
  23279. /* Override any GCC internal prototype to avoid an error.
  23280. Use char because int might match the return type of a GCC
  23281. builtin and then its argument prototype would still apply. */
  23282. char pthread_set_name_np ();
  23283. int
  23284. main (void)
  23285. {
  23286. return pthread_set_name_np ();
  23287. ;
  23288. return 0;
  23289. }
  23290. _ACEOF
  23291. if ac_fn_c_try_link "$LINENO"
  23292. then :
  23293. has_pthread_set_name_np=yes
  23294. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23295. else $as_nop
  23296. has_pthread_set_name_np=no
  23297. fi
  23298. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23299. conftest$ac_exeext conftest.$ac_ext
  23300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23301. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23302. # Restore the compiler flags and libraries
  23303. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23304. # Basic thread creation functions
  23305. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23306. # Semaphores
  23307. # We can fake these with mutexes and condition variables if necessary
  23308. if test x$have_pthread_sem = xyes; then
  23309. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23310. else
  23311. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23312. fi
  23313. # Mutexes
  23314. # We can fake these with semaphores if necessary
  23315. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23316. # Condition variables
  23317. # We can fake these with semaphores and mutexes if necessary
  23318. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23319. # Thread local storage
  23320. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23321. have_threads=yes
  23322. fi
  23323. fi
  23324. }
  23325. CheckWINDOWS()
  23326. {
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23328. printf %s "checking Windows compiler... " >&6; }
  23329. have_win32_gcc=no
  23330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23331. /* end confdefs.h. */
  23332. #include <windows.h>
  23333. int
  23334. main (void)
  23335. {
  23336. ;
  23337. return 0;
  23338. }
  23339. _ACEOF
  23340. if ac_fn_c_try_compile "$LINENO"
  23341. then :
  23342. have_win32_gcc=yes
  23343. fi
  23344. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23346. printf "%s\n" "$have_win32_gcc" >&6; }
  23347. if test x$have_win32_gcc != xyes; then
  23348. as_fn_error $? "
  23349. *** Your compiler ($CC) does not produce Windows executables!
  23350. " "$LINENO" 5
  23351. fi
  23352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23353. printf %s "checking Windows CE... " >&6; }
  23354. have_wince=no
  23355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23356. /* end confdefs.h. */
  23357. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23358. #error This is not Windows CE
  23359. #endif
  23360. int
  23361. main (void)
  23362. {
  23363. ;
  23364. return 0;
  23365. }
  23366. _ACEOF
  23367. if ac_fn_c_try_compile "$LINENO"
  23368. then :
  23369. have_wince=yes
  23370. as_fn_error $? "
  23371. *** Sorry, Windows CE is no longer supported.
  23372. " "$LINENO" 5
  23373. fi
  23374. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23376. printf "%s\n" "$have_wince" >&6; }
  23377. # This fixes Windows stack alignment with newer GCC
  23378. CheckStackBoundary
  23379. # headers needed elsewhere
  23380. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23381. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23382. then :
  23383. have_tpcshrd_h=yes
  23384. fi
  23385. if test x$have_tpcshrd_h = xyes; then
  23386. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23387. fi
  23388. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23389. if test "x$ac_cv_header_roapi_h" = xyes
  23390. then :
  23391. have_roapi_h=yes
  23392. fi
  23393. if test x$have_roapi_h = xyes; then
  23394. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23395. fi
  23396. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23397. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23398. then :
  23399. have_shellscalingapi_h=yes
  23400. fi
  23401. if test x$shellscalingapi_h = xyes; then
  23402. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23403. fi
  23404. }
  23405. CheckOS2()
  23406. {
  23407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23408. printf %s "checking OS/2 compiler... " >&6; }
  23409. have_os2_gcc=no
  23410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23411. /* end confdefs.h. */
  23412. #include <os2.h>
  23413. int
  23414. main (void)
  23415. {
  23416. ;
  23417. return 0;
  23418. }
  23419. _ACEOF
  23420. if ac_fn_c_try_compile "$LINENO"
  23421. then :
  23422. have_os2_gcc=yes
  23423. fi
  23424. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23426. printf "%s\n" "$have_os2_gcc" >&6; }
  23427. if test x$have_os2_gcc != xyes; then
  23428. as_fn_error $? "
  23429. *** Your compiler ($CC) does not produce OS/2 executables!
  23430. " "$LINENO" 5
  23431. fi
  23432. }
  23433. CheckDIRECTX()
  23434. {
  23435. # Check whether --enable-directx was given.
  23436. if test ${enable_directx+y}
  23437. then :
  23438. enableval=$enable_directx;
  23439. else $as_nop
  23440. enable_directx=yes
  23441. fi
  23442. if test x$enable_directx = xyes; then
  23443. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23444. if test "x$ac_cv_header_d3d9_h" = xyes
  23445. then :
  23446. have_d3d=yes
  23447. fi
  23448. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23449. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23450. then :
  23451. have_d3d11=yes
  23452. fi
  23453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23454. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23456. /* end confdefs.h. */
  23457. #include <winsdkver.h>
  23458. #include <sdkddkver.h>
  23459. #include <d3d12.h>
  23460. ID3D12Device1 *device;
  23461. #if WDK_NTDDI_VERSION <= 0x0A000008
  23462. asdf
  23463. #endif
  23464. int
  23465. main (void)
  23466. {
  23467. ;
  23468. return 0;
  23469. }
  23470. _ACEOF
  23471. if ac_fn_c_try_compile "$LINENO"
  23472. then :
  23473. have_d3d12=yes
  23474. else $as_nop
  23475. have_d3d12=no
  23476. fi
  23477. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23479. printf "%s\n" "$have_d3d12" >&6; }
  23480. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23481. if test "x$ac_cv_header_ddraw_h" = xyes
  23482. then :
  23483. have_ddraw=yes
  23484. fi
  23485. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23486. if test "x$ac_cv_header_dsound_h" = xyes
  23487. then :
  23488. have_dsound=yes
  23489. fi
  23490. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23491. if test "x$ac_cv_header_dinput_h" = xyes
  23492. then :
  23493. have_dinput=yes
  23494. fi
  23495. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23496. if test "x$ac_cv_header_dxgi_h" = xyes
  23497. then :
  23498. have_dxgi=yes
  23499. fi
  23500. if test x$have_ddraw = xyes; then
  23501. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23502. fi
  23503. if test x$have_dinput = xyes; then
  23504. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23505. fi
  23506. if test x$have_dsound = xyes; then
  23507. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23508. fi
  23509. if test x$have_dxgi = xyes; then
  23510. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23511. fi
  23512. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23513. # FIXME: ...so force it off for now.
  23514. case "$host" in
  23515. *-*-cygwin*)
  23516. have_dinput=false
  23517. ;;
  23518. esac
  23519. fi
  23520. # Check whether --enable-xinput was given.
  23521. if test ${enable_xinput+y}
  23522. then :
  23523. enableval=$enable_xinput;
  23524. else $as_nop
  23525. enable_xinput=yes
  23526. fi
  23527. if test x$enable_xinput = xyes; then
  23528. have_xinput_gamepadex=no
  23529. have_xinput_stateex=no
  23530. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23531. if test "x$ac_cv_header_xinput_h" = xyes
  23532. then :
  23533. have_xinput=yes
  23534. fi
  23535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23536. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23538. /* end confdefs.h. */
  23539. #include <windows.h>
  23540. #include <xinput.h>
  23541. XINPUT_GAMEPAD_EX x1;
  23542. int
  23543. main (void)
  23544. {
  23545. ;
  23546. return 0;
  23547. }
  23548. _ACEOF
  23549. if ac_fn_c_try_compile "$LINENO"
  23550. then :
  23551. have_xinput_gamepadex=yes
  23552. fi
  23553. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23555. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23557. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23559. /* end confdefs.h. */
  23560. #include <windows.h>
  23561. #include <xinput.h>
  23562. XINPUT_STATE_EX s1;
  23563. int
  23564. main (void)
  23565. {
  23566. ;
  23567. return 0;
  23568. }
  23569. _ACEOF
  23570. if ac_fn_c_try_compile "$LINENO"
  23571. then :
  23572. have_xinput_stateex=yes
  23573. fi
  23574. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23576. printf "%s\n" "$have_xinput_stateex" >&6; }
  23577. if test x$have_xinput = xyes; then
  23578. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23579. fi
  23580. if test x$have_xinput_gamepadex = xyes; then
  23581. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23582. fi
  23583. if test x$have_xinput_stateex = xyes; then
  23584. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23585. fi
  23586. fi
  23587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23588. printf %s "checking for windows.gaming.input.h... " >&6; }
  23589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23590. /* end confdefs.h. */
  23591. #define COBJMACROS
  23592. #include <windows.gaming.input.h>
  23593. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23594. int
  23595. main (void)
  23596. {
  23597. ;
  23598. return 0;
  23599. }
  23600. _ACEOF
  23601. if ac_fn_c_try_compile "$LINENO"
  23602. then :
  23603. have_wgi=yes
  23604. else $as_nop
  23605. have_wgi=no
  23606. fi
  23607. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23609. printf "%s\n" "$have_wgi" >&6; }
  23610. if test x$have_wgi = xyes; then
  23611. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23612. fi
  23613. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23614. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23615. then :
  23616. have_wasapi=yes
  23617. fi
  23618. if test x$have_wasapi = xyes; then
  23619. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23620. fi
  23621. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23622. if test "x$ac_cv_header_audioclient_h" = xyes
  23623. then :
  23624. else $as_nop
  23625. have_wasapi=no
  23626. fi
  23627. if test x$have_wasapi = xyes; then
  23628. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23629. fi
  23630. # Check whether --enable-wasapi was given.
  23631. if test ${enable_wasapi+y}
  23632. then :
  23633. enableval=$enable_wasapi;
  23634. else $as_nop
  23635. enable_wasapi=yes
  23636. fi
  23637. }
  23638. CheckDLOPEN()
  23639. {
  23640. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23641. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23642. if test "x$ac_cv_header_dlfcn_h" = xyes
  23643. then :
  23644. have_dlfcn_h=yes
  23645. else $as_nop
  23646. have_dlfcn_h=no
  23647. fi
  23648. have_dlopen=no
  23649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23650. printf %s "checking for dlopen in -lc... " >&6; }
  23651. if test ${ac_cv_lib_c_dlopen+y}
  23652. then :
  23653. printf %s "(cached) " >&6
  23654. else $as_nop
  23655. ac_check_lib_save_LIBS=$LIBS
  23656. LIBS="-lc $LIBS"
  23657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23658. /* end confdefs.h. */
  23659. /* Override any GCC internal prototype to avoid an error.
  23660. Use char because int might match the return type of a GCC
  23661. builtin and then its argument prototype would still apply. */
  23662. char dlopen ();
  23663. int
  23664. main (void)
  23665. {
  23666. return dlopen ();
  23667. ;
  23668. return 0;
  23669. }
  23670. _ACEOF
  23671. if ac_fn_c_try_link "$LINENO"
  23672. then :
  23673. ac_cv_lib_c_dlopen=yes
  23674. else $as_nop
  23675. ac_cv_lib_c_dlopen=no
  23676. fi
  23677. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23678. conftest$ac_exeext conftest.$ac_ext
  23679. LIBS=$ac_check_lib_save_LIBS
  23680. fi
  23681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23682. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23683. if test "x$ac_cv_lib_c_dlopen" = xyes
  23684. then :
  23685. have_dlopen=yes
  23686. else $as_nop
  23687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23688. printf %s "checking for dlopen in -ldl... " >&6; }
  23689. if test ${ac_cv_lib_dl_dlopen+y}
  23690. then :
  23691. printf %s "(cached) " >&6
  23692. else $as_nop
  23693. ac_check_lib_save_LIBS=$LIBS
  23694. LIBS="-ldl $LIBS"
  23695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23696. /* end confdefs.h. */
  23697. /* Override any GCC internal prototype to avoid an error.
  23698. Use char because int might match the return type of a GCC
  23699. builtin and then its argument prototype would still apply. */
  23700. char dlopen ();
  23701. int
  23702. main (void)
  23703. {
  23704. return dlopen ();
  23705. ;
  23706. return 0;
  23707. }
  23708. _ACEOF
  23709. if ac_fn_c_try_link "$LINENO"
  23710. then :
  23711. ac_cv_lib_dl_dlopen=yes
  23712. else $as_nop
  23713. ac_cv_lib_dl_dlopen=no
  23714. fi
  23715. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23716. conftest$ac_exeext conftest.$ac_ext
  23717. LIBS=$ac_check_lib_save_LIBS
  23718. fi
  23719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23720. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23721. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23722. then :
  23723. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23724. fi
  23725. fi
  23726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23727. printf %s "checking for dlopen... " >&6; }
  23728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23729. printf "%s\n" "$have_dlopen" >&6; }
  23730. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23731. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23732. if test x$enable_loadso = xyes; then
  23733. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23734. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23735. have_loadso=yes
  23736. fi
  23737. fi
  23738. }
  23739. CheckO_CLOEXEC()
  23740. {
  23741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23742. printf %s "checking for O_CLOEXEC... " >&6; }
  23743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23744. /* end confdefs.h. */
  23745. #include <fcntl.h>
  23746. int flag = O_CLOEXEC;
  23747. int
  23748. main (void)
  23749. {
  23750. ;
  23751. return 0;
  23752. }
  23753. _ACEOF
  23754. if ac_fn_c_try_compile "$LINENO"
  23755. then :
  23756. have_o_cloexec=yes
  23757. else $as_nop
  23758. have_o_cloexec=no
  23759. fi
  23760. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23762. printf "%s\n" "$have_o_cloexec" >&6; }
  23763. if test $have_o_cloexec = yes; then
  23764. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23765. fi
  23766. }
  23767. CheckUSBHID()
  23768. {
  23769. case "$host" in
  23770. *-*-*bsd*|*-*-dragonfly*)
  23771. if test x$enable_joystick = xyes; then
  23772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23773. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23774. if test ${ac_cv_lib_usbhid_hid_init+y}
  23775. then :
  23776. printf %s "(cached) " >&6
  23777. else $as_nop
  23778. ac_check_lib_save_LIBS=$LIBS
  23779. LIBS="-lusbhid $LIBS"
  23780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23781. /* end confdefs.h. */
  23782. /* Override any GCC internal prototype to avoid an error.
  23783. Use char because int might match the return type of a GCC
  23784. builtin and then its argument prototype would still apply. */
  23785. char hid_init ();
  23786. int
  23787. main (void)
  23788. {
  23789. return hid_init ();
  23790. ;
  23791. return 0;
  23792. }
  23793. _ACEOF
  23794. if ac_fn_c_try_link "$LINENO"
  23795. then :
  23796. ac_cv_lib_usbhid_hid_init=yes
  23797. else $as_nop
  23798. ac_cv_lib_usbhid_hid_init=no
  23799. fi
  23800. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23801. conftest$ac_exeext conftest.$ac_ext
  23802. LIBS=$ac_check_lib_save_LIBS
  23803. fi
  23804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23805. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23806. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23807. then :
  23808. have_libusbhid=yes
  23809. fi
  23810. if test x$have_libusbhid = xyes; then
  23811. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23812. if test "x$ac_cv_header_usbhid_h" = xyes
  23813. then :
  23814. USB_CFLAGS="-DHAVE_USBHID_H"
  23815. fi
  23816. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23817. if test "x$ac_cv_header_libusbhid_h" = xyes
  23818. then :
  23819. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23820. fi
  23821. USB_LIBS="$USB_LIBS -lusbhid"
  23822. else
  23823. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23824. if test "x$ac_cv_header_usb_h" = xyes
  23825. then :
  23826. USB_CFLAGS="-DHAVE_USB_H"
  23827. fi
  23828. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23829. if test "x$ac_cv_header_libusb_h" = xyes
  23830. then :
  23831. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23832. fi
  23833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23834. printf %s "checking for hid_init in -lusb... " >&6; }
  23835. if test ${ac_cv_lib_usb_hid_init+y}
  23836. then :
  23837. printf %s "(cached) " >&6
  23838. else $as_nop
  23839. ac_check_lib_save_LIBS=$LIBS
  23840. LIBS="-lusb $LIBS"
  23841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23842. /* end confdefs.h. */
  23843. /* Override any GCC internal prototype to avoid an error.
  23844. Use char because int might match the return type of a GCC
  23845. builtin and then its argument prototype would still apply. */
  23846. char hid_init ();
  23847. int
  23848. main (void)
  23849. {
  23850. return hid_init ();
  23851. ;
  23852. return 0;
  23853. }
  23854. _ACEOF
  23855. if ac_fn_c_try_link "$LINENO"
  23856. then :
  23857. ac_cv_lib_usb_hid_init=yes
  23858. else $as_nop
  23859. ac_cv_lib_usb_hid_init=no
  23860. fi
  23861. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23862. conftest$ac_exeext conftest.$ac_ext
  23863. LIBS=$ac_check_lib_save_LIBS
  23864. fi
  23865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23866. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23867. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23868. then :
  23869. USB_LIBS="$USB_LIBS -lusb"
  23870. fi
  23871. fi
  23872. save_CFLAGS="$CFLAGS"
  23873. CFLAGS="$CFLAGS $USB_CFLAGS"
  23874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23875. printf %s "checking for usbhid... " >&6; }
  23876. have_usbhid=no
  23877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23878. /* end confdefs.h. */
  23879. #include <sys/types.h>
  23880. #if defined(HAVE_USB_H)
  23881. #include <usb.h>
  23882. #endif
  23883. #ifdef __DragonFly__
  23884. # include <bus/u4b/usb.h>
  23885. # include <bus/u4b/usbhid.h>
  23886. #else
  23887. # include <dev/usb/usb.h>
  23888. # include <dev/usb/usbhid.h>
  23889. #endif
  23890. #if defined(HAVE_USBHID_H)
  23891. #include <usbhid.h>
  23892. #elif defined(HAVE_LIBUSB_H)
  23893. #include <libusb.h>
  23894. #elif defined(HAVE_LIBUSBHID_H)
  23895. #include <libusbhid.h>
  23896. #endif
  23897. int
  23898. main (void)
  23899. {
  23900. struct report_desc *repdesc;
  23901. struct usb_ctl_report *repbuf;
  23902. hid_kind_t hidkind;
  23903. ;
  23904. return 0;
  23905. }
  23906. _ACEOF
  23907. if ac_fn_c_try_compile "$LINENO"
  23908. then :
  23909. have_usbhid=yes
  23910. fi
  23911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23913. printf "%s\n" "$have_usbhid" >&6; }
  23914. if test x$have_usbhid = xyes; then
  23915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23916. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23917. have_usbhid_ucr_data=no
  23918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23919. /* end confdefs.h. */
  23920. #include <sys/types.h>
  23921. #if defined(HAVE_USB_H)
  23922. #include <usb.h>
  23923. #endif
  23924. #ifdef __DragonFly__
  23925. # include <bus/u4b/usb.h>
  23926. # include <bus/u4b/usbhid.h>
  23927. #else
  23928. # include <dev/usb/usb.h>
  23929. # include <dev/usb/usbhid.h>
  23930. #endif
  23931. #if defined(HAVE_USBHID_H)
  23932. #include <usbhid.h>
  23933. #elif defined(HAVE_LIBUSB_H)
  23934. #include <libusb.h>
  23935. #elif defined(HAVE_LIBUSBHID_H)
  23936. #include <libusbhid.h>
  23937. #endif
  23938. int
  23939. main (void)
  23940. {
  23941. struct usb_ctl_report buf;
  23942. if (buf.ucr_data) { }
  23943. ;
  23944. return 0;
  23945. }
  23946. _ACEOF
  23947. if ac_fn_c_try_compile "$LINENO"
  23948. then :
  23949. have_usbhid_ucr_data=yes
  23950. fi
  23951. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23952. if test x$have_usbhid_ucr_data = xyes; then
  23953. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23954. fi
  23955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23956. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23958. printf %s "checking for new usbhid API... " >&6; }
  23959. have_usbhid_new=no
  23960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23961. /* end confdefs.h. */
  23962. #include <sys/types.h>
  23963. #if defined(HAVE_USB_H)
  23964. #include <usb.h>
  23965. #endif
  23966. #ifdef __DragonFly__
  23967. #include <bus/u4b/usb.h>
  23968. #include <bus/u4b/usbhid.h>
  23969. #else
  23970. #include <dev/usb/usb.h>
  23971. #include <dev/usb/usbhid.h>
  23972. #endif
  23973. #if defined(HAVE_USBHID_H)
  23974. #include <usbhid.h>
  23975. #elif defined(HAVE_LIBUSB_H)
  23976. #include <libusb.h>
  23977. #elif defined(HAVE_LIBUSBHID_H)
  23978. #include <libusbhid.h>
  23979. #endif
  23980. int
  23981. main (void)
  23982. {
  23983. report_desc_t d;
  23984. hid_start_parse(d, 1, 1);
  23985. ;
  23986. return 0;
  23987. }
  23988. _ACEOF
  23989. if ac_fn_c_try_compile "$LINENO"
  23990. then :
  23991. have_usbhid_new=yes
  23992. fi
  23993. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23994. if test x$have_usbhid_new = xyes; then
  23995. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23996. fi
  23997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23998. printf "%s\n" "$have_usbhid_new" >&6; }
  23999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24000. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24001. have_machine_joystick=no
  24002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24003. /* end confdefs.h. */
  24004. #include <machine/joystick.h>
  24005. int
  24006. main (void)
  24007. {
  24008. struct joystick t;
  24009. ;
  24010. return 0;
  24011. }
  24012. _ACEOF
  24013. if ac_fn_c_try_compile "$LINENO"
  24014. then :
  24015. have_machine_joystick=yes
  24016. fi
  24017. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24018. if test x$have_machine_joystick = xyes; then
  24019. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24020. fi
  24021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24022. printf "%s\n" "$have_machine_joystick" >&6; }
  24023. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24024. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24025. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24027. have_joystick=yes
  24028. fi
  24029. CFLAGS="$save_CFLAGS"
  24030. fi
  24031. ;;
  24032. esac
  24033. }
  24034. CheckHIDAPI()
  24035. {
  24036. # Check whether --enable-hidapi-joystick was given.
  24037. if test ${enable_hidapi_joystick+y}
  24038. then :
  24039. enableval=$enable_hidapi_joystick;
  24040. else $as_nop
  24041. enable_hidapi_joystick=yes
  24042. fi
  24043. # Check whether --enable-hidapi-libusb was given.
  24044. if test ${enable_hidapi_libusb+y}
  24045. then :
  24046. enableval=$enable_hidapi_libusb;
  24047. else $as_nop
  24048. enable_hidapi_libusb=maybe
  24049. fi
  24050. if test x$enable_hidapi = xyes; then
  24051. case "$host" in
  24052. # libusb does not support iOS
  24053. *-ios-* )
  24054. enable_hidapi_libusb=no
  24055. ;;
  24056. # On the other hand, *BSD specifically uses libusb only
  24057. *-*-*bsd* )
  24058. enable_hidapi_libusb=yes
  24059. require_hidapi_libusb=yes
  24060. ;;
  24061. *-*-os2* )
  24062. enable_hidapi_libusb=yes
  24063. ;;
  24064. esac
  24065. hidapi_support=yes
  24066. if test x$enable_hidapi_libusb = xyes; then
  24067. pkg_failed=no
  24068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24069. printf %s "checking for libusb-1.0... " >&6; }
  24070. if test -n "$LIBUSB_CFLAGS"; then
  24071. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24072. elif test -n "$PKG_CONFIG"; then
  24073. if test -n "$PKG_CONFIG" && \
  24074. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24075. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24076. ac_status=$?
  24077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24078. test $ac_status = 0; }; then
  24079. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24080. test "x$?" != "x0" && pkg_failed=yes
  24081. else
  24082. pkg_failed=yes
  24083. fi
  24084. else
  24085. pkg_failed=untried
  24086. fi
  24087. if test -n "$LIBUSB_LIBS"; then
  24088. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24089. elif test -n "$PKG_CONFIG"; then
  24090. if test -n "$PKG_CONFIG" && \
  24091. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24092. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24093. ac_status=$?
  24094. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24095. test $ac_status = 0; }; then
  24096. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24097. test "x$?" != "x0" && pkg_failed=yes
  24098. else
  24099. pkg_failed=yes
  24100. fi
  24101. else
  24102. pkg_failed=untried
  24103. fi
  24104. if test $pkg_failed = yes; then
  24105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24106. printf "%s\n" "no" >&6; }
  24107. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24108. _pkg_short_errors_supported=yes
  24109. else
  24110. _pkg_short_errors_supported=no
  24111. fi
  24112. if test $_pkg_short_errors_supported = yes; then
  24113. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24114. else
  24115. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24116. fi
  24117. # Put the nasty error message in config.log where it belongs
  24118. echo "$LIBUSB_PKG_ERRORS" >&5
  24119. have_libusb=no
  24120. elif test $pkg_failed = untried; then
  24121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24122. printf "%s\n" "no" >&6; }
  24123. have_libusb=no
  24124. else
  24125. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24126. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24128. printf "%s\n" "yes" >&6; }
  24129. have_libusb=yes
  24130. fi
  24131. save_CPPFLAGS="$CPPFLAGS"
  24132. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24133. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24134. if test "x$ac_cv_header_libusb_h" = xyes
  24135. then :
  24136. have_libusb_h=yes
  24137. else $as_nop
  24138. have_libusb_h=no
  24139. fi
  24140. CPPFLAGS="$save_CPPFLAGS"
  24141. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24142. hidapi_support=no
  24143. fi
  24144. fi
  24145. if test x$hidapi_support = xyes; then
  24146. if test x$have_libusb_h = xyes; then
  24147. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24148. if test x$require_hidapi_libusb = xyes; then
  24149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24150. else
  24151. if test x$have_loadso != xyes; then
  24152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24153. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24154. fi
  24155. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24156. libusb_lib=""
  24157. case "$host" in
  24158. *-*-darwin* )
  24159. libusb_lib="libusb-1.0.0.dylib"
  24160. ;;
  24161. *-*-cygwin* | *-*-mingw* )
  24162. libusb_lib="libusb-1.0.dll"
  24163. ;;
  24164. *-*-os2* )
  24165. libusb_lib="usb100.dll"
  24166. ;;
  24167. esac
  24168. if test x$libusb_lib = x; then
  24169. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24170. fi
  24171. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24172. fi
  24173. fi
  24174. fi
  24175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24176. printf %s "checking for hidapi joystick support... " >&6; }
  24177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24178. printf "%s\n" "$hidapi_support" >&6; }
  24179. fi
  24180. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24181. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24182. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24183. fi
  24184. }
  24185. CheckClockGettime()
  24186. {
  24187. # Check whether --enable-clock_gettime was given.
  24188. if test ${enable_clock_gettime+y}
  24189. then :
  24190. enableval=$enable_clock_gettime;
  24191. else $as_nop
  24192. enable_clock_gettime=yes
  24193. fi
  24194. if test x$enable_clock_gettime = xyes; then
  24195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24196. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24197. if test ${ac_cv_lib_rt_clock_gettime+y}
  24198. then :
  24199. printf %s "(cached) " >&6
  24200. else $as_nop
  24201. ac_check_lib_save_LIBS=$LIBS
  24202. LIBS="-lrt $LIBS"
  24203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24204. /* end confdefs.h. */
  24205. /* Override any GCC internal prototype to avoid an error.
  24206. Use char because int might match the return type of a GCC
  24207. builtin and then its argument prototype would still apply. */
  24208. char clock_gettime ();
  24209. int
  24210. main (void)
  24211. {
  24212. return clock_gettime ();
  24213. ;
  24214. return 0;
  24215. }
  24216. _ACEOF
  24217. if ac_fn_c_try_link "$LINENO"
  24218. then :
  24219. ac_cv_lib_rt_clock_gettime=yes
  24220. else $as_nop
  24221. ac_cv_lib_rt_clock_gettime=no
  24222. fi
  24223. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24224. conftest$ac_exeext conftest.$ac_ext
  24225. LIBS=$ac_check_lib_save_LIBS
  24226. fi
  24227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24228. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24229. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24230. then :
  24231. have_clock_gettime=yes
  24232. fi
  24233. if test x$have_clock_gettime = xyes; then
  24234. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24236. else
  24237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24238. printf %s "checking for clock_gettime in -lc... " >&6; }
  24239. if test ${ac_cv_lib_c_clock_gettime+y}
  24240. then :
  24241. printf %s "(cached) " >&6
  24242. else $as_nop
  24243. ac_check_lib_save_LIBS=$LIBS
  24244. LIBS="-lc $LIBS"
  24245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24246. /* end confdefs.h. */
  24247. /* Override any GCC internal prototype to avoid an error.
  24248. Use char because int might match the return type of a GCC
  24249. builtin and then its argument prototype would still apply. */
  24250. char clock_gettime ();
  24251. int
  24252. main (void)
  24253. {
  24254. return clock_gettime ();
  24255. ;
  24256. return 0;
  24257. }
  24258. _ACEOF
  24259. if ac_fn_c_try_link "$LINENO"
  24260. then :
  24261. ac_cv_lib_c_clock_gettime=yes
  24262. else $as_nop
  24263. ac_cv_lib_c_clock_gettime=no
  24264. fi
  24265. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24266. conftest$ac_exeext conftest.$ac_ext
  24267. LIBS=$ac_check_lib_save_LIBS
  24268. fi
  24269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24270. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24271. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24272. then :
  24273. have_clock_gettime=yes
  24274. fi
  24275. if test x$have_clock_gettime = xyes; then
  24276. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24277. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24278. fi
  24279. fi
  24280. fi
  24281. }
  24282. CheckLinuxVersion()
  24283. {
  24284. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24285. if test "x$ac_cv_header_linux_version_h" = xyes
  24286. then :
  24287. have_linux_version_h=yes
  24288. fi
  24289. if test x$have_linux_version_h = xyes; then
  24290. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24291. fi
  24292. }
  24293. CheckRPATH()
  24294. {
  24295. # Check whether --enable-rpath was given.
  24296. if test ${enable_rpath+y}
  24297. then :
  24298. enableval=$enable_rpath;
  24299. else $as_nop
  24300. enable_rpath=yes
  24301. fi
  24302. }
  24303. CheckEventSignals()
  24304. {
  24305. # Check whether --enable-backgrounding-signal was given.
  24306. if test ${enable_backgrounding_signal+y}
  24307. then :
  24308. enableval=$enable_backgrounding_signal;
  24309. else $as_nop
  24310. enable_backgrounding_signal=no
  24311. fi
  24312. if test x$enable_backgrounding_signal != xno; then
  24313. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24314. fi
  24315. # Check whether --enable-foregrounding-signal was given.
  24316. if test ${enable_foregrounding_signal+y}
  24317. then :
  24318. enableval=$enable_foregrounding_signal;
  24319. else $as_nop
  24320. enable_foregrounding_signal=no
  24321. fi
  24322. if test x$enable_foregrounding_signal != xno; then
  24323. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24324. fi
  24325. }
  24326. CheckVirtualJoystick()
  24327. {
  24328. # Check whether --enable-joystick-virtual was given.
  24329. if test ${enable_joystick_virtual+y}
  24330. then :
  24331. enableval=$enable_joystick_virtual;
  24332. else $as_nop
  24333. enable_joystick_virtual=yes
  24334. fi
  24335. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24336. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24337. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24338. have_joystick_virtual=yes
  24339. fi
  24340. }
  24341. CheckWarnAll
  24342. CheckNoStrictAliasing
  24343. CheckEventSignals
  24344. have_locale=no
  24345. case "$host" in
  24346. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24347. case "$host" in
  24348. *-*-android*)
  24349. # Android
  24350. ARCH=android
  24351. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24352. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24353. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24354. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24355. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24356. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24357. if test x$enable_video = xyes; then
  24358. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24359. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24360. SUMMARY_video="${SUMMARY_video} android"
  24361. have_video=yes
  24362. fi
  24363. ;;
  24364. *-*-linux*) ARCH=linux ;;
  24365. *-*-uclinux*) ARCH=linux ;;
  24366. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24367. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24368. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24369. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24370. *-*-bsdi*) ARCH=bsdi ;;
  24371. *-*-freebsd*) ARCH=freebsd ;;
  24372. *-*-dragonfly*) ARCH=freebsd ;;
  24373. *-*-netbsd*) ARCH=netbsd ;;
  24374. *-*-openbsd*) ARCH=openbsd ;;
  24375. *-*-sysv5*) ARCH=sysv5 ;;
  24376. *-*-solaris*) ARCH=solaris ;;
  24377. *-*-hpux*) ARCH=hpux ;;
  24378. *-*-aix*) ARCH=aix ;;
  24379. *-*-minix*) ARCH=minix ;;
  24380. *-*-nto*) ARCH=nto
  24381. CheckQNXVideo
  24382. ;;
  24383. esac
  24384. CheckVisibilityHidden
  24385. CheckDeclarationAfterStatement
  24386. CheckDummyVideo
  24387. CheckOffscreenVideo
  24388. CheckDiskAudio
  24389. CheckDummyAudio
  24390. CheckDLOPEN
  24391. CheckARM
  24392. CheckNEON
  24393. CheckO_CLOEXEC
  24394. CheckOSS
  24395. CheckALSA
  24396. CheckPipewire
  24397. CheckPulseAudio
  24398. CheckJACK
  24399. CheckARTSC
  24400. CheckESD
  24401. CheckNAS
  24402. CheckSNDIO
  24403. CheckFusionSound
  24404. CheckLibSampleRate
  24405. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24406. CheckRPI
  24407. CheckX11
  24408. CheckDirectFB
  24409. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24410. CheckEGL
  24411. CheckKMSDRM
  24412. CheckGLX
  24413. CheckOpenGL
  24414. CheckOpenGLES
  24415. CheckVulkan
  24416. CheckWayland
  24417. CheckInputEvents
  24418. CheckLibUDev
  24419. CheckDBus
  24420. CheckIME
  24421. CheckInotify
  24422. CheckIBus
  24423. CheckFcitx
  24424. case $ARCH in
  24425. linux)
  24426. CheckInputKD
  24427. ;;
  24428. freebsd)
  24429. CheckInputKBIO
  24430. ;;
  24431. openbsd|netbsd)
  24432. CheckInputWSCONS
  24433. ;;
  24434. esac
  24435. CheckUSBHID
  24436. CheckHIDAPI
  24437. CheckPTHREAD
  24438. CheckClockGettime
  24439. CheckLinuxVersion
  24440. CheckRPATH
  24441. CheckVivanteVideo
  24442. # Set up files for the misc library
  24443. if test x$enable_misc = xyes; then
  24444. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24445. have_misc=yes
  24446. fi
  24447. # Set up files for the locale library
  24448. if test x$enable_locale = xyes; then
  24449. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24450. have_locale=yes
  24451. fi
  24452. # Set up files for the audio library
  24453. if test x$enable_audio = xyes; then
  24454. case $ARCH in
  24455. sysv5|solaris|hpux)
  24456. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24457. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24458. SUMMARY_audio="${SUMMARY_audio} sun"
  24459. have_audio=yes
  24460. ;;
  24461. netbsd) # Don't use this on OpenBSD, it's busted.
  24462. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24463. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24464. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24465. have_audio=yes
  24466. ;;
  24467. aix)
  24468. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24469. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24470. SUMMARY_audio="${SUMMARY_audio} paudio"
  24471. have_audio=yes
  24472. ;;
  24473. android)
  24474. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24475. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24476. SUMMARY_audio="${SUMMARY_audio} android"
  24477. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24478. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24479. SUMMARY_audio="${SUMMARY_audio} openslES"
  24480. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24481. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24482. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24483. have_audio=yes
  24484. ;;
  24485. nto)
  24486. CheckQNXAudio
  24487. ;;
  24488. esac
  24489. fi
  24490. # Set up files for the joystick library
  24491. if test x$enable_joystick = xyes; then
  24492. case $ARCH in
  24493. linux)
  24494. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24495. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24496. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24497. have_joystick=yes
  24498. ;;
  24499. freebsd)
  24500. if test x$use_input_events = xyes; then
  24501. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24502. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24503. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24504. have_joystick=yes
  24505. fi
  24506. ;;
  24507. android)
  24508. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24509. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24510. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24511. have_joystick=yes
  24512. ;;
  24513. esac
  24514. fi
  24515. # Set up files for the haptic library
  24516. if test x$enable_haptic = xyes; then
  24517. case $ARCH in
  24518. linux|freebsd)
  24519. if test x$use_input_events = xyes; then
  24520. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24521. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24522. have_haptic=yes
  24523. fi
  24524. ;;
  24525. android)
  24526. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24527. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24528. have_haptic=yes
  24529. ;;
  24530. esac
  24531. fi
  24532. # Set up files for the sensor library
  24533. if test x$enable_sensor = xyes; then
  24534. case $ARCH in
  24535. android)
  24536. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24537. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24538. have_sensor=yes
  24539. ;;
  24540. esac
  24541. fi
  24542. # Set up files for the power library
  24543. if test x$enable_power = xyes; then
  24544. case $ARCH in
  24545. linux)
  24546. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24547. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24548. have_power=yes
  24549. ;;
  24550. android)
  24551. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24552. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24553. have_power=yes
  24554. ;;
  24555. esac
  24556. fi
  24557. # Set up files for the filesystem library
  24558. if test x$enable_filesystem = xyes; then
  24559. case $ARCH in
  24560. android)
  24561. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24562. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24563. have_filesystem=yes
  24564. ;;
  24565. *)
  24566. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24567. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24568. have_filesystem=yes
  24569. ;;
  24570. esac
  24571. fi
  24572. # Set up files for the timer library
  24573. if test x$enable_timers = xyes; then
  24574. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24575. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24576. have_timers=yes
  24577. fi
  24578. # Set up files for udev hotplugging support
  24579. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24580. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24581. fi
  24582. # Set up files for evdev input
  24583. if test x$use_input_events = xyes; then
  24584. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24585. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24586. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24587. fi
  24588. # Set up files for wscons input
  24589. if test x$use_input_wscons = xyes; then
  24590. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24591. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24592. fi
  24593. # Set up other core UNIX files
  24594. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24595. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24596. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24597. ;;
  24598. *-*-cygwin* | *-*-mingw*)
  24599. ARCH=win32
  24600. if test "$build" != "$host"; then # cross-compiling
  24601. # Default cross-compile location
  24602. ac_default_prefix=/usr/local/cross-tools/$host
  24603. else
  24604. # Look for the location of the tools and install there
  24605. if test "$BUILD_PREFIX" != ""; then
  24606. ac_default_prefix=$BUILD_PREFIX
  24607. fi
  24608. fi
  24609. if test x$enable_loadso = xyes; then
  24610. have_loadso=yes
  24611. fi
  24612. CheckDeclarationAfterStatement
  24613. CheckDummyVideo
  24614. CheckOffscreenVideo
  24615. CheckDiskAudio
  24616. CheckDummyAudio
  24617. CheckWINDOWS
  24618. CheckWINDOWSGL
  24619. CheckWINDOWSGLES
  24620. CheckVulkan
  24621. CheckDIRECTX
  24622. CheckHIDAPI
  24623. # Set up the core platform files
  24624. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24625. # Set up files for the misc library
  24626. if test x$enable_misc = xyes; then
  24627. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24628. have_misc=yes
  24629. fi
  24630. # Use the Windows locale APIs.
  24631. if test x$enable_locale = xyes; then
  24632. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24633. have_locale=yes
  24634. fi
  24635. # Set up files for the video library
  24636. if test x$enable_video = xyes; then
  24637. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24638. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24639. have_video=yes
  24640. # Check whether --enable-render-d3d was given.
  24641. if test ${enable_render_d3d+y}
  24642. then :
  24643. enableval=$enable_render_d3d;
  24644. else $as_nop
  24645. enable_render_d3d=yes
  24646. fi
  24647. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24648. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24649. SUMMARY_video="${SUMMARY_video} d3d9"
  24650. fi
  24651. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24652. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24653. SUMMARY_video="${SUMMARY_video} d3d11"
  24654. fi
  24655. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24656. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24657. SUMMARY_video="${SUMMARY_video} d3d12"
  24658. fi
  24659. fi
  24660. # Set up files for the audio library
  24661. if test x$enable_audio = xyes; then
  24662. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24663. SUMMARY_audio="${SUMMARY_audio} winmm"
  24664. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24665. if test x$have_dsound = xyes; then
  24666. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24667. SUMMARY_audio="${SUMMARY_audio} directsound"
  24668. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24669. fi
  24670. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24671. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24672. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24673. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24674. fi
  24675. have_audio=yes
  24676. fi
  24677. # Set up files for the joystick library
  24678. if test x$enable_joystick = xyes; then
  24679. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24680. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24681. if test x$have_xinput = xyes; then
  24682. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24683. fi
  24684. if test x$have_wgi = xyes; then
  24685. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24686. fi
  24687. if test x$have_dinput = xyes; then
  24688. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24689. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24690. fi
  24691. fi
  24692. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24693. have_joystick=yes
  24694. fi
  24695. if test x$enable_haptic = xyes; then
  24696. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24697. if test x$have_xinput = xyes; then
  24698. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24699. fi
  24700. if test x$have_dinput = xyes; then
  24701. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24702. fi
  24703. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24704. have_haptic=yes
  24705. fi
  24706. fi
  24707. # Set up files for the sensor library
  24708. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24709. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24710. then :
  24711. have_winsensors=yes
  24712. else $as_nop
  24713. have_winsensors=no
  24714. fi
  24715. if test x$have_winsensors = xyes; then
  24716. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24717. fi
  24718. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24719. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24720. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24721. have_sensor=yes
  24722. fi
  24723. # Set up files for the power library
  24724. if test x$enable_power = xyes; then
  24725. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24726. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24727. have_power=yes
  24728. fi
  24729. # Set up files for the filesystem library
  24730. if test x$enable_filesystem = xyes; then
  24731. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24732. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24733. have_filesystem=yes
  24734. fi
  24735. # Set up files for the thread library
  24736. if test x$enable_threads = xyes; then
  24737. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24738. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24739. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24740. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24741. have_threads=yes
  24742. fi
  24743. # Set up files for the timer library
  24744. if test x$enable_timers = xyes; then
  24745. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24746. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24747. have_timers=yes
  24748. fi
  24749. # Set up files for the shared object loading library
  24750. if test x$enable_loadso = xyes; then
  24751. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24752. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24753. fi
  24754. # Set up the system libraries we need
  24755. if test -f /lib/w32api/libuuid.a; then
  24756. LIBUUID=/lib/w32api/libuuid.a
  24757. else
  24758. LIBUUID=-luuid
  24759. fi
  24760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24761. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24762. # The Windows platform requires special setup
  24763. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24764. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24765. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24766. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24767. # Check to see if this is a mingw or cygwin build
  24768. have_mingw32=
  24769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24770. printf %s "checking for main in -lmingw32... " >&6; }
  24771. if test ${ac_cv_lib_mingw32_main+y}
  24772. then :
  24773. printf %s "(cached) " >&6
  24774. else $as_nop
  24775. ac_check_lib_save_LIBS=$LIBS
  24776. LIBS="-lmingw32 $LIBS"
  24777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24778. /* end confdefs.h. */
  24779. int
  24780. main (void)
  24781. {
  24782. return main ();
  24783. ;
  24784. return 0;
  24785. }
  24786. _ACEOF
  24787. if ac_fn_c_try_link "$LINENO"
  24788. then :
  24789. ac_cv_lib_mingw32_main=yes
  24790. else $as_nop
  24791. ac_cv_lib_mingw32_main=no
  24792. fi
  24793. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24794. conftest$ac_exeext conftest.$ac_ext
  24795. LIBS=$ac_check_lib_save_LIBS
  24796. fi
  24797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24798. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24799. if test "x$ac_cv_lib_mingw32_main" = xyes
  24800. then :
  24801. have_mingw32=yes
  24802. fi
  24803. if test x$have_mingw32 = xyes; then
  24804. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24805. else
  24806. SDL_LIBS="-lcygwin $SDL_LIBS"
  24807. fi
  24808. ;;
  24809. *-*-beos*)
  24810. as_fn_error $? "
  24811. *** BeOS support has been removed as of SDL 2.0.2.
  24812. " "$LINENO" 5
  24813. ;;
  24814. *-*-haiku*)
  24815. ARCH=haiku
  24816. ac_default_prefix=/boot/system
  24817. CheckDummyVideo
  24818. CheckOffscreenVideo
  24819. CheckDiskAudio
  24820. CheckDummyAudio
  24821. CheckDLOPEN
  24822. CheckO_CLOEXEC
  24823. CheckHaikuVideo
  24824. CheckHaikuGL
  24825. CheckPTHREAD
  24826. # Set up files for the audio library
  24827. if test x$enable_audio = xyes; then
  24828. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24829. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24830. SUMMARY_audio="${SUMMARY_audio} haiku"
  24831. have_audio=yes
  24832. fi
  24833. # Set up files for the joystick library
  24834. if test x$enable_joystick = xyes; then
  24835. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24836. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24837. have_joystick=yes
  24838. fi
  24839. # Set up files for the timer library
  24840. if test x$enable_timers = xyes; then
  24841. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24842. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24843. have_timers=yes
  24844. fi
  24845. # Set up files for the system power library
  24846. if test x$enable_power = xyes; then
  24847. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24848. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24849. have_power=yes
  24850. fi
  24851. # Set up files for the system filesystem library
  24852. if test x$enable_filesystem = xyes; then
  24853. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24854. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24855. have_filesystem=yes
  24856. fi
  24857. # Set up files for the misc library
  24858. if test x$enable_misc = xyes; then
  24859. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24860. have_misc=yes
  24861. fi
  24862. # Set up files for the locale library
  24863. if test x$enable_locale = xyes; then
  24864. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24865. have_locale=yes
  24866. fi
  24867. # The Haiku platform requires special setup.
  24868. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24870. ;;
  24871. *-ios-*)
  24872. ARCH=ios
  24873. CheckVisibilityHidden
  24874. CheckDeclarationAfterStatement
  24875. CheckDummyVideo
  24876. CheckOffscreenVideo
  24877. CheckDiskAudio
  24878. CheckDummyAudio
  24879. CheckDLOPEN
  24880. CheckO_CLOEXEC
  24881. CheckMETAL
  24882. CheckVulkan
  24883. CheckPTHREAD
  24884. # Set up files for the misc library
  24885. if test x$enable_misc = xyes; then
  24886. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24887. have_misc=yes
  24888. fi
  24889. # Set up files for the locale library
  24890. if test x$enable_locale = xyes; then
  24891. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24892. have_locale=yes
  24893. fi
  24894. # Set up files for the audio library
  24895. if test x$enable_audio = xyes; then
  24896. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24897. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24898. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24899. have_audio=yes
  24900. fi
  24901. # Set up files for the joystick library
  24902. if test x$enable_joystick = xyes; then
  24903. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24904. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24905. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24906. have_joystick=yes
  24907. else
  24908. # Need this code for accelerometer as joystick support
  24909. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24910. fi
  24911. # Set up files for the haptic library
  24912. #if test x$enable_haptic = xyes; then
  24913. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24914. # have_haptic=yes
  24915. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24916. #fi
  24917. # Set up files for the sensor library
  24918. if test x$enable_sensor = xyes; then
  24919. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24920. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24921. have_sensor=yes
  24922. fi
  24923. # Set up files for the power library
  24924. if test x$enable_power = xyes; then
  24925. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24926. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24927. have_power=yes
  24928. fi
  24929. # Set up files for the filesystem library
  24930. if test x$enable_filesystem = xyes; then
  24931. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24932. have_filesystem=yes
  24933. fi
  24934. # Set up additional files for the file library
  24935. if test x$enable_file = xyes; then
  24936. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24937. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24938. fi
  24939. # Set up files for the timer library
  24940. if test x$enable_timers = xyes; then
  24941. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24942. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24943. have_timers=yes
  24944. fi
  24945. # Set up other core UNIX files
  24946. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24947. # The iOS platform requires special setup.
  24948. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24949. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24950. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24951. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24952. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24953. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24954. SUMMARY_video="${SUMMARY_video} uikit"
  24955. have_video=yes
  24956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  24957. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24959. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24960. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24967. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24969. fi
  24970. ;;
  24971. *-*-darwin* )
  24972. # This could be either full "Mac OS X", or plain "Darwin" which is
  24973. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24974. # Next line is broken, and a few files below require Mac OS X (full)
  24975. ARCH=macosx
  24976. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24977. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24978. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24979. CheckObjectiveCARC
  24980. CheckVisibilityHidden
  24981. CheckDeclarationAfterStatement
  24982. CheckDummyVideo
  24983. CheckOffscreenVideo
  24984. CheckDiskAudio
  24985. CheckDummyAudio
  24986. CheckDLOPEN
  24987. CheckO_CLOEXEC
  24988. CheckCOCOA
  24989. CheckMETAL
  24990. CheckX11
  24991. CheckMacGL
  24992. CheckMacGLES
  24993. CheckGLX
  24994. CheckOpenGL
  24995. CheckVulkan
  24996. CheckPTHREAD
  24997. CheckHIDAPI
  24998. # Set up files for the misc library
  24999. if test x$enable_misc = xyes; then
  25000. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25001. have_misc=yes
  25002. fi
  25003. # Set up files for the locale library
  25004. if test x$enable_locale = xyes; then
  25005. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25006. have_locale=yes
  25007. fi
  25008. # Set up files for the audio library
  25009. if test x$enable_audio = xyes; then
  25010. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25011. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25013. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25014. have_audio=yes
  25015. fi
  25016. # Set up files for the joystick library
  25017. if test x$enable_joystick = xyes; then
  25018. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25019. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25020. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25021. CheckJoystickMFI
  25022. have_joystick=yes
  25023. fi
  25024. # Set up files for the haptic library
  25025. if test x$enable_haptic = xyes; then
  25026. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25027. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25029. have_haptic=yes
  25030. fi
  25031. # Set up files for the power library
  25032. if test x$enable_power = xyes; then
  25033. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25034. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25035. have_power=yes
  25036. fi
  25037. # Set up files for the filesystem library
  25038. if test x$enable_filesystem = xyes; then
  25039. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25040. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25041. have_filesystem=yes
  25042. fi
  25043. # Set up files for the timer library
  25044. if test x$enable_timers = xyes; then
  25045. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25046. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25047. have_timers=yes
  25048. fi
  25049. # Set up additional files for the file library
  25050. if test x$enable_file = xyes; then
  25051. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25052. fi
  25053. # Set up other core UNIX files
  25054. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25055. # The Mac OS X platform requires special setup.
  25056. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25057. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25058. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25060. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25061. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25063. fi
  25064. ;;
  25065. *-nacl|*-pnacl)
  25066. ARCH=nacl
  25067. CheckNativeClient
  25068. CheckDummyAudio
  25069. CheckDummyVideo
  25070. CheckOffscreenVideo
  25071. CheckInputEvents
  25072. CheckPTHREAD
  25073. CheckO_CLOEXEC
  25074. # Set up files for the timer library
  25075. if test x$enable_timers = xyes; then
  25076. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25077. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25078. have_timers=yes
  25079. fi
  25080. if test x$enable_filesystem = xyes; then
  25081. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25082. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25083. have_filesystem=yes
  25084. fi
  25085. ;;
  25086. *-*-emscripten* )
  25087. if test x$enable_video = xyes; then
  25088. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25089. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25090. have_video=yes
  25091. SUMMARY_video="${SUMMARY_video} emscripten"
  25092. fi
  25093. if test x$enable_audio = xyes; then
  25094. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25095. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25096. have_audio=yes
  25097. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25098. fi
  25099. CheckVisibilityHidden
  25100. CheckDeclarationAfterStatement
  25101. CheckDummyVideo
  25102. CheckOffscreenVideo
  25103. CheckDiskAudio
  25104. CheckDummyAudio
  25105. CheckPTHREAD
  25106. CheckDLOPEN
  25107. CheckClockGettime
  25108. CheckEmscriptenGLES
  25109. # Set up files for the misc library
  25110. if test x$enable_misc = xyes; then
  25111. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25112. have_misc=yes
  25113. fi
  25114. # Set up files for the power library
  25115. if test x$enable_power = xyes; then
  25116. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25117. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25118. have_power=yes
  25119. fi
  25120. # Set up files for the joystick library
  25121. if test x$enable_joystick = xyes; then
  25122. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25123. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25124. have_joystick=yes
  25125. fi
  25126. # Set up files for the filesystem library
  25127. if test x$enable_filesystem = xyes; then
  25128. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25129. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25130. have_filesystem=yes
  25131. fi
  25132. # Set up files for the timer library
  25133. if test x$enable_timers = xyes; then
  25134. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25135. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25136. have_timers=yes
  25137. fi
  25138. # Set up files for the locale library
  25139. if test x$enable_locale = xyes; then
  25140. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25141. have_locale=yes
  25142. fi
  25143. ;;
  25144. *-*-riscos*)
  25145. ARCH=riscos
  25146. CheckVisibilityHidden
  25147. CheckDeclarationAfterStatement
  25148. CheckDummyVideo
  25149. CheckOffscreenVideo
  25150. CheckDiskAudio
  25151. CheckDummyAudio
  25152. CheckDLOPEN
  25153. CheckO_CLOEXEC
  25154. CheckOSS
  25155. CheckPTHREAD
  25156. CheckClockGettime
  25157. # Set up files for the misc library
  25158. if test x$enable_misc = xyes; then
  25159. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25160. have_misc=yes
  25161. fi
  25162. # Set up files for the video library
  25163. if test x$enable_video = xyes; then
  25164. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25165. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25166. have_video=yes
  25167. SUMMARY_video="${SUMMARY_video} riscos"
  25168. fi
  25169. # Set up files for the filesystem library
  25170. if test x$enable_filesystem = xyes; then
  25171. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25172. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25173. have_filesystem=yes
  25174. fi
  25175. # Set up files for the timer library
  25176. if test x$enable_timers = xyes; then
  25177. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25178. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25179. have_timers=yes
  25180. fi
  25181. ;;
  25182. *-*-os2*)
  25183. ARCH=os2
  25184. if test "$build" != "$host"; then # cross-compiling
  25185. # Default cross-compile location
  25186. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25187. else
  25188. # Look for the location of the tools and install there
  25189. if test "$BUILD_PREFIX" != ""; then
  25190. ac_default_prefix=$BUILD_PREFIX
  25191. fi
  25192. fi
  25193. enable_static=no # disable static builds
  25194. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25195. CheckOS2
  25196. CheckDeclarationAfterStatement
  25197. CheckDummyVideo
  25198. CheckDiskAudio
  25199. CheckDummyAudio
  25200. CheckHIDAPI
  25201. # Set up the core platform files
  25202. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25203. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25204. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25205. fi
  25206. # Use the Unix locale APIs.
  25207. if test x$enable_locale = xyes; then
  25208. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25209. have_locale=yes
  25210. fi
  25211. # Set up files for the video library
  25212. if test x$enable_video = xyes; then
  25213. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25214. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25215. have_video=yes
  25216. SUMMARY_video="${SUMMARY_video} os/2"
  25217. fi
  25218. # Set up files for the audio library
  25219. if test x$enable_audio = xyes; then
  25220. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25221. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25222. have_audio=yes
  25223. SUMMARY_audio="${SUMMARY_audio} os/2"
  25224. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25225. fi
  25226. # Set up files for the thread library
  25227. if test x$enable_threads = xyes; then
  25228. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25229. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25230. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25231. have_threads=yes
  25232. fi
  25233. # Set up files for the timer library
  25234. if test x$enable_timers = xyes; then
  25235. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25236. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25237. have_timers=yes
  25238. fi
  25239. # Set up files for the shared object loading library
  25240. if test x$enable_loadso = xyes; then
  25241. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25242. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25243. have_loadso=yes
  25244. fi
  25245. # Set up files for the filesystem library
  25246. if test x$enable_filesystem = xyes; then
  25247. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25248. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25249. have_filesystem=yes
  25250. fi
  25251. # Set up files for the joystick library
  25252. if test x$enable_joystick = xyes; then
  25253. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25254. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25255. have_joystick=yes
  25256. fi
  25257. ;;
  25258. *)
  25259. as_fn_error $? "
  25260. *** Unsupported host: Please add to configure.ac
  25261. " "$LINENO" 5
  25262. ;;
  25263. esac
  25264. CheckVirtualJoystick
  25265. # Check whether to install sdl2-config
  25266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25267. printf %s "checking whether to install sdl2-config... " >&6; }
  25268. # Check whether --enable-sdl2-config was given.
  25269. if test ${enable_sdl2_config+y}
  25270. then :
  25271. enableval=$enable_sdl2_config; case "${enableval}" in
  25272. yes) enable_sdl2_config="TRUE" ;;
  25273. no) enable_sdl2_config="FALSE" ;;
  25274. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25275. esac
  25276. else $as_nop
  25277. enable_sdl2_config="TRUE"
  25278. fi
  25279. if test "$enable_sdl2_config" = "TRUE"; then
  25280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25281. printf "%s\n" "yes" >&6; }
  25282. else
  25283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25284. printf "%s\n" "no" >&6; }
  25285. fi
  25286. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25287. # Verify that we have all the platform specific files we need
  25288. if test x$have_audio != xyes; then
  25289. if test x$enable_audio = xyes; then
  25290. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25291. fi
  25292. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25293. fi
  25294. if test x$have_video != xyes; then
  25295. if test x$enable_video = xyes; then
  25296. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25297. fi
  25298. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25299. fi
  25300. if test x$have_misc != xyes; then
  25301. if test x$enable_misc = xyes; then
  25302. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25303. fi
  25304. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25305. fi
  25306. if test x$have_locale != xyes; then
  25307. if test x$enable_locale = xyes; then
  25308. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25309. fi
  25310. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25311. fi
  25312. if test x$have_joystick != xyes; then
  25313. if test x$enable_joystick = xyes; then
  25314. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25315. fi
  25316. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25317. fi
  25318. if test x$have_haptic != xyes; then
  25319. if test x$enable_haptic = xyes; then
  25320. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25321. fi
  25322. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25323. fi
  25324. if test x$have_sensor != xyes; then
  25325. if test x$enable_sensor = xyes; then
  25326. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25327. fi
  25328. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25329. fi
  25330. if test x$have_threads != xyes; then
  25331. if test x$enable_threads = xyes; then
  25332. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25333. fi
  25334. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25335. fi
  25336. if test x$have_timers != xyes; then
  25337. if test x$enable_timers = xyes; then
  25338. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25339. fi
  25340. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25341. fi
  25342. if test x$have_filesystem != xyes; then
  25343. if test x$enable_filesystem = xyes; then
  25344. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25345. fi
  25346. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25347. fi
  25348. if test x$have_loadso != xyes; then
  25349. if test x$enable_loadso = xyes; then
  25350. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25351. fi
  25352. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25353. fi
  25354. if test x$SDLMAIN_SOURCES = x; then
  25355. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25356. fi
  25357. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25358. if test x$video_wayland = xyes; then
  25359. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25360. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25361. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25362. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25363. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25364. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25365. echo ;\
  25366. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25367. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25368. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25369. echo ;\
  25370. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25371. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25372. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25373. echo ;\
  25374. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25375. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25376. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25377. done ;\
  25378. echo ;\
  25379. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25380. fi
  25381. OBJECTS=`echo $SOURCES`
  25382. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25383. for EXT in asm cc m c S; do
  25384. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25385. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25386. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25387. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25388. done
  25389. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25390. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25391. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25392. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25393. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25394. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25395. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25396. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25397. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25398. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25399. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25400. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25401. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25402. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25403. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25404. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25405. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25406. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25407. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25408. # Set runtime shared library paths as needed
  25409. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25410. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25411. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25413. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25414. have_enable_new_dtags=no
  25415. save_LDFLAGS="$LDFLAGS"
  25416. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25418. /* end confdefs.h. */
  25419. int
  25420. main (void)
  25421. {
  25422. ;
  25423. return 0;
  25424. }
  25425. _ACEOF
  25426. if ac_fn_c_try_link "$LINENO"
  25427. then :
  25428. have_enable_new_dtags=yes
  25429. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25430. fi
  25431. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25432. conftest$ac_exeext conftest.$ac_ext
  25433. LDFLAGS="$save_LDFLAGS"
  25434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25435. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25436. fi
  25437. if test $ARCH = solaris; then
  25438. SDL_RLD_FLAGS="-R\${libdir}"
  25439. fi
  25440. else
  25441. SDL_RLD_FLAGS=""
  25442. fi
  25443. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25444. eval pkg_prefix=$prefix
  25445. eval pkg_cmakedir=$libdir/cmake/SDL2
  25446. cmake_prefix_relpath="$(echo -n "$pkg_cmakedir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  25447. eval pkg_bindir=$bindir
  25448. bin_prefix_relpath="$(echo -n "pkg_bindir" | sed -E "s#^$pkg_prefix##" | sed -E "s#[A-Za-z0-9_ .-]+#..#g" )"
  25449. if test x$enable_shared = xyes; then
  25450. PKGCONFIG_LIBS_PRIV="
  25451. Libs.private:"
  25452. ENABLE_SHARED_TRUE=
  25453. ENABLE_SHARED_FALSE="#"
  25454. else
  25455. PKGCONFIG_LIBS_PRIV=
  25456. ENABLE_SHARED_TRUE="#"
  25457. ENABLE_SHARED_FALSE=
  25458. fi
  25459. if test x$enable_static = xyes; then
  25460. ENABLE_STATIC_TRUE=
  25461. ENABLE_STATIC_FALSE="#"
  25462. else
  25463. ENABLE_STATIC_TRUE="#"
  25464. ENABLE_STATIC_FALSE=
  25465. fi
  25466. cat >Makefile.rules <<__EOF__
  25467. # Build rules for objects
  25468. -include \$(OBJECTS:.lo=.d)
  25469. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25470. $srcdir/src/SDL.c: update-revision
  25471. $DEPENDS
  25472. $VERSION_DEPENDS
  25473. $SDLMAIN_DEPENDS
  25474. $SDLTEST_DEPENDS
  25475. $WAYLAND_PROTOCOLS_DEPENDS
  25476. __EOF__
  25477. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25478. ac_config_commands="$ac_config_commands sdl2_config"
  25479. SUMMARY="SDL2 Configure Summary:\n"
  25480. if test x$enable_shared = xyes; then
  25481. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25482. fi
  25483. if test x$enable_static = xyes; then
  25484. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25485. fi
  25486. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25487. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25488. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25489. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25490. if test x$have_x = xyes; then
  25491. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25492. fi
  25493. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25494. if test x$have_joystick_virtual = xyes; then
  25495. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25496. else
  25497. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25498. fi
  25499. if test x$have_samplerate_h_hdr = xyes; then
  25500. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25501. else
  25502. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25503. fi
  25504. if test x$have_libudev_h_hdr = xyes; then
  25505. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25506. else
  25507. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25508. fi
  25509. if test x$have_dbus_dbus_h_hdr = xyes; then
  25510. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25511. else
  25512. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25513. fi
  25514. if test x$enable_ime = xyes; then
  25515. SUMMARY="${SUMMARY}Using ime : YES\n"
  25516. else
  25517. SUMMARY="${SUMMARY}Using ime : NO\n"
  25518. fi
  25519. if test x$have_ibus_ibus_h_hdr = xyes; then
  25520. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25521. else
  25522. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25523. fi
  25524. if test x$have_fcitx = xyes; then
  25525. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25526. else
  25527. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25528. fi
  25529. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25530. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25531. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25532. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25533. SUMMARY="${SUMMARY}configure script with:\n"
  25534. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25535. fi
  25536. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25537. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25538. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25539. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25540. SUMMARY="${SUMMARY}configure script with:\n"
  25541. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25542. fi
  25543. ac_config_commands="$ac_config_commands summary"
  25544. cat >confcache <<\_ACEOF
  25545. # This file is a shell script that caches the results of configure
  25546. # tests run on this system so they can be shared between configure
  25547. # scripts and configure runs, see configure's option --config-cache.
  25548. # It is not useful on other systems. If it contains results you don't
  25549. # want to keep, you may remove or edit it.
  25550. #
  25551. # config.status only pays attention to the cache file if you give it
  25552. # the --recheck option to rerun configure.
  25553. #
  25554. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25555. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25556. # following values.
  25557. _ACEOF
  25558. # The following way of writing the cache mishandles newlines in values,
  25559. # but we know of no workaround that is simple, portable, and efficient.
  25560. # So, we kill variables containing newlines.
  25561. # Ultrix sh set writes to stderr and can't be redirected directly,
  25562. # and sets the high bit in the cache file unless we assign to the vars.
  25563. (
  25564. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25565. eval ac_val=\$$ac_var
  25566. case $ac_val in #(
  25567. *${as_nl}*)
  25568. case $ac_var in #(
  25569. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25570. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25571. esac
  25572. case $ac_var in #(
  25573. _ | IFS | as_nl) ;; #(
  25574. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25575. *) { eval $ac_var=; unset $ac_var;} ;;
  25576. esac ;;
  25577. esac
  25578. done
  25579. (set) 2>&1 |
  25580. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25581. *${as_nl}ac_space=\ *)
  25582. # `set' does not quote correctly, so add quotes: double-quote
  25583. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25584. sed -n \
  25585. "s/'/'\\\\''/g;
  25586. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25587. ;; #(
  25588. *)
  25589. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25590. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25591. ;;
  25592. esac |
  25593. sort
  25594. ) |
  25595. sed '
  25596. /^ac_cv_env_/b end
  25597. t clear
  25598. :clear
  25599. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25600. t end
  25601. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25602. :end' >>confcache
  25603. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25604. if test -w "$cache_file"; then
  25605. if test "x$cache_file" != "x/dev/null"; then
  25606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25607. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25608. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25609. cat confcache >"$cache_file"
  25610. else
  25611. case $cache_file in #(
  25612. */* | ?:*)
  25613. mv -f confcache "$cache_file"$$ &&
  25614. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25615. *)
  25616. mv -f confcache "$cache_file" ;;
  25617. esac
  25618. fi
  25619. fi
  25620. else
  25621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25622. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25623. fi
  25624. fi
  25625. rm -f confcache
  25626. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25627. # Let make expand exec_prefix.
  25628. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25629. DEFS=-DHAVE_CONFIG_H
  25630. ac_libobjs=
  25631. ac_ltlibobjs=
  25632. U=
  25633. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25634. # 1. Remove the extension, and $U if already installed.
  25635. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25636. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25637. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25638. # will be set to the directory where LIBOBJS objects are built.
  25639. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25640. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25641. done
  25642. LIBOBJS=$ac_libobjs
  25643. LTLIBOBJS=$ac_ltlibobjs
  25644. : "${CONFIG_STATUS=./config.status}"
  25645. ac_write_fail=0
  25646. ac_clean_files_save=$ac_clean_files
  25647. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25649. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25650. as_write_fail=0
  25651. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25652. #! $SHELL
  25653. # Generated by $as_me.
  25654. # Run this file to recreate the current configuration.
  25655. # Compiler output produced by configure, useful for debugging
  25656. # configure, is in config.log if it exists.
  25657. debug=false
  25658. ac_cs_recheck=false
  25659. ac_cs_silent=false
  25660. SHELL=\${CONFIG_SHELL-$SHELL}
  25661. export SHELL
  25662. _ASEOF
  25663. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25664. ## -------------------- ##
  25665. ## M4sh Initialization. ##
  25666. ## -------------------- ##
  25667. # Be more Bourne compatible
  25668. DUALCASE=1; export DUALCASE # for MKS sh
  25669. as_nop=:
  25670. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25671. then :
  25672. emulate sh
  25673. NULLCMD=:
  25674. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25675. # is contrary to our usage. Disable this feature.
  25676. alias -g '${1+"$@"}'='"$@"'
  25677. setopt NO_GLOB_SUBST
  25678. else $as_nop
  25679. case `(set -o) 2>/dev/null` in #(
  25680. *posix*) :
  25681. set -o posix ;; #(
  25682. *) :
  25683. ;;
  25684. esac
  25685. fi
  25686. # Reset variables that may have inherited troublesome values from
  25687. # the environment.
  25688. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25689. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25690. # side effect of setting IFS to empty, thus disabling word splitting.)
  25691. # Quoting is to prevent editors from complaining about space-tab.
  25692. as_nl='
  25693. '
  25694. export as_nl
  25695. IFS=" "" $as_nl"
  25696. PS1='$ '
  25697. PS2='> '
  25698. PS4='+ '
  25699. # Ensure predictable behavior from utilities with locale-dependent output.
  25700. LC_ALL=C
  25701. export LC_ALL
  25702. LANGUAGE=C
  25703. export LANGUAGE
  25704. # We cannot yet rely on "unset" to work, but we need these variables
  25705. # to be unset--not just set to an empty or harmless value--now, to
  25706. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25707. # also avoids known problems related to "unset" and subshell syntax
  25708. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25709. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25710. do eval test \${$as_var+y} \
  25711. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25712. done
  25713. # Ensure that fds 0, 1, and 2 are open.
  25714. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25715. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25716. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25717. # The user is always right.
  25718. if ${PATH_SEPARATOR+false} :; then
  25719. PATH_SEPARATOR=:
  25720. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25721. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25722. PATH_SEPARATOR=';'
  25723. }
  25724. fi
  25725. # Find who we are. Look in the path if we contain no directory separator.
  25726. as_myself=
  25727. case $0 in #((
  25728. *[\\/]* ) as_myself=$0 ;;
  25729. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25730. for as_dir in $PATH
  25731. do
  25732. IFS=$as_save_IFS
  25733. case $as_dir in #(((
  25734. '') as_dir=./ ;;
  25735. */) ;;
  25736. *) as_dir=$as_dir/ ;;
  25737. esac
  25738. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25739. done
  25740. IFS=$as_save_IFS
  25741. ;;
  25742. esac
  25743. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25744. # in which case we are not to be found in the path.
  25745. if test "x$as_myself" = x; then
  25746. as_myself=$0
  25747. fi
  25748. if test ! -f "$as_myself"; then
  25749. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25750. exit 1
  25751. fi
  25752. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25753. # ----------------------------------------
  25754. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25755. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25756. # script with STATUS, using 1 if that was 0.
  25757. as_fn_error ()
  25758. {
  25759. as_status=$1; test $as_status -eq 0 && as_status=1
  25760. if test "$4"; then
  25761. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25763. fi
  25764. printf "%s\n" "$as_me: error: $2" >&2
  25765. as_fn_exit $as_status
  25766. } # as_fn_error
  25767. # as_fn_set_status STATUS
  25768. # -----------------------
  25769. # Set $? to STATUS, without forking.
  25770. as_fn_set_status ()
  25771. {
  25772. return $1
  25773. } # as_fn_set_status
  25774. # as_fn_exit STATUS
  25775. # -----------------
  25776. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25777. as_fn_exit ()
  25778. {
  25779. set +e
  25780. as_fn_set_status $1
  25781. exit $1
  25782. } # as_fn_exit
  25783. # as_fn_unset VAR
  25784. # ---------------
  25785. # Portably unset VAR.
  25786. as_fn_unset ()
  25787. {
  25788. { eval $1=; unset $1;}
  25789. }
  25790. as_unset=as_fn_unset
  25791. # as_fn_append VAR VALUE
  25792. # ----------------------
  25793. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25794. # advantage of any shell optimizations that allow amortized linear growth over
  25795. # repeated appends, instead of the typical quadratic growth present in naive
  25796. # implementations.
  25797. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25798. then :
  25799. eval 'as_fn_append ()
  25800. {
  25801. eval $1+=\$2
  25802. }'
  25803. else $as_nop
  25804. as_fn_append ()
  25805. {
  25806. eval $1=\$$1\$2
  25807. }
  25808. fi # as_fn_append
  25809. # as_fn_arith ARG...
  25810. # ------------------
  25811. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25812. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25813. # must be portable across $(()) and expr.
  25814. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25815. then :
  25816. eval 'as_fn_arith ()
  25817. {
  25818. as_val=$(( $* ))
  25819. }'
  25820. else $as_nop
  25821. as_fn_arith ()
  25822. {
  25823. as_val=`expr "$@" || test $? -eq 1`
  25824. }
  25825. fi # as_fn_arith
  25826. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25827. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25828. as_expr=expr
  25829. else
  25830. as_expr=false
  25831. fi
  25832. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25833. as_basename=basename
  25834. else
  25835. as_basename=false
  25836. fi
  25837. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25838. as_dirname=dirname
  25839. else
  25840. as_dirname=false
  25841. fi
  25842. as_me=`$as_basename -- "$0" ||
  25843. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25844. X"$0" : 'X\(//\)$' \| \
  25845. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25846. printf "%s\n" X/"$0" |
  25847. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25848. s//\1/
  25849. q
  25850. }
  25851. /^X\/\(\/\/\)$/{
  25852. s//\1/
  25853. q
  25854. }
  25855. /^X\/\(\/\).*/{
  25856. s//\1/
  25857. q
  25858. }
  25859. s/.*/./; q'`
  25860. # Avoid depending upon Character Ranges.
  25861. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25862. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25863. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25864. as_cr_digits='0123456789'
  25865. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25866. # Determine whether it's possible to make 'echo' print without a newline.
  25867. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25868. # for compatibility with existing Makefiles.
  25869. ECHO_C= ECHO_N= ECHO_T=
  25870. case `echo -n x` in #(((((
  25871. -n*)
  25872. case `echo 'xy\c'` in
  25873. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25874. xy) ECHO_C='\c';;
  25875. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25876. ECHO_T=' ';;
  25877. esac;;
  25878. *)
  25879. ECHO_N='-n';;
  25880. esac
  25881. # For backward compatibility with old third-party macros, we provide
  25882. # the shell variables $as_echo and $as_echo_n. New code should use
  25883. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25884. as_echo='printf %s\n'
  25885. as_echo_n='printf %s'
  25886. rm -f conf$$ conf$$.exe conf$$.file
  25887. if test -d conf$$.dir; then
  25888. rm -f conf$$.dir/conf$$.file
  25889. else
  25890. rm -f conf$$.dir
  25891. mkdir conf$$.dir 2>/dev/null
  25892. fi
  25893. if (echo >conf$$.file) 2>/dev/null; then
  25894. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25895. as_ln_s='ln -s'
  25896. # ... but there are two gotchas:
  25897. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25898. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25899. # In both cases, we have to default to `cp -pR'.
  25900. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25901. as_ln_s='cp -pR'
  25902. elif ln conf$$.file conf$$ 2>/dev/null; then
  25903. as_ln_s=ln
  25904. else
  25905. as_ln_s='cp -pR'
  25906. fi
  25907. else
  25908. as_ln_s='cp -pR'
  25909. fi
  25910. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25911. rmdir conf$$.dir 2>/dev/null
  25912. # as_fn_mkdir_p
  25913. # -------------
  25914. # Create "$as_dir" as a directory, including parents if necessary.
  25915. as_fn_mkdir_p ()
  25916. {
  25917. case $as_dir in #(
  25918. -*) as_dir=./$as_dir;;
  25919. esac
  25920. test -d "$as_dir" || eval $as_mkdir_p || {
  25921. as_dirs=
  25922. while :; do
  25923. case $as_dir in #(
  25924. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25925. *) as_qdir=$as_dir;;
  25926. esac
  25927. as_dirs="'$as_qdir' $as_dirs"
  25928. as_dir=`$as_dirname -- "$as_dir" ||
  25929. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25930. X"$as_dir" : 'X\(//\)[^/]' \| \
  25931. X"$as_dir" : 'X\(//\)$' \| \
  25932. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25933. printf "%s\n" X"$as_dir" |
  25934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25935. s//\1/
  25936. q
  25937. }
  25938. /^X\(\/\/\)[^/].*/{
  25939. s//\1/
  25940. q
  25941. }
  25942. /^X\(\/\/\)$/{
  25943. s//\1/
  25944. q
  25945. }
  25946. /^X\(\/\).*/{
  25947. s//\1/
  25948. q
  25949. }
  25950. s/.*/./; q'`
  25951. test -d "$as_dir" && break
  25952. done
  25953. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25954. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25955. } # as_fn_mkdir_p
  25956. if mkdir -p . 2>/dev/null; then
  25957. as_mkdir_p='mkdir -p "$as_dir"'
  25958. else
  25959. test -d ./-p && rmdir ./-p
  25960. as_mkdir_p=false
  25961. fi
  25962. # as_fn_executable_p FILE
  25963. # -----------------------
  25964. # Test if FILE is an executable regular file.
  25965. as_fn_executable_p ()
  25966. {
  25967. test -f "$1" && test -x "$1"
  25968. } # as_fn_executable_p
  25969. as_test_x='test -x'
  25970. as_executable_p=as_fn_executable_p
  25971. # Sed expression to map a string onto a valid CPP name.
  25972. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25973. # Sed expression to map a string onto a valid variable name.
  25974. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25975. exec 6>&1
  25976. ## ----------------------------------- ##
  25977. ## Main body of $CONFIG_STATUS script. ##
  25978. ## ----------------------------------- ##
  25979. _ASEOF
  25980. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25982. # Save the log message, to keep $0 and so on meaningful, and to
  25983. # report actual input values of CONFIG_FILES etc. instead of their
  25984. # values after options handling.
  25985. ac_log="
  25986. This file was extended by $as_me, which was
  25987. generated by GNU Autoconf 2.71. Invocation command line was
  25988. CONFIG_FILES = $CONFIG_FILES
  25989. CONFIG_HEADERS = $CONFIG_HEADERS
  25990. CONFIG_LINKS = $CONFIG_LINKS
  25991. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25992. $ $0 $@
  25993. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25994. "
  25995. _ACEOF
  25996. case $ac_config_files in *"
  25997. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25998. esac
  25999. case $ac_config_headers in *"
  26000. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26001. esac
  26002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26003. # Files that config.status was made for.
  26004. config_files="$ac_config_files"
  26005. config_headers="$ac_config_headers"
  26006. config_commands="$ac_config_commands"
  26007. _ACEOF
  26008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26009. ac_cs_usage="\
  26010. \`$as_me' instantiates files and other configuration actions
  26011. from templates according to the current configuration. Unless the files
  26012. and actions are specified as TAGs, all are instantiated by default.
  26013. Usage: $0 [OPTION]... [TAG]...
  26014. -h, --help print this help, then exit
  26015. -V, --version print version number and configuration settings, then exit
  26016. --config print configuration, then exit
  26017. -q, --quiet, --silent
  26018. do not print progress messages
  26019. -d, --debug don't remove temporary files
  26020. --recheck update $as_me by reconfiguring in the same conditions
  26021. --file=FILE[:TEMPLATE]
  26022. instantiate the configuration file FILE
  26023. --header=FILE[:TEMPLATE]
  26024. instantiate the configuration header FILE
  26025. Configuration files:
  26026. $config_files
  26027. Configuration headers:
  26028. $config_headers
  26029. Configuration commands:
  26030. $config_commands
  26031. Report bugs to the package provider."
  26032. _ACEOF
  26033. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26034. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26035. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26036. ac_cs_config='$ac_cs_config_escaped'
  26037. ac_cs_version="\\
  26038. config.status
  26039. configured by $0, generated by GNU Autoconf 2.71,
  26040. with options \\"\$ac_cs_config\\"
  26041. Copyright (C) 2021 Free Software Foundation, Inc.
  26042. This config.status script is free software; the Free Software Foundation
  26043. gives unlimited permission to copy, distribute and modify it."
  26044. ac_pwd='$ac_pwd'
  26045. srcdir='$srcdir'
  26046. INSTALL='$INSTALL'
  26047. AWK='$AWK'
  26048. test -n "\$AWK" || AWK=awk
  26049. _ACEOF
  26050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26051. # The default lists apply if the user does not specify any file.
  26052. ac_need_defaults=:
  26053. while test $# != 0
  26054. do
  26055. case $1 in
  26056. --*=?*)
  26057. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26058. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26059. ac_shift=:
  26060. ;;
  26061. --*=)
  26062. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26063. ac_optarg=
  26064. ac_shift=:
  26065. ;;
  26066. *)
  26067. ac_option=$1
  26068. ac_optarg=$2
  26069. ac_shift=shift
  26070. ;;
  26071. esac
  26072. case $ac_option in
  26073. # Handling of the options.
  26074. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26075. ac_cs_recheck=: ;;
  26076. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26077. printf "%s\n" "$ac_cs_version"; exit ;;
  26078. --config | --confi | --conf | --con | --co | --c )
  26079. printf "%s\n" "$ac_cs_config"; exit ;;
  26080. --debug | --debu | --deb | --de | --d | -d )
  26081. debug=: ;;
  26082. --file | --fil | --fi | --f )
  26083. $ac_shift
  26084. case $ac_optarg in
  26085. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26086. '') as_fn_error $? "missing file argument" ;;
  26087. esac
  26088. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26089. ac_need_defaults=false;;
  26090. --header | --heade | --head | --hea )
  26091. $ac_shift
  26092. case $ac_optarg in
  26093. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26094. esac
  26095. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26096. ac_need_defaults=false;;
  26097. --he | --h)
  26098. # Conflict between --help and --header
  26099. as_fn_error $? "ambiguous option: \`$1'
  26100. Try \`$0 --help' for more information.";;
  26101. --help | --hel | -h )
  26102. printf "%s\n" "$ac_cs_usage"; exit ;;
  26103. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26104. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26105. ac_cs_silent=: ;;
  26106. # This is an error.
  26107. -*) as_fn_error $? "unrecognized option: \`$1'
  26108. Try \`$0 --help' for more information." ;;
  26109. *) as_fn_append ac_config_targets " $1"
  26110. ac_need_defaults=false ;;
  26111. esac
  26112. shift
  26113. done
  26114. ac_configure_extra_args=
  26115. if $ac_cs_silent; then
  26116. exec 6>/dev/null
  26117. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26118. fi
  26119. _ACEOF
  26120. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26121. if \$ac_cs_recheck; then
  26122. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26123. shift
  26124. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26125. CONFIG_SHELL='$SHELL'
  26126. export CONFIG_SHELL
  26127. exec "\$@"
  26128. fi
  26129. _ACEOF
  26130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26131. exec 5>>config.log
  26132. {
  26133. echo
  26134. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26135. ## Running $as_me. ##
  26136. _ASBOX
  26137. printf "%s\n" "$ac_log"
  26138. } >&5
  26139. _ACEOF
  26140. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26141. #
  26142. # INIT-COMMANDS
  26143. #
  26144. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26145. # if CDPATH is set.
  26146. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26147. sed_quote_subst='$sed_quote_subst'
  26148. double_quote_subst='$double_quote_subst'
  26149. delay_variable_subst='$delay_variable_subst'
  26150. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26151. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26152. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26153. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26154. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26155. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26156. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26157. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26158. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26159. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26160. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26161. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26162. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26163. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26164. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26165. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26166. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26167. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26168. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26169. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26170. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26171. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26172. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26173. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26174. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26175. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26176. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26177. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26178. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26179. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26180. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26181. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26182. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26183. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26184. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26185. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26186. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26187. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26188. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26189. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26190. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26191. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26192. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26193. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26194. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26195. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26196. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26197. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26198. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26199. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26200. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26201. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26202. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26203. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26204. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26205. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26206. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26207. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26208. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26209. 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"`'
  26210. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26211. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26212. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26213. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26214. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26215. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26216. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26217. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26218. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26219. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26220. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26221. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26222. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26223. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26224. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26225. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26226. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26227. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26228. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26229. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26230. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26231. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26232. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26233. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26234. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26235. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26236. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26237. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26238. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26239. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26240. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26241. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26242. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26243. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26244. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26245. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26246. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26247. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26248. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26249. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26250. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26251. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26252. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26253. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26254. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26255. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26256. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26257. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26258. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26259. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26260. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26261. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26262. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26263. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26264. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26265. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26266. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26267. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26268. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26269. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26270. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26271. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26272. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26273. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26274. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26275. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26276. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26277. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26278. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26279. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26280. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26281. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26282. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26283. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26284. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26285. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26286. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26287. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26288. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26289. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26290. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26291. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26292. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26293. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26294. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26295. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26296. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26297. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26298. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26299. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26300. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26301. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26302. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26303. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26304. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26305. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26306. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26307. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26308. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26309. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26310. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26311. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26312. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26313. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26314. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26315. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26316. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26317. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26318. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26319. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26320. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26321. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26322. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26323. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26324. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26325. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26326. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26327. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26328. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26329. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26330. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26331. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26332. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26333. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26334. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26335. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26336. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26337. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26338. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26339. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26340. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26341. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26342. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26343. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26344. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26345. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26346. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26347. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26348. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26349. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26350. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26351. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26352. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26353. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26354. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26355. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26356. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26357. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26358. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26359. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26360. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26361. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26362. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26363. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26364. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26365. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26366. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26367. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26368. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26369. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26370. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26371. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26372. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26373. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26374. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26375. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26376. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26377. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26378. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26379. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26380. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26381. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26382. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26383. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26384. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26385. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26386. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26387. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26388. LTCC='$LTCC'
  26389. LTCFLAGS='$LTCFLAGS'
  26390. compiler='$compiler_DEFAULT'
  26391. # A function that is used when there is no print builtin or printf.
  26392. func_fallback_echo ()
  26393. {
  26394. eval 'cat <<_LTECHO_EOF
  26395. \$1
  26396. _LTECHO_EOF'
  26397. }
  26398. # Quote evaled strings.
  26399. for var in AS \
  26400. DLLTOOL \
  26401. OBJDUMP \
  26402. SHELL \
  26403. ECHO \
  26404. PATH_SEPARATOR \
  26405. SED \
  26406. GREP \
  26407. EGREP \
  26408. FGREP \
  26409. LD \
  26410. NM \
  26411. LN_S \
  26412. lt_SP2NL \
  26413. lt_NL2SP \
  26414. reload_flag \
  26415. deplibs_check_method \
  26416. file_magic_cmd \
  26417. file_magic_glob \
  26418. want_nocaseglob \
  26419. sharedlib_from_linklib_cmd \
  26420. AR \
  26421. AR_FLAGS \
  26422. archiver_list_spec \
  26423. STRIP \
  26424. RANLIB \
  26425. CC \
  26426. CFLAGS \
  26427. compiler \
  26428. lt_cv_sys_global_symbol_pipe \
  26429. lt_cv_sys_global_symbol_to_cdecl \
  26430. lt_cv_sys_global_symbol_to_import \
  26431. lt_cv_sys_global_symbol_to_c_name_address \
  26432. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26433. lt_cv_nm_interface \
  26434. nm_file_list_spec \
  26435. lt_cv_truncate_bin \
  26436. lt_prog_compiler_no_builtin_flag \
  26437. lt_prog_compiler_pic \
  26438. lt_prog_compiler_wl \
  26439. lt_prog_compiler_static \
  26440. lt_cv_prog_compiler_c_o \
  26441. need_locks \
  26442. MANIFEST_TOOL \
  26443. DSYMUTIL \
  26444. NMEDIT \
  26445. LIPO \
  26446. OTOOL \
  26447. OTOOL64 \
  26448. shrext_cmds \
  26449. export_dynamic_flag_spec \
  26450. whole_archive_flag_spec \
  26451. compiler_needs_object \
  26452. with_gnu_ld \
  26453. allow_undefined_flag \
  26454. no_undefined_flag \
  26455. hardcode_libdir_flag_spec \
  26456. hardcode_libdir_separator \
  26457. exclude_expsyms \
  26458. include_expsyms \
  26459. file_list_spec \
  26460. variables_saved_for_relink \
  26461. libname_spec \
  26462. library_names_spec \
  26463. soname_spec \
  26464. install_override_mode \
  26465. finish_eval \
  26466. old_striplib \
  26467. striplib \
  26468. compiler_lib_search_dirs \
  26469. predep_objects \
  26470. postdep_objects \
  26471. predeps \
  26472. postdeps \
  26473. compiler_lib_search_path \
  26474. LD_RC \
  26475. LD_CXX \
  26476. reload_flag_RC \
  26477. reload_flag_CXX \
  26478. compiler_RC \
  26479. compiler_CXX \
  26480. lt_prog_compiler_no_builtin_flag_RC \
  26481. lt_prog_compiler_no_builtin_flag_CXX \
  26482. lt_prog_compiler_pic_RC \
  26483. lt_prog_compiler_pic_CXX \
  26484. lt_prog_compiler_wl_RC \
  26485. lt_prog_compiler_wl_CXX \
  26486. lt_prog_compiler_static_RC \
  26487. lt_prog_compiler_static_CXX \
  26488. lt_cv_prog_compiler_c_o_RC \
  26489. lt_cv_prog_compiler_c_o_CXX \
  26490. export_dynamic_flag_spec_RC \
  26491. export_dynamic_flag_spec_CXX \
  26492. whole_archive_flag_spec_RC \
  26493. whole_archive_flag_spec_CXX \
  26494. compiler_needs_object_RC \
  26495. compiler_needs_object_CXX \
  26496. with_gnu_ld_RC \
  26497. with_gnu_ld_CXX \
  26498. allow_undefined_flag_RC \
  26499. allow_undefined_flag_CXX \
  26500. no_undefined_flag_RC \
  26501. no_undefined_flag_CXX \
  26502. hardcode_libdir_flag_spec_RC \
  26503. hardcode_libdir_flag_spec_CXX \
  26504. hardcode_libdir_separator_RC \
  26505. hardcode_libdir_separator_CXX \
  26506. exclude_expsyms_RC \
  26507. exclude_expsyms_CXX \
  26508. include_expsyms_RC \
  26509. include_expsyms_CXX \
  26510. file_list_spec_RC \
  26511. file_list_spec_CXX \
  26512. compiler_lib_search_dirs_RC \
  26513. compiler_lib_search_dirs_CXX \
  26514. predep_objects_RC \
  26515. predep_objects_CXX \
  26516. postdep_objects_RC \
  26517. postdep_objects_CXX \
  26518. predeps_RC \
  26519. predeps_CXX \
  26520. postdeps_RC \
  26521. postdeps_CXX \
  26522. compiler_lib_search_path_RC \
  26523. compiler_lib_search_path_CXX; do
  26524. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26525. *[\\\\\\\`\\"\\\$]*)
  26526. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26527. ;;
  26528. *)
  26529. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26530. ;;
  26531. esac
  26532. done
  26533. # Double-quote double-evaled strings.
  26534. for var in reload_cmds \
  26535. old_postinstall_cmds \
  26536. old_postuninstall_cmds \
  26537. old_archive_cmds \
  26538. extract_expsyms_cmds \
  26539. old_archive_from_new_cmds \
  26540. old_archive_from_expsyms_cmds \
  26541. archive_cmds \
  26542. archive_expsym_cmds \
  26543. module_cmds \
  26544. module_expsym_cmds \
  26545. export_symbols_cmds \
  26546. prelink_cmds \
  26547. postlink_cmds \
  26548. postinstall_cmds \
  26549. postuninstall_cmds \
  26550. finish_cmds \
  26551. sys_lib_search_path_spec \
  26552. configure_time_dlsearch_path \
  26553. configure_time_lt_sys_library_path \
  26554. reload_cmds_RC \
  26555. reload_cmds_CXX \
  26556. old_archive_cmds_RC \
  26557. old_archive_cmds_CXX \
  26558. old_archive_from_new_cmds_RC \
  26559. old_archive_from_new_cmds_CXX \
  26560. old_archive_from_expsyms_cmds_RC \
  26561. old_archive_from_expsyms_cmds_CXX \
  26562. archive_cmds_RC \
  26563. archive_cmds_CXX \
  26564. archive_expsym_cmds_RC \
  26565. archive_expsym_cmds_CXX \
  26566. module_cmds_RC \
  26567. module_cmds_CXX \
  26568. module_expsym_cmds_RC \
  26569. module_expsym_cmds_CXX \
  26570. export_symbols_cmds_RC \
  26571. export_symbols_cmds_CXX \
  26572. prelink_cmds_RC \
  26573. prelink_cmds_CXX \
  26574. postlink_cmds_RC \
  26575. postlink_cmds_CXX; do
  26576. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26577. *[\\\\\\\`\\"\\\$]*)
  26578. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26579. ;;
  26580. *)
  26581. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26582. ;;
  26583. esac
  26584. done
  26585. ac_aux_dir='$ac_aux_dir'
  26586. # See if we are running on zsh, and set the options that allow our
  26587. # commands through without removal of \ escapes INIT.
  26588. if test -n "\${ZSH_VERSION+set}"; then
  26589. setopt NO_GLOB_SUBST
  26590. fi
  26591. PACKAGE='$PACKAGE'
  26592. VERSION='$VERSION'
  26593. RM='$RM'
  26594. ofile='$ofile'
  26595. SUMMARY="$SUMMARY"
  26596. _ACEOF
  26597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26598. # Handling of arguments.
  26599. for ac_config_target in $ac_config_targets
  26600. do
  26601. case $ac_config_target in
  26602. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26603. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26604. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26605. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26606. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26607. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26608. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26609. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26610. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26611. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26612. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26613. esac
  26614. done
  26615. # If the user did not use the arguments to specify the items to instantiate,
  26616. # then the envvar interface is used. Set only those that are not.
  26617. # We use the long form for the default assignment because of an extremely
  26618. # bizarre bug on SunOS 4.1.3.
  26619. if $ac_need_defaults; then
  26620. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26621. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26622. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26623. fi
  26624. # Have a temporary directory for convenience. Make it in the build tree
  26625. # simply because there is no reason against having it here, and in addition,
  26626. # creating and moving files from /tmp can sometimes cause problems.
  26627. # Hook for its removal unless debugging.
  26628. # Note that there is a small window in which the directory will not be cleaned:
  26629. # after its creation but before its name has been assigned to `$tmp'.
  26630. $debug ||
  26631. {
  26632. tmp= ac_tmp=
  26633. trap 'exit_status=$?
  26634. : "${ac_tmp:=$tmp}"
  26635. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26636. ' 0
  26637. trap 'as_fn_exit 1' 1 2 13 15
  26638. }
  26639. # Create a (secure) tmp directory for tmp files.
  26640. {
  26641. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26642. test -d "$tmp"
  26643. } ||
  26644. {
  26645. tmp=./conf$$-$RANDOM
  26646. (umask 077 && mkdir "$tmp")
  26647. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26648. ac_tmp=$tmp
  26649. # Set up the scripts for CONFIG_FILES section.
  26650. # No need to generate them if there are no CONFIG_FILES.
  26651. # This happens for instance with `./config.status config.h'.
  26652. if test -n "$CONFIG_FILES"; then
  26653. ac_cr=`echo X | tr X '\015'`
  26654. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26655. # But we know of no other shell where ac_cr would be empty at this
  26656. # point, so we can use a bashism as a fallback.
  26657. if test "x$ac_cr" = x; then
  26658. eval ac_cr=\$\'\\r\'
  26659. fi
  26660. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26661. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26662. ac_cs_awk_cr='\\r'
  26663. else
  26664. ac_cs_awk_cr=$ac_cr
  26665. fi
  26666. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26667. _ACEOF
  26668. {
  26669. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26670. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26671. echo "_ACEOF"
  26672. } >conf$$subs.sh ||
  26673. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26674. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26675. ac_delim='%!_!# '
  26676. for ac_last_try in false false false false false :; do
  26677. . ./conf$$subs.sh ||
  26678. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26679. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26680. if test $ac_delim_n = $ac_delim_num; then
  26681. break
  26682. elif $ac_last_try; then
  26683. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26684. else
  26685. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26686. fi
  26687. done
  26688. rm -f conf$$subs.sh
  26689. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26690. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26691. _ACEOF
  26692. sed -n '
  26693. h
  26694. s/^/S["/; s/!.*/"]=/
  26695. p
  26696. g
  26697. s/^[^!]*!//
  26698. :repl
  26699. t repl
  26700. s/'"$ac_delim"'$//
  26701. t delim
  26702. :nl
  26703. h
  26704. s/\(.\{148\}\)..*/\1/
  26705. t more1
  26706. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26707. p
  26708. n
  26709. b repl
  26710. :more1
  26711. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26712. p
  26713. g
  26714. s/.\{148\}//
  26715. t nl
  26716. :delim
  26717. h
  26718. s/\(.\{148\}\)..*/\1/
  26719. t more2
  26720. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26721. p
  26722. b
  26723. :more2
  26724. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26725. p
  26726. g
  26727. s/.\{148\}//
  26728. t delim
  26729. ' <conf$$subs.awk | sed '
  26730. /^[^""]/{
  26731. N
  26732. s/\n//
  26733. }
  26734. ' >>$CONFIG_STATUS || ac_write_fail=1
  26735. rm -f conf$$subs.awk
  26736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26737. _ACAWK
  26738. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26739. for (key in S) S_is_set[key] = 1
  26740. FS = ""
  26741. }
  26742. {
  26743. line = $ 0
  26744. nfields = split(line, field, "@")
  26745. substed = 0
  26746. len = length(field[1])
  26747. for (i = 2; i < nfields; i++) {
  26748. key = field[i]
  26749. keylen = length(key)
  26750. if (S_is_set[key]) {
  26751. value = S[key]
  26752. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26753. len += length(value) + length(field[++i])
  26754. substed = 1
  26755. } else
  26756. len += 1 + keylen
  26757. }
  26758. print line
  26759. }
  26760. _ACAWK
  26761. _ACEOF
  26762. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26763. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26764. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26765. else
  26766. cat
  26767. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26768. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26769. _ACEOF
  26770. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26771. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26772. # trailing colons and then remove the whole line if VPATH becomes empty
  26773. # (actually we leave an empty line to preserve line numbers).
  26774. if test "x$srcdir" = x.; then
  26775. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26776. h
  26777. s///
  26778. s/^/:/
  26779. s/[ ]*$/:/
  26780. s/:\$(srcdir):/:/g
  26781. s/:\${srcdir}:/:/g
  26782. s/:@srcdir@:/:/g
  26783. s/^:*//
  26784. s/:*$//
  26785. x
  26786. s/\(=[ ]*\).*/\1/
  26787. G
  26788. s/\n//
  26789. s/^[^=]*=[ ]*$//
  26790. }'
  26791. fi
  26792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26793. fi # test -n "$CONFIG_FILES"
  26794. # Set up the scripts for CONFIG_HEADERS section.
  26795. # No need to generate them if there are no CONFIG_HEADERS.
  26796. # This happens for instance with `./config.status Makefile'.
  26797. if test -n "$CONFIG_HEADERS"; then
  26798. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26799. BEGIN {
  26800. _ACEOF
  26801. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26802. # here-document in config.status, that substitutes the proper values into
  26803. # config.h.in to produce config.h.
  26804. # Create a delimiter string that does not exist in confdefs.h, to ease
  26805. # handling of long lines.
  26806. ac_delim='%!_!# '
  26807. for ac_last_try in false false :; do
  26808. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26809. if test -z "$ac_tt"; then
  26810. break
  26811. elif $ac_last_try; then
  26812. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26813. else
  26814. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26815. fi
  26816. done
  26817. # For the awk script, D is an array of macro values keyed by name,
  26818. # likewise P contains macro parameters if any. Preserve backslash
  26819. # newline sequences.
  26820. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26821. sed -n '
  26822. s/.\{148\}/&'"$ac_delim"'/g
  26823. t rset
  26824. :rset
  26825. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26826. t def
  26827. d
  26828. :def
  26829. s/\\$//
  26830. t bsnl
  26831. s/["\\]/\\&/g
  26832. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26833. D["\1"]=" \3"/p
  26834. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26835. d
  26836. :bsnl
  26837. s/["\\]/\\&/g
  26838. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26839. D["\1"]=" \3\\\\\\n"\\/p
  26840. t cont
  26841. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26842. t cont
  26843. d
  26844. :cont
  26845. n
  26846. s/.\{148\}/&'"$ac_delim"'/g
  26847. t clear
  26848. :clear
  26849. s/\\$//
  26850. t bsnlc
  26851. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26852. d
  26853. :bsnlc
  26854. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26855. b cont
  26856. ' <confdefs.h | sed '
  26857. s/'"$ac_delim"'/"\\\
  26858. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26859. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26860. for (key in D) D_is_set[key] = 1
  26861. FS = ""
  26862. }
  26863. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26864. line = \$ 0
  26865. split(line, arg, " ")
  26866. if (arg[1] == "#") {
  26867. defundef = arg[2]
  26868. mac1 = arg[3]
  26869. } else {
  26870. defundef = substr(arg[1], 2)
  26871. mac1 = arg[2]
  26872. }
  26873. split(mac1, mac2, "(") #)
  26874. macro = mac2[1]
  26875. prefix = substr(line, 1, index(line, defundef) - 1)
  26876. if (D_is_set[macro]) {
  26877. # Preserve the white space surrounding the "#".
  26878. print prefix "define", macro P[macro] D[macro]
  26879. next
  26880. } else {
  26881. # Replace #undef with comments. This is necessary, for example,
  26882. # in the case of _POSIX_SOURCE, which is predefined and required
  26883. # on some systems where configure will not decide to define it.
  26884. if (defundef == "undef") {
  26885. print "/*", prefix defundef, macro, "*/"
  26886. next
  26887. }
  26888. }
  26889. }
  26890. { print }
  26891. _ACAWK
  26892. _ACEOF
  26893. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26894. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26895. fi # test -n "$CONFIG_HEADERS"
  26896. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26897. shift
  26898. for ac_tag
  26899. do
  26900. case $ac_tag in
  26901. :[FHLC]) ac_mode=$ac_tag; continue;;
  26902. esac
  26903. case $ac_mode$ac_tag in
  26904. :[FHL]*:*);;
  26905. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26906. :[FH]-) ac_tag=-:-;;
  26907. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26908. esac
  26909. ac_save_IFS=$IFS
  26910. IFS=:
  26911. set x $ac_tag
  26912. IFS=$ac_save_IFS
  26913. shift
  26914. ac_file=$1
  26915. shift
  26916. case $ac_mode in
  26917. :L) ac_source=$1;;
  26918. :[FH])
  26919. ac_file_inputs=
  26920. for ac_f
  26921. do
  26922. case $ac_f in
  26923. -) ac_f="$ac_tmp/stdin";;
  26924. *) # Look for the file first in the build tree, then in the source tree
  26925. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26926. # because $ac_f cannot contain `:'.
  26927. test -f "$ac_f" ||
  26928. case $ac_f in
  26929. [\\/$]*) false;;
  26930. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26931. esac ||
  26932. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26933. esac
  26934. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26935. as_fn_append ac_file_inputs " '$ac_f'"
  26936. done
  26937. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26938. # use $as_me), people would be surprised to read:
  26939. # /* config.h. Generated by config.status. */
  26940. configure_input='Generated from '`
  26941. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26942. `' by configure.'
  26943. if test x"$ac_file" != x-; then
  26944. configure_input="$ac_file. $configure_input"
  26945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26946. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26947. fi
  26948. # Neutralize special characters interpreted by sed in replacement strings.
  26949. case $configure_input in #(
  26950. *\&* | *\|* | *\\* )
  26951. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26952. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26953. *) ac_sed_conf_input=$configure_input;;
  26954. esac
  26955. case $ac_tag in
  26956. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26957. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26958. esac
  26959. ;;
  26960. esac
  26961. ac_dir=`$as_dirname -- "$ac_file" ||
  26962. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26963. X"$ac_file" : 'X\(//\)[^/]' \| \
  26964. X"$ac_file" : 'X\(//\)$' \| \
  26965. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26966. printf "%s\n" X"$ac_file" |
  26967. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26968. s//\1/
  26969. q
  26970. }
  26971. /^X\(\/\/\)[^/].*/{
  26972. s//\1/
  26973. q
  26974. }
  26975. /^X\(\/\/\)$/{
  26976. s//\1/
  26977. q
  26978. }
  26979. /^X\(\/\).*/{
  26980. s//\1/
  26981. q
  26982. }
  26983. s/.*/./; q'`
  26984. as_dir="$ac_dir"; as_fn_mkdir_p
  26985. ac_builddir=.
  26986. case "$ac_dir" in
  26987. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26988. *)
  26989. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26990. # A ".." for each directory in $ac_dir_suffix.
  26991. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26992. case $ac_top_builddir_sub in
  26993. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26994. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26995. esac ;;
  26996. esac
  26997. ac_abs_top_builddir=$ac_pwd
  26998. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26999. # for backward compatibility:
  27000. ac_top_builddir=$ac_top_build_prefix
  27001. case $srcdir in
  27002. .) # We are building in place.
  27003. ac_srcdir=.
  27004. ac_top_srcdir=$ac_top_builddir_sub
  27005. ac_abs_top_srcdir=$ac_pwd ;;
  27006. [\\/]* | ?:[\\/]* ) # Absolute name.
  27007. ac_srcdir=$srcdir$ac_dir_suffix;
  27008. ac_top_srcdir=$srcdir
  27009. ac_abs_top_srcdir=$srcdir ;;
  27010. *) # Relative name.
  27011. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27012. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27013. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27014. esac
  27015. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27016. case $ac_mode in
  27017. :F)
  27018. #
  27019. # CONFIG_FILE
  27020. #
  27021. case $INSTALL in
  27022. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27023. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27024. esac
  27025. _ACEOF
  27026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27027. # If the template does not know about datarootdir, expand it.
  27028. # FIXME: This hack should be removed a few years after 2.60.
  27029. ac_datarootdir_hack=; ac_datarootdir_seen=
  27030. ac_sed_dataroot='
  27031. /datarootdir/ {
  27032. p
  27033. q
  27034. }
  27035. /@datadir@/p
  27036. /@docdir@/p
  27037. /@infodir@/p
  27038. /@localedir@/p
  27039. /@mandir@/p'
  27040. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27041. *datarootdir*) ac_datarootdir_seen=yes;;
  27042. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27044. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27045. _ACEOF
  27046. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27047. ac_datarootdir_hack='
  27048. s&@datadir@&$datadir&g
  27049. s&@docdir@&$docdir&g
  27050. s&@infodir@&$infodir&g
  27051. s&@localedir@&$localedir&g
  27052. s&@mandir@&$mandir&g
  27053. s&\\\${datarootdir}&$datarootdir&g' ;;
  27054. esac
  27055. _ACEOF
  27056. # Neutralize VPATH when `$srcdir' = `.'.
  27057. # Shell code in configure.ac might set extrasub.
  27058. # FIXME: do we really want to maintain this feature?
  27059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27060. ac_sed_extra="$ac_vpsub
  27061. $extrasub
  27062. _ACEOF
  27063. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27064. :t
  27065. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27066. s|@configure_input@|$ac_sed_conf_input|;t t
  27067. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27068. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27069. s&@srcdir@&$ac_srcdir&;t t
  27070. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27071. s&@top_srcdir@&$ac_top_srcdir&;t t
  27072. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27073. s&@builddir@&$ac_builddir&;t t
  27074. s&@abs_builddir@&$ac_abs_builddir&;t t
  27075. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27076. s&@INSTALL@&$ac_INSTALL&;t t
  27077. $ac_datarootdir_hack
  27078. "
  27079. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27080. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27081. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27082. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27083. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27084. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27086. which seems to be undefined. Please make sure it is defined" >&5
  27087. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27088. which seems to be undefined. Please make sure it is defined" >&2;}
  27089. rm -f "$ac_tmp/stdin"
  27090. case $ac_file in
  27091. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27092. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27093. esac \
  27094. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27095. ;;
  27096. :H)
  27097. #
  27098. # CONFIG_HEADER
  27099. #
  27100. if test x"$ac_file" != x-; then
  27101. {
  27102. printf "%s\n" "/* $configure_input */" >&1 \
  27103. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27104. } >"$ac_tmp/config.h" \
  27105. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27106. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27108. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27109. else
  27110. rm -f "$ac_file"
  27111. mv "$ac_tmp/config.h" "$ac_file" \
  27112. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27113. fi
  27114. else
  27115. printf "%s\n" "/* $configure_input */" >&1 \
  27116. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27117. || as_fn_error $? "could not create -" "$LINENO" 5
  27118. fi
  27119. ;;
  27120. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27121. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27122. ;;
  27123. esac
  27124. case $ac_file$ac_mode in
  27125. "libtool":C)
  27126. # See if we are running on zsh, and set the options that allow our
  27127. # commands through without removal of \ escapes.
  27128. if test -n "${ZSH_VERSION+set}"; then
  27129. setopt NO_GLOB_SUBST
  27130. fi
  27131. cfgfile=${ofile}T
  27132. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27133. $RM "$cfgfile"
  27134. cat <<_LT_EOF >> "$cfgfile"
  27135. #! $SHELL
  27136. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27137. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27138. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27139. # Provide generalized library-building support services.
  27140. # Written by Gordon Matzigkeit, 1996
  27141. # Copyright (C) 2014 Free Software Foundation, Inc.
  27142. # This is free software; see the source for copying conditions. There is NO
  27143. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27144. # GNU Libtool is free software; you can redistribute it and/or modify
  27145. # it under the terms of the GNU General Public License as published by
  27146. # the Free Software Foundation; either version 2 of of the License, or
  27147. # (at your option) any later version.
  27148. #
  27149. # As a special exception to the GNU General Public License, if you
  27150. # distribute this file as part of a program or library that is built
  27151. # using GNU Libtool, you may include this file under the same
  27152. # distribution terms that you use for the rest of that program.
  27153. #
  27154. # GNU Libtool is distributed in the hope that it will be useful, but
  27155. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27156. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27157. # GNU General Public License for more details.
  27158. #
  27159. # You should have received a copy of the GNU General Public License
  27160. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27161. # The names of the tagged configurations supported by this script.
  27162. available_tags='RC CXX '
  27163. # Configured defaults for sys_lib_dlsearch_path munging.
  27164. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27165. # ### BEGIN LIBTOOL CONFIG
  27166. # Which release of libtool.m4 was used?
  27167. macro_version=$macro_version
  27168. macro_revision=$macro_revision
  27169. # Assembler program.
  27170. AS=$lt_AS
  27171. # DLL creation program.
  27172. DLLTOOL=$lt_DLLTOOL
  27173. # Object dumper program.
  27174. OBJDUMP=$lt_OBJDUMP
  27175. # Whether or not to build shared libraries.
  27176. build_libtool_libs=$enable_shared
  27177. # Whether or not to build static libraries.
  27178. build_old_libs=$enable_static
  27179. # What type of objects to build.
  27180. pic_mode=$pic_mode
  27181. # Whether or not to optimize for fast installation.
  27182. fast_install=$enable_fast_install
  27183. # Shared archive member basename,for filename based shared library versioning on AIX.
  27184. shared_archive_member_spec=$shared_archive_member_spec
  27185. # Shell to use when invoking shell scripts.
  27186. SHELL=$lt_SHELL
  27187. # An echo program that protects backslashes.
  27188. ECHO=$lt_ECHO
  27189. # The PATH separator for the build system.
  27190. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27191. # The host system.
  27192. host_alias=$host_alias
  27193. host=$host
  27194. host_os=$host_os
  27195. # The build system.
  27196. build_alias=$build_alias
  27197. build=$build
  27198. build_os=$build_os
  27199. # A sed program that does not truncate output.
  27200. SED=$lt_SED
  27201. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27202. Xsed="\$SED -e 1s/^X//"
  27203. # A grep program that handles long lines.
  27204. GREP=$lt_GREP
  27205. # An ERE matcher.
  27206. EGREP=$lt_EGREP
  27207. # A literal string matcher.
  27208. FGREP=$lt_FGREP
  27209. # A BSD- or MS-compatible name lister.
  27210. NM=$lt_NM
  27211. # Whether we need soft or hard links.
  27212. LN_S=$lt_LN_S
  27213. # What is the maximum length of a command?
  27214. max_cmd_len=$max_cmd_len
  27215. # Object file suffix (normally "o").
  27216. objext=$ac_objext
  27217. # Executable file suffix (normally "").
  27218. exeext=$exeext
  27219. # whether the shell understands "unset".
  27220. lt_unset=$lt_unset
  27221. # turn spaces into newlines.
  27222. SP2NL=$lt_lt_SP2NL
  27223. # turn newlines into spaces.
  27224. NL2SP=$lt_lt_NL2SP
  27225. # convert \$build file names to \$host format.
  27226. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27227. # convert \$build files to toolchain format.
  27228. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27229. # Method to check whether dependent libraries are shared objects.
  27230. deplibs_check_method=$lt_deplibs_check_method
  27231. # Command to use when deplibs_check_method = "file_magic".
  27232. file_magic_cmd=$lt_file_magic_cmd
  27233. # How to find potential files when deplibs_check_method = "file_magic".
  27234. file_magic_glob=$lt_file_magic_glob
  27235. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27236. want_nocaseglob=$lt_want_nocaseglob
  27237. # Command to associate shared and link libraries.
  27238. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27239. # The archiver.
  27240. AR=$lt_AR
  27241. # Flags to create an archive.
  27242. AR_FLAGS=$lt_AR_FLAGS
  27243. # How to feed a file listing to the archiver.
  27244. archiver_list_spec=$lt_archiver_list_spec
  27245. # A symbol stripping program.
  27246. STRIP=$lt_STRIP
  27247. # Commands used to install an old-style archive.
  27248. RANLIB=$lt_RANLIB
  27249. old_postinstall_cmds=$lt_old_postinstall_cmds
  27250. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27251. # Whether to use a lock for old archive extraction.
  27252. lock_old_archive_extraction=$lock_old_archive_extraction
  27253. # A C compiler.
  27254. LTCC=$lt_CC
  27255. # LTCC compiler flags.
  27256. LTCFLAGS=$lt_CFLAGS
  27257. # Take the output of nm and produce a listing of raw symbols and C names.
  27258. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27259. # Transform the output of nm in a proper C declaration.
  27260. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27261. # Transform the output of nm into a list of symbols to manually relocate.
  27262. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27263. # Transform the output of nm in a C name address pair.
  27264. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27265. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27266. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27267. # The name lister interface.
  27268. nm_interface=$lt_lt_cv_nm_interface
  27269. # Specify filename containing input files for \$NM.
  27270. nm_file_list_spec=$lt_nm_file_list_spec
  27271. # The root where to search for dependent libraries,and where our libraries should be installed.
  27272. lt_sysroot=$lt_sysroot
  27273. # Command to truncate a binary pipe.
  27274. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27275. # The name of the directory that contains temporary libtool files.
  27276. objdir=$objdir
  27277. # Used to examine libraries when file_magic_cmd begins with "file".
  27278. MAGIC_CMD=$MAGIC_CMD
  27279. # Must we lock files when doing compilation?
  27280. need_locks=$lt_need_locks
  27281. # Manifest tool.
  27282. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27283. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27284. DSYMUTIL=$lt_DSYMUTIL
  27285. # Tool to change global to local symbols on Mac OS X.
  27286. NMEDIT=$lt_NMEDIT
  27287. # Tool to manipulate fat objects and archives on Mac OS X.
  27288. LIPO=$lt_LIPO
  27289. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27290. OTOOL=$lt_OTOOL
  27291. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27292. OTOOL64=$lt_OTOOL64
  27293. # Old archive suffix (normally "a").
  27294. libext=$libext
  27295. # Shared library suffix (normally ".so").
  27296. shrext_cmds=$lt_shrext_cmds
  27297. # The commands to extract the exported symbol list from a shared archive.
  27298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27299. # Variables whose values should be saved in libtool wrapper scripts and
  27300. # restored at link time.
  27301. variables_saved_for_relink=$lt_variables_saved_for_relink
  27302. # Do we need the "lib" prefix for modules?
  27303. need_lib_prefix=$need_lib_prefix
  27304. # Do we need a version for libraries?
  27305. need_version=$need_version
  27306. # Library versioning type.
  27307. version_type=$version_type
  27308. # Shared library runtime path variable.
  27309. runpath_var=$runpath_var
  27310. # Shared library path variable.
  27311. shlibpath_var=$shlibpath_var
  27312. # Is shlibpath searched before the hard-coded library search path?
  27313. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27314. # Format of library name prefix.
  27315. libname_spec=$lt_libname_spec
  27316. # List of archive names. First name is the real one, the rest are links.
  27317. # The last name is the one that the linker finds with -lNAME
  27318. library_names_spec=$lt_library_names_spec
  27319. # The coded name of the library, if different from the real name.
  27320. soname_spec=$lt_soname_spec
  27321. # Permission mode override for installation of shared libraries.
  27322. install_override_mode=$lt_install_override_mode
  27323. # Command to use after installation of a shared archive.
  27324. postinstall_cmds=$lt_postinstall_cmds
  27325. # Command to use after uninstallation of a shared archive.
  27326. postuninstall_cmds=$lt_postuninstall_cmds
  27327. # Commands used to finish a libtool library installation in a directory.
  27328. finish_cmds=$lt_finish_cmds
  27329. # As "finish_cmds", except a single script fragment to be evaled but
  27330. # not shown.
  27331. finish_eval=$lt_finish_eval
  27332. # Whether we should hardcode library paths into libraries.
  27333. hardcode_into_libs=$hardcode_into_libs
  27334. # Compile-time system search path for libraries.
  27335. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27336. # Detected run-time system search path for libraries.
  27337. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27338. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27339. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27340. # Whether dlopen is supported.
  27341. dlopen_support=$enable_dlopen
  27342. # Whether dlopen of programs is supported.
  27343. dlopen_self=$enable_dlopen_self
  27344. # Whether dlopen of statically linked programs is supported.
  27345. dlopen_self_static=$enable_dlopen_self_static
  27346. # Commands to strip libraries.
  27347. old_striplib=$lt_old_striplib
  27348. striplib=$lt_striplib
  27349. # The linker used to build libraries.
  27350. LD=$lt_LD
  27351. # How to create reloadable object files.
  27352. reload_flag=$lt_reload_flag
  27353. reload_cmds=$lt_reload_cmds
  27354. # Commands used to build an old-style archive.
  27355. old_archive_cmds=$lt_old_archive_cmds
  27356. # A language specific compiler.
  27357. CC=$lt_compiler
  27358. # Is the compiler the GNU compiler?
  27359. with_gcc=$GCC
  27360. # Compiler flag to turn off builtin functions.
  27361. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27362. # Additional compiler flags for building library objects.
  27363. pic_flag=$lt_lt_prog_compiler_pic
  27364. # How to pass a linker flag through the compiler.
  27365. wl=$lt_lt_prog_compiler_wl
  27366. # Compiler flag to prevent dynamic linking.
  27367. link_static_flag=$lt_lt_prog_compiler_static
  27368. # Does compiler simultaneously support -c and -o options?
  27369. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27370. # Whether or not to add -lc for building shared libraries.
  27371. build_libtool_need_lc=$archive_cmds_need_lc
  27372. # Whether or not to disallow shared libs when runtime libs are static.
  27373. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27374. # Compiler flag to allow reflexive dlopens.
  27375. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27376. # Compiler flag to generate shared objects directly from archives.
  27377. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27378. # Whether the compiler copes with passing no objects directly.
  27379. compiler_needs_object=$lt_compiler_needs_object
  27380. # Create an old-style archive from a shared archive.
  27381. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27382. # Create a temporary old-style archive to link instead of a shared archive.
  27383. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27384. # Commands used to build a shared archive.
  27385. archive_cmds=$lt_archive_cmds
  27386. archive_expsym_cmds=$lt_archive_expsym_cmds
  27387. # Commands used to build a loadable module if different from building
  27388. # a shared archive.
  27389. module_cmds=$lt_module_cmds
  27390. module_expsym_cmds=$lt_module_expsym_cmds
  27391. # Whether we are building with GNU ld or not.
  27392. with_gnu_ld=$lt_with_gnu_ld
  27393. # Flag that allows shared libraries with undefined symbols to be built.
  27394. allow_undefined_flag=$lt_allow_undefined_flag
  27395. # Flag that enforces no undefined symbols.
  27396. no_undefined_flag=$lt_no_undefined_flag
  27397. # Flag to hardcode \$libdir into a binary during linking.
  27398. # This must work even if \$libdir does not exist
  27399. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27400. # Whether we need a single "-rpath" flag with a separated argument.
  27401. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27402. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27403. # DIR into the resulting binary.
  27404. hardcode_direct=$hardcode_direct
  27405. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27406. # DIR into the resulting binary and the resulting library dependency is
  27407. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27408. # library is relocated.
  27409. hardcode_direct_absolute=$hardcode_direct_absolute
  27410. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27411. # into the resulting binary.
  27412. hardcode_minus_L=$hardcode_minus_L
  27413. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27414. # into the resulting binary.
  27415. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27416. # Set to "yes" if building a shared library automatically hardcodes DIR
  27417. # into the library and all subsequent libraries and executables linked
  27418. # against it.
  27419. hardcode_automatic=$hardcode_automatic
  27420. # Set to yes if linker adds runtime paths of dependent libraries
  27421. # to runtime path list.
  27422. inherit_rpath=$inherit_rpath
  27423. # Whether libtool must link a program against all its dependency libraries.
  27424. link_all_deplibs=$link_all_deplibs
  27425. # Set to "yes" if exported symbols are required.
  27426. always_export_symbols=$always_export_symbols
  27427. # The commands to list exported symbols.
  27428. export_symbols_cmds=$lt_export_symbols_cmds
  27429. # Symbols that should not be listed in the preloaded symbols.
  27430. exclude_expsyms=$lt_exclude_expsyms
  27431. # Symbols that must always be exported.
  27432. include_expsyms=$lt_include_expsyms
  27433. # Commands necessary for linking programs (against libraries) with templates.
  27434. prelink_cmds=$lt_prelink_cmds
  27435. # Commands necessary for finishing linking programs.
  27436. postlink_cmds=$lt_postlink_cmds
  27437. # Specify filename containing input files.
  27438. file_list_spec=$lt_file_list_spec
  27439. # How to hardcode a shared library path into an executable.
  27440. hardcode_action=$hardcode_action
  27441. # The directories searched by this compiler when creating a shared library.
  27442. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27443. # Dependencies to place before and after the objects being linked to
  27444. # create a shared library.
  27445. predep_objects=$lt_predep_objects
  27446. postdep_objects=$lt_postdep_objects
  27447. predeps=$lt_predeps
  27448. postdeps=$lt_postdeps
  27449. # The library search path used internally by the compiler when linking
  27450. # a shared library.
  27451. compiler_lib_search_path=$lt_compiler_lib_search_path
  27452. # ### END LIBTOOL CONFIG
  27453. _LT_EOF
  27454. cat <<'_LT_EOF' >> "$cfgfile"
  27455. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27456. # func_munge_path_list VARIABLE PATH
  27457. # -----------------------------------
  27458. # VARIABLE is name of variable containing _space_ separated list of
  27459. # directories to be munged by the contents of PATH, which is string
  27460. # having a format:
  27461. # "DIR[:DIR]:"
  27462. # string "DIR[ DIR]" will be prepended to VARIABLE
  27463. # ":DIR[:DIR]"
  27464. # string "DIR[ DIR]" will be appended to VARIABLE
  27465. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27466. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27467. # "DIRA[ DIRA]" will be appended to VARIABLE
  27468. # "DIR[:DIR]"
  27469. # VARIABLE will be replaced by "DIR[ DIR]"
  27470. func_munge_path_list ()
  27471. {
  27472. case x$2 in
  27473. x)
  27474. ;;
  27475. *:)
  27476. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27477. ;;
  27478. x:*)
  27479. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27480. ;;
  27481. *::*)
  27482. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27483. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27484. ;;
  27485. *)
  27486. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27487. ;;
  27488. esac
  27489. }
  27490. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27491. func_cc_basename ()
  27492. {
  27493. for cc_temp in $*""; do
  27494. case $cc_temp in
  27495. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27496. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27497. \-*) ;;
  27498. *) break;;
  27499. esac
  27500. done
  27501. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27502. }
  27503. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27504. _LT_EOF
  27505. case $host_os in
  27506. aix3*)
  27507. cat <<\_LT_EOF >> "$cfgfile"
  27508. # AIX sometimes has problems with the GCC collect2 program. For some
  27509. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27510. # vanish in a puff of smoke.
  27511. if test set != "${COLLECT_NAMES+set}"; then
  27512. COLLECT_NAMES=
  27513. export COLLECT_NAMES
  27514. fi
  27515. _LT_EOF
  27516. ;;
  27517. esac
  27518. ltmain=$ac_aux_dir/ltmain.sh
  27519. # We use sed instead of cat because bash on DJGPP gets confused if
  27520. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27521. # text mode, it properly converts lines to CR/LF. This bash problem
  27522. # is reportedly fixed, but why not run on old versions too?
  27523. sed '$q' "$ltmain" >> "$cfgfile" \
  27524. || (rm -f "$cfgfile"; exit 1)
  27525. mv -f "$cfgfile" "$ofile" ||
  27526. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27527. chmod +x "$ofile"
  27528. cat <<_LT_EOF >> "$ofile"
  27529. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27530. # The linker used to build libraries.
  27531. LD=$lt_LD_RC
  27532. # How to create reloadable object files.
  27533. reload_flag=$lt_reload_flag_RC
  27534. reload_cmds=$lt_reload_cmds_RC
  27535. # Commands used to build an old-style archive.
  27536. old_archive_cmds=$lt_old_archive_cmds_RC
  27537. # A language specific compiler.
  27538. CC=$lt_compiler_RC
  27539. # Is the compiler the GNU compiler?
  27540. with_gcc=$GCC_RC
  27541. # Compiler flag to turn off builtin functions.
  27542. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27543. # Additional compiler flags for building library objects.
  27544. pic_flag=$lt_lt_prog_compiler_pic_RC
  27545. # How to pass a linker flag through the compiler.
  27546. wl=$lt_lt_prog_compiler_wl_RC
  27547. # Compiler flag to prevent dynamic linking.
  27548. link_static_flag=$lt_lt_prog_compiler_static_RC
  27549. # Does compiler simultaneously support -c and -o options?
  27550. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27551. # Whether or not to add -lc for building shared libraries.
  27552. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27553. # Whether or not to disallow shared libs when runtime libs are static.
  27554. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27555. # Compiler flag to allow reflexive dlopens.
  27556. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27557. # Compiler flag to generate shared objects directly from archives.
  27558. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27559. # Whether the compiler copes with passing no objects directly.
  27560. compiler_needs_object=$lt_compiler_needs_object_RC
  27561. # Create an old-style archive from a shared archive.
  27562. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27563. # Create a temporary old-style archive to link instead of a shared archive.
  27564. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27565. # Commands used to build a shared archive.
  27566. archive_cmds=$lt_archive_cmds_RC
  27567. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27568. # Commands used to build a loadable module if different from building
  27569. # a shared archive.
  27570. module_cmds=$lt_module_cmds_RC
  27571. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27572. # Whether we are building with GNU ld or not.
  27573. with_gnu_ld=$lt_with_gnu_ld_RC
  27574. # Flag that allows shared libraries with undefined symbols to be built.
  27575. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27576. # Flag that enforces no undefined symbols.
  27577. no_undefined_flag=$lt_no_undefined_flag_RC
  27578. # Flag to hardcode \$libdir into a binary during linking.
  27579. # This must work even if \$libdir does not exist
  27580. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27581. # Whether we need a single "-rpath" flag with a separated argument.
  27582. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27583. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27584. # DIR into the resulting binary.
  27585. hardcode_direct=$hardcode_direct_RC
  27586. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27587. # DIR into the resulting binary and the resulting library dependency is
  27588. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27589. # library is relocated.
  27590. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27591. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27592. # into the resulting binary.
  27593. hardcode_minus_L=$hardcode_minus_L_RC
  27594. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27595. # into the resulting binary.
  27596. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27597. # Set to "yes" if building a shared library automatically hardcodes DIR
  27598. # into the library and all subsequent libraries and executables linked
  27599. # against it.
  27600. hardcode_automatic=$hardcode_automatic_RC
  27601. # Set to yes if linker adds runtime paths of dependent libraries
  27602. # to runtime path list.
  27603. inherit_rpath=$inherit_rpath_RC
  27604. # Whether libtool must link a program against all its dependency libraries.
  27605. link_all_deplibs=$link_all_deplibs_RC
  27606. # Set to "yes" if exported symbols are required.
  27607. always_export_symbols=$always_export_symbols_RC
  27608. # The commands to list exported symbols.
  27609. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27610. # Symbols that should not be listed in the preloaded symbols.
  27611. exclude_expsyms=$lt_exclude_expsyms_RC
  27612. # Symbols that must always be exported.
  27613. include_expsyms=$lt_include_expsyms_RC
  27614. # Commands necessary for linking programs (against libraries) with templates.
  27615. prelink_cmds=$lt_prelink_cmds_RC
  27616. # Commands necessary for finishing linking programs.
  27617. postlink_cmds=$lt_postlink_cmds_RC
  27618. # Specify filename containing input files.
  27619. file_list_spec=$lt_file_list_spec_RC
  27620. # How to hardcode a shared library path into an executable.
  27621. hardcode_action=$hardcode_action_RC
  27622. # The directories searched by this compiler when creating a shared library.
  27623. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27624. # Dependencies to place before and after the objects being linked to
  27625. # create a shared library.
  27626. predep_objects=$lt_predep_objects_RC
  27627. postdep_objects=$lt_postdep_objects_RC
  27628. predeps=$lt_predeps_RC
  27629. postdeps=$lt_postdeps_RC
  27630. # The library search path used internally by the compiler when linking
  27631. # a shared library.
  27632. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27633. # ### END LIBTOOL TAG CONFIG: RC
  27634. _LT_EOF
  27635. cat <<_LT_EOF >> "$ofile"
  27636. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27637. # The linker used to build libraries.
  27638. LD=$lt_LD_CXX
  27639. # How to create reloadable object files.
  27640. reload_flag=$lt_reload_flag_CXX
  27641. reload_cmds=$lt_reload_cmds_CXX
  27642. # Commands used to build an old-style archive.
  27643. old_archive_cmds=$lt_old_archive_cmds_CXX
  27644. # A language specific compiler.
  27645. CC=$lt_compiler_CXX
  27646. # Is the compiler the GNU compiler?
  27647. with_gcc=$GCC_CXX
  27648. # Compiler flag to turn off builtin functions.
  27649. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27650. # Additional compiler flags for building library objects.
  27651. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27652. # How to pass a linker flag through the compiler.
  27653. wl=$lt_lt_prog_compiler_wl_CXX
  27654. # Compiler flag to prevent dynamic linking.
  27655. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27656. # Does compiler simultaneously support -c and -o options?
  27657. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27658. # Whether or not to add -lc for building shared libraries.
  27659. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27660. # Whether or not to disallow shared libs when runtime libs are static.
  27661. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27662. # Compiler flag to allow reflexive dlopens.
  27663. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27664. # Compiler flag to generate shared objects directly from archives.
  27665. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27666. # Whether the compiler copes with passing no objects directly.
  27667. compiler_needs_object=$lt_compiler_needs_object_CXX
  27668. # Create an old-style archive from a shared archive.
  27669. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27670. # Create a temporary old-style archive to link instead of a shared archive.
  27671. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27672. # Commands used to build a shared archive.
  27673. archive_cmds=$lt_archive_cmds_CXX
  27674. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27675. # Commands used to build a loadable module if different from building
  27676. # a shared archive.
  27677. module_cmds=$lt_module_cmds_CXX
  27678. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27679. # Whether we are building with GNU ld or not.
  27680. with_gnu_ld=$lt_with_gnu_ld_CXX
  27681. # Flag that allows shared libraries with undefined symbols to be built.
  27682. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27683. # Flag that enforces no undefined symbols.
  27684. no_undefined_flag=$lt_no_undefined_flag_CXX
  27685. # Flag to hardcode \$libdir into a binary during linking.
  27686. # This must work even if \$libdir does not exist
  27687. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27688. # Whether we need a single "-rpath" flag with a separated argument.
  27689. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27690. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27691. # DIR into the resulting binary.
  27692. hardcode_direct=$hardcode_direct_CXX
  27693. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27694. # DIR into the resulting binary and the resulting library dependency is
  27695. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27696. # library is relocated.
  27697. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27698. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27699. # into the resulting binary.
  27700. hardcode_minus_L=$hardcode_minus_L_CXX
  27701. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27702. # into the resulting binary.
  27703. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27704. # Set to "yes" if building a shared library automatically hardcodes DIR
  27705. # into the library and all subsequent libraries and executables linked
  27706. # against it.
  27707. hardcode_automatic=$hardcode_automatic_CXX
  27708. # Set to yes if linker adds runtime paths of dependent libraries
  27709. # to runtime path list.
  27710. inherit_rpath=$inherit_rpath_CXX
  27711. # Whether libtool must link a program against all its dependency libraries.
  27712. link_all_deplibs=$link_all_deplibs_CXX
  27713. # Set to "yes" if exported symbols are required.
  27714. always_export_symbols=$always_export_symbols_CXX
  27715. # The commands to list exported symbols.
  27716. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27717. # Symbols that should not be listed in the preloaded symbols.
  27718. exclude_expsyms=$lt_exclude_expsyms_CXX
  27719. # Symbols that must always be exported.
  27720. include_expsyms=$lt_include_expsyms_CXX
  27721. # Commands necessary for linking programs (against libraries) with templates.
  27722. prelink_cmds=$lt_prelink_cmds_CXX
  27723. # Commands necessary for finishing linking programs.
  27724. postlink_cmds=$lt_postlink_cmds_CXX
  27725. # Specify filename containing input files.
  27726. file_list_spec=$lt_file_list_spec_CXX
  27727. # How to hardcode a shared library path into an executable.
  27728. hardcode_action=$hardcode_action_CXX
  27729. # The directories searched by this compiler when creating a shared library.
  27730. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27731. # Dependencies to place before and after the objects being linked to
  27732. # create a shared library.
  27733. predep_objects=$lt_predep_objects_CXX
  27734. postdep_objects=$lt_postdep_objects_CXX
  27735. predeps=$lt_predeps_CXX
  27736. postdeps=$lt_postdeps_CXX
  27737. # The library search path used internally by the compiler when linking
  27738. # a shared library.
  27739. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27740. # ### END LIBTOOL TAG CONFIG: CXX
  27741. _LT_EOF
  27742. ;;
  27743. "sdl2_config":C) chmod a+x sdl2-config ;;
  27744. "summary":C) printf "$SUMMARY" ;;
  27745. esac
  27746. done # for ac_tag
  27747. as_fn_exit 0
  27748. _ACEOF
  27749. ac_clean_files=$ac_clean_files_save
  27750. test $ac_write_fail = 0 ||
  27751. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27752. # configure is writing to config.log, and then calls config.status.
  27753. # config.status does its own redirection, appending to config.log.
  27754. # Unfortunately, on DOS this fails, as config.log is still kept open
  27755. # by configure, so config.status won't be able to write to it; its
  27756. # output is simply discarded. So we exec the FD to /dev/null,
  27757. # effectively closing config.log, so it can be properly (re)opened and
  27758. # appended to by config.status. When coming back to configure, we
  27759. # need to make the FD available again.
  27760. if test "$no_create" != yes; then
  27761. ac_cs_success=:
  27762. ac_config_status_args=
  27763. test "$silent" = yes &&
  27764. ac_config_status_args="$ac_config_status_args --quiet"
  27765. exec 5>/dev/null
  27766. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27767. exec 5>>config.log
  27768. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27769. # would make configure fail if this is the last instruction.
  27770. $ac_cs_success || as_fn_exit 1
  27771. fi
  27772. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27774. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27775. fi