configure 963 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. PKGCONFIG_DEPENDS
  621. SDL_RLD_FLAGS
  622. SDL_STATIC_LIBS
  623. SDL_LIBS
  624. SDL_CFLAGS
  625. bin_prefix_relpath
  626. cmake_prefix_relpath
  627. SDL_VENDOR_INFO
  628. INSTALL_SDL2_CONFIG
  629. LIBUSB_LIBS
  630. LIBUSB_CFLAGS
  631. IBUS_LIBS
  632. IBUS_CFLAGS
  633. DBUS_LIBS
  634. DBUS_CFLAGS
  635. LIBGBM_LIBS
  636. LIBGBM_CFLAGS
  637. LIBDRM_LIBS
  638. LIBDRM_CFLAGS
  639. DIRECTFB_LIBS
  640. DIRECTFB_CFLAGS
  641. X_EXTRA_LIBS
  642. X_LIBS
  643. X_PRE_LIBS
  644. X_CFLAGS
  645. XMKMF
  646. RPI_EGL_LIBS
  647. RPI_EGL_CFLAGS
  648. RPI_LIBS
  649. RPI_CFLAGS
  650. DECOR_LIBS
  651. DECOR_CFLAGS
  652. FUSIONSOUND_LIBS
  653. FUSIONSOUND_CFLAGS
  654. SNDIO_LIBS
  655. SNDIO_CFLAGS
  656. ARTSCONFIG
  657. PULSEAUDIO_LIBS
  658. PULSEAUDIO_CFLAGS
  659. PIPEWIRE_LIBS
  660. PIPEWIRE_CFLAGS
  661. ESD_CONFIG
  662. ESD_LIBS
  663. ESD_CFLAGS
  664. JACK_LIBS
  665. JACK_CFLAGS
  666. ALSA_LIBS
  667. ALSA_CFLAGS
  668. ALLOCA
  669. CPP
  670. SDL2_CONFIG_INTERPRETER
  671. LIBTOOLLINKERTAG
  672. LINKER
  673. SORT
  674. PKG_CONFIG_LIBDIR
  675. PKG_CONFIG_PATH
  676. PKG_CONFIG
  677. SET_MAKE
  678. INSTALL_DATA
  679. INSTALL_SCRIPT
  680. INSTALL_PROGRAM
  681. CXXCPP
  682. ac_ct_CXX
  683. CXXFLAGS
  684. CXX
  685. LT_AGE
  686. LT_REVISION
  687. LT_CURRENT
  688. LT_RELEASE
  689. RC
  690. LT_SYS_LIBRARY_PATH
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. MANIFEST_TOOL
  697. AWK
  698. RANLIB
  699. STRIP
  700. ac_ct_AR
  701. AR
  702. LN_S
  703. NM
  704. ac_ct_DUMPBIN
  705. DUMPBIN
  706. LD
  707. FGREP
  708. EGREP
  709. GREP
  710. SED
  711. OBJEXT
  712. EXEEXT
  713. ac_ct_CC
  714. CPPFLAGS
  715. LDFLAGS
  716. CFLAGS
  717. CC
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. LIBTOOL
  727. OBJDUMP
  728. DLLTOOL
  729. AS
  730. SDL_VERSION
  731. SDL_BINARY_AGE
  732. SDL_INTERFACE_AGE
  733. SDL_MICRO_VERSION
  734. SDL_MINOR_VERSION
  735. SDL_MAJOR_VERSION
  736. target_alias
  737. host_alias
  738. build_alias
  739. LIBS
  740. ECHO_T
  741. ECHO_N
  742. ECHO_C
  743. DEFS
  744. mandir
  745. localedir
  746. libdir
  747. psdir
  748. pdfdir
  749. dvidir
  750. htmldir
  751. infodir
  752. docdir
  753. oldincludedir
  754. includedir
  755. runstatedir
  756. localstatedir
  757. sharedstatedir
  758. sysconfdir
  759. datadir
  760. datarootdir
  761. libexecdir
  762. sbindir
  763. bindir
  764. program_transform_name
  765. prefix
  766. exec_prefix
  767. PACKAGE_URL
  768. PACKAGE_BUGREPORT
  769. PACKAGE_STRING
  770. PACKAGE_VERSION
  771. PACKAGE_TARNAME
  772. PACKAGE_NAME
  773. PATH_SEPARATOR
  774. SHELL'
  775. ac_subst_files=''
  776. ac_user_opts='
  777. enable_option_checking
  778. enable_shared
  779. enable_static
  780. with_pic
  781. enable_fast_install
  782. with_aix_soname
  783. with_gnu_ld
  784. with_sysroot
  785. enable_libtool_lock
  786. enable_largefile
  787. enable_assertions
  788. enable_dependency_tracking
  789. enable_libc
  790. enable_system_iconv
  791. enable_libiconv
  792. enable_gcc_atomics
  793. enable_atomic
  794. enable_audio
  795. enable_video
  796. enable_render
  797. enable_events
  798. enable_joystick
  799. enable_haptic
  800. enable_hidapi
  801. enable_sensor
  802. enable_power
  803. enable_filesystem
  804. enable_timers
  805. enable_file
  806. enable_misc
  807. enable_locale
  808. enable_loadso
  809. enable_cpuinfo
  810. enable_assembly
  811. enable_ssemath
  812. enable_mmx
  813. enable_3dnow
  814. enable_sse
  815. enable_sse2
  816. enable_sse3
  817. enable_altivec
  818. enable_lsx
  819. enable_oss
  820. enable_alsa
  821. with_alsa_prefix
  822. with_alsa_inc_prefix
  823. enable_alsatest
  824. enable_alsa_shared
  825. enable_jack
  826. enable_jack_shared
  827. enable_esd
  828. with_esd_prefix
  829. with_esd_exec_prefix
  830. enable_esdtest
  831. enable_esd_shared
  832. enable_pipewire
  833. enable_pipewire_shared
  834. enable_pulseaudio
  835. enable_pulseaudio_shared
  836. enable_arts
  837. enable_arts_shared
  838. enable_nas
  839. enable_nas_shared
  840. enable_sndio
  841. enable_sndio_shared
  842. enable_fusionsound
  843. enable_fusionsound_shared
  844. enable_diskaudio
  845. enable_dummyaudio
  846. enable_libsamplerate
  847. enable_libsamplerate_shared
  848. enable_arm_simd
  849. enable_arm_neon
  850. enable_werror
  851. enable_video_wayland
  852. enable_video_wayland_qt_touch
  853. enable_wayland_shared
  854. enable_libdecor
  855. enable_libdecor_shared
  856. enable_video_rpi
  857. enable_video_x11
  858. with_x
  859. enable_x11_shared
  860. enable_video_x11_xcursor
  861. enable_video_x11_xdbe
  862. enable_video_x11_xinput
  863. enable_video_x11_xfixes
  864. enable_video_x11_xrandr
  865. enable_video_x11_scrnsaver
  866. enable_video_x11_xshape
  867. enable_video_vivante
  868. enable_video_cocoa
  869. enable_video_metal
  870. enable_render_metal
  871. enable_video_directfb
  872. enable_directfb_shared
  873. enable_video_kmsdrm
  874. enable_kmsdrm_shared
  875. enable_video_dummy
  876. enable_video_offscreen
  877. enable_video_opengl
  878. enable_video_opengles
  879. enable_video_opengles1
  880. enable_video_opengles2
  881. enable_video_vulkan
  882. enable_libudev
  883. enable_dbus
  884. enable_ime
  885. enable_ibus
  886. enable_fcitx
  887. enable_joystick_mfi
  888. enable_pthreads
  889. enable_pthread_sem
  890. enable_directx
  891. enable_xinput
  892. enable_wasapi
  893. enable_hidapi_joystick
  894. enable_hidapi_libusb
  895. enable_clock_gettime
  896. enable_rpath
  897. enable_backgrounding_signal
  898. enable_foregrounding_signal
  899. enable_joystick_virtual
  900. enable_render_d3d
  901. enable_sdl2_config
  902. enable_vendor_info
  903. '
  904. ac_precious_vars='build_alias
  905. host_alias
  906. target_alias
  907. CC
  908. CFLAGS
  909. LDFLAGS
  910. LIBS
  911. CPPFLAGS
  912. LT_SYS_LIBRARY_PATH
  913. CXX
  914. CXXFLAGS
  915. CCC
  916. CXXCPP
  917. PKG_CONFIG
  918. PKG_CONFIG_PATH
  919. PKG_CONFIG_LIBDIR
  920. CPP
  921. JACK_CFLAGS
  922. JACK_LIBS
  923. ESD_CFLAGS
  924. ESD_LIBS
  925. PIPEWIRE_CFLAGS
  926. PIPEWIRE_LIBS
  927. PULSEAUDIO_CFLAGS
  928. PULSEAUDIO_LIBS
  929. SNDIO_CFLAGS
  930. SNDIO_LIBS
  931. FUSIONSOUND_CFLAGS
  932. FUSIONSOUND_LIBS
  933. DECOR_CFLAGS
  934. DECOR_LIBS
  935. RPI_CFLAGS
  936. RPI_LIBS
  937. RPI_EGL_CFLAGS
  938. RPI_EGL_LIBS
  939. XMKMF
  940. DIRECTFB_CFLAGS
  941. DIRECTFB_LIBS
  942. LIBDRM_CFLAGS
  943. LIBDRM_LIBS
  944. LIBGBM_CFLAGS
  945. LIBGBM_LIBS
  946. DBUS_CFLAGS
  947. DBUS_LIBS
  948. IBUS_CFLAGS
  949. IBUS_LIBS
  950. LIBUSB_CFLAGS
  951. LIBUSB_LIBS'
  952. # Initialize some variables set by options.
  953. ac_init_help=
  954. ac_init_version=false
  955. ac_unrecognized_opts=
  956. ac_unrecognized_sep=
  957. # The variables have the same names as the options, with
  958. # dashes changed to underlines.
  959. cache_file=/dev/null
  960. exec_prefix=NONE
  961. no_create=
  962. no_recursion=
  963. prefix=NONE
  964. program_prefix=NONE
  965. program_suffix=NONE
  966. program_transform_name=s,x,x,
  967. silent=
  968. site=
  969. srcdir=
  970. verbose=
  971. x_includes=NONE
  972. x_libraries=NONE
  973. # Installation directory options.
  974. # These are left unexpanded so users can "make install exec_prefix=/foo"
  975. # and all the variables that are supposed to be based on exec_prefix
  976. # by default will actually change.
  977. # Use braces instead of parens because sh, perl, etc. also accept them.
  978. # (The list follows the same order as the GNU Coding Standards.)
  979. bindir='${exec_prefix}/bin'
  980. sbindir='${exec_prefix}/sbin'
  981. libexecdir='${exec_prefix}/libexec'
  982. datarootdir='${prefix}/share'
  983. datadir='${datarootdir}'
  984. sysconfdir='${prefix}/etc'
  985. sharedstatedir='${prefix}/com'
  986. localstatedir='${prefix}/var'
  987. runstatedir='${localstatedir}/run'
  988. includedir='${prefix}/include'
  989. oldincludedir='/usr/include'
  990. docdir='${datarootdir}/doc/${PACKAGE}'
  991. infodir='${datarootdir}/info'
  992. htmldir='${docdir}'
  993. dvidir='${docdir}'
  994. pdfdir='${docdir}'
  995. psdir='${docdir}'
  996. libdir='${exec_prefix}/lib'
  997. localedir='${datarootdir}/locale'
  998. mandir='${datarootdir}/man'
  999. ac_prev=
  1000. ac_dashdash=
  1001. for ac_option
  1002. do
  1003. # If the previous option needs an argument, assign it.
  1004. if test -n "$ac_prev"; then
  1005. eval $ac_prev=\$ac_option
  1006. ac_prev=
  1007. continue
  1008. fi
  1009. case $ac_option in
  1010. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1011. *=) ac_optarg= ;;
  1012. *) ac_optarg=yes ;;
  1013. esac
  1014. case $ac_dashdash$ac_option in
  1015. --)
  1016. ac_dashdash=yes ;;
  1017. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1018. ac_prev=bindir ;;
  1019. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1020. bindir=$ac_optarg ;;
  1021. -build | --build | --buil | --bui | --bu)
  1022. ac_prev=build_alias ;;
  1023. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1024. build_alias=$ac_optarg ;;
  1025. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1026. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1027. ac_prev=cache_file ;;
  1028. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1029. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1030. cache_file=$ac_optarg ;;
  1031. --config-cache | -C)
  1032. cache_file=config.cache ;;
  1033. -datadir | --datadir | --datadi | --datad)
  1034. ac_prev=datadir ;;
  1035. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1036. datadir=$ac_optarg ;;
  1037. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1038. | --dataroo | --dataro | --datar)
  1039. ac_prev=datarootdir ;;
  1040. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1041. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1042. datarootdir=$ac_optarg ;;
  1043. -disable-* | --disable-*)
  1044. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1045. # Reject names that are not valid shell variable names.
  1046. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1047. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1048. ac_useropt_orig=$ac_useropt
  1049. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1050. case $ac_user_opts in
  1051. *"
  1052. "enable_$ac_useropt"
  1053. "*) ;;
  1054. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1055. ac_unrecognized_sep=', ';;
  1056. esac
  1057. eval enable_$ac_useropt=no ;;
  1058. -docdir | --docdir | --docdi | --doc | --do)
  1059. ac_prev=docdir ;;
  1060. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1061. docdir=$ac_optarg ;;
  1062. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1063. ac_prev=dvidir ;;
  1064. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1065. dvidir=$ac_optarg ;;
  1066. -enable-* | --enable-*)
  1067. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1068. # Reject names that are not valid shell variable names.
  1069. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1070. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1071. ac_useropt_orig=$ac_useropt
  1072. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1073. case $ac_user_opts in
  1074. *"
  1075. "enable_$ac_useropt"
  1076. "*) ;;
  1077. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1078. ac_unrecognized_sep=', ';;
  1079. esac
  1080. eval enable_$ac_useropt=\$ac_optarg ;;
  1081. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1082. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1083. | --exec | --exe | --ex)
  1084. ac_prev=exec_prefix ;;
  1085. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1086. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1087. | --exec=* | --exe=* | --ex=*)
  1088. exec_prefix=$ac_optarg ;;
  1089. -gas | --gas | --ga | --g)
  1090. # Obsolete; use --with-gas.
  1091. with_gas=yes ;;
  1092. -help | --help | --hel | --he | -h)
  1093. ac_init_help=long ;;
  1094. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1095. ac_init_help=recursive ;;
  1096. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1097. ac_init_help=short ;;
  1098. -host | --host | --hos | --ho)
  1099. ac_prev=host_alias ;;
  1100. -host=* | --host=* | --hos=* | --ho=*)
  1101. host_alias=$ac_optarg ;;
  1102. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1103. ac_prev=htmldir ;;
  1104. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1105. | --ht=*)
  1106. htmldir=$ac_optarg ;;
  1107. -includedir | --includedir | --includedi | --included | --include \
  1108. | --includ | --inclu | --incl | --inc)
  1109. ac_prev=includedir ;;
  1110. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1111. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1112. includedir=$ac_optarg ;;
  1113. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1114. ac_prev=infodir ;;
  1115. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1116. infodir=$ac_optarg ;;
  1117. -libdir | --libdir | --libdi | --libd)
  1118. ac_prev=libdir ;;
  1119. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1120. libdir=$ac_optarg ;;
  1121. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1122. | --libexe | --libex | --libe)
  1123. ac_prev=libexecdir ;;
  1124. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1125. | --libexe=* | --libex=* | --libe=*)
  1126. libexecdir=$ac_optarg ;;
  1127. -localedir | --localedir | --localedi | --localed | --locale)
  1128. ac_prev=localedir ;;
  1129. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1130. localedir=$ac_optarg ;;
  1131. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1132. | --localstate | --localstat | --localsta | --localst | --locals)
  1133. ac_prev=localstatedir ;;
  1134. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1135. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1136. localstatedir=$ac_optarg ;;
  1137. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1138. ac_prev=mandir ;;
  1139. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1140. mandir=$ac_optarg ;;
  1141. -nfp | --nfp | --nf)
  1142. # Obsolete; use --without-fp.
  1143. with_fp=no ;;
  1144. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1145. | --no-cr | --no-c | -n)
  1146. no_create=yes ;;
  1147. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1148. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1149. no_recursion=yes ;;
  1150. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1151. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1152. | --oldin | --oldi | --old | --ol | --o)
  1153. ac_prev=oldincludedir ;;
  1154. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1155. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1156. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1157. oldincludedir=$ac_optarg ;;
  1158. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1159. ac_prev=prefix ;;
  1160. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1161. prefix=$ac_optarg ;;
  1162. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1163. | --program-pre | --program-pr | --program-p)
  1164. ac_prev=program_prefix ;;
  1165. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1166. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1167. program_prefix=$ac_optarg ;;
  1168. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1169. | --program-suf | --program-su | --program-s)
  1170. ac_prev=program_suffix ;;
  1171. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1172. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1173. program_suffix=$ac_optarg ;;
  1174. -program-transform-name | --program-transform-name \
  1175. | --program-transform-nam | --program-transform-na \
  1176. | --program-transform-n | --program-transform- \
  1177. | --program-transform | --program-transfor \
  1178. | --program-transfo | --program-transf \
  1179. | --program-trans | --program-tran \
  1180. | --progr-tra | --program-tr | --program-t)
  1181. ac_prev=program_transform_name ;;
  1182. -program-transform-name=* | --program-transform-name=* \
  1183. | --program-transform-nam=* | --program-transform-na=* \
  1184. | --program-transform-n=* | --program-transform-=* \
  1185. | --program-transform=* | --program-transfor=* \
  1186. | --program-transfo=* | --program-transf=* \
  1187. | --program-trans=* | --program-tran=* \
  1188. | --progr-tra=* | --program-tr=* | --program-t=*)
  1189. program_transform_name=$ac_optarg ;;
  1190. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1191. ac_prev=pdfdir ;;
  1192. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1193. pdfdir=$ac_optarg ;;
  1194. -psdir | --psdir | --psdi | --psd | --ps)
  1195. ac_prev=psdir ;;
  1196. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1197. psdir=$ac_optarg ;;
  1198. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1199. | -silent | --silent | --silen | --sile | --sil)
  1200. silent=yes ;;
  1201. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1202. | --runstate | --runstat | --runsta | --runst | --runs \
  1203. | --run | --ru | --r)
  1204. ac_prev=runstatedir ;;
  1205. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1206. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1207. | --run=* | --ru=* | --r=*)
  1208. runstatedir=$ac_optarg ;;
  1209. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1210. ac_prev=sbindir ;;
  1211. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1212. | --sbi=* | --sb=*)
  1213. sbindir=$ac_optarg ;;
  1214. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1215. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1216. | --sharedst | --shareds | --shared | --share | --shar \
  1217. | --sha | --sh)
  1218. ac_prev=sharedstatedir ;;
  1219. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1220. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1221. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1222. | --sha=* | --sh=*)
  1223. sharedstatedir=$ac_optarg ;;
  1224. -site | --site | --sit)
  1225. ac_prev=site ;;
  1226. -site=* | --site=* | --sit=*)
  1227. site=$ac_optarg ;;
  1228. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1229. ac_prev=srcdir ;;
  1230. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1231. srcdir=$ac_optarg ;;
  1232. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1233. | --syscon | --sysco | --sysc | --sys | --sy)
  1234. ac_prev=sysconfdir ;;
  1235. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1236. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1237. sysconfdir=$ac_optarg ;;
  1238. -target | --target | --targe | --targ | --tar | --ta | --t)
  1239. ac_prev=target_alias ;;
  1240. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1241. target_alias=$ac_optarg ;;
  1242. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1243. verbose=yes ;;
  1244. -version | --version | --versio | --versi | --vers | -V)
  1245. ac_init_version=: ;;
  1246. -with-* | --with-*)
  1247. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  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--with-$ac_useropt_orig"
  1258. ac_unrecognized_sep=', ';;
  1259. esac
  1260. eval with_$ac_useropt=\$ac_optarg ;;
  1261. -without-* | --without-*)
  1262. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1263. # Reject names that are not valid shell variable names.
  1264. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1265. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1266. ac_useropt_orig=$ac_useropt
  1267. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1268. case $ac_user_opts in
  1269. *"
  1270. "with_$ac_useropt"
  1271. "*) ;;
  1272. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1273. ac_unrecognized_sep=', ';;
  1274. esac
  1275. eval with_$ac_useropt=no ;;
  1276. --x)
  1277. # Obsolete; use --with-x.
  1278. with_x=yes ;;
  1279. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1280. | --x-incl | --x-inc | --x-in | --x-i)
  1281. ac_prev=x_includes ;;
  1282. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1283. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1284. x_includes=$ac_optarg ;;
  1285. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1286. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1287. ac_prev=x_libraries ;;
  1288. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1289. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1290. x_libraries=$ac_optarg ;;
  1291. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1292. Try \`$0 --help' for more information"
  1293. ;;
  1294. *=*)
  1295. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1296. # Reject names that are not valid shell variable names.
  1297. case $ac_envvar in #(
  1298. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1299. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1300. esac
  1301. eval $ac_envvar=\$ac_optarg
  1302. export $ac_envvar ;;
  1303. *)
  1304. # FIXME: should be removed in autoconf 3.0.
  1305. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1306. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1307. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1308. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1309. ;;
  1310. esac
  1311. done
  1312. if test -n "$ac_prev"; then
  1313. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1314. as_fn_error $? "missing argument to $ac_option"
  1315. fi
  1316. if test -n "$ac_unrecognized_opts"; then
  1317. case $enable_option_checking in
  1318. no) ;;
  1319. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1320. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1321. esac
  1322. fi
  1323. # Check all directory arguments for consistency.
  1324. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1325. datadir sysconfdir sharedstatedir localstatedir includedir \
  1326. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1327. libdir localedir mandir runstatedir
  1328. do
  1329. eval ac_val=\$$ac_var
  1330. # Remove trailing slashes.
  1331. case $ac_val in
  1332. */ )
  1333. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1334. eval $ac_var=\$ac_val;;
  1335. esac
  1336. # Be sure to have absolute directory names.
  1337. case $ac_val in
  1338. [\\/$]* | ?:[\\/]* ) continue;;
  1339. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1340. esac
  1341. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1342. done
  1343. # There might be people who depend on the old broken behavior: `$host'
  1344. # used to hold the argument of --host etc.
  1345. # FIXME: To remove some day.
  1346. build=$build_alias
  1347. host=$host_alias
  1348. target=$target_alias
  1349. # FIXME: To remove some day.
  1350. if test "x$host_alias" != x; then
  1351. if test "x$build_alias" = x; then
  1352. cross_compiling=maybe
  1353. elif test "x$build_alias" != "x$host_alias"; then
  1354. cross_compiling=yes
  1355. fi
  1356. fi
  1357. ac_tool_prefix=
  1358. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1359. test "$silent" = yes && exec 6>/dev/null
  1360. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1361. ac_ls_di=`ls -di .` &&
  1362. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1363. as_fn_error $? "working directory cannot be determined"
  1364. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1365. as_fn_error $? "pwd does not report name of working directory"
  1366. # Find the source files, if location was not specified.
  1367. if test -z "$srcdir"; then
  1368. ac_srcdir_defaulted=yes
  1369. # Try the directory containing this script, then the parent directory.
  1370. ac_confdir=`$as_dirname -- "$as_myself" ||
  1371. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1372. X"$as_myself" : 'X\(//\)[^/]' \| \
  1373. X"$as_myself" : 'X\(//\)$' \| \
  1374. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1375. printf "%s\n" X"$as_myself" |
  1376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1377. s//\1/
  1378. q
  1379. }
  1380. /^X\(\/\/\)[^/].*/{
  1381. s//\1/
  1382. q
  1383. }
  1384. /^X\(\/\/\)$/{
  1385. s//\1/
  1386. q
  1387. }
  1388. /^X\(\/\).*/{
  1389. s//\1/
  1390. q
  1391. }
  1392. s/.*/./; q'`
  1393. srcdir=$ac_confdir
  1394. if test ! -r "$srcdir/$ac_unique_file"; then
  1395. srcdir=..
  1396. fi
  1397. else
  1398. ac_srcdir_defaulted=no
  1399. fi
  1400. if test ! -r "$srcdir/$ac_unique_file"; then
  1401. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1402. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1403. fi
  1404. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1405. ac_abs_confdir=`(
  1406. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1407. pwd)`
  1408. # When building in place, set srcdir=.
  1409. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1410. srcdir=.
  1411. fi
  1412. # Remove unnecessary trailing slashes from srcdir.
  1413. # Double slashes in file names in object file debugging info
  1414. # mess up M-x gdb in Emacs.
  1415. case $srcdir in
  1416. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1417. esac
  1418. for ac_var in $ac_precious_vars; do
  1419. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1420. eval ac_env_${ac_var}_value=\$${ac_var}
  1421. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1422. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1423. done
  1424. #
  1425. # Report the --help message.
  1426. #
  1427. if test "$ac_init_help" = "long"; then
  1428. # Omit some internal or obsolete options to make the list less imposing.
  1429. # This message is too long to be a string in the A/UX 3.1 sh.
  1430. cat <<_ACEOF
  1431. \`configure' configures this package to adapt to many kinds of systems.
  1432. Usage: $0 [OPTION]... [VAR=VALUE]...
  1433. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1434. VAR=VALUE. See below for descriptions of some of the useful variables.
  1435. Defaults for the options are specified in brackets.
  1436. Configuration:
  1437. -h, --help display this help and exit
  1438. --help=short display options specific to this package
  1439. --help=recursive display the short help of all the included packages
  1440. -V, --version display version information and exit
  1441. -q, --quiet, --silent do not print \`checking ...' messages
  1442. --cache-file=FILE cache test results in FILE [disabled]
  1443. -C, --config-cache alias for \`--cache-file=config.cache'
  1444. -n, --no-create do not create output files
  1445. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1446. Installation directories:
  1447. --prefix=PREFIX install architecture-independent files in PREFIX
  1448. [$ac_default_prefix]
  1449. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1450. [PREFIX]
  1451. By default, \`make install' will install all the files in
  1452. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1453. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1454. for instance \`--prefix=\$HOME'.
  1455. For better control, use the options below.
  1456. Fine tuning of the installation directories:
  1457. --bindir=DIR user executables [EPREFIX/bin]
  1458. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1459. --libexecdir=DIR program executables [EPREFIX/libexec]
  1460. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1461. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1462. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1463. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1464. --libdir=DIR object code libraries [EPREFIX/lib]
  1465. --includedir=DIR C header files [PREFIX/include]
  1466. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1467. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1468. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1469. --infodir=DIR info documentation [DATAROOTDIR/info]
  1470. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1471. --mandir=DIR man documentation [DATAROOTDIR/man]
  1472. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1473. --htmldir=DIR html documentation [DOCDIR]
  1474. --dvidir=DIR dvi documentation [DOCDIR]
  1475. --pdfdir=DIR pdf documentation [DOCDIR]
  1476. --psdir=DIR ps documentation [DOCDIR]
  1477. _ACEOF
  1478. cat <<\_ACEOF
  1479. X features:
  1480. --x-includes=DIR X include files are in DIR
  1481. --x-libraries=DIR X library files are in DIR
  1482. System types:
  1483. --build=BUILD configure for building on BUILD [guessed]
  1484. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1485. _ACEOF
  1486. fi
  1487. if test -n "$ac_init_help"; then
  1488. cat <<\_ACEOF
  1489. Optional Features:
  1490. --disable-option-checking ignore unrecognized --enable/--with options
  1491. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1492. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1493. --enable-shared[=PKGS] build shared libraries [default=yes]
  1494. --enable-static[=PKGS] build static libraries [default=yes]
  1495. --enable-fast-install[=PKGS]
  1496. optimize for fast installation [default=yes]
  1497. --disable-libtool-lock avoid locking (might break parallel builds)
  1498. --disable-largefile omit support for large files
  1499. --enable-assertions Enable internal sanity checks
  1500. (auto/disabled/release/enabled/paranoid)
  1501. [default=auto]
  1502. --enable-dependency-tracking
  1503. Use gcc -MMD -MT dependency tracking [default=yes]
  1504. --enable-libc Use the system C library [default=yes]
  1505. --enable-system-iconv Use iconv() from system-installed libraries
  1506. [default=no for windows, yes for others]
  1507. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1508. libc version [default=no]
  1509. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1510. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1511. --enable-audio Enable the audio subsystem [default=yes]
  1512. --enable-video Enable the video subsystem [default=yes]
  1513. --enable-render Enable the render subsystem [default=yes]
  1514. --enable-events Enable the events subsystem [default=yes]
  1515. --enable-joystick Enable the joystick subsystem [default=yes]
  1516. --enable-haptic Enable the haptic (force feedback) subsystem
  1517. [default=yes]
  1518. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1519. --enable-sensor Enable the sensor subsystem [default=yes]
  1520. --enable-power Enable the power subsystem [default=yes]
  1521. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1522. --enable-timers Enable the timer subsystem [default=yes]
  1523. --enable-file Enable the file subsystem [default=yes]
  1524. --enable-misc Enable the misc subsystem [default=yes]
  1525. --enable-locale Enable the locale subsystem [default=yes]
  1526. --enable-loadso Enable the shared object loading subsystem
  1527. [default=yes]
  1528. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1529. --enable-assembly Enable assembly routines [default=yes]
  1530. --enable-ssemath Allow GCC to use SSE floating point math
  1531. [default=maybe]
  1532. --enable-mmx use MMX assembly routines [default=yes]
  1533. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1534. --enable-sse use SSE assembly routines [default=yes]
  1535. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1536. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1537. --enable-altivec use Altivec assembly routines [default=yes]
  1538. --enable-lsx use LSX assembly routines [default=yes]
  1539. --enable-oss support the OSS audio API [default=maybe]
  1540. --enable-alsa support the ALSA audio API [default=yes]
  1541. --disable-alsatest Do not try to compile and run a test Alsa program
  1542. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1543. --enable-jack use JACK audio [default=yes]
  1544. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1545. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1546. --disable-esdtest Do not try to compile and run a test ESD program
  1547. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1548. --enable-pipewire use Pipewire audio [default=yes]
  1549. --enable-pipewire-shared
  1550. dynamically load Pipewire support [default=yes]
  1551. --enable-pulseaudio use PulseAudio [default=yes]
  1552. --enable-pulseaudio-shared
  1553. dynamically load PulseAudio support [default=yes]
  1554. --enable-arts support the Analog Real Time Synthesizer
  1555. [default=yes]
  1556. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1557. --enable-nas support the NAS audio API [default=yes]
  1558. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1559. --enable-sndio support the sndio audio API [default=yes]
  1560. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1561. --enable-fusionsound use FusionSound audio driver [default=no]
  1562. --enable-fusionsound-shared
  1563. dynamically load fusionsound audio support
  1564. [default=yes]
  1565. --enable-diskaudio support the disk writer audio driver [default=yes]
  1566. --enable-dummyaudio support the dummy audio driver [default=yes]
  1567. --enable-libsamplerate use libsamplerate for audio rate conversion
  1568. [default=yes]
  1569. --enable-libsamplerate-shared
  1570. dynamically load libsamplerate [default=yes]
  1571. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1572. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1573. --enable-werror treat warnings as errors [default=no]
  1574. --enable-video-wayland use Wayland video driver [default=yes]
  1575. --enable-video-wayland-qt-touch
  1576. QtWayland server support for Wayland video driver
  1577. [default=yes]
  1578. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1579. --enable-libdecor use libdecor for Wayland client-side decorations
  1580. [default=yes]
  1581. --enable-libdecor-shared
  1582. dynamically load libdecor [default=yes]
  1583. --enable-video-rpi use Raspberry Pi 0-3 video driver [default=yes]
  1584. --enable-video-x11 use X11 video driver [default=maybe]
  1585. --enable-x11-shared dynamically load X11 support [default=maybe]
  1586. --enable-video-x11-xcursor
  1587. enable X11 Xcursor support [default=yes]
  1588. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1589. --enable-video-x11-xinput
  1590. enable X11 XInput extension for manymouse, tablets,
  1591. etc [default=yes]
  1592. --enable-video-x11-xfixes
  1593. enable X11 Xfixes support [default=yes]
  1594. --enable-video-x11-xrandr
  1595. enable X11 Xrandr extension for fullscreen
  1596. [default=yes]
  1597. --enable-video-x11-scrnsaver
  1598. enable X11 screensaver extension [default=yes]
  1599. --enable-video-x11-xshape
  1600. enable X11 XShape support [default=yes]
  1601. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1602. --enable-video-cocoa use Cocoa video driver [default=yes]
  1603. --enable-video-metal include Metal support [default=yes]
  1604. --enable-render-metal enable the Metal render driver [default=yes]
  1605. --enable-video-directfb use DirectFB video driver [default=no]
  1606. --enable-directfb-shared
  1607. dynamically load directfb support [default=yes]
  1608. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1609. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1610. --enable-video-dummy use dummy video driver [default=yes]
  1611. --enable-video-offscreen
  1612. use offscreen video driver [default=yes]
  1613. --enable-video-opengl include OpenGL support [default=yes]
  1614. --enable-video-opengles include OpenGL ES support [default=yes]
  1615. --enable-video-opengles1
  1616. include OpenGL ES 1.1 support [default=yes]
  1617. --enable-video-opengles2
  1618. include OpenGL ES 2.0 support [default=yes]
  1619. --enable-video-vulkan include Vulkan support [default=yes]
  1620. --enable-libudev enable libudev support [default=yes]
  1621. --enable-dbus enable D-Bus support [default=yes]
  1622. --enable-ime enable IME support [default=yes]
  1623. --enable-ibus enable IBus support [default=yes]
  1624. --enable-fcitx enable fcitx support [default=yes]
  1625. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1626. --enable-pthreads use POSIX threads for multi-threading
  1627. [default=maybe]
  1628. --enable-pthread-sem use pthread semaphores [default=maybe]
  1629. --enable-directx use DirectX for Windows audio/video [default=yes]
  1630. --enable-xinput use Xinput for Windows [default=yes]
  1631. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1632. --enable-hidapi-joystick
  1633. use HIDAPI for low level joystick drivers
  1634. [default=yes]
  1635. --enable-hidapi-libusb use libusb for low level joystick drivers
  1636. [default=maybe]
  1637. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1638. UNIX [default=yes]
  1639. --enable-rpath use an rpath when linking SDL [default=yes]
  1640. --enable-backgrounding-signal
  1641. number to use for magic backgrounding signal or 'no'
  1642. [default=no]
  1643. --enable-foregrounding-signal
  1644. number to use for magic foregrounding signal or 'no'
  1645. [default=no]
  1646. --enable-joystick-virtual
  1647. enable virtual joystick APIs [default=yes]
  1648. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1649. --enable-sdl2-config Install sdl2-config [default=yes]
  1650. --enable-vendor-info=STRING
  1651. Add vendor info to SDL_REVISION
  1652. Optional Packages:
  1653. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1654. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1655. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1656. both]
  1657. --with-aix-soname=aix|svr4|both
  1658. shared library versioning (aka "SONAME") variant to
  1659. provide on AIX, [default=aix].
  1660. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1661. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1662. compiler's sysroot if not specified).
  1663. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1664. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1665. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1666. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1667. --with-x use the X Window System
  1668. Some influential environment variables:
  1669. CC C compiler command
  1670. CFLAGS C compiler flags
  1671. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1672. nonstandard directory <lib dir>
  1673. LIBS libraries to pass to the linker, e.g. -l<library>
  1674. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1675. you have headers in a nonstandard directory <include dir>
  1676. LT_SYS_LIBRARY_PATH
  1677. User-defined run-time library search path.
  1678. CXX C++ compiler command
  1679. CXXFLAGS C++ compiler flags
  1680. CXXCPP C++ preprocessor
  1681. PKG_CONFIG path to pkg-config utility
  1682. PKG_CONFIG_PATH
  1683. directories to add to pkg-config's search path
  1684. PKG_CONFIG_LIBDIR
  1685. path overriding pkg-config's built-in search path
  1686. CPP C preprocessor
  1687. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1688. JACK_LIBS linker flags for JACK, overriding pkg-config
  1689. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1690. ESD_LIBS linker flags for ESD, overriding pkg-config
  1691. PIPEWIRE_CFLAGS
  1692. C compiler flags for PIPEWIRE, overriding pkg-config
  1693. PIPEWIRE_LIBS
  1694. linker flags for PIPEWIRE, overriding pkg-config
  1695. PULSEAUDIO_CFLAGS
  1696. C compiler flags for PULSEAUDIO, overriding pkg-config
  1697. PULSEAUDIO_LIBS
  1698. linker flags for PULSEAUDIO, overriding pkg-config
  1699. SNDIO_CFLAGS
  1700. C compiler flags for SNDIO, overriding pkg-config
  1701. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1702. FUSIONSOUND_CFLAGS
  1703. C compiler flags for FUSIONSOUND, overriding pkg-config
  1704. FUSIONSOUND_LIBS
  1705. linker flags for FUSIONSOUND, overriding pkg-config
  1706. DECOR_CFLAGS
  1707. C compiler flags for DECOR, overriding pkg-config
  1708. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1709. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1710. RPI_LIBS linker flags for RPI, overriding pkg-config
  1711. RPI_EGL_CFLAGS
  1712. C compiler flags for RPI_EGL, overriding pkg-config
  1713. RPI_EGL_LIBS
  1714. linker flags for RPI_EGL, overriding pkg-config
  1715. XMKMF Path to xmkmf, Makefile generator for X Window System
  1716. DIRECTFB_CFLAGS
  1717. C compiler flags for DIRECTFB, overriding pkg-config
  1718. DIRECTFB_LIBS
  1719. linker flags for DIRECTFB, overriding pkg-config
  1720. LIBDRM_CFLAGS
  1721. C compiler flags for LIBDRM, overriding pkg-config
  1722. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1723. LIBGBM_CFLAGS
  1724. C compiler flags for LIBGBM, overriding pkg-config
  1725. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1726. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1727. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1728. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1729. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1730. LIBUSB_CFLAGS
  1731. C compiler flags for LIBUSB, overriding pkg-config
  1732. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1733. Use these variables to override the choices made by `configure' or to help
  1734. it to find libraries and programs with nonstandard names/locations.
  1735. Report bugs to the package provider.
  1736. _ACEOF
  1737. ac_status=$?
  1738. fi
  1739. if test "$ac_init_help" = "recursive"; then
  1740. # If there are subdirs, report their specific --help.
  1741. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1742. test -d "$ac_dir" ||
  1743. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1744. continue
  1745. ac_builddir=.
  1746. case "$ac_dir" in
  1747. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1748. *)
  1749. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1750. # A ".." for each directory in $ac_dir_suffix.
  1751. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1752. case $ac_top_builddir_sub in
  1753. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1754. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1755. esac ;;
  1756. esac
  1757. ac_abs_top_builddir=$ac_pwd
  1758. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1759. # for backward compatibility:
  1760. ac_top_builddir=$ac_top_build_prefix
  1761. case $srcdir in
  1762. .) # We are building in place.
  1763. ac_srcdir=.
  1764. ac_top_srcdir=$ac_top_builddir_sub
  1765. ac_abs_top_srcdir=$ac_pwd ;;
  1766. [\\/]* | ?:[\\/]* ) # Absolute name.
  1767. ac_srcdir=$srcdir$ac_dir_suffix;
  1768. ac_top_srcdir=$srcdir
  1769. ac_abs_top_srcdir=$srcdir ;;
  1770. *) # Relative name.
  1771. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1772. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1773. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1774. esac
  1775. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1776. cd "$ac_dir" || { ac_status=$?; continue; }
  1777. # Check for configure.gnu first; this name is used for a wrapper for
  1778. # Metaconfig's "Configure" on case-insensitive file systems.
  1779. if test -f "$ac_srcdir/configure.gnu"; then
  1780. echo &&
  1781. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1782. elif test -f "$ac_srcdir/configure"; then
  1783. echo &&
  1784. $SHELL "$ac_srcdir/configure" --help=recursive
  1785. else
  1786. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1787. fi || ac_status=$?
  1788. cd "$ac_pwd" || { ac_status=$?; break; }
  1789. done
  1790. fi
  1791. test -n "$ac_init_help" && exit $ac_status
  1792. if $ac_init_version; then
  1793. cat <<\_ACEOF
  1794. configure
  1795. generated by GNU Autoconf 2.71
  1796. Copyright (C) 2021 Free Software Foundation, Inc.
  1797. This configure script is free software; the Free Software Foundation
  1798. gives unlimited permission to copy, distribute and modify it.
  1799. _ACEOF
  1800. exit
  1801. fi
  1802. ## ------------------------ ##
  1803. ## Autoconf initialization. ##
  1804. ## ------------------------ ##
  1805. # ac_fn_c_try_compile LINENO
  1806. # --------------------------
  1807. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1808. ac_fn_c_try_compile ()
  1809. {
  1810. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1811. rm -f conftest.$ac_objext conftest.beam
  1812. if { { ac_try="$ac_compile"
  1813. case "(($ac_try" in
  1814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1815. *) ac_try_echo=$ac_try;;
  1816. esac
  1817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1818. printf "%s\n" "$ac_try_echo"; } >&5
  1819. (eval "$ac_compile") 2>conftest.err
  1820. ac_status=$?
  1821. if test -s conftest.err; then
  1822. grep -v '^ *+' conftest.err >conftest.er1
  1823. cat conftest.er1 >&5
  1824. mv -f conftest.er1 conftest.err
  1825. fi
  1826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1827. test $ac_status = 0; } && {
  1828. test -z "$ac_c_werror_flag" ||
  1829. test ! -s conftest.err
  1830. } && test -s conftest.$ac_objext
  1831. then :
  1832. ac_retval=0
  1833. else $as_nop
  1834. printf "%s\n" "$as_me: failed program was:" >&5
  1835. sed 's/^/| /' conftest.$ac_ext >&5
  1836. ac_retval=1
  1837. fi
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. as_fn_set_status $ac_retval
  1840. } # ac_fn_c_try_compile
  1841. # ac_fn_c_try_link LINENO
  1842. # -----------------------
  1843. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1844. ac_fn_c_try_link ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1848. if { { ac_try="$ac_link"
  1849. case "(($ac_try" in
  1850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1851. *) ac_try_echo=$ac_try;;
  1852. esac
  1853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1854. printf "%s\n" "$ac_try_echo"; } >&5
  1855. (eval "$ac_link") 2>conftest.err
  1856. ac_status=$?
  1857. if test -s conftest.err; then
  1858. grep -v '^ *+' conftest.err >conftest.er1
  1859. cat conftest.er1 >&5
  1860. mv -f conftest.er1 conftest.err
  1861. fi
  1862. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1863. test $ac_status = 0; } && {
  1864. test -z "$ac_c_werror_flag" ||
  1865. test ! -s conftest.err
  1866. } && test -s conftest$ac_exeext && {
  1867. test "$cross_compiling" = yes ||
  1868. test -x conftest$ac_exeext
  1869. }
  1870. then :
  1871. ac_retval=0
  1872. else $as_nop
  1873. printf "%s\n" "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. ac_retval=1
  1876. fi
  1877. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1878. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1879. # interfere with the next link command; also delete a directory that is
  1880. # left behind by Apple's compiler. We do this before executing the actions.
  1881. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. as_fn_set_status $ac_retval
  1884. } # ac_fn_c_try_link
  1885. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1886. # -------------------------------------------------------
  1887. # Tests whether HEADER exists and can be compiled using the include files in
  1888. # INCLUDES, setting the cache variable VAR accordingly.
  1889. ac_fn_c_check_header_compile ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. printf %s "checking for $2... " >&6; }
  1894. if eval test \${$3+y}
  1895. then :
  1896. printf %s "(cached) " >&6
  1897. else $as_nop
  1898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1899. /* end confdefs.h. */
  1900. $4
  1901. #include <$2>
  1902. _ACEOF
  1903. if ac_fn_c_try_compile "$LINENO"
  1904. then :
  1905. eval "$3=yes"
  1906. else $as_nop
  1907. eval "$3=no"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1910. fi
  1911. eval ac_res=\$$3
  1912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1913. printf "%s\n" "$ac_res" >&6; }
  1914. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1915. } # ac_fn_c_check_header_compile
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. printf %s "checking for $2... " >&6; }
  1924. if eval test \${$3+y}
  1925. then :
  1926. printf %s "(cached) " >&6
  1927. else $as_nop
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1932. #define $2 innocuous_$2
  1933. /* System header to define __stub macros and hopefully few prototypes,
  1934. which can conflict with char $2 (); below. */
  1935. #include <limits.h>
  1936. #undef $2
  1937. /* Override any GCC internal prototype to avoid an error.
  1938. Use char because int might match the return type of a GCC
  1939. builtin and then its argument prototype would still apply. */
  1940. #ifdef __cplusplus
  1941. extern "C"
  1942. #endif
  1943. char $2 ();
  1944. /* The GNU C library defines this for functions which it implements
  1945. to always fail with ENOSYS. Some functions are actually named
  1946. something starting with __ and the normal name is an alias. */
  1947. #if defined __stub_$2 || defined __stub___$2
  1948. choke me
  1949. #endif
  1950. int
  1951. main (void)
  1952. {
  1953. return $2 ();
  1954. ;
  1955. return 0;
  1956. }
  1957. _ACEOF
  1958. if ac_fn_c_try_link "$LINENO"
  1959. then :
  1960. eval "$3=yes"
  1961. else $as_nop
  1962. eval "$3=no"
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1965. conftest$ac_exeext conftest.$ac_ext
  1966. fi
  1967. eval ac_res=\$$3
  1968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1969. printf "%s\n" "$ac_res" >&6; }
  1970. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1971. } # ac_fn_c_check_func
  1972. # ac_fn_cxx_try_compile LINENO
  1973. # ----------------------------
  1974. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1975. ac_fn_cxx_try_compile ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. rm -f conftest.$ac_objext conftest.beam
  1979. if { { ac_try="$ac_compile"
  1980. case "(($ac_try" in
  1981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1982. *) ac_try_echo=$ac_try;;
  1983. esac
  1984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1985. printf "%s\n" "$ac_try_echo"; } >&5
  1986. (eval "$ac_compile") 2>conftest.err
  1987. ac_status=$?
  1988. if test -s conftest.err; then
  1989. grep -v '^ *+' conftest.err >conftest.er1
  1990. cat conftest.er1 >&5
  1991. mv -f conftest.er1 conftest.err
  1992. fi
  1993. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1994. test $ac_status = 0; } && {
  1995. test -z "$ac_cxx_werror_flag" ||
  1996. test ! -s conftest.err
  1997. } && test -s conftest.$ac_objext
  1998. then :
  1999. ac_retval=0
  2000. else $as_nop
  2001. printf "%s\n" "$as_me: failed program was:" >&5
  2002. sed 's/^/| /' conftest.$ac_ext >&5
  2003. ac_retval=1
  2004. fi
  2005. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2006. as_fn_set_status $ac_retval
  2007. } # ac_fn_cxx_try_compile
  2008. # ac_fn_cxx_try_cpp LINENO
  2009. # ------------------------
  2010. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2011. ac_fn_cxx_try_cpp ()
  2012. {
  2013. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2015. case "(($ac_try" in
  2016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2017. *) ac_try_echo=$ac_try;;
  2018. esac
  2019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2020. printf "%s\n" "$ac_try_echo"; } >&5
  2021. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2022. ac_status=$?
  2023. if test -s conftest.err; then
  2024. grep -v '^ *+' conftest.err >conftest.er1
  2025. cat conftest.er1 >&5
  2026. mv -f conftest.er1 conftest.err
  2027. fi
  2028. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2029. test $ac_status = 0; } > conftest.i && {
  2030. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2031. test ! -s conftest.err
  2032. }
  2033. then :
  2034. ac_retval=0
  2035. else $as_nop
  2036. printf "%s\n" "$as_me: failed program was:" >&5
  2037. sed 's/^/| /' conftest.$ac_ext >&5
  2038. ac_retval=1
  2039. fi
  2040. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2041. as_fn_set_status $ac_retval
  2042. } # ac_fn_cxx_try_cpp
  2043. # ac_fn_cxx_try_link LINENO
  2044. # -------------------------
  2045. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2046. ac_fn_cxx_try_link ()
  2047. {
  2048. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2049. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2050. if { { ac_try="$ac_link"
  2051. case "(($ac_try" in
  2052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2053. *) ac_try_echo=$ac_try;;
  2054. esac
  2055. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2056. printf "%s\n" "$ac_try_echo"; } >&5
  2057. (eval "$ac_link") 2>conftest.err
  2058. ac_status=$?
  2059. if test -s conftest.err; then
  2060. grep -v '^ *+' conftest.err >conftest.er1
  2061. cat conftest.er1 >&5
  2062. mv -f conftest.er1 conftest.err
  2063. fi
  2064. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2065. test $ac_status = 0; } && {
  2066. test -z "$ac_cxx_werror_flag" ||
  2067. test ! -s conftest.err
  2068. } && test -s conftest$ac_exeext && {
  2069. test "$cross_compiling" = yes ||
  2070. test -x conftest$ac_exeext
  2071. }
  2072. then :
  2073. ac_retval=0
  2074. else $as_nop
  2075. printf "%s\n" "$as_me: failed program was:" >&5
  2076. sed 's/^/| /' conftest.$ac_ext >&5
  2077. ac_retval=1
  2078. fi
  2079. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2080. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2081. # interfere with the next link command; also delete a directory that is
  2082. # left behind by Apple's compiler. We do this before executing the actions.
  2083. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2084. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2085. as_fn_set_status $ac_retval
  2086. } # ac_fn_cxx_try_link
  2087. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2088. # -------------------------------------------
  2089. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2090. # variable VAR accordingly.
  2091. ac_fn_c_check_type ()
  2092. {
  2093. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2095. printf %s "checking for $2... " >&6; }
  2096. if eval test \${$3+y}
  2097. then :
  2098. printf %s "(cached) " >&6
  2099. else $as_nop
  2100. eval "$3=no"
  2101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2102. /* end confdefs.h. */
  2103. $4
  2104. int
  2105. main (void)
  2106. {
  2107. if (sizeof ($2))
  2108. return 0;
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_c_try_compile "$LINENO"
  2114. then :
  2115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2116. /* end confdefs.h. */
  2117. $4
  2118. int
  2119. main (void)
  2120. {
  2121. if (sizeof (($2)))
  2122. return 0;
  2123. ;
  2124. return 0;
  2125. }
  2126. _ACEOF
  2127. if ac_fn_c_try_compile "$LINENO"
  2128. then :
  2129. else $as_nop
  2130. eval "$3=yes"
  2131. fi
  2132. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2133. fi
  2134. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2135. fi
  2136. eval ac_res=\$$3
  2137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2138. printf "%s\n" "$ac_res" >&6; }
  2139. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2140. } # ac_fn_c_check_type
  2141. # ac_fn_c_try_cpp LINENO
  2142. # ----------------------
  2143. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2144. ac_fn_c_try_cpp ()
  2145. {
  2146. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2147. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2148. case "(($ac_try" in
  2149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2150. *) ac_try_echo=$ac_try;;
  2151. esac
  2152. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2153. printf "%s\n" "$ac_try_echo"; } >&5
  2154. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2155. ac_status=$?
  2156. if test -s conftest.err; then
  2157. grep -v '^ *+' conftest.err >conftest.er1
  2158. cat conftest.er1 >&5
  2159. mv -f conftest.er1 conftest.err
  2160. fi
  2161. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } > conftest.i && {
  2163. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2164. test ! -s conftest.err
  2165. }
  2166. then :
  2167. ac_retval=0
  2168. else $as_nop
  2169. printf "%s\n" "$as_me: failed program was:" >&5
  2170. sed 's/^/| /' conftest.$ac_ext >&5
  2171. ac_retval=1
  2172. fi
  2173. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2174. as_fn_set_status $ac_retval
  2175. } # ac_fn_c_try_cpp
  2176. # ac_fn_c_try_run LINENO
  2177. # ----------------------
  2178. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2179. # executables *can* be run.
  2180. ac_fn_c_try_run ()
  2181. {
  2182. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2183. if { { ac_try="$ac_link"
  2184. case "(($ac_try" in
  2185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2186. *) ac_try_echo=$ac_try;;
  2187. esac
  2188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2189. printf "%s\n" "$ac_try_echo"; } >&5
  2190. (eval "$ac_link") 2>&5
  2191. ac_status=$?
  2192. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2193. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2194. { { case "(($ac_try" in
  2195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2196. *) ac_try_echo=$ac_try;;
  2197. esac
  2198. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2199. printf "%s\n" "$ac_try_echo"; } >&5
  2200. (eval "$ac_try") 2>&5
  2201. ac_status=$?
  2202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2203. test $ac_status = 0; }; }
  2204. then :
  2205. ac_retval=0
  2206. else $as_nop
  2207. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2208. printf "%s\n" "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. ac_retval=$ac_status
  2211. fi
  2212. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2213. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2214. as_fn_set_status $ac_retval
  2215. } # ac_fn_c_try_run
  2216. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2217. # ----------------------------------------------------
  2218. # Tries to find if the field MEMBER exists in type AGGR, after including
  2219. # INCLUDES, setting cache variable VAR accordingly.
  2220. ac_fn_c_check_member ()
  2221. {
  2222. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2224. printf %s "checking for $2.$3... " >&6; }
  2225. if eval test \${$4+y}
  2226. then :
  2227. printf %s "(cached) " >&6
  2228. else $as_nop
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main (void)
  2234. {
  2235. static $2 ac_aggr;
  2236. if (ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_c_try_compile "$LINENO"
  2243. then :
  2244. eval "$4=yes"
  2245. else $as_nop
  2246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2247. /* end confdefs.h. */
  2248. $5
  2249. int
  2250. main (void)
  2251. {
  2252. static $2 ac_aggr;
  2253. if (sizeof ac_aggr.$3)
  2254. return 0;
  2255. ;
  2256. return 0;
  2257. }
  2258. _ACEOF
  2259. if ac_fn_c_try_compile "$LINENO"
  2260. then :
  2261. eval "$4=yes"
  2262. else $as_nop
  2263. eval "$4=no"
  2264. fi
  2265. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2266. fi
  2267. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2268. fi
  2269. eval ac_res=\$$4
  2270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2271. printf "%s\n" "$ac_res" >&6; }
  2272. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2273. } # ac_fn_c_check_member
  2274. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2275. # ------------------------------------------------------------------
  2276. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2277. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2278. ac_fn_check_decl ()
  2279. {
  2280. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2281. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2283. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2284. if eval test \${$3+y}
  2285. then :
  2286. printf %s "(cached) " >&6
  2287. else $as_nop
  2288. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2289. eval ac_save_FLAGS=\$$6
  2290. as_fn_append $6 " $5"
  2291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2292. /* end confdefs.h. */
  2293. $4
  2294. int
  2295. main (void)
  2296. {
  2297. #ifndef $as_decl_name
  2298. #ifdef __cplusplus
  2299. (void) $as_decl_use;
  2300. #else
  2301. (void) $as_decl_name;
  2302. #endif
  2303. #endif
  2304. ;
  2305. return 0;
  2306. }
  2307. _ACEOF
  2308. if ac_fn_c_try_compile "$LINENO"
  2309. then :
  2310. eval "$3=yes"
  2311. else $as_nop
  2312. eval "$3=no"
  2313. fi
  2314. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2315. eval $6=\$ac_save_FLAGS
  2316. fi
  2317. eval ac_res=\$$3
  2318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2319. printf "%s\n" "$ac_res" >&6; }
  2320. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2321. } # ac_fn_check_decl
  2322. ac_configure_args_raw=
  2323. for ac_arg
  2324. do
  2325. case $ac_arg in
  2326. *\'*)
  2327. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2328. esac
  2329. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2330. done
  2331. case $ac_configure_args_raw in
  2332. *$as_nl*)
  2333. ac_safe_unquote= ;;
  2334. *)
  2335. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2336. ac_unsafe_a="$ac_unsafe_z#~"
  2337. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2338. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2339. esac
  2340. cat >config.log <<_ACEOF
  2341. This file contains any messages produced by compilers while
  2342. running configure, to aid debugging if configure makes a mistake.
  2343. It was created by $as_me, which was
  2344. generated by GNU Autoconf 2.71. Invocation command line was
  2345. $ $0$ac_configure_args_raw
  2346. _ACEOF
  2347. exec 5>>config.log
  2348. {
  2349. cat <<_ASUNAME
  2350. ## --------- ##
  2351. ## Platform. ##
  2352. ## --------- ##
  2353. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2354. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2355. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2356. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2357. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2358. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2359. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2360. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2361. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2362. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2363. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2364. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2365. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2366. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2367. _ASUNAME
  2368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369. for as_dir in $PATH
  2370. do
  2371. IFS=$as_save_IFS
  2372. case $as_dir in #(((
  2373. '') as_dir=./ ;;
  2374. */) ;;
  2375. *) as_dir=$as_dir/ ;;
  2376. esac
  2377. printf "%s\n" "PATH: $as_dir"
  2378. done
  2379. IFS=$as_save_IFS
  2380. } >&5
  2381. cat >&5 <<_ACEOF
  2382. ## ----------- ##
  2383. ## Core tests. ##
  2384. ## ----------- ##
  2385. _ACEOF
  2386. # Keep a trace of the command line.
  2387. # Strip out --no-create and --no-recursion so they do not pile up.
  2388. # Strip out --silent because we don't want to record it for future runs.
  2389. # Also quote any args containing shell meta-characters.
  2390. # Make two passes to allow for proper duplicate-argument suppression.
  2391. ac_configure_args=
  2392. ac_configure_args0=
  2393. ac_configure_args1=
  2394. ac_must_keep_next=false
  2395. for ac_pass in 1 2
  2396. do
  2397. for ac_arg
  2398. do
  2399. case $ac_arg in
  2400. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2401. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2402. | -silent | --silent | --silen | --sile | --sil)
  2403. continue ;;
  2404. *\'*)
  2405. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2406. esac
  2407. case $ac_pass in
  2408. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2409. 2)
  2410. as_fn_append ac_configure_args1 " '$ac_arg'"
  2411. if test $ac_must_keep_next = true; then
  2412. ac_must_keep_next=false # Got value, back to normal.
  2413. else
  2414. case $ac_arg in
  2415. *=* | --config-cache | -C | -disable-* | --disable-* \
  2416. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2417. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2418. | -with-* | --with-* | -without-* | --without-* | --x)
  2419. case "$ac_configure_args0 " in
  2420. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2421. esac
  2422. ;;
  2423. -* ) ac_must_keep_next=true ;;
  2424. esac
  2425. fi
  2426. as_fn_append ac_configure_args " '$ac_arg'"
  2427. ;;
  2428. esac
  2429. done
  2430. done
  2431. { ac_configure_args0=; unset ac_configure_args0;}
  2432. { ac_configure_args1=; unset ac_configure_args1;}
  2433. # When interrupted or exit'd, cleanup temporary files, and complete
  2434. # config.log. We remove comments because anyway the quotes in there
  2435. # would cause problems or look ugly.
  2436. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2437. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2438. trap 'exit_status=$?
  2439. # Sanitize IFS.
  2440. IFS=" "" $as_nl"
  2441. # Save into config.log some information that might help in debugging.
  2442. {
  2443. echo
  2444. printf "%s\n" "## ---------------- ##
  2445. ## Cache variables. ##
  2446. ## ---------------- ##"
  2447. echo
  2448. # The following way of writing the cache mishandles newlines in values,
  2449. (
  2450. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2451. eval ac_val=\$$ac_var
  2452. case $ac_val in #(
  2453. *${as_nl}*)
  2454. case $ac_var in #(
  2455. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2456. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2457. esac
  2458. case $ac_var in #(
  2459. _ | IFS | as_nl) ;; #(
  2460. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2461. *) { eval $ac_var=; unset $ac_var;} ;;
  2462. esac ;;
  2463. esac
  2464. done
  2465. (set) 2>&1 |
  2466. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2467. *${as_nl}ac_space=\ *)
  2468. sed -n \
  2469. "s/'\''/'\''\\\\'\'''\''/g;
  2470. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2471. ;; #(
  2472. *)
  2473. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2474. ;;
  2475. esac |
  2476. sort
  2477. )
  2478. echo
  2479. printf "%s\n" "## ----------------- ##
  2480. ## Output variables. ##
  2481. ## ----------------- ##"
  2482. echo
  2483. for ac_var in $ac_subst_vars
  2484. do
  2485. eval ac_val=\$$ac_var
  2486. case $ac_val in
  2487. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2488. esac
  2489. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2490. done | sort
  2491. echo
  2492. if test -n "$ac_subst_files"; then
  2493. printf "%s\n" "## ------------------- ##
  2494. ## File substitutions. ##
  2495. ## ------------------- ##"
  2496. echo
  2497. for ac_var in $ac_subst_files
  2498. do
  2499. eval ac_val=\$$ac_var
  2500. case $ac_val in
  2501. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2502. esac
  2503. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2504. done | sort
  2505. echo
  2506. fi
  2507. if test -s confdefs.h; then
  2508. printf "%s\n" "## ----------- ##
  2509. ## confdefs.h. ##
  2510. ## ----------- ##"
  2511. echo
  2512. cat confdefs.h
  2513. echo
  2514. fi
  2515. test "$ac_signal" != 0 &&
  2516. printf "%s\n" "$as_me: caught signal $ac_signal"
  2517. printf "%s\n" "$as_me: exit $exit_status"
  2518. } >&5
  2519. rm -f core *.core core.conftest.* &&
  2520. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2521. exit $exit_status
  2522. ' 0
  2523. for ac_signal in 1 2 13 15; do
  2524. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2525. done
  2526. ac_signal=0
  2527. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2528. rm -f -r conftest* confdefs.h
  2529. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2530. # Predefined preprocessor variables.
  2531. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2532. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2533. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2534. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2535. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2536. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2537. # Let the site file select an alternate cache file if it wants to.
  2538. # Prefer an explicitly selected file to automatically selected ones.
  2539. if test -n "$CONFIG_SITE"; then
  2540. ac_site_files="$CONFIG_SITE"
  2541. elif test "x$prefix" != xNONE; then
  2542. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2543. else
  2544. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2545. fi
  2546. for ac_site_file in $ac_site_files
  2547. do
  2548. case $ac_site_file in #(
  2549. */*) :
  2550. ;; #(
  2551. *) :
  2552. ac_site_file=./$ac_site_file ;;
  2553. esac
  2554. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2556. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2557. sed 's/^/| /' "$ac_site_file" >&5
  2558. . "$ac_site_file" \
  2559. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2560. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2561. as_fn_error $? "failed to load site script $ac_site_file
  2562. See \`config.log' for more details" "$LINENO" 5; }
  2563. fi
  2564. done
  2565. if test -r "$cache_file"; then
  2566. # Some versions of bash will fail to source /dev/null (special files
  2567. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2568. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2570. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2571. case $cache_file in
  2572. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2573. *) . "./$cache_file";;
  2574. esac
  2575. fi
  2576. else
  2577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2578. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2579. >$cache_file
  2580. fi
  2581. # Test code for whether the C compiler supports C89 (global declarations)
  2582. ac_c_conftest_c89_globals='
  2583. /* Does the compiler advertise C89 conformance?
  2584. Do not test the value of __STDC__, because some compilers set it to 0
  2585. while being otherwise adequately conformant. */
  2586. #if !defined __STDC__
  2587. # error "Compiler does not advertise C89 conformance"
  2588. #endif
  2589. #include <stddef.h>
  2590. #include <stdarg.h>
  2591. struct stat;
  2592. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2593. struct buf { int x; };
  2594. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2595. static char *e (p, i)
  2596. char **p;
  2597. int i;
  2598. {
  2599. return p[i];
  2600. }
  2601. static char *f (char * (*g) (char **, int), char **p, ...)
  2602. {
  2603. char *s;
  2604. va_list v;
  2605. va_start (v,p);
  2606. s = g (p, va_arg (v,int));
  2607. va_end (v);
  2608. return s;
  2609. }
  2610. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2611. function prototypes and stuff, but not \xHH hex character constants.
  2612. These do not provoke an error unfortunately, instead are silently treated
  2613. as an "x". The following induces an error, until -std is added to get
  2614. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2615. array size at least. It is necessary to write \x00 == 0 to get something
  2616. that is true only with -std. */
  2617. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2618. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2619. inside strings and character constants. */
  2620. #define FOO(x) '\''x'\''
  2621. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2622. int test (int i, double x);
  2623. struct s1 {int (*f) (int a);};
  2624. struct s2 {int (*f) (double a);};
  2625. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2626. int, int);'
  2627. # Test code for whether the C compiler supports C89 (body of main).
  2628. ac_c_conftest_c89_main='
  2629. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2630. '
  2631. # Test code for whether the C compiler supports C99 (global declarations)
  2632. ac_c_conftest_c99_globals='
  2633. // Does the compiler advertise C99 conformance?
  2634. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2635. # error "Compiler does not advertise C99 conformance"
  2636. #endif
  2637. #include <stdbool.h>
  2638. extern int puts (const char *);
  2639. extern int printf (const char *, ...);
  2640. extern int dprintf (int, const char *, ...);
  2641. extern void *malloc (size_t);
  2642. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2643. // dprintf is used instead of fprintf to avoid needing to declare
  2644. // FILE and stderr.
  2645. #define debug(...) dprintf (2, __VA_ARGS__)
  2646. #define showlist(...) puts (#__VA_ARGS__)
  2647. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2648. static void
  2649. test_varargs_macros (void)
  2650. {
  2651. int x = 1234;
  2652. int y = 5678;
  2653. debug ("Flag");
  2654. debug ("X = %d\n", x);
  2655. showlist (The first, second, and third items.);
  2656. report (x>y, "x is %d but y is %d", x, y);
  2657. }
  2658. // Check long long types.
  2659. #define BIG64 18446744073709551615ull
  2660. #define BIG32 4294967295ul
  2661. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2662. #if !BIG_OK
  2663. #error "your preprocessor is broken"
  2664. #endif
  2665. #if BIG_OK
  2666. #else
  2667. #error "your preprocessor is broken"
  2668. #endif
  2669. static long long int bignum = -9223372036854775807LL;
  2670. static unsigned long long int ubignum = BIG64;
  2671. struct incomplete_array
  2672. {
  2673. int datasize;
  2674. double data[];
  2675. };
  2676. struct named_init {
  2677. int number;
  2678. const wchar_t *name;
  2679. double average;
  2680. };
  2681. typedef const char *ccp;
  2682. static inline int
  2683. test_restrict (ccp restrict text)
  2684. {
  2685. // See if C++-style comments work.
  2686. // Iterate through items via the restricted pointer.
  2687. // Also check for declarations in for loops.
  2688. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2689. continue;
  2690. return 0;
  2691. }
  2692. // Check varargs and va_copy.
  2693. static bool
  2694. test_varargs (const char *format, ...)
  2695. {
  2696. va_list args;
  2697. va_start (args, format);
  2698. va_list args_copy;
  2699. va_copy (args_copy, args);
  2700. const char *str = "";
  2701. int number = 0;
  2702. float fnumber = 0;
  2703. while (*format)
  2704. {
  2705. switch (*format++)
  2706. {
  2707. case '\''s'\'': // string
  2708. str = va_arg (args_copy, const char *);
  2709. break;
  2710. case '\''d'\'': // int
  2711. number = va_arg (args_copy, int);
  2712. break;
  2713. case '\''f'\'': // float
  2714. fnumber = va_arg (args_copy, double);
  2715. break;
  2716. default:
  2717. break;
  2718. }
  2719. }
  2720. va_end (args_copy);
  2721. va_end (args);
  2722. return *str && number && fnumber;
  2723. }
  2724. '
  2725. # Test code for whether the C compiler supports C99 (body of main).
  2726. ac_c_conftest_c99_main='
  2727. // Check bool.
  2728. _Bool success = false;
  2729. success |= (argc != 0);
  2730. // Check restrict.
  2731. if (test_restrict ("String literal") == 0)
  2732. success = true;
  2733. char *restrict newvar = "Another string";
  2734. // Check varargs.
  2735. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2736. test_varargs_macros ();
  2737. // Check flexible array members.
  2738. struct incomplete_array *ia =
  2739. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2740. ia->datasize = 10;
  2741. for (int i = 0; i < ia->datasize; ++i)
  2742. ia->data[i] = i * 1.234;
  2743. // Check named initializers.
  2744. struct named_init ni = {
  2745. .number = 34,
  2746. .name = L"Test wide string",
  2747. .average = 543.34343,
  2748. };
  2749. ni.number = 58;
  2750. int dynamic_array[ni.number];
  2751. dynamic_array[0] = argv[0][0];
  2752. dynamic_array[ni.number - 1] = 543;
  2753. // work around unused variable warnings
  2754. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2755. || dynamic_array[ni.number - 1] != 543);
  2756. '
  2757. # Test code for whether the C compiler supports C11 (global declarations)
  2758. ac_c_conftest_c11_globals='
  2759. // Does the compiler advertise C11 conformance?
  2760. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2761. # error "Compiler does not advertise C11 conformance"
  2762. #endif
  2763. // Check _Alignas.
  2764. char _Alignas (double) aligned_as_double;
  2765. char _Alignas (0) no_special_alignment;
  2766. extern char aligned_as_int;
  2767. char _Alignas (0) _Alignas (int) aligned_as_int;
  2768. // Check _Alignof.
  2769. enum
  2770. {
  2771. int_alignment = _Alignof (int),
  2772. int_array_alignment = _Alignof (int[100]),
  2773. char_alignment = _Alignof (char)
  2774. };
  2775. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2776. // Check _Noreturn.
  2777. int _Noreturn does_not_return (void) { for (;;) continue; }
  2778. // Check _Static_assert.
  2779. struct test_static_assert
  2780. {
  2781. int x;
  2782. _Static_assert (sizeof (int) <= sizeof (long int),
  2783. "_Static_assert does not work in struct");
  2784. long int y;
  2785. };
  2786. // Check UTF-8 literals.
  2787. #define u8 syntax error!
  2788. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2789. // Check duplicate typedefs.
  2790. typedef long *long_ptr;
  2791. typedef long int *long_ptr;
  2792. typedef long_ptr long_ptr;
  2793. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2794. struct anonymous
  2795. {
  2796. union {
  2797. struct { int i; int j; };
  2798. struct { int k; long int l; } w;
  2799. };
  2800. int m;
  2801. } v1;
  2802. '
  2803. # Test code for whether the C compiler supports C11 (body of main).
  2804. ac_c_conftest_c11_main='
  2805. _Static_assert ((offsetof (struct anonymous, i)
  2806. == offsetof (struct anonymous, w.k)),
  2807. "Anonymous union alignment botch");
  2808. v1.i = 2;
  2809. v1.w.k = 5;
  2810. ok |= v1.i != 5;
  2811. '
  2812. # Test code for whether the C compiler supports C11 (complete).
  2813. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2814. ${ac_c_conftest_c99_globals}
  2815. ${ac_c_conftest_c11_globals}
  2816. int
  2817. main (int argc, char **argv)
  2818. {
  2819. int ok = 0;
  2820. ${ac_c_conftest_c89_main}
  2821. ${ac_c_conftest_c99_main}
  2822. ${ac_c_conftest_c11_main}
  2823. return ok;
  2824. }
  2825. "
  2826. # Test code for whether the C compiler supports C99 (complete).
  2827. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2828. ${ac_c_conftest_c99_globals}
  2829. int
  2830. main (int argc, char **argv)
  2831. {
  2832. int ok = 0;
  2833. ${ac_c_conftest_c89_main}
  2834. ${ac_c_conftest_c99_main}
  2835. return ok;
  2836. }
  2837. "
  2838. # Test code for whether the C compiler supports C89 (complete).
  2839. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2840. int
  2841. main (int argc, char **argv)
  2842. {
  2843. int ok = 0;
  2844. ${ac_c_conftest_c89_main}
  2845. return ok;
  2846. }
  2847. "
  2848. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2849. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2850. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2851. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2852. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2853. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2854. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2855. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2856. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2857. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2858. ac_cxx_conftest_cxx98_globals='
  2859. // Does the compiler advertise C++98 conformance?
  2860. #if !defined __cplusplus || __cplusplus < 199711L
  2861. # error "Compiler does not advertise C++98 conformance"
  2862. #endif
  2863. // These inclusions are to reject old compilers that
  2864. // lack the unsuffixed header files.
  2865. #include <cstdlib>
  2866. #include <exception>
  2867. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2868. extern void assert (int);
  2869. namespace std {
  2870. extern int strcmp (const char *, const char *);
  2871. }
  2872. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2873. using std::exception;
  2874. using std::strcmp;
  2875. namespace {
  2876. void test_exception_syntax()
  2877. {
  2878. try {
  2879. throw "test";
  2880. } catch (const char *s) {
  2881. // Extra parentheses suppress a warning when building autoconf itself,
  2882. // due to lint rules shared with more typical C programs.
  2883. assert (!(strcmp) (s, "test"));
  2884. }
  2885. }
  2886. template <typename T> struct test_template
  2887. {
  2888. T const val;
  2889. explicit test_template(T t) : val(t) {}
  2890. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2891. };
  2892. } // anonymous namespace
  2893. '
  2894. # Test code for whether the C++ compiler supports C++98 (body of main)
  2895. ac_cxx_conftest_cxx98_main='
  2896. assert (argc);
  2897. assert (! argv[0]);
  2898. {
  2899. test_exception_syntax ();
  2900. test_template<double> tt (2.0);
  2901. assert (tt.add (4) == 6.0);
  2902. assert (true && !false);
  2903. }
  2904. '
  2905. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2906. ac_cxx_conftest_cxx11_globals='
  2907. // Does the compiler advertise C++ 2011 conformance?
  2908. #if !defined __cplusplus || __cplusplus < 201103L
  2909. # error "Compiler does not advertise C++11 conformance"
  2910. #endif
  2911. namespace cxx11test
  2912. {
  2913. constexpr int get_val() { return 20; }
  2914. struct testinit
  2915. {
  2916. int i;
  2917. double d;
  2918. };
  2919. class delegate
  2920. {
  2921. public:
  2922. delegate(int n) : n(n) {}
  2923. delegate(): delegate(2354) {}
  2924. virtual int getval() { return this->n; };
  2925. protected:
  2926. int n;
  2927. };
  2928. class overridden : public delegate
  2929. {
  2930. public:
  2931. overridden(int n): delegate(n) {}
  2932. virtual int getval() override final { return this->n * 2; }
  2933. };
  2934. class nocopy
  2935. {
  2936. public:
  2937. nocopy(int i): i(i) {}
  2938. nocopy() = default;
  2939. nocopy(const nocopy&) = delete;
  2940. nocopy & operator=(const nocopy&) = delete;
  2941. private:
  2942. int i;
  2943. };
  2944. // for testing lambda expressions
  2945. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2946. {
  2947. return f(v);
  2948. }
  2949. // for testing variadic templates and trailing return types
  2950. template <typename V> auto sum(V first) -> V
  2951. {
  2952. return first;
  2953. }
  2954. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2955. {
  2956. return first + sum(rest...);
  2957. }
  2958. }
  2959. '
  2960. # Test code for whether the C++ compiler supports C++11 (body of main)
  2961. ac_cxx_conftest_cxx11_main='
  2962. {
  2963. // Test auto and decltype
  2964. auto a1 = 6538;
  2965. auto a2 = 48573953.4;
  2966. auto a3 = "String literal";
  2967. int total = 0;
  2968. for (auto i = a3; *i; ++i) { total += *i; }
  2969. decltype(a2) a4 = 34895.034;
  2970. }
  2971. {
  2972. // Test constexpr
  2973. short sa[cxx11test::get_val()] = { 0 };
  2974. }
  2975. {
  2976. // Test initializer lists
  2977. cxx11test::testinit il = { 4323, 435234.23544 };
  2978. }
  2979. {
  2980. // Test range-based for
  2981. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2982. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2983. for (auto &x : array) { x += 23; }
  2984. }
  2985. {
  2986. // Test lambda expressions
  2987. using cxx11test::eval;
  2988. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2989. double d = 2.0;
  2990. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2991. assert (d == 5.0);
  2992. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2993. assert (d == 5.0);
  2994. }
  2995. {
  2996. // Test use of variadic templates
  2997. using cxx11test::sum;
  2998. auto a = sum(1);
  2999. auto b = sum(1, 2);
  3000. auto c = sum(1.0, 2.0, 3.0);
  3001. }
  3002. {
  3003. // Test constructor delegation
  3004. cxx11test::delegate d1;
  3005. cxx11test::delegate d2();
  3006. cxx11test::delegate d3(45);
  3007. }
  3008. {
  3009. // Test override and final
  3010. cxx11test::overridden o1(55464);
  3011. }
  3012. {
  3013. // Test nullptr
  3014. char *c = nullptr;
  3015. }
  3016. {
  3017. // Test template brackets
  3018. test_template<::test_template<int>> v(test_template<int>(12));
  3019. }
  3020. {
  3021. // Unicode literals
  3022. char const *utf8 = u8"UTF-8 string \u2500";
  3023. char16_t const *utf16 = u"UTF-8 string \u2500";
  3024. char32_t const *utf32 = U"UTF-32 string \u2500";
  3025. }
  3026. '
  3027. # Test code for whether the C compiler supports C++11 (complete).
  3028. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3029. ${ac_cxx_conftest_cxx11_globals}
  3030. int
  3031. main (int argc, char **argv)
  3032. {
  3033. int ok = 0;
  3034. ${ac_cxx_conftest_cxx98_main}
  3035. ${ac_cxx_conftest_cxx11_main}
  3036. return ok;
  3037. }
  3038. "
  3039. # Test code for whether the C compiler supports C++98 (complete).
  3040. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3041. int
  3042. main (int argc, char **argv)
  3043. {
  3044. int ok = 0;
  3045. ${ac_cxx_conftest_cxx98_main}
  3046. return ok;
  3047. }
  3048. "
  3049. # Auxiliary files required by this configure script.
  3050. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3051. # Locations in which to look for auxiliary files.
  3052. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3053. # Search for a directory containing all of the required auxiliary files,
  3054. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3055. # If we don't find one directory that contains all the files we need,
  3056. # we report the set of missing files from the *first* directory in
  3057. # $ac_aux_dir_candidates and give up.
  3058. ac_missing_aux_files=""
  3059. ac_first_candidate=:
  3060. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3062. as_found=false
  3063. for as_dir in $ac_aux_dir_candidates
  3064. do
  3065. IFS=$as_save_IFS
  3066. case $as_dir in #(((
  3067. '') as_dir=./ ;;
  3068. */) ;;
  3069. *) as_dir=$as_dir/ ;;
  3070. esac
  3071. as_found=:
  3072. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3073. ac_aux_dir_found=yes
  3074. ac_install_sh=
  3075. for ac_aux in $ac_aux_files
  3076. do
  3077. # As a special case, if "install-sh" is required, that requirement
  3078. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3079. # and $ac_install_sh is set appropriately for whichever one is found.
  3080. if test x"$ac_aux" = x"install-sh"
  3081. then
  3082. if test -f "${as_dir}install-sh"; then
  3083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3084. ac_install_sh="${as_dir}install-sh -c"
  3085. elif test -f "${as_dir}install.sh"; then
  3086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3087. ac_install_sh="${as_dir}install.sh -c"
  3088. elif test -f "${as_dir}shtool"; then
  3089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3090. ac_install_sh="${as_dir}shtool install -c"
  3091. else
  3092. ac_aux_dir_found=no
  3093. if $ac_first_candidate; then
  3094. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3095. else
  3096. break
  3097. fi
  3098. fi
  3099. else
  3100. if test -f "${as_dir}${ac_aux}"; then
  3101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3102. else
  3103. ac_aux_dir_found=no
  3104. if $ac_first_candidate; then
  3105. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3106. else
  3107. break
  3108. fi
  3109. fi
  3110. fi
  3111. done
  3112. if test "$ac_aux_dir_found" = yes; then
  3113. ac_aux_dir="$as_dir"
  3114. break
  3115. fi
  3116. ac_first_candidate=false
  3117. as_found=false
  3118. done
  3119. IFS=$as_save_IFS
  3120. if $as_found
  3121. then :
  3122. else $as_nop
  3123. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3124. fi
  3125. # These three variables are undocumented and unsupported,
  3126. # and are intended to be withdrawn in a future Autoconf release.
  3127. # They can cause serious problems if a builder's source tree is in a directory
  3128. # whose full name contains unusual characters.
  3129. if test -f "${ac_aux_dir}config.guess"; then
  3130. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3131. fi
  3132. if test -f "${ac_aux_dir}config.sub"; then
  3133. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3134. fi
  3135. if test -f "$ac_aux_dir/configure"; then
  3136. ac_configure="$SHELL ${ac_aux_dir}configure"
  3137. fi
  3138. # Check that the precious variables saved in the cache have kept the same
  3139. # value.
  3140. ac_cache_corrupted=false
  3141. for ac_var in $ac_precious_vars; do
  3142. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3143. eval ac_new_set=\$ac_env_${ac_var}_set
  3144. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3145. eval ac_new_val=\$ac_env_${ac_var}_value
  3146. case $ac_old_set,$ac_new_set in
  3147. set,)
  3148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3149. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3150. ac_cache_corrupted=: ;;
  3151. ,set)
  3152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3153. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3154. ac_cache_corrupted=: ;;
  3155. ,);;
  3156. *)
  3157. if test "x$ac_old_val" != "x$ac_new_val"; then
  3158. # differences in whitespace do not lead to failure.
  3159. ac_old_val_w=`echo x $ac_old_val`
  3160. ac_new_val_w=`echo x $ac_new_val`
  3161. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3163. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3164. ac_cache_corrupted=:
  3165. else
  3166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3167. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3168. eval $ac_var=\$ac_old_val
  3169. fi
  3170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3171. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3173. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3174. fi;;
  3175. esac
  3176. # Pass precious variables to config.status.
  3177. if test "$ac_new_set" = set; then
  3178. case $ac_new_val in
  3179. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3180. *) ac_arg=$ac_var=$ac_new_val ;;
  3181. esac
  3182. case " $ac_configure_args " in
  3183. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3184. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3185. esac
  3186. fi
  3187. done
  3188. if $ac_cache_corrupted; then
  3189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3190. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3192. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3193. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3194. and start over" "$LINENO" 5
  3195. fi
  3196. ## -------------------- ##
  3197. ## Main body of script. ##
  3198. ## -------------------- ##
  3199. ac_ext=c
  3200. ac_cpp='$CPP $CPPFLAGS'
  3201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3204. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3205. orig_CFLAGS="$CFLAGS"
  3206. # See docs/release_checklist.md
  3207. SDL_MAJOR_VERSION=2
  3208. SDL_MINOR_VERSION=31
  3209. SDL_MICRO_VERSION=0
  3210. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3211. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3212. case "$SDL_MINOR_VERSION" in #(
  3213. *[02468]) :
  3214. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3215. *) :
  3216. SDL_INTERFACE_AGE=0 ;; #(
  3217. *) :
  3218. ;;
  3219. esac
  3220. # libtool versioning
  3221. case `pwd` in
  3222. *\ * | *\ *)
  3223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3224. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3225. esac
  3226. macro_version='2.4.6'
  3227. macro_revision='2.4.6'
  3228. ltmain=$ac_aux_dir/ltmain.sh
  3229. # Make sure we can run config.sub.
  3230. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3231. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3233. printf %s "checking build system type... " >&6; }
  3234. if test ${ac_cv_build+y}
  3235. then :
  3236. printf %s "(cached) " >&6
  3237. else $as_nop
  3238. ac_build_alias=$build_alias
  3239. test "x$ac_build_alias" = x &&
  3240. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3241. test "x$ac_build_alias" = x &&
  3242. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3243. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3244. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3245. fi
  3246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3247. printf "%s\n" "$ac_cv_build" >&6; }
  3248. case $ac_cv_build in
  3249. *-*-*) ;;
  3250. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3251. esac
  3252. build=$ac_cv_build
  3253. ac_save_IFS=$IFS; IFS='-'
  3254. set x $ac_cv_build
  3255. shift
  3256. build_cpu=$1
  3257. build_vendor=$2
  3258. shift; shift
  3259. # Remember, the first character of IFS is used to create $*,
  3260. # except with old shells:
  3261. build_os=$*
  3262. IFS=$ac_save_IFS
  3263. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3265. printf %s "checking host system type... " >&6; }
  3266. if test ${ac_cv_host+y}
  3267. then :
  3268. printf %s "(cached) " >&6
  3269. else $as_nop
  3270. if test "x$host_alias" = x; then
  3271. ac_cv_host=$ac_cv_build
  3272. else
  3273. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3274. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3275. fi
  3276. fi
  3277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3278. printf "%s\n" "$ac_cv_host" >&6; }
  3279. case $ac_cv_host in
  3280. *-*-*) ;;
  3281. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3282. esac
  3283. host=$ac_cv_host
  3284. ac_save_IFS=$IFS; IFS='-'
  3285. set x $ac_cv_host
  3286. shift
  3287. host_cpu=$1
  3288. host_vendor=$2
  3289. shift; shift
  3290. # Remember, the first character of IFS is used to create $*,
  3291. # except with old shells:
  3292. host_os=$*
  3293. IFS=$ac_save_IFS
  3294. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3295. # Backslashify metacharacters that are still active within
  3296. # double-quoted strings.
  3297. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3298. # Same as above, but do not quote variable references.
  3299. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3300. # Sed substitution to delay expansion of an escaped shell variable in a
  3301. # double_quote_subst'ed string.
  3302. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3303. # Sed substitution to delay expansion of an escaped single quote.
  3304. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3305. # Sed substitution to avoid accidental globbing in evaled expressions
  3306. no_glob_subst='s/\*/\\\*/g'
  3307. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3308. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3309. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3311. printf %s "checking how to print strings... " >&6; }
  3312. # Test print first, because it will be a builtin if present.
  3313. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3314. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3315. ECHO='print -r --'
  3316. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3317. ECHO='printf %s\n'
  3318. else
  3319. # Use this function as a fallback that always works.
  3320. func_fallback_echo ()
  3321. {
  3322. eval 'cat <<_LTECHO_EOF
  3323. $1
  3324. _LTECHO_EOF'
  3325. }
  3326. ECHO='func_fallback_echo'
  3327. fi
  3328. # func_echo_all arg...
  3329. # Invoke $ECHO with all args, space-separated.
  3330. func_echo_all ()
  3331. {
  3332. $ECHO ""
  3333. }
  3334. case $ECHO in
  3335. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3336. printf "%s\n" "printf" >&6; } ;;
  3337. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3338. printf "%s\n" "print -r" >&6; } ;;
  3339. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3340. printf "%s\n" "cat" >&6; } ;;
  3341. esac
  3342. ac_ext=c
  3343. ac_cpp='$CPP $CPPFLAGS'
  3344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3347. if test -n "$ac_tool_prefix"; then
  3348. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3349. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. printf %s "checking for $ac_word... " >&6; }
  3352. if test ${ac_cv_prog_CC+y}
  3353. then :
  3354. printf %s "(cached) " >&6
  3355. else $as_nop
  3356. if test -n "$CC"; then
  3357. ac_cv_prog_CC="$CC" # Let the user override the test.
  3358. else
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. case $as_dir in #(((
  3364. '') as_dir=./ ;;
  3365. */) ;;
  3366. *) as_dir=$as_dir/ ;;
  3367. esac
  3368. for ac_exec_ext in '' $ac_executable_extensions; do
  3369. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3370. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3371. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3372. break 2
  3373. fi
  3374. done
  3375. done
  3376. IFS=$as_save_IFS
  3377. fi
  3378. fi
  3379. CC=$ac_cv_prog_CC
  3380. if test -n "$CC"; then
  3381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3382. printf "%s\n" "$CC" >&6; }
  3383. else
  3384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3385. printf "%s\n" "no" >&6; }
  3386. fi
  3387. fi
  3388. if test -z "$ac_cv_prog_CC"; then
  3389. ac_ct_CC=$CC
  3390. # Extract the first word of "gcc", so it can be a program name with args.
  3391. set dummy gcc; ac_word=$2
  3392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3393. printf %s "checking for $ac_word... " >&6; }
  3394. if test ${ac_cv_prog_ac_ct_CC+y}
  3395. then :
  3396. printf %s "(cached) " >&6
  3397. else $as_nop
  3398. if test -n "$ac_ct_CC"; then
  3399. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3400. else
  3401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3402. for as_dir in $PATH
  3403. do
  3404. IFS=$as_save_IFS
  3405. case $as_dir in #(((
  3406. '') as_dir=./ ;;
  3407. */) ;;
  3408. *) as_dir=$as_dir/ ;;
  3409. esac
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3412. ac_cv_prog_ac_ct_CC="gcc"
  3413. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. fi
  3420. fi
  3421. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3422. if test -n "$ac_ct_CC"; then
  3423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3424. printf "%s\n" "$ac_ct_CC" >&6; }
  3425. else
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3427. printf "%s\n" "no" >&6; }
  3428. fi
  3429. if test "x$ac_ct_CC" = x; then
  3430. CC=""
  3431. else
  3432. case $cross_compiling:$ac_tool_warned in
  3433. yes:)
  3434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3435. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3436. ac_tool_warned=yes ;;
  3437. esac
  3438. CC=$ac_ct_CC
  3439. fi
  3440. else
  3441. CC="$ac_cv_prog_CC"
  3442. fi
  3443. if test -z "$CC"; then
  3444. if test -n "$ac_tool_prefix"; then
  3445. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3446. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3448. printf %s "checking for $ac_word... " >&6; }
  3449. if test ${ac_cv_prog_CC+y}
  3450. then :
  3451. printf %s "(cached) " >&6
  3452. else $as_nop
  3453. if test -n "$CC"; then
  3454. ac_cv_prog_CC="$CC" # Let the user override the test.
  3455. else
  3456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3457. for as_dir in $PATH
  3458. do
  3459. IFS=$as_save_IFS
  3460. case $as_dir in #(((
  3461. '') as_dir=./ ;;
  3462. */) ;;
  3463. *) as_dir=$as_dir/ ;;
  3464. esac
  3465. for ac_exec_ext in '' $ac_executable_extensions; do
  3466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3467. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3469. break 2
  3470. fi
  3471. done
  3472. done
  3473. IFS=$as_save_IFS
  3474. fi
  3475. fi
  3476. CC=$ac_cv_prog_CC
  3477. if test -n "$CC"; then
  3478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3479. printf "%s\n" "$CC" >&6; }
  3480. else
  3481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3482. printf "%s\n" "no" >&6; }
  3483. fi
  3484. fi
  3485. fi
  3486. if test -z "$CC"; then
  3487. # Extract the first word of "cc", so it can be a program name with args.
  3488. set dummy cc; ac_word=$2
  3489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3490. printf %s "checking for $ac_word... " >&6; }
  3491. if test ${ac_cv_prog_CC+y}
  3492. then :
  3493. printf %s "(cached) " >&6
  3494. else $as_nop
  3495. if test -n "$CC"; then
  3496. ac_cv_prog_CC="$CC" # Let the user override the test.
  3497. else
  3498. ac_prog_rejected=no
  3499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3500. for as_dir in $PATH
  3501. do
  3502. IFS=$as_save_IFS
  3503. case $as_dir in #(((
  3504. '') as_dir=./ ;;
  3505. */) ;;
  3506. *) as_dir=$as_dir/ ;;
  3507. esac
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3510. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3511. ac_prog_rejected=yes
  3512. continue
  3513. fi
  3514. ac_cv_prog_CC="cc"
  3515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3516. break 2
  3517. fi
  3518. done
  3519. done
  3520. IFS=$as_save_IFS
  3521. if test $ac_prog_rejected = yes; then
  3522. # We found a bogon in the path, so make sure we never use it.
  3523. set dummy $ac_cv_prog_CC
  3524. shift
  3525. if test $# != 0; then
  3526. # We chose a different compiler from the bogus one.
  3527. # However, it has the same basename, so the bogon will be chosen
  3528. # first if we set CC to just the basename; use the full file name.
  3529. shift
  3530. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3531. fi
  3532. fi
  3533. fi
  3534. fi
  3535. CC=$ac_cv_prog_CC
  3536. if test -n "$CC"; then
  3537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3538. printf "%s\n" "$CC" >&6; }
  3539. else
  3540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3541. printf "%s\n" "no" >&6; }
  3542. fi
  3543. fi
  3544. if test -z "$CC"; then
  3545. if test -n "$ac_tool_prefix"; then
  3546. for ac_prog in cl.exe
  3547. do
  3548. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3549. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3551. printf %s "checking for $ac_word... " >&6; }
  3552. if test ${ac_cv_prog_CC+y}
  3553. then :
  3554. printf %s "(cached) " >&6
  3555. else $as_nop
  3556. if test -n "$CC"; then
  3557. ac_cv_prog_CC="$CC" # Let the user override the test.
  3558. else
  3559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3560. for as_dir in $PATH
  3561. do
  3562. IFS=$as_save_IFS
  3563. case $as_dir in #(((
  3564. '') as_dir=./ ;;
  3565. */) ;;
  3566. *) as_dir=$as_dir/ ;;
  3567. esac
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3570. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3572. break 2
  3573. fi
  3574. done
  3575. done
  3576. IFS=$as_save_IFS
  3577. fi
  3578. fi
  3579. CC=$ac_cv_prog_CC
  3580. if test -n "$CC"; then
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3582. printf "%s\n" "$CC" >&6; }
  3583. else
  3584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3585. printf "%s\n" "no" >&6; }
  3586. fi
  3587. test -n "$CC" && break
  3588. done
  3589. fi
  3590. if test -z "$CC"; then
  3591. ac_ct_CC=$CC
  3592. for ac_prog in cl.exe
  3593. do
  3594. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3595. set dummy $ac_prog; ac_word=$2
  3596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3597. printf %s "checking for $ac_word... " >&6; }
  3598. if test ${ac_cv_prog_ac_ct_CC+y}
  3599. then :
  3600. printf %s "(cached) " >&6
  3601. else $as_nop
  3602. if test -n "$ac_ct_CC"; then
  3603. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3604. else
  3605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3606. for as_dir in $PATH
  3607. do
  3608. IFS=$as_save_IFS
  3609. case $as_dir in #(((
  3610. '') as_dir=./ ;;
  3611. */) ;;
  3612. *) as_dir=$as_dir/ ;;
  3613. esac
  3614. for ac_exec_ext in '' $ac_executable_extensions; do
  3615. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3616. ac_cv_prog_ac_ct_CC="$ac_prog"
  3617. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3618. break 2
  3619. fi
  3620. done
  3621. done
  3622. IFS=$as_save_IFS
  3623. fi
  3624. fi
  3625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3626. if test -n "$ac_ct_CC"; then
  3627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3628. printf "%s\n" "$ac_ct_CC" >&6; }
  3629. else
  3630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3631. printf "%s\n" "no" >&6; }
  3632. fi
  3633. test -n "$ac_ct_CC" && break
  3634. done
  3635. if test "x$ac_ct_CC" = x; then
  3636. CC=""
  3637. else
  3638. case $cross_compiling:$ac_tool_warned in
  3639. yes:)
  3640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3641. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3642. ac_tool_warned=yes ;;
  3643. esac
  3644. CC=$ac_ct_CC
  3645. fi
  3646. fi
  3647. fi
  3648. if test -z "$CC"; then
  3649. if test -n "$ac_tool_prefix"; then
  3650. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3651. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3653. printf %s "checking for $ac_word... " >&6; }
  3654. if test ${ac_cv_prog_CC+y}
  3655. then :
  3656. printf %s "(cached) " >&6
  3657. else $as_nop
  3658. if test -n "$CC"; then
  3659. ac_cv_prog_CC="$CC" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. do
  3664. IFS=$as_save_IFS
  3665. case $as_dir in #(((
  3666. '') as_dir=./ ;;
  3667. */) ;;
  3668. *) as_dir=$as_dir/ ;;
  3669. esac
  3670. for ac_exec_ext in '' $ac_executable_extensions; do
  3671. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3672. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3673. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3674. break 2
  3675. fi
  3676. done
  3677. done
  3678. IFS=$as_save_IFS
  3679. fi
  3680. fi
  3681. CC=$ac_cv_prog_CC
  3682. if test -n "$CC"; then
  3683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3684. printf "%s\n" "$CC" >&6; }
  3685. else
  3686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3687. printf "%s\n" "no" >&6; }
  3688. fi
  3689. fi
  3690. if test -z "$ac_cv_prog_CC"; then
  3691. ac_ct_CC=$CC
  3692. # Extract the first word of "clang", so it can be a program name with args.
  3693. set dummy clang; ac_word=$2
  3694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3695. printf %s "checking for $ac_word... " >&6; }
  3696. if test ${ac_cv_prog_ac_ct_CC+y}
  3697. then :
  3698. printf %s "(cached) " >&6
  3699. else $as_nop
  3700. if test -n "$ac_ct_CC"; then
  3701. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3702. else
  3703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3704. for as_dir in $PATH
  3705. do
  3706. IFS=$as_save_IFS
  3707. case $as_dir in #(((
  3708. '') as_dir=./ ;;
  3709. */) ;;
  3710. *) as_dir=$as_dir/ ;;
  3711. esac
  3712. for ac_exec_ext in '' $ac_executable_extensions; do
  3713. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3714. ac_cv_prog_ac_ct_CC="clang"
  3715. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3716. break 2
  3717. fi
  3718. done
  3719. done
  3720. IFS=$as_save_IFS
  3721. fi
  3722. fi
  3723. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3724. if test -n "$ac_ct_CC"; then
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3726. printf "%s\n" "$ac_ct_CC" >&6; }
  3727. else
  3728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3729. printf "%s\n" "no" >&6; }
  3730. fi
  3731. if test "x$ac_ct_CC" = x; then
  3732. CC=""
  3733. else
  3734. case $cross_compiling:$ac_tool_warned in
  3735. yes:)
  3736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3737. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3738. ac_tool_warned=yes ;;
  3739. esac
  3740. CC=$ac_ct_CC
  3741. fi
  3742. else
  3743. CC="$ac_cv_prog_CC"
  3744. fi
  3745. fi
  3746. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3747. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3748. as_fn_error $? "no acceptable C compiler found in \$PATH
  3749. See \`config.log' for more details" "$LINENO" 5; }
  3750. # Provide some information about the compiler.
  3751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3752. set X $ac_compile
  3753. ac_compiler=$2
  3754. for ac_option in --version -v -V -qversion -version; do
  3755. { { ac_try="$ac_compiler $ac_option >&5"
  3756. case "(($ac_try" in
  3757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3758. *) ac_try_echo=$ac_try;;
  3759. esac
  3760. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3761. printf "%s\n" "$ac_try_echo"; } >&5
  3762. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3763. ac_status=$?
  3764. if test -s conftest.err; then
  3765. sed '10a\
  3766. ... rest of stderr output deleted ...
  3767. 10q' conftest.err >conftest.er1
  3768. cat conftest.er1 >&5
  3769. fi
  3770. rm -f conftest.er1 conftest.err
  3771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3772. test $ac_status = 0; }
  3773. done
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. int
  3777. main (void)
  3778. {
  3779. ;
  3780. return 0;
  3781. }
  3782. _ACEOF
  3783. ac_clean_files_save=$ac_clean_files
  3784. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3785. # Try to create an executable without -o first, disregard a.out.
  3786. # It will help us diagnose broken compilers, and finding out an intuition
  3787. # of exeext.
  3788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3789. printf %s "checking whether the C compiler works... " >&6; }
  3790. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3791. # The possible output files:
  3792. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3793. ac_rmfiles=
  3794. for ac_file in $ac_files
  3795. do
  3796. case $ac_file in
  3797. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3798. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3799. esac
  3800. done
  3801. rm -f $ac_rmfiles
  3802. if { { ac_try="$ac_link_default"
  3803. case "(($ac_try" in
  3804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3805. *) ac_try_echo=$ac_try;;
  3806. esac
  3807. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3808. printf "%s\n" "$ac_try_echo"; } >&5
  3809. (eval "$ac_link_default") 2>&5
  3810. ac_status=$?
  3811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3812. test $ac_status = 0; }
  3813. then :
  3814. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3815. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3816. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3817. # so that the user can short-circuit this test for compilers unknown to
  3818. # Autoconf.
  3819. for ac_file in $ac_files ''
  3820. do
  3821. test -f "$ac_file" || continue
  3822. case $ac_file in
  3823. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3824. ;;
  3825. [ab].out )
  3826. # We found the default executable, but exeext='' is most
  3827. # certainly right.
  3828. break;;
  3829. *.* )
  3830. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3831. then :; else
  3832. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3833. fi
  3834. # We set ac_cv_exeext here because the later test for it is not
  3835. # safe: cross compilers may not add the suffix if given an `-o'
  3836. # argument, so we may need to know it at that point already.
  3837. # Even if this section looks crufty: it has the advantage of
  3838. # actually working.
  3839. break;;
  3840. * )
  3841. break;;
  3842. esac
  3843. done
  3844. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3845. else $as_nop
  3846. ac_file=''
  3847. fi
  3848. if test -z "$ac_file"
  3849. then :
  3850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. printf "%s\n" "no" >&6; }
  3852. printf "%s\n" "$as_me: failed program was:" >&5
  3853. sed 's/^/| /' conftest.$ac_ext >&5
  3854. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3855. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3856. as_fn_error 77 "C compiler cannot create executables
  3857. See \`config.log' for more details" "$LINENO" 5; }
  3858. else $as_nop
  3859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3860. printf "%s\n" "yes" >&6; }
  3861. fi
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3863. printf %s "checking for C compiler default output file name... " >&6; }
  3864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3865. printf "%s\n" "$ac_file" >&6; }
  3866. ac_exeext=$ac_cv_exeext
  3867. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3868. ac_clean_files=$ac_clean_files_save
  3869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3870. printf %s "checking for suffix of executables... " >&6; }
  3871. if { { ac_try="$ac_link"
  3872. case "(($ac_try" in
  3873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3874. *) ac_try_echo=$ac_try;;
  3875. esac
  3876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3877. printf "%s\n" "$ac_try_echo"; } >&5
  3878. (eval "$ac_link") 2>&5
  3879. ac_status=$?
  3880. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3881. test $ac_status = 0; }
  3882. then :
  3883. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3884. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3885. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3886. # `rm'.
  3887. for ac_file in conftest.exe conftest conftest.*; do
  3888. test -f "$ac_file" || continue
  3889. case $ac_file in
  3890. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3891. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3892. break;;
  3893. * ) break;;
  3894. esac
  3895. done
  3896. else $as_nop
  3897. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3898. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3899. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3900. See \`config.log' for more details" "$LINENO" 5; }
  3901. fi
  3902. rm -f conftest conftest$ac_cv_exeext
  3903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3904. printf "%s\n" "$ac_cv_exeext" >&6; }
  3905. rm -f conftest.$ac_ext
  3906. EXEEXT=$ac_cv_exeext
  3907. ac_exeext=$EXEEXT
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. #include <stdio.h>
  3911. int
  3912. main (void)
  3913. {
  3914. FILE *f = fopen ("conftest.out", "w");
  3915. return ferror (f) || fclose (f) != 0;
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. ac_clean_files="$ac_clean_files conftest.out"
  3921. # Check that the compiler produces executables we can run. If not, either
  3922. # the compiler is broken, or we cross compile.
  3923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3924. printf %s "checking whether we are cross compiling... " >&6; }
  3925. if test "$cross_compiling" != yes; then
  3926. { { ac_try="$ac_link"
  3927. case "(($ac_try" in
  3928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3929. *) ac_try_echo=$ac_try;;
  3930. esac
  3931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3932. printf "%s\n" "$ac_try_echo"; } >&5
  3933. (eval "$ac_link") 2>&5
  3934. ac_status=$?
  3935. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3936. test $ac_status = 0; }
  3937. if { ac_try='./conftest$ac_cv_exeext'
  3938. { { case "(($ac_try" in
  3939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3940. *) ac_try_echo=$ac_try;;
  3941. esac
  3942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3943. printf "%s\n" "$ac_try_echo"; } >&5
  3944. (eval "$ac_try") 2>&5
  3945. ac_status=$?
  3946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3947. test $ac_status = 0; }; }; then
  3948. cross_compiling=no
  3949. else
  3950. if test "$cross_compiling" = maybe; then
  3951. cross_compiling=yes
  3952. else
  3953. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3954. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3955. as_fn_error 77 "cannot run C compiled programs.
  3956. If you meant to cross compile, use \`--host'.
  3957. See \`config.log' for more details" "$LINENO" 5; }
  3958. fi
  3959. fi
  3960. fi
  3961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3962. printf "%s\n" "$cross_compiling" >&6; }
  3963. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3964. ac_clean_files=$ac_clean_files_save
  3965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3966. printf %s "checking for suffix of object files... " >&6; }
  3967. if test ${ac_cv_objext+y}
  3968. then :
  3969. printf %s "(cached) " >&6
  3970. else $as_nop
  3971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3972. /* end confdefs.h. */
  3973. int
  3974. main (void)
  3975. {
  3976. ;
  3977. return 0;
  3978. }
  3979. _ACEOF
  3980. rm -f conftest.o conftest.obj
  3981. if { { ac_try="$ac_compile"
  3982. case "(($ac_try" in
  3983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3984. *) ac_try_echo=$ac_try;;
  3985. esac
  3986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3987. printf "%s\n" "$ac_try_echo"; } >&5
  3988. (eval "$ac_compile") 2>&5
  3989. ac_status=$?
  3990. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3991. test $ac_status = 0; }
  3992. then :
  3993. for ac_file in conftest.o conftest.obj conftest.*; do
  3994. test -f "$ac_file" || continue;
  3995. case $ac_file in
  3996. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3997. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3998. break;;
  3999. esac
  4000. done
  4001. else $as_nop
  4002. printf "%s\n" "$as_me: failed program was:" >&5
  4003. sed 's/^/| /' conftest.$ac_ext >&5
  4004. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4005. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4006. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4007. See \`config.log' for more details" "$LINENO" 5; }
  4008. fi
  4009. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4010. fi
  4011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4012. printf "%s\n" "$ac_cv_objext" >&6; }
  4013. OBJEXT=$ac_cv_objext
  4014. ac_objext=$OBJEXT
  4015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4016. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4017. if test ${ac_cv_c_compiler_gnu+y}
  4018. then :
  4019. printf %s "(cached) " >&6
  4020. else $as_nop
  4021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. int
  4024. main (void)
  4025. {
  4026. #ifndef __GNUC__
  4027. choke me
  4028. #endif
  4029. ;
  4030. return 0;
  4031. }
  4032. _ACEOF
  4033. if ac_fn_c_try_compile "$LINENO"
  4034. then :
  4035. ac_compiler_gnu=yes
  4036. else $as_nop
  4037. ac_compiler_gnu=no
  4038. fi
  4039. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4040. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4041. fi
  4042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4043. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4045. if test $ac_compiler_gnu = yes; then
  4046. GCC=yes
  4047. else
  4048. GCC=
  4049. fi
  4050. ac_test_CFLAGS=${CFLAGS+y}
  4051. ac_save_CFLAGS=$CFLAGS
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4053. printf %s "checking whether $CC accepts -g... " >&6; }
  4054. if test ${ac_cv_prog_cc_g+y}
  4055. then :
  4056. printf %s "(cached) " >&6
  4057. else $as_nop
  4058. ac_save_c_werror_flag=$ac_c_werror_flag
  4059. ac_c_werror_flag=yes
  4060. ac_cv_prog_cc_g=no
  4061. CFLAGS="-g"
  4062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4063. /* end confdefs.h. */
  4064. int
  4065. main (void)
  4066. {
  4067. ;
  4068. return 0;
  4069. }
  4070. _ACEOF
  4071. if ac_fn_c_try_compile "$LINENO"
  4072. then :
  4073. ac_cv_prog_cc_g=yes
  4074. else $as_nop
  4075. CFLAGS=""
  4076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4077. /* end confdefs.h. */
  4078. int
  4079. main (void)
  4080. {
  4081. ;
  4082. return 0;
  4083. }
  4084. _ACEOF
  4085. if ac_fn_c_try_compile "$LINENO"
  4086. then :
  4087. else $as_nop
  4088. ac_c_werror_flag=$ac_save_c_werror_flag
  4089. CFLAGS="-g"
  4090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4091. /* end confdefs.h. */
  4092. int
  4093. main (void)
  4094. {
  4095. ;
  4096. return 0;
  4097. }
  4098. _ACEOF
  4099. if ac_fn_c_try_compile "$LINENO"
  4100. then :
  4101. ac_cv_prog_cc_g=yes
  4102. fi
  4103. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4104. fi
  4105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4106. fi
  4107. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4108. ac_c_werror_flag=$ac_save_c_werror_flag
  4109. fi
  4110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4111. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4112. if test $ac_test_CFLAGS; then
  4113. CFLAGS=$ac_save_CFLAGS
  4114. elif test $ac_cv_prog_cc_g = yes; then
  4115. if test "$GCC" = yes; then
  4116. CFLAGS="-g -O2"
  4117. else
  4118. CFLAGS="-g"
  4119. fi
  4120. else
  4121. if test "$GCC" = yes; then
  4122. CFLAGS="-O2"
  4123. else
  4124. CFLAGS=
  4125. fi
  4126. fi
  4127. ac_prog_cc_stdc=no
  4128. if test x$ac_prog_cc_stdc = xno
  4129. then :
  4130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4131. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4132. if test ${ac_cv_prog_cc_c11+y}
  4133. then :
  4134. printf %s "(cached) " >&6
  4135. else $as_nop
  4136. ac_cv_prog_cc_c11=no
  4137. ac_save_CC=$CC
  4138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4139. /* end confdefs.h. */
  4140. $ac_c_conftest_c11_program
  4141. _ACEOF
  4142. for ac_arg in '' -std=gnu11
  4143. do
  4144. CC="$ac_save_CC $ac_arg"
  4145. if ac_fn_c_try_compile "$LINENO"
  4146. then :
  4147. ac_cv_prog_cc_c11=$ac_arg
  4148. fi
  4149. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4150. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4151. done
  4152. rm -f conftest.$ac_ext
  4153. CC=$ac_save_CC
  4154. fi
  4155. if test "x$ac_cv_prog_cc_c11" = xno
  4156. then :
  4157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4158. printf "%s\n" "unsupported" >&6; }
  4159. else $as_nop
  4160. if test "x$ac_cv_prog_cc_c11" = x
  4161. then :
  4162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4163. printf "%s\n" "none needed" >&6; }
  4164. else $as_nop
  4165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4166. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4167. CC="$CC $ac_cv_prog_cc_c11"
  4168. fi
  4169. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4170. ac_prog_cc_stdc=c11
  4171. fi
  4172. fi
  4173. if test x$ac_prog_cc_stdc = xno
  4174. then :
  4175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4176. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4177. if test ${ac_cv_prog_cc_c99+y}
  4178. then :
  4179. printf %s "(cached) " >&6
  4180. else $as_nop
  4181. ac_cv_prog_cc_c99=no
  4182. ac_save_CC=$CC
  4183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4184. /* end confdefs.h. */
  4185. $ac_c_conftest_c99_program
  4186. _ACEOF
  4187. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4188. do
  4189. CC="$ac_save_CC $ac_arg"
  4190. if ac_fn_c_try_compile "$LINENO"
  4191. then :
  4192. ac_cv_prog_cc_c99=$ac_arg
  4193. fi
  4194. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4195. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4196. done
  4197. rm -f conftest.$ac_ext
  4198. CC=$ac_save_CC
  4199. fi
  4200. if test "x$ac_cv_prog_cc_c99" = xno
  4201. then :
  4202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4203. printf "%s\n" "unsupported" >&6; }
  4204. else $as_nop
  4205. if test "x$ac_cv_prog_cc_c99" = x
  4206. then :
  4207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4208. printf "%s\n" "none needed" >&6; }
  4209. else $as_nop
  4210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4211. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4212. CC="$CC $ac_cv_prog_cc_c99"
  4213. fi
  4214. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4215. ac_prog_cc_stdc=c99
  4216. fi
  4217. fi
  4218. if test x$ac_prog_cc_stdc = xno
  4219. then :
  4220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4221. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4222. if test ${ac_cv_prog_cc_c89+y}
  4223. then :
  4224. printf %s "(cached) " >&6
  4225. else $as_nop
  4226. ac_cv_prog_cc_c89=no
  4227. ac_save_CC=$CC
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. $ac_c_conftest_c89_program
  4231. _ACEOF
  4232. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4233. do
  4234. CC="$ac_save_CC $ac_arg"
  4235. if ac_fn_c_try_compile "$LINENO"
  4236. then :
  4237. ac_cv_prog_cc_c89=$ac_arg
  4238. fi
  4239. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4240. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4241. done
  4242. rm -f conftest.$ac_ext
  4243. CC=$ac_save_CC
  4244. fi
  4245. if test "x$ac_cv_prog_cc_c89" = xno
  4246. then :
  4247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4248. printf "%s\n" "unsupported" >&6; }
  4249. else $as_nop
  4250. if test "x$ac_cv_prog_cc_c89" = x
  4251. then :
  4252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4253. printf "%s\n" "none needed" >&6; }
  4254. else $as_nop
  4255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4256. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4257. CC="$CC $ac_cv_prog_cc_c89"
  4258. fi
  4259. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4260. ac_prog_cc_stdc=c89
  4261. fi
  4262. fi
  4263. ac_ext=c
  4264. ac_cpp='$CPP $CPPFLAGS'
  4265. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4266. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4267. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4269. printf %s "checking for a sed that does not truncate output... " >&6; }
  4270. if test ${ac_cv_path_SED+y}
  4271. then :
  4272. printf %s "(cached) " >&6
  4273. else $as_nop
  4274. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4275. for ac_i in 1 2 3 4 5 6 7; do
  4276. ac_script="$ac_script$as_nl$ac_script"
  4277. done
  4278. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4279. { ac_script=; unset ac_script;}
  4280. if test -z "$SED"; then
  4281. ac_path_SED_found=false
  4282. # Loop through the user's path and test for each of PROGNAME-LIST
  4283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4284. for as_dir in $PATH
  4285. do
  4286. IFS=$as_save_IFS
  4287. case $as_dir in #(((
  4288. '') as_dir=./ ;;
  4289. */) ;;
  4290. *) as_dir=$as_dir/ ;;
  4291. esac
  4292. for ac_prog in sed gsed
  4293. do
  4294. for ac_exec_ext in '' $ac_executable_extensions; do
  4295. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4296. as_fn_executable_p "$ac_path_SED" || continue
  4297. # Check for GNU ac_path_SED and select it if it is found.
  4298. # Check for GNU $ac_path_SED
  4299. case `"$ac_path_SED" --version 2>&1` in
  4300. *GNU*)
  4301. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4302. *)
  4303. ac_count=0
  4304. printf %s 0123456789 >"conftest.in"
  4305. while :
  4306. do
  4307. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4308. mv "conftest.tmp" "conftest.in"
  4309. cp "conftest.in" "conftest.nl"
  4310. printf "%s\n" '' >> "conftest.nl"
  4311. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4312. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4313. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4314. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4315. # Best one so far, save it but keep looking for a better one
  4316. ac_cv_path_SED="$ac_path_SED"
  4317. ac_path_SED_max=$ac_count
  4318. fi
  4319. # 10*(2^10) chars as input seems more than enough
  4320. test $ac_count -gt 10 && break
  4321. done
  4322. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4323. esac
  4324. $ac_path_SED_found && break 3
  4325. done
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. if test -z "$ac_cv_path_SED"; then
  4330. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4331. fi
  4332. else
  4333. ac_cv_path_SED=$SED
  4334. fi
  4335. fi
  4336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4337. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4338. SED="$ac_cv_path_SED"
  4339. rm -f conftest.sed
  4340. test -z "$SED" && SED=sed
  4341. Xsed="$SED -e 1s/^X//"
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4343. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4344. if test ${ac_cv_path_GREP+y}
  4345. then :
  4346. printf %s "(cached) " >&6
  4347. else $as_nop
  4348. if test -z "$GREP"; then
  4349. ac_path_GREP_found=false
  4350. # Loop through the user's path and test for each of PROGNAME-LIST
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4353. do
  4354. IFS=$as_save_IFS
  4355. case $as_dir in #(((
  4356. '') as_dir=./ ;;
  4357. */) ;;
  4358. *) as_dir=$as_dir/ ;;
  4359. esac
  4360. for ac_prog in grep ggrep
  4361. do
  4362. for ac_exec_ext in '' $ac_executable_extensions; do
  4363. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4364. as_fn_executable_p "$ac_path_GREP" || continue
  4365. # Check for GNU ac_path_GREP and select it if it is found.
  4366. # Check for GNU $ac_path_GREP
  4367. case `"$ac_path_GREP" --version 2>&1` in
  4368. *GNU*)
  4369. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4370. *)
  4371. ac_count=0
  4372. printf %s 0123456789 >"conftest.in"
  4373. while :
  4374. do
  4375. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4376. mv "conftest.tmp" "conftest.in"
  4377. cp "conftest.in" "conftest.nl"
  4378. printf "%s\n" 'GREP' >> "conftest.nl"
  4379. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4380. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4381. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4382. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4383. # Best one so far, save it but keep looking for a better one
  4384. ac_cv_path_GREP="$ac_path_GREP"
  4385. ac_path_GREP_max=$ac_count
  4386. fi
  4387. # 10*(2^10) chars as input seems more than enough
  4388. test $ac_count -gt 10 && break
  4389. done
  4390. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4391. esac
  4392. $ac_path_GREP_found && break 3
  4393. done
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. if test -z "$ac_cv_path_GREP"; then
  4398. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4399. fi
  4400. else
  4401. ac_cv_path_GREP=$GREP
  4402. fi
  4403. fi
  4404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4405. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4406. GREP="$ac_cv_path_GREP"
  4407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4408. printf %s "checking for egrep... " >&6; }
  4409. if test ${ac_cv_path_EGREP+y}
  4410. then :
  4411. printf %s "(cached) " >&6
  4412. else $as_nop
  4413. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4414. then ac_cv_path_EGREP="$GREP -E"
  4415. else
  4416. if test -z "$EGREP"; then
  4417. ac_path_EGREP_found=false
  4418. # Loop through the user's path and test for each of PROGNAME-LIST
  4419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4421. do
  4422. IFS=$as_save_IFS
  4423. case $as_dir in #(((
  4424. '') as_dir=./ ;;
  4425. */) ;;
  4426. *) as_dir=$as_dir/ ;;
  4427. esac
  4428. for ac_prog in egrep
  4429. do
  4430. for ac_exec_ext in '' $ac_executable_extensions; do
  4431. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4432. as_fn_executable_p "$ac_path_EGREP" || continue
  4433. # Check for GNU ac_path_EGREP and select it if it is found.
  4434. # Check for GNU $ac_path_EGREP
  4435. case `"$ac_path_EGREP" --version 2>&1` in
  4436. *GNU*)
  4437. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4438. *)
  4439. ac_count=0
  4440. printf %s 0123456789 >"conftest.in"
  4441. while :
  4442. do
  4443. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4444. mv "conftest.tmp" "conftest.in"
  4445. cp "conftest.in" "conftest.nl"
  4446. printf "%s\n" 'EGREP' >> "conftest.nl"
  4447. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4448. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4449. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4450. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4451. # Best one so far, save it but keep looking for a better one
  4452. ac_cv_path_EGREP="$ac_path_EGREP"
  4453. ac_path_EGREP_max=$ac_count
  4454. fi
  4455. # 10*(2^10) chars as input seems more than enough
  4456. test $ac_count -gt 10 && break
  4457. done
  4458. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4459. esac
  4460. $ac_path_EGREP_found && break 3
  4461. done
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. if test -z "$ac_cv_path_EGREP"; then
  4466. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4467. fi
  4468. else
  4469. ac_cv_path_EGREP=$EGREP
  4470. fi
  4471. fi
  4472. fi
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4474. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4475. EGREP="$ac_cv_path_EGREP"
  4476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4477. printf %s "checking for fgrep... " >&6; }
  4478. if test ${ac_cv_path_FGREP+y}
  4479. then :
  4480. printf %s "(cached) " >&6
  4481. else $as_nop
  4482. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4483. then ac_cv_path_FGREP="$GREP -F"
  4484. else
  4485. if test -z "$FGREP"; then
  4486. ac_path_FGREP_found=false
  4487. # Loop through the user's path and test for each of PROGNAME-LIST
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4490. do
  4491. IFS=$as_save_IFS
  4492. case $as_dir in #(((
  4493. '') as_dir=./ ;;
  4494. */) ;;
  4495. *) as_dir=$as_dir/ ;;
  4496. esac
  4497. for ac_prog in fgrep
  4498. do
  4499. for ac_exec_ext in '' $ac_executable_extensions; do
  4500. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4501. as_fn_executable_p "$ac_path_FGREP" || continue
  4502. # Check for GNU ac_path_FGREP and select it if it is found.
  4503. # Check for GNU $ac_path_FGREP
  4504. case `"$ac_path_FGREP" --version 2>&1` in
  4505. *GNU*)
  4506. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4507. *)
  4508. ac_count=0
  4509. printf %s 0123456789 >"conftest.in"
  4510. while :
  4511. do
  4512. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4513. mv "conftest.tmp" "conftest.in"
  4514. cp "conftest.in" "conftest.nl"
  4515. printf "%s\n" 'FGREP' >> "conftest.nl"
  4516. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4517. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4518. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4519. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4520. # Best one so far, save it but keep looking for a better one
  4521. ac_cv_path_FGREP="$ac_path_FGREP"
  4522. ac_path_FGREP_max=$ac_count
  4523. fi
  4524. # 10*(2^10) chars as input seems more than enough
  4525. test $ac_count -gt 10 && break
  4526. done
  4527. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4528. esac
  4529. $ac_path_FGREP_found && break 3
  4530. done
  4531. done
  4532. done
  4533. IFS=$as_save_IFS
  4534. if test -z "$ac_cv_path_FGREP"; then
  4535. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4536. fi
  4537. else
  4538. ac_cv_path_FGREP=$FGREP
  4539. fi
  4540. fi
  4541. fi
  4542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4543. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4544. FGREP="$ac_cv_path_FGREP"
  4545. test -z "$GREP" && GREP=grep
  4546. # Check whether --with-gnu-ld was given.
  4547. if test ${with_gnu_ld+y}
  4548. then :
  4549. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4550. else $as_nop
  4551. with_gnu_ld=no
  4552. fi
  4553. ac_prog=ld
  4554. if test yes = "$GCC"; then
  4555. # Check if gcc -print-prog-name=ld gives a path.
  4556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4557. printf %s "checking for ld used by $CC... " >&6; }
  4558. case $host in
  4559. *-*-mingw* | *-*-windows*)
  4560. # gcc leaves a trailing carriage return, which upsets mingw
  4561. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4562. *)
  4563. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4564. esac
  4565. case $ac_prog in
  4566. # Accept absolute paths.
  4567. [\\/]* | ?:[\\/]*)
  4568. re_direlt='/[^/][^/]*/\.\./'
  4569. # Canonicalize the pathname of ld
  4570. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4571. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4572. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4573. done
  4574. test -z "$LD" && LD=$ac_prog
  4575. ;;
  4576. "")
  4577. # If it fails, then pretend we aren't using GCC.
  4578. ac_prog=ld
  4579. ;;
  4580. *)
  4581. # If it is relative, then search for the first ld in PATH.
  4582. with_gnu_ld=unknown
  4583. ;;
  4584. esac
  4585. elif test yes = "$with_gnu_ld"; then
  4586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4587. printf %s "checking for GNU ld... " >&6; }
  4588. else
  4589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4590. printf %s "checking for non-GNU ld... " >&6; }
  4591. fi
  4592. if test ${lt_cv_path_LD+y}
  4593. then :
  4594. printf %s "(cached) " >&6
  4595. else $as_nop
  4596. if test -z "$LD"; then
  4597. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4598. for ac_dir in $PATH; do
  4599. IFS=$lt_save_ifs
  4600. test -z "$ac_dir" && ac_dir=.
  4601. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4602. lt_cv_path_LD=$ac_dir/$ac_prog
  4603. # Check to see if the program is GNU ld. I'd rather use --version,
  4604. # but apparently some variants of GNU ld only accept -v.
  4605. # Break only if it was the GNU/non-GNU ld that we prefer.
  4606. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4607. *GNU* | *'with BFD'*)
  4608. test no != "$with_gnu_ld" && break
  4609. ;;
  4610. *)
  4611. test yes != "$with_gnu_ld" && break
  4612. ;;
  4613. esac
  4614. fi
  4615. done
  4616. IFS=$lt_save_ifs
  4617. else
  4618. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4619. fi
  4620. fi
  4621. LD=$lt_cv_path_LD
  4622. if test -n "$LD"; then
  4623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4624. printf "%s\n" "$LD" >&6; }
  4625. else
  4626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. printf "%s\n" "no" >&6; }
  4628. fi
  4629. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4631. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4632. if test ${lt_cv_prog_gnu_ld+y}
  4633. then :
  4634. printf %s "(cached) " >&6
  4635. else $as_nop
  4636. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4637. case `$LD -v 2>&1 </dev/null` in
  4638. *GNU* | *'with BFD'*)
  4639. lt_cv_prog_gnu_ld=yes
  4640. ;;
  4641. *)
  4642. lt_cv_prog_gnu_ld=no
  4643. ;;
  4644. esac
  4645. fi
  4646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4647. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4648. with_gnu_ld=$lt_cv_prog_gnu_ld
  4649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4650. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4651. if test ${lt_cv_path_NM+y}
  4652. then :
  4653. printf %s "(cached) " >&6
  4654. else $as_nop
  4655. if test -n "$NM"; then
  4656. # Let the user override the test.
  4657. lt_cv_path_NM=$NM
  4658. else
  4659. lt_nm_to_check=${ac_tool_prefix}nm
  4660. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4661. lt_nm_to_check="$lt_nm_to_check nm"
  4662. fi
  4663. for lt_tmp_nm in $lt_nm_to_check; do
  4664. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4665. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4666. IFS=$lt_save_ifs
  4667. test -z "$ac_dir" && ac_dir=.
  4668. tmp_nm=$ac_dir/$lt_tmp_nm
  4669. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4670. # Check to see if the nm accepts a BSD-compat flag.
  4671. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4672. # nm: unknown option "B" ignored
  4673. # Tru64's nm complains that /dev/null is an invalid object file
  4674. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4675. case $build_os in
  4676. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4677. *) lt_bad_file=/dev/null ;;
  4678. esac
  4679. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4680. *$lt_bad_file* | *'Invalid file or object type'*)
  4681. lt_cv_path_NM="$tmp_nm -B"
  4682. break 2
  4683. ;;
  4684. *)
  4685. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4686. */dev/null*)
  4687. lt_cv_path_NM="$tmp_nm -p"
  4688. break 2
  4689. ;;
  4690. *)
  4691. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4692. continue # so that we can try to find one that supports BSD flags
  4693. ;;
  4694. esac
  4695. ;;
  4696. esac
  4697. fi
  4698. done
  4699. IFS=$lt_save_ifs
  4700. done
  4701. : ${lt_cv_path_NM=no}
  4702. fi
  4703. fi
  4704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4705. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4706. if test no != "$lt_cv_path_NM"; then
  4707. NM=$lt_cv_path_NM
  4708. else
  4709. # Didn't find any BSD compatible name lister, look for dumpbin.
  4710. if test -n "$DUMPBIN"; then :
  4711. # Let the user override the test.
  4712. else
  4713. if test -n "$ac_tool_prefix"; then
  4714. for ac_prog in dumpbin "link -dump"
  4715. do
  4716. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4717. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4719. printf %s "checking for $ac_word... " >&6; }
  4720. if test ${ac_cv_prog_DUMPBIN+y}
  4721. then :
  4722. printf %s "(cached) " >&6
  4723. else $as_nop
  4724. if test -n "$DUMPBIN"; then
  4725. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4726. else
  4727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4728. for as_dir in $PATH
  4729. do
  4730. IFS=$as_save_IFS
  4731. case $as_dir in #(((
  4732. '') as_dir=./ ;;
  4733. */) ;;
  4734. *) as_dir=$as_dir/ ;;
  4735. esac
  4736. for ac_exec_ext in '' $ac_executable_extensions; do
  4737. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4738. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4739. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4740. break 2
  4741. fi
  4742. done
  4743. done
  4744. IFS=$as_save_IFS
  4745. fi
  4746. fi
  4747. DUMPBIN=$ac_cv_prog_DUMPBIN
  4748. if test -n "$DUMPBIN"; then
  4749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4750. printf "%s\n" "$DUMPBIN" >&6; }
  4751. else
  4752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4753. printf "%s\n" "no" >&6; }
  4754. fi
  4755. test -n "$DUMPBIN" && break
  4756. done
  4757. fi
  4758. if test -z "$DUMPBIN"; then
  4759. ac_ct_DUMPBIN=$DUMPBIN
  4760. for ac_prog in dumpbin "link -dump"
  4761. do
  4762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4763. set dummy $ac_prog; ac_word=$2
  4764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4765. printf %s "checking for $ac_word... " >&6; }
  4766. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4767. then :
  4768. printf %s "(cached) " >&6
  4769. else $as_nop
  4770. if test -n "$ac_ct_DUMPBIN"; then
  4771. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4772. else
  4773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4774. for as_dir in $PATH
  4775. do
  4776. IFS=$as_save_IFS
  4777. case $as_dir in #(((
  4778. '') as_dir=./ ;;
  4779. */) ;;
  4780. *) as_dir=$as_dir/ ;;
  4781. esac
  4782. for ac_exec_ext in '' $ac_executable_extensions; do
  4783. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4784. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4785. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4786. break 2
  4787. fi
  4788. done
  4789. done
  4790. IFS=$as_save_IFS
  4791. fi
  4792. fi
  4793. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4794. if test -n "$ac_ct_DUMPBIN"; then
  4795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4796. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4797. else
  4798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4799. printf "%s\n" "no" >&6; }
  4800. fi
  4801. test -n "$ac_ct_DUMPBIN" && break
  4802. done
  4803. if test "x$ac_ct_DUMPBIN" = x; then
  4804. DUMPBIN=":"
  4805. else
  4806. case $cross_compiling:$ac_tool_warned in
  4807. yes:)
  4808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4809. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4810. ac_tool_warned=yes ;;
  4811. esac
  4812. DUMPBIN=$ac_ct_DUMPBIN
  4813. fi
  4814. fi
  4815. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4816. *COFF*)
  4817. DUMPBIN="$DUMPBIN -symbols -headers"
  4818. ;;
  4819. *)
  4820. DUMPBIN=:
  4821. ;;
  4822. esac
  4823. fi
  4824. if test : != "$DUMPBIN"; then
  4825. NM=$DUMPBIN
  4826. fi
  4827. fi
  4828. test -z "$NM" && NM=nm
  4829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4830. printf %s "checking the name lister ($NM) interface... " >&6; }
  4831. if test ${lt_cv_nm_interface+y}
  4832. then :
  4833. printf %s "(cached) " >&6
  4834. else $as_nop
  4835. lt_cv_nm_interface="BSD nm"
  4836. echo "int some_variable = 0;" > conftest.$ac_ext
  4837. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4838. (eval "$ac_compile" 2>conftest.err)
  4839. cat conftest.err >&5
  4840. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4841. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4842. cat conftest.err >&5
  4843. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4844. cat conftest.out >&5
  4845. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4846. lt_cv_nm_interface="MS dumpbin"
  4847. fi
  4848. rm -f conftest*
  4849. fi
  4850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4851. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4853. printf %s "checking whether ln -s works... " >&6; }
  4854. LN_S=$as_ln_s
  4855. if test "$LN_S" = "ln -s"; then
  4856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4857. printf "%s\n" "yes" >&6; }
  4858. else
  4859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4860. printf "%s\n" "no, using $LN_S" >&6; }
  4861. fi
  4862. # find the maximum length of command line arguments
  4863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4864. printf %s "checking the maximum length of command line arguments... " >&6; }
  4865. if test ${lt_cv_sys_max_cmd_len+y}
  4866. then :
  4867. printf %s "(cached) " >&6
  4868. else $as_nop
  4869. i=0
  4870. teststring=ABCD
  4871. case $build_os in
  4872. msdosdjgpp*)
  4873. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4874. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4875. # during glob expansion). Even if it were fixed, the result of this
  4876. # check would be larger than it should be.
  4877. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4878. ;;
  4879. gnu*)
  4880. # Under GNU Hurd, this test is not required because there is
  4881. # no limit to the length of command line arguments.
  4882. # Libtool will interpret -1 as no limit whatsoever
  4883. lt_cv_sys_max_cmd_len=-1;
  4884. ;;
  4885. cygwin* | mingw* | windows* | cegcc*)
  4886. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4887. # about 5 minutes as the teststring grows exponentially.
  4888. # Worse, since 9x/ME are not pre-emptively multitasking,
  4889. # you end up with a "frozen" computer, even though with patience
  4890. # the test eventually succeeds (with a max line length of 256k).
  4891. # Instead, let's just punt: use the minimum linelength reported by
  4892. # all of the supported platforms: 8192 (on NT/2K/XP).
  4893. lt_cv_sys_max_cmd_len=8192;
  4894. ;;
  4895. mint*)
  4896. # On MiNT this can take a long time and run out of memory.
  4897. lt_cv_sys_max_cmd_len=8192;
  4898. ;;
  4899. amigaos*)
  4900. # On AmigaOS with pdksh, this test takes hours, literally.
  4901. # So we just punt and use a minimum line length of 8192.
  4902. lt_cv_sys_max_cmd_len=8192;
  4903. ;;
  4904. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4905. # This has been around since 386BSD, at least. Likely further.
  4906. if test -x /sbin/sysctl; then
  4907. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4908. elif test -x /usr/sbin/sysctl; then
  4909. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4910. else
  4911. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4912. fi
  4913. # And add a safety zone
  4914. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4916. ;;
  4917. interix*)
  4918. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4919. lt_cv_sys_max_cmd_len=196608
  4920. ;;
  4921. os2*)
  4922. # The test takes a long time on OS/2.
  4923. lt_cv_sys_max_cmd_len=8192
  4924. ;;
  4925. osf*)
  4926. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4927. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4928. # nice to cause kernel panics so lets avoid the loop below.
  4929. # First set a reasonable default.
  4930. lt_cv_sys_max_cmd_len=16384
  4931. #
  4932. if test -x /sbin/sysconfig; then
  4933. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4934. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4935. esac
  4936. fi
  4937. ;;
  4938. sco3.2v5*)
  4939. lt_cv_sys_max_cmd_len=102400
  4940. ;;
  4941. sysv5* | sco5v6* | sysv4.2uw2*)
  4942. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4943. if test -n "$kargmax"; then
  4944. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4945. else
  4946. lt_cv_sys_max_cmd_len=32768
  4947. fi
  4948. ;;
  4949. *)
  4950. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4951. if test -n "$lt_cv_sys_max_cmd_len" && \
  4952. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4953. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4954. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4955. else
  4956. # Make teststring a little bigger before we do anything with it.
  4957. # a 1K string should be a reasonable start.
  4958. for i in 1 2 3 4 5 6 7 8; do
  4959. teststring=$teststring$teststring
  4960. done
  4961. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4962. # If test is not a shell built-in, we'll probably end up computing a
  4963. # maximum length that is only half of the actual maximum length, but
  4964. # we can't tell.
  4965. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4966. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4967. test 17 != "$i" # 1/2 MB should be enough
  4968. do
  4969. i=`expr $i + 1`
  4970. teststring=$teststring$teststring
  4971. done
  4972. # Only check the string length outside the loop.
  4973. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4974. teststring=
  4975. # Add a significant safety factor because C++ compilers can tack on
  4976. # massive amounts of additional arguments before passing them to the
  4977. # linker. It appears as though 1/2 is a usable value.
  4978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4979. fi
  4980. ;;
  4981. esac
  4982. fi
  4983. if test -n "$lt_cv_sys_max_cmd_len"; then
  4984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4985. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4986. else
  4987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4988. printf "%s\n" "none" >&6; }
  4989. fi
  4990. max_cmd_len=$lt_cv_sys_max_cmd_len
  4991. : ${CP="cp -f"}
  4992. : ${MV="mv -f"}
  4993. : ${RM="rm -f"}
  4994. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4995. lt_unset=unset
  4996. else
  4997. lt_unset=false
  4998. fi
  4999. # test EBCDIC or ASCII
  5000. case `echo X|tr X '\101'` in
  5001. A) # ASCII based system
  5002. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5003. lt_SP2NL='tr \040 \012'
  5004. lt_NL2SP='tr \015\012 \040\040'
  5005. ;;
  5006. *) # EBCDIC based system
  5007. lt_SP2NL='tr \100 \n'
  5008. lt_NL2SP='tr \r\n \100\100'
  5009. ;;
  5010. esac
  5011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5012. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5013. if test ${lt_cv_to_host_file_cmd+y}
  5014. then :
  5015. printf %s "(cached) " >&6
  5016. else $as_nop
  5017. case $host in
  5018. *-*-mingw* )
  5019. case $build in
  5020. *-*-mingw* | *-*-windows* ) # actually msys
  5021. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5022. ;;
  5023. *-*-cygwin* )
  5024. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5025. ;;
  5026. * ) # otherwise, assume *nix
  5027. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5028. ;;
  5029. esac
  5030. ;;
  5031. *-*-cygwin* )
  5032. case $build in
  5033. *-*-mingw* | *-*-windows* ) # actually msys
  5034. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5035. ;;
  5036. *-*-cygwin* )
  5037. lt_cv_to_host_file_cmd=func_convert_file_noop
  5038. ;;
  5039. * ) # otherwise, assume *nix
  5040. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5041. ;;
  5042. esac
  5043. ;;
  5044. * ) # unhandled hosts (and "normal" native builds)
  5045. lt_cv_to_host_file_cmd=func_convert_file_noop
  5046. ;;
  5047. esac
  5048. fi
  5049. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5051. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5053. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5054. if test ${lt_cv_to_tool_file_cmd+y}
  5055. then :
  5056. printf %s "(cached) " >&6
  5057. else $as_nop
  5058. #assume ordinary cross tools, or native build.
  5059. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5060. case $host in
  5061. *-*-mingw* | *-*-windows* )
  5062. case $build in
  5063. *-*-mingw* | *-*-windows* ) # actually msys
  5064. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5065. ;;
  5066. esac
  5067. ;;
  5068. esac
  5069. fi
  5070. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5072. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5074. printf %s "checking for $LD option to reload object files... " >&6; }
  5075. if test ${lt_cv_ld_reload_flag+y}
  5076. then :
  5077. printf %s "(cached) " >&6
  5078. else $as_nop
  5079. lt_cv_ld_reload_flag='-r'
  5080. fi
  5081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5082. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5083. reload_flag=$lt_cv_ld_reload_flag
  5084. case $reload_flag in
  5085. "" | " "*) ;;
  5086. *) reload_flag=" $reload_flag" ;;
  5087. esac
  5088. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5089. case $host_os in
  5090. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5091. if test yes != "$GCC"; then
  5092. reload_cmds=false
  5093. fi
  5094. ;;
  5095. darwin*)
  5096. if test yes = "$GCC"; then
  5097. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5098. else
  5099. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5100. fi
  5101. ;;
  5102. esac
  5103. if test -n "$ac_tool_prefix"; then
  5104. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5105. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5107. printf %s "checking for $ac_word... " >&6; }
  5108. if test ${ac_cv_prog_OBJDUMP+y}
  5109. then :
  5110. printf %s "(cached) " >&6
  5111. else $as_nop
  5112. if test -n "$OBJDUMP"; then
  5113. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5114. else
  5115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5116. for as_dir in $PATH
  5117. do
  5118. IFS=$as_save_IFS
  5119. case $as_dir in #(((
  5120. '') as_dir=./ ;;
  5121. */) ;;
  5122. *) as_dir=$as_dir/ ;;
  5123. esac
  5124. for ac_exec_ext in '' $ac_executable_extensions; do
  5125. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5126. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5128. break 2
  5129. fi
  5130. done
  5131. done
  5132. IFS=$as_save_IFS
  5133. fi
  5134. fi
  5135. OBJDUMP=$ac_cv_prog_OBJDUMP
  5136. if test -n "$OBJDUMP"; then
  5137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5138. printf "%s\n" "$OBJDUMP" >&6; }
  5139. else
  5140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5141. printf "%s\n" "no" >&6; }
  5142. fi
  5143. fi
  5144. if test -z "$ac_cv_prog_OBJDUMP"; then
  5145. ac_ct_OBJDUMP=$OBJDUMP
  5146. # Extract the first word of "objdump", so it can be a program name with args.
  5147. set dummy objdump; ac_word=$2
  5148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5149. printf %s "checking for $ac_word... " >&6; }
  5150. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5151. then :
  5152. printf %s "(cached) " >&6
  5153. else $as_nop
  5154. if test -n "$ac_ct_OBJDUMP"; then
  5155. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5156. else
  5157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5158. for as_dir in $PATH
  5159. do
  5160. IFS=$as_save_IFS
  5161. case $as_dir in #(((
  5162. '') as_dir=./ ;;
  5163. */) ;;
  5164. *) as_dir=$as_dir/ ;;
  5165. esac
  5166. for ac_exec_ext in '' $ac_executable_extensions; do
  5167. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5168. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5169. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5170. break 2
  5171. fi
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. fi
  5176. fi
  5177. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5178. if test -n "$ac_ct_OBJDUMP"; then
  5179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5180. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5181. else
  5182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5183. printf "%s\n" "no" >&6; }
  5184. fi
  5185. if test "x$ac_ct_OBJDUMP" = x; then
  5186. OBJDUMP="false"
  5187. else
  5188. case $cross_compiling:$ac_tool_warned in
  5189. yes:)
  5190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5191. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5192. ac_tool_warned=yes ;;
  5193. esac
  5194. OBJDUMP=$ac_ct_OBJDUMP
  5195. fi
  5196. else
  5197. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5198. fi
  5199. test -z "$OBJDUMP" && OBJDUMP=objdump
  5200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5201. printf %s "checking how to recognize dependent libraries... " >&6; }
  5202. if test ${lt_cv_deplibs_check_method+y}
  5203. then :
  5204. printf %s "(cached) " >&6
  5205. else $as_nop
  5206. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5207. lt_cv_file_magic_test_file=
  5208. lt_cv_deplibs_check_method='unknown'
  5209. # Need to set the preceding variable on all platforms that support
  5210. # interlibrary dependencies.
  5211. # 'none' -- dependencies not supported.
  5212. # 'unknown' -- same as none, but documents that we really don't know.
  5213. # 'pass_all' -- all dependencies passed with no checks.
  5214. # 'test_compile' -- check by making test program.
  5215. # 'file_magic [[regex]]' -- check by looking for files in library path
  5216. # that responds to the $file_magic_cmd with a given extended regex.
  5217. # If you have 'file' or equivalent on your system and you're not sure
  5218. # whether 'pass_all' will *always* work, you probably want this one.
  5219. case $host_os in
  5220. aix[4-9]*)
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. beos*)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. bsdi[45]*)
  5227. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5228. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5229. lt_cv_file_magic_test_file=/shlib/libc.so
  5230. ;;
  5231. cygwin*)
  5232. # func_win32_libid is a shell function defined in ltmain.sh
  5233. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5234. lt_cv_file_magic_cmd='func_win32_libid'
  5235. lt_cv_deplibs_check_method=pass_all # SDL customization
  5236. ;;
  5237. mingw* | windows* | pw32*)
  5238. # Base MSYS/MinGW do not provide the 'file' command needed by
  5239. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5240. # unless we find 'file', for example because we are cross-compiling.
  5241. if ( file / ) >/dev/null 2>&1; then
  5242. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5243. lt_cv_file_magic_cmd='func_win32_libid'
  5244. else
  5245. # Keep this pattern in sync with the one in func_win32_libid.
  5246. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5247. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5248. fi
  5249. lt_cv_deplibs_check_method=pass_all # SDL customization
  5250. ;;
  5251. cegcc*)
  5252. # use the weaker test based on 'objdump'. See mingw*.
  5253. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5254. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5255. ;;
  5256. darwin* | rhapsody*)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. freebsd* | dragonfly* | midnightbsd*)
  5260. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5261. case $host_cpu in
  5262. i*86 )
  5263. # Not sure whether the presence of OpenBSD here was a mistake.
  5264. # Let's accept both of them until this is cleared up.
  5265. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5266. lt_cv_file_magic_cmd=/usr/bin/file
  5267. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5268. ;;
  5269. esac
  5270. else
  5271. lt_cv_deplibs_check_method=pass_all
  5272. fi
  5273. ;;
  5274. haiku*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. hpux10.20* | hpux11*)
  5278. lt_cv_file_magic_cmd=/usr/bin/file
  5279. case $host_cpu in
  5280. ia64*)
  5281. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5282. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5283. ;;
  5284. hppa*64*)
  5285. 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]'
  5286. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5287. ;;
  5288. *)
  5289. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5290. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5291. ;;
  5292. esac
  5293. ;;
  5294. interix[3-9]*)
  5295. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5296. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5297. ;;
  5298. irix5* | irix6* | nonstopux*)
  5299. case $LD in
  5300. *-32|*"-32 ") libmagic=32-bit;;
  5301. *-n32|*"-n32 ") libmagic=N32;;
  5302. *-64|*"-64 ") libmagic=64-bit;;
  5303. *) libmagic=never-match;;
  5304. esac
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. # This must be glibc/ELF.
  5308. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. netbsd*)
  5312. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5314. else
  5315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5316. fi
  5317. ;;
  5318. newos6*)
  5319. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5320. lt_cv_file_magic_cmd=/usr/bin/file
  5321. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5322. ;;
  5323. *nto* | *qnx*)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. openbsd* | bitrig*)
  5327. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5329. else
  5330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5331. fi
  5332. ;;
  5333. osf3* | osf4* | osf5*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. rdos*)
  5337. lt_cv_deplibs_check_method=pass_all
  5338. ;;
  5339. solaris*)
  5340. lt_cv_deplibs_check_method=pass_all
  5341. ;;
  5342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5343. lt_cv_deplibs_check_method=pass_all
  5344. ;;
  5345. sysv4 | sysv4.3*)
  5346. case $host_vendor in
  5347. motorola)
  5348. 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]'
  5349. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5350. ;;
  5351. ncr)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. sequent)
  5355. lt_cv_file_magic_cmd='/bin/file'
  5356. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5357. ;;
  5358. sni)
  5359. lt_cv_file_magic_cmd='/bin/file'
  5360. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5361. lt_cv_file_magic_test_file=/lib/libc.so
  5362. ;;
  5363. siemens)
  5364. lt_cv_deplibs_check_method=pass_all
  5365. ;;
  5366. pc)
  5367. lt_cv_deplibs_check_method=pass_all
  5368. ;;
  5369. esac
  5370. ;;
  5371. tpf*)
  5372. lt_cv_deplibs_check_method=pass_all
  5373. ;;
  5374. os2*)
  5375. lt_cv_deplibs_check_method=pass_all
  5376. ;;
  5377. esac
  5378. fi
  5379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5380. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5381. file_magic_glob=
  5382. want_nocaseglob=no
  5383. if test "$build" = "$host"; then
  5384. case $host_os in
  5385. mingw* | windows* | pw32*)
  5386. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5387. want_nocaseglob=yes
  5388. else
  5389. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5390. fi
  5391. ;;
  5392. esac
  5393. fi
  5394. file_magic_cmd=$lt_cv_file_magic_cmd
  5395. deplibs_check_method=$lt_cv_deplibs_check_method
  5396. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5397. if test -n "$ac_tool_prefix"; then
  5398. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5399. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5401. printf %s "checking for $ac_word... " >&6; }
  5402. if test ${ac_cv_prog_DLLTOOL+y}
  5403. then :
  5404. printf %s "(cached) " >&6
  5405. else $as_nop
  5406. if test -n "$DLLTOOL"; then
  5407. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5408. else
  5409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5410. for as_dir in $PATH
  5411. do
  5412. IFS=$as_save_IFS
  5413. case $as_dir in #(((
  5414. '') as_dir=./ ;;
  5415. */) ;;
  5416. *) as_dir=$as_dir/ ;;
  5417. esac
  5418. for ac_exec_ext in '' $ac_executable_extensions; do
  5419. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5420. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5422. break 2
  5423. fi
  5424. done
  5425. done
  5426. IFS=$as_save_IFS
  5427. fi
  5428. fi
  5429. DLLTOOL=$ac_cv_prog_DLLTOOL
  5430. if test -n "$DLLTOOL"; then
  5431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5432. printf "%s\n" "$DLLTOOL" >&6; }
  5433. else
  5434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5435. printf "%s\n" "no" >&6; }
  5436. fi
  5437. fi
  5438. if test -z "$ac_cv_prog_DLLTOOL"; then
  5439. ac_ct_DLLTOOL=$DLLTOOL
  5440. # Extract the first word of "dlltool", so it can be a program name with args.
  5441. set dummy dlltool; ac_word=$2
  5442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5443. printf %s "checking for $ac_word... " >&6; }
  5444. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5445. then :
  5446. printf %s "(cached) " >&6
  5447. else $as_nop
  5448. if test -n "$ac_ct_DLLTOOL"; then
  5449. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5450. else
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. case $as_dir in #(((
  5456. '') as_dir=./ ;;
  5457. */) ;;
  5458. *) as_dir=$as_dir/ ;;
  5459. esac
  5460. for ac_exec_ext in '' $ac_executable_extensions; do
  5461. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5462. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5463. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5464. break 2
  5465. fi
  5466. done
  5467. done
  5468. IFS=$as_save_IFS
  5469. fi
  5470. fi
  5471. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5472. if test -n "$ac_ct_DLLTOOL"; then
  5473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5474. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5475. else
  5476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5477. printf "%s\n" "no" >&6; }
  5478. fi
  5479. if test "x$ac_ct_DLLTOOL" = x; then
  5480. DLLTOOL="false"
  5481. else
  5482. case $cross_compiling:$ac_tool_warned in
  5483. yes:)
  5484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5485. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5486. ac_tool_warned=yes ;;
  5487. esac
  5488. DLLTOOL=$ac_ct_DLLTOOL
  5489. fi
  5490. else
  5491. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5492. fi
  5493. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5495. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5496. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5497. then :
  5498. printf %s "(cached) " >&6
  5499. else $as_nop
  5500. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5501. case $host_os in
  5502. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5503. # two different shell functions defined in ltmain.sh;
  5504. # decide which one to use based on capabilities of $DLLTOOL
  5505. case `$DLLTOOL --help 2>&1` in
  5506. *--identify-strict*)
  5507. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5508. ;;
  5509. *)
  5510. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5511. ;;
  5512. esac
  5513. ;;
  5514. *)
  5515. # fallback: assume linklib IS sharedlib
  5516. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5517. ;;
  5518. esac
  5519. fi
  5520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5521. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5522. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5523. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5524. if test -n "$ac_tool_prefix"; then
  5525. for ac_prog in ar
  5526. do
  5527. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5528. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5530. printf %s "checking for $ac_word... " >&6; }
  5531. if test ${ac_cv_prog_AR+y}
  5532. then :
  5533. printf %s "(cached) " >&6
  5534. else $as_nop
  5535. if test -n "$AR"; then
  5536. ac_cv_prog_AR="$AR" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. case $as_dir in #(((
  5543. '') as_dir=./ ;;
  5544. */) ;;
  5545. *) as_dir=$as_dir/ ;;
  5546. esac
  5547. for ac_exec_ext in '' $ac_executable_extensions; do
  5548. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5549. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5550. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5551. break 2
  5552. fi
  5553. done
  5554. done
  5555. IFS=$as_save_IFS
  5556. fi
  5557. fi
  5558. AR=$ac_cv_prog_AR
  5559. if test -n "$AR"; then
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5561. printf "%s\n" "$AR" >&6; }
  5562. else
  5563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5564. printf "%s\n" "no" >&6; }
  5565. fi
  5566. test -n "$AR" && break
  5567. done
  5568. fi
  5569. if test -z "$AR"; then
  5570. ac_ct_AR=$AR
  5571. for ac_prog in ar
  5572. do
  5573. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5574. set dummy $ac_prog; ac_word=$2
  5575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5576. printf %s "checking for $ac_word... " >&6; }
  5577. if test ${ac_cv_prog_ac_ct_AR+y}
  5578. then :
  5579. printf %s "(cached) " >&6
  5580. else $as_nop
  5581. if test -n "$ac_ct_AR"; then
  5582. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5583. else
  5584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5585. for as_dir in $PATH
  5586. do
  5587. IFS=$as_save_IFS
  5588. case $as_dir in #(((
  5589. '') as_dir=./ ;;
  5590. */) ;;
  5591. *) as_dir=$as_dir/ ;;
  5592. esac
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_ac_ct_AR="$ac_prog"
  5596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5605. if test -n "$ac_ct_AR"; then
  5606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5607. printf "%s\n" "$ac_ct_AR" >&6; }
  5608. else
  5609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. printf "%s\n" "no" >&6; }
  5611. fi
  5612. test -n "$ac_ct_AR" && break
  5613. done
  5614. if test "x$ac_ct_AR" = x; then
  5615. AR="false"
  5616. else
  5617. case $cross_compiling:$ac_tool_warned in
  5618. yes:)
  5619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5620. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5621. ac_tool_warned=yes ;;
  5622. esac
  5623. AR=$ac_ct_AR
  5624. fi
  5625. fi
  5626. : ${AR=ar}
  5627. : ${AR_FLAGS=cru}
  5628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5629. printf %s "checking for archiver @FILE support... " >&6; }
  5630. if test ${lt_cv_ar_at_file+y}
  5631. then :
  5632. printf %s "(cached) " >&6
  5633. else $as_nop
  5634. lt_cv_ar_at_file=no
  5635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5636. /* end confdefs.h. */
  5637. int
  5638. main (void)
  5639. {
  5640. ;
  5641. return 0;
  5642. }
  5643. _ACEOF
  5644. if ac_fn_c_try_compile "$LINENO"
  5645. then :
  5646. echo conftest.$ac_objext > conftest.lst
  5647. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5648. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5649. (eval $lt_ar_try) 2>&5
  5650. ac_status=$?
  5651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5652. test $ac_status = 0; }
  5653. if test 0 -eq "$ac_status"; then
  5654. # Ensure the archiver fails upon bogus file names.
  5655. rm -f conftest.$ac_objext libconftest.a
  5656. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5657. (eval $lt_ar_try) 2>&5
  5658. ac_status=$?
  5659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5660. test $ac_status = 0; }
  5661. if test 0 -ne "$ac_status"; then
  5662. lt_cv_ar_at_file=@
  5663. fi
  5664. fi
  5665. rm -f conftest.* libconftest.a
  5666. fi
  5667. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5668. fi
  5669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5670. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5671. if test no = "$lt_cv_ar_at_file"; then
  5672. archiver_list_spec=
  5673. else
  5674. archiver_list_spec=$lt_cv_ar_at_file
  5675. fi
  5676. if test -n "$ac_tool_prefix"; then
  5677. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5678. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5680. printf %s "checking for $ac_word... " >&6; }
  5681. if test ${ac_cv_prog_STRIP+y}
  5682. then :
  5683. printf %s "(cached) " >&6
  5684. else $as_nop
  5685. if test -n "$STRIP"; then
  5686. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5687. else
  5688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5689. for as_dir in $PATH
  5690. do
  5691. IFS=$as_save_IFS
  5692. case $as_dir in #(((
  5693. '') as_dir=./ ;;
  5694. */) ;;
  5695. *) as_dir=$as_dir/ ;;
  5696. esac
  5697. for ac_exec_ext in '' $ac_executable_extensions; do
  5698. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5699. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5700. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5701. break 2
  5702. fi
  5703. done
  5704. done
  5705. IFS=$as_save_IFS
  5706. fi
  5707. fi
  5708. STRIP=$ac_cv_prog_STRIP
  5709. if test -n "$STRIP"; then
  5710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5711. printf "%s\n" "$STRIP" >&6; }
  5712. else
  5713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5714. printf "%s\n" "no" >&6; }
  5715. fi
  5716. fi
  5717. if test -z "$ac_cv_prog_STRIP"; then
  5718. ac_ct_STRIP=$STRIP
  5719. # Extract the first word of "strip", so it can be a program name with args.
  5720. set dummy strip; ac_word=$2
  5721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5722. printf %s "checking for $ac_word... " >&6; }
  5723. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5724. then :
  5725. printf %s "(cached) " >&6
  5726. else $as_nop
  5727. if test -n "$ac_ct_STRIP"; then
  5728. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5729. else
  5730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5731. for as_dir in $PATH
  5732. do
  5733. IFS=$as_save_IFS
  5734. case $as_dir in #(((
  5735. '') as_dir=./ ;;
  5736. */) ;;
  5737. *) as_dir=$as_dir/ ;;
  5738. esac
  5739. for ac_exec_ext in '' $ac_executable_extensions; do
  5740. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5741. ac_cv_prog_ac_ct_STRIP="strip"
  5742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5743. break 2
  5744. fi
  5745. done
  5746. done
  5747. IFS=$as_save_IFS
  5748. fi
  5749. fi
  5750. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5751. if test -n "$ac_ct_STRIP"; then
  5752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5753. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5754. else
  5755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5756. printf "%s\n" "no" >&6; }
  5757. fi
  5758. if test "x$ac_ct_STRIP" = x; then
  5759. STRIP=":"
  5760. else
  5761. case $cross_compiling:$ac_tool_warned in
  5762. yes:)
  5763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5764. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5765. ac_tool_warned=yes ;;
  5766. esac
  5767. STRIP=$ac_ct_STRIP
  5768. fi
  5769. else
  5770. STRIP="$ac_cv_prog_STRIP"
  5771. fi
  5772. test -z "$STRIP" && STRIP=:
  5773. if test -n "$ac_tool_prefix"; then
  5774. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5775. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. printf %s "checking for $ac_word... " >&6; }
  5778. if test ${ac_cv_prog_RANLIB+y}
  5779. then :
  5780. printf %s "(cached) " >&6
  5781. else $as_nop
  5782. if test -n "$RANLIB"; then
  5783. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5784. else
  5785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5786. for as_dir in $PATH
  5787. do
  5788. IFS=$as_save_IFS
  5789. case $as_dir in #(((
  5790. '') as_dir=./ ;;
  5791. */) ;;
  5792. *) as_dir=$as_dir/ ;;
  5793. esac
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5796. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. RANLIB=$ac_cv_prog_RANLIB
  5806. if test -n "$RANLIB"; then
  5807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5808. printf "%s\n" "$RANLIB" >&6; }
  5809. else
  5810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. printf "%s\n" "no" >&6; }
  5812. fi
  5813. fi
  5814. if test -z "$ac_cv_prog_RANLIB"; then
  5815. ac_ct_RANLIB=$RANLIB
  5816. # Extract the first word of "ranlib", so it can be a program name with args.
  5817. set dummy ranlib; 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_ac_ct_RANLIB+y}
  5821. then :
  5822. printf %s "(cached) " >&6
  5823. else $as_nop
  5824. if test -n "$ac_ct_RANLIB"; then
  5825. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
  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. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5848. if test -n "$ac_ct_RANLIB"; then
  5849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5850. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5851. else
  5852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. printf "%s\n" "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_RANLIB" = x; then
  5856. RANLIB=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. RANLIB=$ac_ct_RANLIB
  5865. fi
  5866. else
  5867. RANLIB="$ac_cv_prog_RANLIB"
  5868. fi
  5869. test -z "$RANLIB" && RANLIB=:
  5870. # Determine commands to create old-style static archives.
  5871. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5872. old_postinstall_cmds='chmod 644 $oldlib'
  5873. old_postuninstall_cmds=
  5874. if test -n "$RANLIB"; then
  5875. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5876. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5877. fi
  5878. case $host_os in
  5879. darwin*)
  5880. lock_old_archive_extraction=yes ;;
  5881. *)
  5882. lock_old_archive_extraction=no ;;
  5883. esac
  5884. for ac_prog in gawk mawk nawk awk
  5885. do
  5886. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5887. set dummy $ac_prog; ac_word=$2
  5888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5889. printf %s "checking for $ac_word... " >&6; }
  5890. if test ${ac_cv_prog_AWK+y}
  5891. then :
  5892. printf %s "(cached) " >&6
  5893. else $as_nop
  5894. if test -n "$AWK"; then
  5895. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. case $as_dir in #(((
  5902. '') as_dir=./ ;;
  5903. */) ;;
  5904. *) as_dir=$as_dir/ ;;
  5905. esac
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_AWK="$ac_prog"
  5909. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. AWK=$ac_cv_prog_AWK
  5918. if test -n "$AWK"; then
  5919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5920. printf "%s\n" "$AWK" >&6; }
  5921. else
  5922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. printf "%s\n" "no" >&6; }
  5924. fi
  5925. test -n "$AWK" && break
  5926. done
  5927. # If no C compiler was specified, use CC.
  5928. LTCC=${LTCC-"$CC"}
  5929. # If no C compiler flags were specified, use CFLAGS.
  5930. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5931. # Allow CC to be a program name with arguments.
  5932. compiler=$CC
  5933. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5935. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5936. if test ${lt_cv_sys_global_symbol_pipe+y}
  5937. then :
  5938. printf %s "(cached) " >&6
  5939. else $as_nop
  5940. # These are sane defaults that work on at least a few old systems.
  5941. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5942. # Character class describing NM global symbol codes.
  5943. symcode='[BCDEGRST]'
  5944. # Regexp to match symbols that can be accessed directly from C.
  5945. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5946. # Define system-specific variables.
  5947. case $host_os in
  5948. aix*)
  5949. symcode='[BCDT]'
  5950. ;;
  5951. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5952. symcode='[ABCDGISTW]'
  5953. ;;
  5954. hpux*)
  5955. if test ia64 = "$host_cpu"; then
  5956. symcode='[ABCDEGRST]'
  5957. fi
  5958. ;;
  5959. irix* | nonstopux*)
  5960. symcode='[BCDEGRST]'
  5961. ;;
  5962. osf*)
  5963. symcode='[BCDEGQRST]'
  5964. ;;
  5965. solaris*)
  5966. symcode='[BCDRT]'
  5967. ;;
  5968. sco3.2v5*)
  5969. symcode='[DT]'
  5970. ;;
  5971. sysv4.2uw2*)
  5972. symcode='[DT]'
  5973. ;;
  5974. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5975. symcode='[ABDT]'
  5976. ;;
  5977. sysv4)
  5978. symcode='[DFNSTU]'
  5979. ;;
  5980. esac
  5981. # If we're using GNU nm, then use its standard symbol codes.
  5982. case `$NM -V 2>&1` in
  5983. *GNU* | *'with BFD'*)
  5984. symcode='[ABCDGIRSTW]' ;;
  5985. esac
  5986. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5987. # Gets list of data symbols to import.
  5988. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5989. # Adjust the below global symbol transforms to fixup imported variables.
  5990. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5991. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5992. lt_c_name_lib_hook="\
  5993. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5994. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5995. else
  5996. # Disable hooks by default.
  5997. lt_cv_sys_global_symbol_to_import=
  5998. lt_cdecl_hook=
  5999. lt_c_name_hook=
  6000. lt_c_name_lib_hook=
  6001. fi
  6002. # Transform an extracted symbol line into a proper C declaration.
  6003. # Some systems (esp. on ia64) link data and code symbols differently,
  6004. # so use this general approach.
  6005. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6006. $lt_cdecl_hook\
  6007. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6008. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6009. # Transform an extracted symbol line into symbol name and symbol address
  6010. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6011. $lt_c_name_hook\
  6012. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6013. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6014. # Transform an extracted symbol line into symbol name with lib prefix and
  6015. # symbol address.
  6016. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6017. $lt_c_name_lib_hook\
  6018. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6019. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6020. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6021. # Handle CRLF in mingw tool chain
  6022. opt_cr=
  6023. case $build_os in
  6024. mingw* | windows*)
  6025. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6026. ;;
  6027. esac
  6028. # Try without a prefix underscore, then with it.
  6029. for ac_symprfx in "" "_"; do
  6030. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6031. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6032. # Write the raw and C identifiers.
  6033. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6034. # Fake it for dumpbin and say T for any non-static function,
  6035. # D for any global variable and I for any imported variable.
  6036. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6037. # which start with @ or ?.
  6038. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6039. " {last_section=section; section=\$ 3};"\
  6040. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6041. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6042. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6043. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6044. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6045. " \$ 0!~/External *\|/{next};"\
  6046. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6047. " {if(hide[section]) next};"\
  6048. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6049. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6050. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6051. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6052. " ' prfx=^$ac_symprfx"
  6053. else
  6054. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6055. fi
  6056. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6057. # Check to see that the pipe works correctly.
  6058. pipe_works=no
  6059. rm -f conftest*
  6060. cat > conftest.$ac_ext <<_LT_EOF
  6061. #ifdef __cplusplus
  6062. extern "C" {
  6063. #endif
  6064. char nm_test_var;
  6065. void nm_test_func(void);
  6066. void nm_test_func(void){}
  6067. #ifdef __cplusplus
  6068. }
  6069. #endif
  6070. int main(){nm_test_var='a';nm_test_func();return(0);}
  6071. _LT_EOF
  6072. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6073. (eval $ac_compile) 2>&5
  6074. ac_status=$?
  6075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6076. test $ac_status = 0; }; then
  6077. # Now try to grab the symbols.
  6078. nlist=conftest.nm
  6079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6080. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6081. ac_status=$?
  6082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6083. test $ac_status = 0; } && test -s "$nlist"; then
  6084. # Try sorting and uniquifying the output.
  6085. if sort "$nlist" | uniq > "$nlist"T; then
  6086. mv -f "$nlist"T "$nlist"
  6087. else
  6088. rm -f "$nlist"T
  6089. fi
  6090. # Make sure that we snagged all the symbols we need.
  6091. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6092. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6093. cat <<_LT_EOF > conftest.$ac_ext
  6094. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6095. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6096. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6097. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6098. # define LT_DLSYM_CONST
  6099. #elif defined __osf__
  6100. /* This system does not cope well with relocations in const data. */
  6101. # define LT_DLSYM_CONST
  6102. #else
  6103. # define LT_DLSYM_CONST const
  6104. #endif
  6105. #ifdef __cplusplus
  6106. extern "C" {
  6107. #endif
  6108. _LT_EOF
  6109. # Now generate the symbol file.
  6110. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6111. cat <<_LT_EOF >> conftest.$ac_ext
  6112. /* The mapping between symbol names and symbols. */
  6113. LT_DLSYM_CONST struct {
  6114. const char *name;
  6115. void *address;
  6116. }
  6117. lt__PROGRAM__LTX_preloaded_symbols[] =
  6118. {
  6119. { "@PROGRAM@", (void *) 0 },
  6120. _LT_EOF
  6121. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6122. cat <<\_LT_EOF >> conftest.$ac_ext
  6123. {0, (void *) 0}
  6124. };
  6125. /* This works around a problem in FreeBSD linker */
  6126. #ifdef FREEBSD_WORKAROUND
  6127. static const void *lt_preloaded_setup() {
  6128. return lt__PROGRAM__LTX_preloaded_symbols;
  6129. }
  6130. #endif
  6131. #ifdef __cplusplus
  6132. }
  6133. #endif
  6134. _LT_EOF
  6135. # Now try linking the two files.
  6136. mv conftest.$ac_objext conftstm.$ac_objext
  6137. lt_globsym_save_LIBS=$LIBS
  6138. lt_globsym_save_CFLAGS=$CFLAGS
  6139. LIBS=conftstm.$ac_objext
  6140. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6142. (eval $ac_link) 2>&5
  6143. ac_status=$?
  6144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6145. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6146. pipe_works=yes
  6147. fi
  6148. LIBS=$lt_globsym_save_LIBS
  6149. CFLAGS=$lt_globsym_save_CFLAGS
  6150. else
  6151. echo "cannot find nm_test_func in $nlist" >&5
  6152. fi
  6153. else
  6154. echo "cannot find nm_test_var in $nlist" >&5
  6155. fi
  6156. else
  6157. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6158. fi
  6159. else
  6160. echo "$progname: failed program was:" >&5
  6161. cat conftest.$ac_ext >&5
  6162. fi
  6163. rm -rf conftest* conftst*
  6164. # Do not use the global_symbol_pipe unless it works.
  6165. if test yes = "$pipe_works"; then
  6166. break
  6167. else
  6168. lt_cv_sys_global_symbol_pipe=
  6169. fi
  6170. done
  6171. fi
  6172. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6173. lt_cv_sys_global_symbol_to_cdecl=
  6174. fi
  6175. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6177. printf "%s\n" "failed" >&6; }
  6178. else
  6179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6180. printf "%s\n" "ok" >&6; }
  6181. fi
  6182. # Response file support.
  6183. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6184. nm_file_list_spec='@'
  6185. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6186. nm_file_list_spec='@'
  6187. fi
  6188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6189. printf %s "checking for sysroot... " >&6; }
  6190. # Check whether --with-sysroot was given.
  6191. if test ${with_sysroot+y}
  6192. then :
  6193. withval=$with_sysroot;
  6194. else $as_nop
  6195. with_sysroot=no
  6196. fi
  6197. lt_sysroot=
  6198. case $with_sysroot in #(
  6199. yes)
  6200. if test yes = "$GCC"; then
  6201. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6202. fi
  6203. ;; #(
  6204. /*)
  6205. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6206. ;; #(
  6207. no|'')
  6208. ;; #(
  6209. *)
  6210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6211. printf "%s\n" "$with_sysroot" >&6; }
  6212. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6213. ;;
  6214. esac
  6215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6216. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6218. printf %s "checking for a working dd... " >&6; }
  6219. if test ${ac_cv_path_lt_DD+y}
  6220. then :
  6221. printf %s "(cached) " >&6
  6222. else $as_nop
  6223. printf 0123456789abcdef0123456789abcdef >conftest.i
  6224. cat conftest.i conftest.i >conftest2.i
  6225. : ${lt_DD:=$DD}
  6226. if test -z "$lt_DD"; then
  6227. ac_path_lt_DD_found=false
  6228. # Loop through the user's path and test for each of PROGNAME-LIST
  6229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6230. for as_dir in $PATH
  6231. do
  6232. IFS=$as_save_IFS
  6233. case $as_dir in #(((
  6234. '') as_dir=./ ;;
  6235. */) ;;
  6236. *) as_dir=$as_dir/ ;;
  6237. esac
  6238. for ac_prog in dd
  6239. do
  6240. for ac_exec_ext in '' $ac_executable_extensions; do
  6241. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6242. as_fn_executable_p "$ac_path_lt_DD" || continue
  6243. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6244. cmp -s conftest.i conftest.out \
  6245. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6246. fi
  6247. $ac_path_lt_DD_found && break 3
  6248. done
  6249. done
  6250. done
  6251. IFS=$as_save_IFS
  6252. if test -z "$ac_cv_path_lt_DD"; then
  6253. :
  6254. fi
  6255. else
  6256. ac_cv_path_lt_DD=$lt_DD
  6257. fi
  6258. rm -f conftest.i conftest2.i conftest.out
  6259. fi
  6260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6261. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6263. printf %s "checking how to truncate binary pipes... " >&6; }
  6264. if test ${lt_cv_truncate_bin+y}
  6265. then :
  6266. printf %s "(cached) " >&6
  6267. else $as_nop
  6268. printf 0123456789abcdef0123456789abcdef >conftest.i
  6269. cat conftest.i conftest.i >conftest2.i
  6270. lt_cv_truncate_bin=
  6271. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6272. cmp -s conftest.i conftest.out \
  6273. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6274. fi
  6275. rm -f conftest.i conftest2.i conftest.out
  6276. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6277. fi
  6278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6279. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6280. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6281. func_cc_basename ()
  6282. {
  6283. for cc_temp in $*""; do
  6284. case $cc_temp in
  6285. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6286. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6287. \-*) ;;
  6288. *) break;;
  6289. esac
  6290. done
  6291. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6292. }
  6293. # Check whether --enable-libtool-lock was given.
  6294. if test ${enable_libtool_lock+y}
  6295. then :
  6296. enableval=$enable_libtool_lock;
  6297. fi
  6298. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6299. # Some flags need to be propagated to the compiler or linker for good
  6300. # libtool support.
  6301. case $host in
  6302. ia64-*-hpux*)
  6303. # Find out what ABI is being produced by ac_compile, and set mode
  6304. # options accordingly.
  6305. echo 'int i;' > conftest.$ac_ext
  6306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6307. (eval $ac_compile) 2>&5
  6308. ac_status=$?
  6309. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6310. test $ac_status = 0; }; then
  6311. case `/usr/bin/file conftest.$ac_objext` in
  6312. *ELF-32*)
  6313. HPUX_IA64_MODE=32
  6314. ;;
  6315. *ELF-64*)
  6316. HPUX_IA64_MODE=64
  6317. ;;
  6318. esac
  6319. fi
  6320. rm -rf conftest*
  6321. ;;
  6322. *-*-irix6*)
  6323. # Find out what ABI is being produced by ac_compile, and set linker
  6324. # options accordingly.
  6325. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6327. (eval $ac_compile) 2>&5
  6328. ac_status=$?
  6329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6330. test $ac_status = 0; }; then
  6331. if test yes = "$lt_cv_prog_gnu_ld"; then
  6332. case `/usr/bin/file conftest.$ac_objext` in
  6333. *32-bit*)
  6334. LD="${LD-ld} -melf32bsmip"
  6335. ;;
  6336. *N32*)
  6337. LD="${LD-ld} -melf32bmipn32"
  6338. ;;
  6339. *64-bit*)
  6340. LD="${LD-ld} -melf64bmip"
  6341. ;;
  6342. esac
  6343. else
  6344. case `/usr/bin/file conftest.$ac_objext` in
  6345. *32-bit*)
  6346. LD="${LD-ld} -32"
  6347. ;;
  6348. *N32*)
  6349. LD="${LD-ld} -n32"
  6350. ;;
  6351. *64-bit*)
  6352. LD="${LD-ld} -64"
  6353. ;;
  6354. esac
  6355. fi
  6356. fi
  6357. rm -rf conftest*
  6358. ;;
  6359. mips64*-*linux*)
  6360. # Find out what ABI is being produced by ac_compile, and set linker
  6361. # options accordingly.
  6362. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6364. (eval $ac_compile) 2>&5
  6365. ac_status=$?
  6366. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6367. test $ac_status = 0; }; then
  6368. emul=elf
  6369. case `/usr/bin/file conftest.$ac_objext` in
  6370. *32-bit*)
  6371. emul="${emul}32"
  6372. ;;
  6373. *64-bit*)
  6374. emul="${emul}64"
  6375. ;;
  6376. esac
  6377. case `/usr/bin/file conftest.$ac_objext` in
  6378. *MSB*)
  6379. emul="${emul}btsmip"
  6380. ;;
  6381. *LSB*)
  6382. emul="${emul}ltsmip"
  6383. ;;
  6384. esac
  6385. case `/usr/bin/file conftest.$ac_objext` in
  6386. *N32*)
  6387. emul="${emul}n32"
  6388. ;;
  6389. esac
  6390. LD="${LD-ld} -m $emul"
  6391. fi
  6392. rm -rf conftest*
  6393. ;;
  6394. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6395. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6396. # Find out what ABI is being produced by ac_compile, and set linker
  6397. # options accordingly. Note that the listed cases only cover the
  6398. # situations where additional linker options are needed (such as when
  6399. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6400. # vice versa); the common cases where no linker options are needed do
  6401. # not appear in the list.
  6402. echo 'int i;' > conftest.$ac_ext
  6403. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6404. (eval $ac_compile) 2>&5
  6405. ac_status=$?
  6406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6407. test $ac_status = 0; }; then
  6408. case `/usr/bin/file conftest.o` in
  6409. *32-bit*)
  6410. case $host in
  6411. x86_64-*kfreebsd*-gnu)
  6412. LD="${LD-ld} -m elf_i386_fbsd"
  6413. ;;
  6414. x86_64-*linux*|x86_64-gnu*)
  6415. case `/usr/bin/file conftest.o` in
  6416. *x86-64*)
  6417. LD="${LD-ld} -m elf32_x86_64"
  6418. ;;
  6419. *)
  6420. LD="${LD-ld} -m elf_i386"
  6421. ;;
  6422. esac
  6423. ;;
  6424. powerpc64le-*linux*)
  6425. LD="${LD-ld} -m elf32lppclinux"
  6426. ;;
  6427. powerpc64-*linux*)
  6428. LD="${LD-ld} -m elf32ppclinux"
  6429. ;;
  6430. s390x-*linux*)
  6431. LD="${LD-ld} -m elf_s390"
  6432. ;;
  6433. sparc64-*linux*)
  6434. LD="${LD-ld} -m elf32_sparc"
  6435. ;;
  6436. esac
  6437. ;;
  6438. *64-bit*)
  6439. case $host in
  6440. x86_64-*kfreebsd*-gnu)
  6441. LD="${LD-ld} -m elf_x86_64_fbsd"
  6442. ;;
  6443. x86_64-*linux*|x86_64-gnu*)
  6444. LD="${LD-ld} -m elf_x86_64"
  6445. ;;
  6446. powerpcle-*linux*|powerpc64le-*linux*)
  6447. LD="${LD-ld} -m elf64lppc"
  6448. ;;
  6449. powerpc-*linux*|powerpc64-*linux*)
  6450. LD="${LD-ld} -m elf64ppc"
  6451. ;;
  6452. s390*-*linux*|s390*-*tpf*)
  6453. LD="${LD-ld} -m elf64_s390"
  6454. ;;
  6455. sparc*-*linux*)
  6456. LD="${LD-ld} -m elf64_sparc"
  6457. ;;
  6458. esac
  6459. ;;
  6460. esac
  6461. fi
  6462. rm -rf conftest*
  6463. ;;
  6464. *-*-sco3.2v5*)
  6465. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6466. SAVE_CFLAGS=$CFLAGS
  6467. CFLAGS="$CFLAGS -belf"
  6468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6469. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6470. if test ${lt_cv_cc_needs_belf+y}
  6471. then :
  6472. printf %s "(cached) " >&6
  6473. else $as_nop
  6474. ac_ext=c
  6475. ac_cpp='$CPP $CPPFLAGS'
  6476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6480. /* end confdefs.h. */
  6481. int
  6482. main (void)
  6483. {
  6484. ;
  6485. return 0;
  6486. }
  6487. _ACEOF
  6488. if ac_fn_c_try_link "$LINENO"
  6489. then :
  6490. lt_cv_cc_needs_belf=yes
  6491. else $as_nop
  6492. lt_cv_cc_needs_belf=no
  6493. fi
  6494. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6495. conftest$ac_exeext conftest.$ac_ext
  6496. ac_ext=c
  6497. ac_cpp='$CPP $CPPFLAGS'
  6498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6501. fi
  6502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6503. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6504. if test yes != "$lt_cv_cc_needs_belf"; then
  6505. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6506. CFLAGS=$SAVE_CFLAGS
  6507. fi
  6508. ;;
  6509. *-*solaris*)
  6510. # Find out what ABI is being produced by ac_compile, and set linker
  6511. # options accordingly.
  6512. echo 'int i;' > conftest.$ac_ext
  6513. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6514. (eval $ac_compile) 2>&5
  6515. ac_status=$?
  6516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6517. test $ac_status = 0; }; then
  6518. case `/usr/bin/file conftest.o` in
  6519. *64-bit*)
  6520. case $lt_cv_prog_gnu_ld in
  6521. yes*)
  6522. case $host in
  6523. i?86-*-solaris*|x86_64-*-solaris*)
  6524. LD="${LD-ld} -m elf_x86_64"
  6525. ;;
  6526. sparc*-*-solaris*)
  6527. LD="${LD-ld} -m elf64_sparc"
  6528. ;;
  6529. esac
  6530. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6531. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6532. LD=${LD-ld}_sol2
  6533. fi
  6534. ;;
  6535. *)
  6536. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6537. LD="${LD-ld} -64"
  6538. fi
  6539. ;;
  6540. esac
  6541. ;;
  6542. esac
  6543. fi
  6544. rm -rf conftest*
  6545. ;;
  6546. esac
  6547. need_locks=$enable_libtool_lock
  6548. if test -n "$ac_tool_prefix"; then
  6549. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6550. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6552. printf %s "checking for $ac_word... " >&6; }
  6553. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6554. then :
  6555. printf %s "(cached) " >&6
  6556. else $as_nop
  6557. if test -n "$MANIFEST_TOOL"; then
  6558. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6559. else
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. case $as_dir in #(((
  6565. '') as_dir=./ ;;
  6566. */) ;;
  6567. *) as_dir=$as_dir/ ;;
  6568. esac
  6569. for ac_exec_ext in '' $ac_executable_extensions; do
  6570. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6571. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6572. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6573. break 2
  6574. fi
  6575. done
  6576. done
  6577. IFS=$as_save_IFS
  6578. fi
  6579. fi
  6580. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6581. if test -n "$MANIFEST_TOOL"; then
  6582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6583. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6584. else
  6585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586. printf "%s\n" "no" >&6; }
  6587. fi
  6588. fi
  6589. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6590. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6591. # Extract the first word of "mt", so it can be a program name with args.
  6592. set dummy mt; ac_word=$2
  6593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. printf %s "checking for $ac_word... " >&6; }
  6595. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6596. then :
  6597. printf %s "(cached) " >&6
  6598. else $as_nop
  6599. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6600. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. case $as_dir in #(((
  6607. '') as_dir=./ ;;
  6608. */) ;;
  6609. *) as_dir=$as_dir/ ;;
  6610. esac
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6623. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6625. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6626. else
  6627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. printf "%s\n" "no" >&6; }
  6629. fi
  6630. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6631. MANIFEST_TOOL=":"
  6632. else
  6633. case $cross_compiling:$ac_tool_warned in
  6634. yes:)
  6635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6636. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6637. ac_tool_warned=yes ;;
  6638. esac
  6639. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6640. fi
  6641. else
  6642. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6643. fi
  6644. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6646. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6647. if test ${lt_cv_path_mainfest_tool+y}
  6648. then :
  6649. printf %s "(cached) " >&6
  6650. else $as_nop
  6651. lt_cv_path_mainfest_tool=no
  6652. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6653. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6654. cat conftest.err >&5
  6655. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6656. lt_cv_path_mainfest_tool=yes
  6657. fi
  6658. rm -f conftest*
  6659. fi
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6661. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6662. if test yes != "$lt_cv_path_mainfest_tool"; then
  6663. MANIFEST_TOOL=:
  6664. fi
  6665. case $host_os in
  6666. rhapsody* | darwin*)
  6667. if test -n "$ac_tool_prefix"; then
  6668. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6669. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6671. printf %s "checking for $ac_word... " >&6; }
  6672. if test ${ac_cv_prog_DSYMUTIL+y}
  6673. then :
  6674. printf %s "(cached) " >&6
  6675. else $as_nop
  6676. if test -n "$DSYMUTIL"; then
  6677. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6678. else
  6679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6680. for as_dir in $PATH
  6681. do
  6682. IFS=$as_save_IFS
  6683. case $as_dir in #(((
  6684. '') as_dir=./ ;;
  6685. */) ;;
  6686. *) as_dir=$as_dir/ ;;
  6687. esac
  6688. for ac_exec_ext in '' $ac_executable_extensions; do
  6689. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6690. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6692. break 2
  6693. fi
  6694. done
  6695. done
  6696. IFS=$as_save_IFS
  6697. fi
  6698. fi
  6699. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6700. if test -n "$DSYMUTIL"; then
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6702. printf "%s\n" "$DSYMUTIL" >&6; }
  6703. else
  6704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6705. printf "%s\n" "no" >&6; }
  6706. fi
  6707. fi
  6708. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6709. ac_ct_DSYMUTIL=$DSYMUTIL
  6710. # Extract the first word of "dsymutil", so it can be a program name with args.
  6711. set dummy dsymutil; ac_word=$2
  6712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6713. printf %s "checking for $ac_word... " >&6; }
  6714. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6715. then :
  6716. printf %s "(cached) " >&6
  6717. else $as_nop
  6718. if test -n "$ac_ct_DSYMUTIL"; then
  6719. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6720. else
  6721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6722. for as_dir in $PATH
  6723. do
  6724. IFS=$as_save_IFS
  6725. case $as_dir in #(((
  6726. '') as_dir=./ ;;
  6727. */) ;;
  6728. *) as_dir=$as_dir/ ;;
  6729. esac
  6730. for ac_exec_ext in '' $ac_executable_extensions; do
  6731. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6732. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6733. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6734. break 2
  6735. fi
  6736. done
  6737. done
  6738. IFS=$as_save_IFS
  6739. fi
  6740. fi
  6741. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6742. if test -n "$ac_ct_DSYMUTIL"; then
  6743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6744. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6745. else
  6746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6747. printf "%s\n" "no" >&6; }
  6748. fi
  6749. if test "x$ac_ct_DSYMUTIL" = x; then
  6750. DSYMUTIL=":"
  6751. else
  6752. case $cross_compiling:$ac_tool_warned in
  6753. yes:)
  6754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6755. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6756. ac_tool_warned=yes ;;
  6757. esac
  6758. DSYMUTIL=$ac_ct_DSYMUTIL
  6759. fi
  6760. else
  6761. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6762. fi
  6763. if test -n "$ac_tool_prefix"; then
  6764. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6765. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6767. printf %s "checking for $ac_word... " >&6; }
  6768. if test ${ac_cv_prog_NMEDIT+y}
  6769. then :
  6770. printf %s "(cached) " >&6
  6771. else $as_nop
  6772. if test -n "$NMEDIT"; then
  6773. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. case $as_dir in #(((
  6780. '') as_dir=./ ;;
  6781. */) ;;
  6782. *) as_dir=$as_dir/ ;;
  6783. esac
  6784. for ac_exec_ext in '' $ac_executable_extensions; do
  6785. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6786. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6788. break 2
  6789. fi
  6790. done
  6791. done
  6792. IFS=$as_save_IFS
  6793. fi
  6794. fi
  6795. NMEDIT=$ac_cv_prog_NMEDIT
  6796. if test -n "$NMEDIT"; then
  6797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6798. printf "%s\n" "$NMEDIT" >&6; }
  6799. else
  6800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6801. printf "%s\n" "no" >&6; }
  6802. fi
  6803. fi
  6804. if test -z "$ac_cv_prog_NMEDIT"; then
  6805. ac_ct_NMEDIT=$NMEDIT
  6806. # Extract the first word of "nmedit", so it can be a program name with args.
  6807. set dummy nmedit; ac_word=$2
  6808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6809. printf %s "checking for $ac_word... " >&6; }
  6810. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6811. then :
  6812. printf %s "(cached) " >&6
  6813. else $as_nop
  6814. if test -n "$ac_ct_NMEDIT"; then
  6815. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6816. else
  6817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6818. for as_dir in $PATH
  6819. do
  6820. IFS=$as_save_IFS
  6821. case $as_dir in #(((
  6822. '') as_dir=./ ;;
  6823. */) ;;
  6824. *) as_dir=$as_dir/ ;;
  6825. esac
  6826. for ac_exec_ext in '' $ac_executable_extensions; do
  6827. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6828. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6829. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6830. break 2
  6831. fi
  6832. done
  6833. done
  6834. IFS=$as_save_IFS
  6835. fi
  6836. fi
  6837. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6838. if test -n "$ac_ct_NMEDIT"; then
  6839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6840. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6841. else
  6842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6843. printf "%s\n" "no" >&6; }
  6844. fi
  6845. if test "x$ac_ct_NMEDIT" = x; then
  6846. NMEDIT=":"
  6847. else
  6848. case $cross_compiling:$ac_tool_warned in
  6849. yes:)
  6850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6851. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6852. ac_tool_warned=yes ;;
  6853. esac
  6854. NMEDIT=$ac_ct_NMEDIT
  6855. fi
  6856. else
  6857. NMEDIT="$ac_cv_prog_NMEDIT"
  6858. fi
  6859. if test -n "$ac_tool_prefix"; then
  6860. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6861. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6863. printf %s "checking for $ac_word... " >&6; }
  6864. if test ${ac_cv_prog_LIPO+y}
  6865. then :
  6866. printf %s "(cached) " >&6
  6867. else $as_nop
  6868. if test -n "$LIPO"; then
  6869. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. case $as_dir in #(((
  6876. '') as_dir=./ ;;
  6877. */) ;;
  6878. *) as_dir=$as_dir/ ;;
  6879. esac
  6880. for ac_exec_ext in '' $ac_executable_extensions; do
  6881. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6882. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6884. break 2
  6885. fi
  6886. done
  6887. done
  6888. IFS=$as_save_IFS
  6889. fi
  6890. fi
  6891. LIPO=$ac_cv_prog_LIPO
  6892. if test -n "$LIPO"; then
  6893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6894. printf "%s\n" "$LIPO" >&6; }
  6895. else
  6896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6897. printf "%s\n" "no" >&6; }
  6898. fi
  6899. fi
  6900. if test -z "$ac_cv_prog_LIPO"; then
  6901. ac_ct_LIPO=$LIPO
  6902. # Extract the first word of "lipo", so it can be a program name with args.
  6903. set dummy lipo; ac_word=$2
  6904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6905. printf %s "checking for $ac_word... " >&6; }
  6906. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6907. then :
  6908. printf %s "(cached) " >&6
  6909. else $as_nop
  6910. if test -n "$ac_ct_LIPO"; then
  6911. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6912. else
  6913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6914. for as_dir in $PATH
  6915. do
  6916. IFS=$as_save_IFS
  6917. case $as_dir in #(((
  6918. '') as_dir=./ ;;
  6919. */) ;;
  6920. *) as_dir=$as_dir/ ;;
  6921. esac
  6922. for ac_exec_ext in '' $ac_executable_extensions; do
  6923. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6924. ac_cv_prog_ac_ct_LIPO="lipo"
  6925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6926. break 2
  6927. fi
  6928. done
  6929. done
  6930. IFS=$as_save_IFS
  6931. fi
  6932. fi
  6933. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6934. if test -n "$ac_ct_LIPO"; then
  6935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6936. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6937. else
  6938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6939. printf "%s\n" "no" >&6; }
  6940. fi
  6941. if test "x$ac_ct_LIPO" = x; then
  6942. LIPO=":"
  6943. else
  6944. case $cross_compiling:$ac_tool_warned in
  6945. yes:)
  6946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6947. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6948. ac_tool_warned=yes ;;
  6949. esac
  6950. LIPO=$ac_ct_LIPO
  6951. fi
  6952. else
  6953. LIPO="$ac_cv_prog_LIPO"
  6954. fi
  6955. if test -n "$ac_tool_prefix"; then
  6956. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6957. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6959. printf %s "checking for $ac_word... " >&6; }
  6960. if test ${ac_cv_prog_OTOOL+y}
  6961. then :
  6962. printf %s "(cached) " >&6
  6963. else $as_nop
  6964. if test -n "$OTOOL"; then
  6965. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. case $as_dir in #(((
  6972. '') as_dir=./ ;;
  6973. */) ;;
  6974. *) as_dir=$as_dir/ ;;
  6975. esac
  6976. for ac_exec_ext in '' $ac_executable_extensions; do
  6977. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6978. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6979. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6980. break 2
  6981. fi
  6982. done
  6983. done
  6984. IFS=$as_save_IFS
  6985. fi
  6986. fi
  6987. OTOOL=$ac_cv_prog_OTOOL
  6988. if test -n "$OTOOL"; then
  6989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6990. printf "%s\n" "$OTOOL" >&6; }
  6991. else
  6992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6993. printf "%s\n" "no" >&6; }
  6994. fi
  6995. fi
  6996. if test -z "$ac_cv_prog_OTOOL"; then
  6997. ac_ct_OTOOL=$OTOOL
  6998. # Extract the first word of "otool", so it can be a program name with args.
  6999. set dummy otool; ac_word=$2
  7000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7001. printf %s "checking for $ac_word... " >&6; }
  7002. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7003. then :
  7004. printf %s "(cached) " >&6
  7005. else $as_nop
  7006. if test -n "$ac_ct_OTOOL"; then
  7007. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7008. else
  7009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7010. for as_dir in $PATH
  7011. do
  7012. IFS=$as_save_IFS
  7013. case $as_dir in #(((
  7014. '') as_dir=./ ;;
  7015. */) ;;
  7016. *) as_dir=$as_dir/ ;;
  7017. esac
  7018. for ac_exec_ext in '' $ac_executable_extensions; do
  7019. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7020. ac_cv_prog_ac_ct_OTOOL="otool"
  7021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7022. break 2
  7023. fi
  7024. done
  7025. done
  7026. IFS=$as_save_IFS
  7027. fi
  7028. fi
  7029. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7030. if test -n "$ac_ct_OTOOL"; then
  7031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7032. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7033. else
  7034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7035. printf "%s\n" "no" >&6; }
  7036. fi
  7037. if test "x$ac_ct_OTOOL" = x; then
  7038. OTOOL=":"
  7039. else
  7040. case $cross_compiling:$ac_tool_warned in
  7041. yes:)
  7042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7043. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7044. ac_tool_warned=yes ;;
  7045. esac
  7046. OTOOL=$ac_ct_OTOOL
  7047. fi
  7048. else
  7049. OTOOL="$ac_cv_prog_OTOOL"
  7050. fi
  7051. if test -n "$ac_tool_prefix"; then
  7052. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7053. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7055. printf %s "checking for $ac_word... " >&6; }
  7056. if test ${ac_cv_prog_OTOOL64+y}
  7057. then :
  7058. printf %s "(cached) " >&6
  7059. else $as_nop
  7060. if test -n "$OTOOL64"; then
  7061. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7062. else
  7063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7064. for as_dir in $PATH
  7065. do
  7066. IFS=$as_save_IFS
  7067. case $as_dir in #(((
  7068. '') as_dir=./ ;;
  7069. */) ;;
  7070. *) as_dir=$as_dir/ ;;
  7071. esac
  7072. for ac_exec_ext in '' $ac_executable_extensions; do
  7073. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7074. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7075. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7076. break 2
  7077. fi
  7078. done
  7079. done
  7080. IFS=$as_save_IFS
  7081. fi
  7082. fi
  7083. OTOOL64=$ac_cv_prog_OTOOL64
  7084. if test -n "$OTOOL64"; then
  7085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7086. printf "%s\n" "$OTOOL64" >&6; }
  7087. else
  7088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7089. printf "%s\n" "no" >&6; }
  7090. fi
  7091. fi
  7092. if test -z "$ac_cv_prog_OTOOL64"; then
  7093. ac_ct_OTOOL64=$OTOOL64
  7094. # Extract the first word of "otool64", so it can be a program name with args.
  7095. set dummy otool64; ac_word=$2
  7096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7097. printf %s "checking for $ac_word... " >&6; }
  7098. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7099. then :
  7100. printf %s "(cached) " >&6
  7101. else $as_nop
  7102. if test -n "$ac_ct_OTOOL64"; then
  7103. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7104. else
  7105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7106. for as_dir in $PATH
  7107. do
  7108. IFS=$as_save_IFS
  7109. case $as_dir in #(((
  7110. '') as_dir=./ ;;
  7111. */) ;;
  7112. *) as_dir=$as_dir/ ;;
  7113. esac
  7114. for ac_exec_ext in '' $ac_executable_extensions; do
  7115. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7116. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7117. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7118. break 2
  7119. fi
  7120. done
  7121. done
  7122. IFS=$as_save_IFS
  7123. fi
  7124. fi
  7125. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7126. if test -n "$ac_ct_OTOOL64"; then
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7128. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7129. else
  7130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7131. printf "%s\n" "no" >&6; }
  7132. fi
  7133. if test "x$ac_ct_OTOOL64" = x; then
  7134. OTOOL64=":"
  7135. else
  7136. case $cross_compiling:$ac_tool_warned in
  7137. yes:)
  7138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7139. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7140. ac_tool_warned=yes ;;
  7141. esac
  7142. OTOOL64=$ac_ct_OTOOL64
  7143. fi
  7144. else
  7145. OTOOL64="$ac_cv_prog_OTOOL64"
  7146. fi
  7147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7148. printf %s "checking for -single_module linker flag... " >&6; }
  7149. if test ${lt_cv_apple_cc_single_mod+y}
  7150. then :
  7151. printf %s "(cached) " >&6
  7152. else $as_nop
  7153. lt_cv_apple_cc_single_mod=no
  7154. if test -z "$LT_MULTI_MODULE"; then
  7155. # By default we will add the -single_module flag. You can override
  7156. # by either setting the environment variable LT_MULTI_MODULE
  7157. # non-empty at configure time, or by adding -multi_module to the
  7158. # link flags.
  7159. rm -rf libconftest.dylib*
  7160. echo "int foo(void){return 1;}" > conftest.c
  7161. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7162. -dynamiclib -Wl,-single_module conftest.c" >&5
  7163. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7164. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7165. _lt_result=$?
  7166. # If there is a non-empty error log, and "single_module"
  7167. # appears in it, assume the flag caused a linker warning
  7168. if test -s conftest.err && $GREP single_module conftest.err; then
  7169. cat conftest.err >&5
  7170. # Otherwise, if the output was created with a 0 exit code from
  7171. # the compiler, it worked.
  7172. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7173. lt_cv_apple_cc_single_mod=yes
  7174. else
  7175. cat conftest.err >&5
  7176. fi
  7177. rm -rf libconftest.dylib*
  7178. rm -f conftest.*
  7179. fi
  7180. fi
  7181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7182. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7184. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7185. if test ${lt_cv_ld_exported_symbols_list+y}
  7186. then :
  7187. printf %s "(cached) " >&6
  7188. else $as_nop
  7189. lt_cv_ld_exported_symbols_list=no
  7190. save_LDFLAGS=$LDFLAGS
  7191. echo "_main" > conftest.sym
  7192. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7194. /* end confdefs.h. */
  7195. int
  7196. main (void)
  7197. {
  7198. ;
  7199. return 0;
  7200. }
  7201. _ACEOF
  7202. if ac_fn_c_try_link "$LINENO"
  7203. then :
  7204. lt_cv_ld_exported_symbols_list=yes
  7205. else $as_nop
  7206. lt_cv_ld_exported_symbols_list=no
  7207. fi
  7208. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7209. conftest$ac_exeext conftest.$ac_ext
  7210. LDFLAGS=$save_LDFLAGS
  7211. fi
  7212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7213. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7215. printf %s "checking for -force_load linker flag... " >&6; }
  7216. if test ${lt_cv_ld_force_load+y}
  7217. then :
  7218. printf %s "(cached) " >&6
  7219. else $as_nop
  7220. lt_cv_ld_force_load=no
  7221. cat > conftest.c << _LT_EOF
  7222. int forced_loaded() { return 2;}
  7223. _LT_EOF
  7224. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7225. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7226. echo "$AR cru libconftest.a conftest.o" >&5
  7227. $AR cru libconftest.a conftest.o 2>&5
  7228. echo "$RANLIB libconftest.a" >&5
  7229. $RANLIB libconftest.a 2>&5
  7230. cat > conftest.c << _LT_EOF
  7231. int main() { return 0;}
  7232. _LT_EOF
  7233. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7234. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7235. _lt_result=$?
  7236. if test -s conftest.err && $GREP force_load conftest.err; then
  7237. cat conftest.err >&5
  7238. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7239. lt_cv_ld_force_load=yes
  7240. else
  7241. cat conftest.err >&5
  7242. fi
  7243. rm -f conftest.err libconftest.a conftest conftest.c
  7244. rm -rf conftest.dSYM
  7245. fi
  7246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7247. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7248. case $host_os in
  7249. rhapsody* | darwin1.[012])
  7250. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7251. darwin1.*)
  7252. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7253. darwin*)
  7254. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7255. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7256. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7257. *)
  7258. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7259. esac
  7260. ;;
  7261. esac
  7262. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7263. _lt_dar_single_mod='$single_module'
  7264. fi
  7265. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7266. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7267. else
  7268. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7269. fi
  7270. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7271. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7272. else
  7273. _lt_dsymutil=
  7274. fi
  7275. ;;
  7276. esac
  7277. # func_munge_path_list VARIABLE PATH
  7278. # -----------------------------------
  7279. # VARIABLE is name of variable containing _space_ separated list of
  7280. # directories to be munged by the contents of PATH, which is string
  7281. # having a format:
  7282. # "DIR[:DIR]:"
  7283. # string "DIR[ DIR]" will be prepended to VARIABLE
  7284. # ":DIR[:DIR]"
  7285. # string "DIR[ DIR]" will be appended to VARIABLE
  7286. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7287. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7288. # "DIRA[ DIRA]" will be appended to VARIABLE
  7289. # "DIR[:DIR]"
  7290. # VARIABLE will be replaced by "DIR[ DIR]"
  7291. func_munge_path_list ()
  7292. {
  7293. case x$2 in
  7294. x)
  7295. ;;
  7296. *:)
  7297. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7298. ;;
  7299. x:*)
  7300. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7301. ;;
  7302. *::*)
  7303. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7304. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7305. ;;
  7306. *)
  7307. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7308. ;;
  7309. esac
  7310. }
  7311. ac_header= ac_cache=
  7312. for ac_item in $ac_header_c_list
  7313. do
  7314. if test $ac_cache; then
  7315. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7316. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7317. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7318. fi
  7319. ac_header= ac_cache=
  7320. elif test $ac_header; then
  7321. ac_cache=$ac_item
  7322. else
  7323. ac_header=$ac_item
  7324. fi
  7325. done
  7326. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7327. then :
  7328. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7329. fi
  7330. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7331. "
  7332. if test "x$ac_cv_header_dlfcn_h" = xyes
  7333. then :
  7334. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7335. fi
  7336. # Set options
  7337. enable_win32_dll=yes
  7338. case $host in
  7339. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7340. if test -n "$ac_tool_prefix"; then
  7341. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7342. set dummy ${ac_tool_prefix}as; ac_word=$2
  7343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7344. printf %s "checking for $ac_word... " >&6; }
  7345. if test ${ac_cv_prog_AS+y}
  7346. then :
  7347. printf %s "(cached) " >&6
  7348. else $as_nop
  7349. if test -n "$AS"; then
  7350. ac_cv_prog_AS="$AS" # Let the user override the test.
  7351. else
  7352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7353. for as_dir in $PATH
  7354. do
  7355. IFS=$as_save_IFS
  7356. case $as_dir in #(((
  7357. '') as_dir=./ ;;
  7358. */) ;;
  7359. *) as_dir=$as_dir/ ;;
  7360. esac
  7361. for ac_exec_ext in '' $ac_executable_extensions; do
  7362. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7363. ac_cv_prog_AS="${ac_tool_prefix}as"
  7364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7365. break 2
  7366. fi
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. fi
  7371. fi
  7372. AS=$ac_cv_prog_AS
  7373. if test -n "$AS"; then
  7374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7375. printf "%s\n" "$AS" >&6; }
  7376. else
  7377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7378. printf "%s\n" "no" >&6; }
  7379. fi
  7380. fi
  7381. if test -z "$ac_cv_prog_AS"; then
  7382. ac_ct_AS=$AS
  7383. # Extract the first word of "as", so it can be a program name with args.
  7384. set dummy as; ac_word=$2
  7385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7386. printf %s "checking for $ac_word... " >&6; }
  7387. if test ${ac_cv_prog_ac_ct_AS+y}
  7388. then :
  7389. printf %s "(cached) " >&6
  7390. else $as_nop
  7391. if test -n "$ac_ct_AS"; then
  7392. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7393. else
  7394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7395. for as_dir in $PATH
  7396. do
  7397. IFS=$as_save_IFS
  7398. case $as_dir in #(((
  7399. '') as_dir=./ ;;
  7400. */) ;;
  7401. *) as_dir=$as_dir/ ;;
  7402. esac
  7403. for ac_exec_ext in '' $ac_executable_extensions; do
  7404. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7405. ac_cv_prog_ac_ct_AS="as"
  7406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7407. break 2
  7408. fi
  7409. done
  7410. done
  7411. IFS=$as_save_IFS
  7412. fi
  7413. fi
  7414. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7415. if test -n "$ac_ct_AS"; then
  7416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7417. printf "%s\n" "$ac_ct_AS" >&6; }
  7418. else
  7419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7420. printf "%s\n" "no" >&6; }
  7421. fi
  7422. if test "x$ac_ct_AS" = x; then
  7423. AS="false"
  7424. else
  7425. case $cross_compiling:$ac_tool_warned in
  7426. yes:)
  7427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7428. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7429. ac_tool_warned=yes ;;
  7430. esac
  7431. AS=$ac_ct_AS
  7432. fi
  7433. else
  7434. AS="$ac_cv_prog_AS"
  7435. fi
  7436. if test -n "$ac_tool_prefix"; then
  7437. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7438. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7440. printf %s "checking for $ac_word... " >&6; }
  7441. if test ${ac_cv_prog_DLLTOOL+y}
  7442. then :
  7443. printf %s "(cached) " >&6
  7444. else $as_nop
  7445. if test -n "$DLLTOOL"; then
  7446. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7447. else
  7448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7449. for as_dir in $PATH
  7450. do
  7451. IFS=$as_save_IFS
  7452. case $as_dir in #(((
  7453. '') as_dir=./ ;;
  7454. */) ;;
  7455. *) as_dir=$as_dir/ ;;
  7456. esac
  7457. for ac_exec_ext in '' $ac_executable_extensions; do
  7458. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7459. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7461. break 2
  7462. fi
  7463. done
  7464. done
  7465. IFS=$as_save_IFS
  7466. fi
  7467. fi
  7468. DLLTOOL=$ac_cv_prog_DLLTOOL
  7469. if test -n "$DLLTOOL"; then
  7470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7471. printf "%s\n" "$DLLTOOL" >&6; }
  7472. else
  7473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7474. printf "%s\n" "no" >&6; }
  7475. fi
  7476. fi
  7477. if test -z "$ac_cv_prog_DLLTOOL"; then
  7478. ac_ct_DLLTOOL=$DLLTOOL
  7479. # Extract the first word of "dlltool", so it can be a program name with args.
  7480. set dummy dlltool; ac_word=$2
  7481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7482. printf %s "checking for $ac_word... " >&6; }
  7483. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7484. then :
  7485. printf %s "(cached) " >&6
  7486. else $as_nop
  7487. if test -n "$ac_ct_DLLTOOL"; then
  7488. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7489. else
  7490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7491. for as_dir in $PATH
  7492. do
  7493. IFS=$as_save_IFS
  7494. case $as_dir in #(((
  7495. '') as_dir=./ ;;
  7496. */) ;;
  7497. *) as_dir=$as_dir/ ;;
  7498. esac
  7499. for ac_exec_ext in '' $ac_executable_extensions; do
  7500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7501. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7503. break 2
  7504. fi
  7505. done
  7506. done
  7507. IFS=$as_save_IFS
  7508. fi
  7509. fi
  7510. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7511. if test -n "$ac_ct_DLLTOOL"; then
  7512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7513. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7514. else
  7515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7516. printf "%s\n" "no" >&6; }
  7517. fi
  7518. if test "x$ac_ct_DLLTOOL" = x; then
  7519. DLLTOOL="false"
  7520. else
  7521. case $cross_compiling:$ac_tool_warned in
  7522. yes:)
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7524. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7525. ac_tool_warned=yes ;;
  7526. esac
  7527. DLLTOOL=$ac_ct_DLLTOOL
  7528. fi
  7529. else
  7530. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7531. fi
  7532. if test -n "$ac_tool_prefix"; then
  7533. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7534. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7536. printf %s "checking for $ac_word... " >&6; }
  7537. if test ${ac_cv_prog_OBJDUMP+y}
  7538. then :
  7539. printf %s "(cached) " >&6
  7540. else $as_nop
  7541. if test -n "$OBJDUMP"; then
  7542. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7543. else
  7544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7545. for as_dir in $PATH
  7546. do
  7547. IFS=$as_save_IFS
  7548. case $as_dir in #(((
  7549. '') as_dir=./ ;;
  7550. */) ;;
  7551. *) as_dir=$as_dir/ ;;
  7552. esac
  7553. for ac_exec_ext in '' $ac_executable_extensions; do
  7554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7555. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7556. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7557. break 2
  7558. fi
  7559. done
  7560. done
  7561. IFS=$as_save_IFS
  7562. fi
  7563. fi
  7564. OBJDUMP=$ac_cv_prog_OBJDUMP
  7565. if test -n "$OBJDUMP"; then
  7566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7567. printf "%s\n" "$OBJDUMP" >&6; }
  7568. else
  7569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. printf "%s\n" "no" >&6; }
  7571. fi
  7572. fi
  7573. if test -z "$ac_cv_prog_OBJDUMP"; then
  7574. ac_ct_OBJDUMP=$OBJDUMP
  7575. # Extract the first word of "objdump", so it can be a program name with args.
  7576. set dummy objdump; ac_word=$2
  7577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7578. printf %s "checking for $ac_word... " >&6; }
  7579. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7580. then :
  7581. printf %s "(cached) " >&6
  7582. else $as_nop
  7583. if test -n "$ac_ct_OBJDUMP"; then
  7584. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7585. else
  7586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7587. for as_dir in $PATH
  7588. do
  7589. IFS=$as_save_IFS
  7590. case $as_dir in #(((
  7591. '') as_dir=./ ;;
  7592. */) ;;
  7593. *) as_dir=$as_dir/ ;;
  7594. esac
  7595. for ac_exec_ext in '' $ac_executable_extensions; do
  7596. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7597. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7598. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7599. break 2
  7600. fi
  7601. done
  7602. done
  7603. IFS=$as_save_IFS
  7604. fi
  7605. fi
  7606. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7607. if test -n "$ac_ct_OBJDUMP"; then
  7608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7609. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7610. else
  7611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7612. printf "%s\n" "no" >&6; }
  7613. fi
  7614. if test "x$ac_ct_OBJDUMP" = x; then
  7615. OBJDUMP="false"
  7616. else
  7617. case $cross_compiling:$ac_tool_warned in
  7618. yes:)
  7619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7620. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7621. ac_tool_warned=yes ;;
  7622. esac
  7623. OBJDUMP=$ac_ct_OBJDUMP
  7624. fi
  7625. else
  7626. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7627. fi
  7628. ;;
  7629. esac
  7630. test -z "$AS" && AS=as
  7631. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7632. test -z "$OBJDUMP" && OBJDUMP=objdump
  7633. enable_dlopen=no
  7634. # Check whether --enable-shared was given.
  7635. if test ${enable_shared+y}
  7636. then :
  7637. enableval=$enable_shared; p=${PACKAGE-default}
  7638. case $enableval in
  7639. yes) enable_shared=yes ;;
  7640. no) enable_shared=no ;;
  7641. *)
  7642. enable_shared=no
  7643. # Look at the argument we got. We use all the common list separators.
  7644. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7645. for pkg in $enableval; do
  7646. IFS=$lt_save_ifs
  7647. if test "X$pkg" = "X$p"; then
  7648. enable_shared=yes
  7649. fi
  7650. done
  7651. IFS=$lt_save_ifs
  7652. ;;
  7653. esac
  7654. else $as_nop
  7655. enable_shared=yes
  7656. fi
  7657. # Check whether --enable-static was given.
  7658. if test ${enable_static+y}
  7659. then :
  7660. enableval=$enable_static; p=${PACKAGE-default}
  7661. case $enableval in
  7662. yes) enable_static=yes ;;
  7663. no) enable_static=no ;;
  7664. *)
  7665. enable_static=no
  7666. # Look at the argument we got. We use all the common list separators.
  7667. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7668. for pkg in $enableval; do
  7669. IFS=$lt_save_ifs
  7670. if test "X$pkg" = "X$p"; then
  7671. enable_static=yes
  7672. fi
  7673. done
  7674. IFS=$lt_save_ifs
  7675. ;;
  7676. esac
  7677. else $as_nop
  7678. enable_static=yes
  7679. fi
  7680. # Check whether --with-pic was given.
  7681. if test ${with_pic+y}
  7682. then :
  7683. withval=$with_pic; lt_p=${PACKAGE-default}
  7684. case $withval in
  7685. yes|no) pic_mode=$withval ;;
  7686. *)
  7687. pic_mode=default
  7688. # Look at the argument we got. We use all the common list separators.
  7689. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7690. for lt_pkg in $withval; do
  7691. IFS=$lt_save_ifs
  7692. if test "X$lt_pkg" = "X$lt_p"; then
  7693. pic_mode=yes
  7694. fi
  7695. done
  7696. IFS=$lt_save_ifs
  7697. ;;
  7698. esac
  7699. else $as_nop
  7700. pic_mode=default
  7701. fi
  7702. # Check whether --enable-fast-install was given.
  7703. if test ${enable_fast_install+y}
  7704. then :
  7705. enableval=$enable_fast_install; p=${PACKAGE-default}
  7706. case $enableval in
  7707. yes) enable_fast_install=yes ;;
  7708. no) enable_fast_install=no ;;
  7709. *)
  7710. enable_fast_install=no
  7711. # Look at the argument we got. We use all the common list separators.
  7712. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7713. for pkg in $enableval; do
  7714. IFS=$lt_save_ifs
  7715. if test "X$pkg" = "X$p"; then
  7716. enable_fast_install=yes
  7717. fi
  7718. done
  7719. IFS=$lt_save_ifs
  7720. ;;
  7721. esac
  7722. else $as_nop
  7723. enable_fast_install=yes
  7724. fi
  7725. shared_archive_member_spec=
  7726. case $host,$enable_shared in
  7727. power*-*-aix[5-9]*,yes)
  7728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7729. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7730. # Check whether --with-aix-soname was given.
  7731. if test ${with_aix_soname+y}
  7732. then :
  7733. withval=$with_aix_soname; case $withval in
  7734. aix|svr4|both)
  7735. ;;
  7736. *)
  7737. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7738. ;;
  7739. esac
  7740. lt_cv_with_aix_soname=$with_aix_soname
  7741. else $as_nop
  7742. if test ${lt_cv_with_aix_soname+y}
  7743. then :
  7744. printf %s "(cached) " >&6
  7745. else $as_nop
  7746. lt_cv_with_aix_soname=aix
  7747. fi
  7748. with_aix_soname=$lt_cv_with_aix_soname
  7749. fi
  7750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7751. printf "%s\n" "$with_aix_soname" >&6; }
  7752. if test aix != "$with_aix_soname"; then
  7753. # For the AIX way of multilib, we name the shared archive member
  7754. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7755. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7756. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7757. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7758. if test 64 = "${OBJECT_MODE-32}"; then
  7759. shared_archive_member_spec=shr_64
  7760. else
  7761. shared_archive_member_spec=shr
  7762. fi
  7763. fi
  7764. ;;
  7765. *)
  7766. with_aix_soname=aix
  7767. ;;
  7768. esac
  7769. # This can be used to rebuild libtool when needed
  7770. LIBTOOL_DEPS=$ltmain
  7771. # Always use our own libtool.
  7772. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7773. test -z "$LN_S" && LN_S="ln -s"
  7774. if test -n "${ZSH_VERSION+set}"; then
  7775. setopt NO_GLOB_SUBST
  7776. fi
  7777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7778. printf %s "checking for objdir... " >&6; }
  7779. if test ${lt_cv_objdir+y}
  7780. then :
  7781. printf %s "(cached) " >&6
  7782. else $as_nop
  7783. rm -f .libs 2>/dev/null
  7784. mkdir .libs 2>/dev/null
  7785. if test -d .libs; then
  7786. lt_cv_objdir=.libs
  7787. else
  7788. # MS-DOS does not allow filenames that begin with a dot.
  7789. lt_cv_objdir=_libs
  7790. fi
  7791. rmdir .libs 2>/dev/null
  7792. fi
  7793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7794. printf "%s\n" "$lt_cv_objdir" >&6; }
  7795. objdir=$lt_cv_objdir
  7796. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7797. case $host_os in
  7798. aix3*)
  7799. # AIX sometimes has problems with the GCC collect2 program. For some
  7800. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7801. # vanish in a puff of smoke.
  7802. if test set != "${COLLECT_NAMES+set}"; then
  7803. COLLECT_NAMES=
  7804. export COLLECT_NAMES
  7805. fi
  7806. ;;
  7807. esac
  7808. # Global variables:
  7809. ofile=libtool
  7810. can_build_shared=yes
  7811. # All known linkers require a '.a' archive for static linking (except MSVC and
  7812. # ICC, which need '.lib').
  7813. libext=a
  7814. with_gnu_ld=$lt_cv_prog_gnu_ld
  7815. old_CC=$CC
  7816. old_CFLAGS=$CFLAGS
  7817. # Set sane defaults for various variables
  7818. test -z "$CC" && CC=cc
  7819. test -z "$LTCC" && LTCC=$CC
  7820. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7821. test -z "$LD" && LD=ld
  7822. test -z "$ac_objext" && ac_objext=o
  7823. func_cc_basename $compiler
  7824. cc_basename=$func_cc_basename_result
  7825. # Only perform the check for file, if the check method requires it
  7826. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7827. case $deplibs_check_method in
  7828. file_magic*)
  7829. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7831. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7832. if test ${lt_cv_path_MAGIC_CMD+y}
  7833. then :
  7834. printf %s "(cached) " >&6
  7835. else $as_nop
  7836. case $MAGIC_CMD in
  7837. [\\/*] | ?:[\\/]*)
  7838. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7839. ;;
  7840. *)
  7841. lt_save_MAGIC_CMD=$MAGIC_CMD
  7842. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7843. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7844. for ac_dir in $ac_dummy; do
  7845. IFS=$lt_save_ifs
  7846. test -z "$ac_dir" && ac_dir=.
  7847. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7848. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7849. if test -n "$file_magic_test_file"; then
  7850. case $deplibs_check_method in
  7851. "file_magic "*)
  7852. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7853. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7854. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7855. $EGREP "$file_magic_regex" > /dev/null; then
  7856. :
  7857. else
  7858. cat <<_LT_EOF 1>&2
  7859. *** Warning: the command libtool uses to detect shared libraries,
  7860. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7861. *** The result is that libtool may fail to recognize shared libraries
  7862. *** as such. This will affect the creation of libtool libraries that
  7863. *** depend on shared libraries, but programs linked with such libtool
  7864. *** libraries will work regardless of this problem. Nevertheless, you
  7865. *** may want to report the problem to your system manager and/or to
  7866. *** bug-libtool@gnu.org
  7867. _LT_EOF
  7868. fi ;;
  7869. esac
  7870. fi
  7871. break
  7872. fi
  7873. done
  7874. IFS=$lt_save_ifs
  7875. MAGIC_CMD=$lt_save_MAGIC_CMD
  7876. ;;
  7877. esac
  7878. fi
  7879. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7880. if test -n "$MAGIC_CMD"; then
  7881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7882. printf "%s\n" "$MAGIC_CMD" >&6; }
  7883. else
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7885. printf "%s\n" "no" >&6; }
  7886. fi
  7887. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7888. if test -n "$ac_tool_prefix"; then
  7889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7890. printf %s "checking for file... " >&6; }
  7891. if test ${lt_cv_path_MAGIC_CMD+y}
  7892. then :
  7893. printf %s "(cached) " >&6
  7894. else $as_nop
  7895. case $MAGIC_CMD in
  7896. [\\/*] | ?:[\\/]*)
  7897. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7898. ;;
  7899. *)
  7900. lt_save_MAGIC_CMD=$MAGIC_CMD
  7901. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7902. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7903. for ac_dir in $ac_dummy; do
  7904. IFS=$lt_save_ifs
  7905. test -z "$ac_dir" && ac_dir=.
  7906. if test -f "$ac_dir/file"; then
  7907. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7908. if test -n "$file_magic_test_file"; then
  7909. case $deplibs_check_method in
  7910. "file_magic "*)
  7911. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7912. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7913. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7914. $EGREP "$file_magic_regex" > /dev/null; then
  7915. :
  7916. else
  7917. cat <<_LT_EOF 1>&2
  7918. *** Warning: the command libtool uses to detect shared libraries,
  7919. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7920. *** The result is that libtool may fail to recognize shared libraries
  7921. *** as such. This will affect the creation of libtool libraries that
  7922. *** depend on shared libraries, but programs linked with such libtool
  7923. *** libraries will work regardless of this problem. Nevertheless, you
  7924. *** may want to report the problem to your system manager and/or to
  7925. *** bug-libtool@gnu.org
  7926. _LT_EOF
  7927. fi ;;
  7928. esac
  7929. fi
  7930. break
  7931. fi
  7932. done
  7933. IFS=$lt_save_ifs
  7934. MAGIC_CMD=$lt_save_MAGIC_CMD
  7935. ;;
  7936. esac
  7937. fi
  7938. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7939. if test -n "$MAGIC_CMD"; then
  7940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7941. printf "%s\n" "$MAGIC_CMD" >&6; }
  7942. else
  7943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7944. printf "%s\n" "no" >&6; }
  7945. fi
  7946. else
  7947. MAGIC_CMD=:
  7948. fi
  7949. fi
  7950. fi
  7951. ;;
  7952. esac
  7953. # Use C for the default configuration in the libtool script
  7954. lt_save_CC=$CC
  7955. ac_ext=c
  7956. ac_cpp='$CPP $CPPFLAGS'
  7957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7960. # Source file extension for C test sources.
  7961. ac_ext=c
  7962. # Object file extension for compiled C test sources.
  7963. objext=o
  7964. objext=$objext
  7965. # Code to be used in simple compile tests
  7966. lt_simple_compile_test_code="int some_variable = 0;"
  7967. # Code to be used in simple link tests
  7968. lt_simple_link_test_code='int main(){return(0);}'
  7969. # If no C compiler was specified, use CC.
  7970. LTCC=${LTCC-"$CC"}
  7971. # If no C compiler flags were specified, use CFLAGS.
  7972. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7973. # Allow CC to be a program name with arguments.
  7974. compiler=$CC
  7975. # Save the default compiler, since it gets overwritten when the other
  7976. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7977. compiler_DEFAULT=$CC
  7978. # save warnings/boilerplate of simple test code
  7979. ac_outfile=conftest.$ac_objext
  7980. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7981. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7982. _lt_compiler_boilerplate=`cat conftest.err`
  7983. $RM conftest*
  7984. ac_outfile=conftest.$ac_objext
  7985. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7986. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7987. _lt_linker_boilerplate=`cat conftest.err`
  7988. $RM -r conftest*
  7989. ## CAVEAT EMPTOR:
  7990. ## There is no encapsulation within the following macros, do not change
  7991. ## the running order or otherwise move them around unless you know exactly
  7992. ## what you are doing...
  7993. if test -n "$compiler"; then
  7994. lt_prog_compiler_no_builtin_flag=
  7995. if test yes = "$GCC"; then
  7996. case $cc_basename in
  7997. nvcc*)
  7998. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7999. *)
  8000. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8001. esac
  8002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8003. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8004. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8005. then :
  8006. printf %s "(cached) " >&6
  8007. else $as_nop
  8008. lt_cv_prog_compiler_rtti_exceptions=no
  8009. ac_outfile=conftest.$ac_objext
  8010. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8011. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8012. # Insert the option either (1) after the last *FLAGS variable, or
  8013. # (2) before a word containing "conftest.", or (3) at the end.
  8014. # Note that $ac_compile itself does not contain backslashes and begins
  8015. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8016. # The option is referenced via a variable to avoid confusing sed.
  8017. lt_compile=`echo "$ac_compile" | $SED \
  8018. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8019. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8020. -e 's:$: $lt_compiler_flag:'`
  8021. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8022. (eval "$lt_compile" 2>conftest.err)
  8023. ac_status=$?
  8024. cat conftest.err >&5
  8025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. if (exit $ac_status) && test -s "$ac_outfile"; then
  8027. # The compiler can only warn and ignore the option if not recognized
  8028. # So say no if there are warnings other than the usual output.
  8029. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8030. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8031. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8032. lt_cv_prog_compiler_rtti_exceptions=yes
  8033. fi
  8034. fi
  8035. $RM conftest*
  8036. fi
  8037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8038. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8039. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8040. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8041. else
  8042. :
  8043. fi
  8044. fi
  8045. lt_prog_compiler_wl=
  8046. lt_prog_compiler_pic=
  8047. lt_prog_compiler_static=
  8048. if test yes = "$GCC"; then
  8049. lt_prog_compiler_wl='-Wl,'
  8050. lt_prog_compiler_static='-static'
  8051. case $host_os in
  8052. aix*)
  8053. # All AIX code is PIC.
  8054. if test ia64 = "$host_cpu"; then
  8055. # AIX 5 now supports IA64 processor
  8056. lt_prog_compiler_static='-Bstatic'
  8057. fi
  8058. lt_prog_compiler_pic='-fPIC'
  8059. ;;
  8060. amigaos*)
  8061. case $host_cpu in
  8062. powerpc)
  8063. # see comment about AmigaOS4 .so support
  8064. lt_prog_compiler_pic='-fPIC'
  8065. ;;
  8066. m68k)
  8067. # FIXME: we need at least 68020 code to build shared libraries, but
  8068. # adding the '-m68020' flag to GCC prevents building anything better,
  8069. # like '-m68040'.
  8070. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8071. ;;
  8072. esac
  8073. ;;
  8074. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8075. # PIC is the default for these OSes.
  8076. ;;
  8077. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8078. # This hack is so that the source file can tell whether it is being
  8079. # built for inclusion in a dll (and should export symbols for example).
  8080. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8081. # (--disable-auto-import) libraries
  8082. lt_prog_compiler_pic='-DDLL_EXPORT'
  8083. case $host_os in
  8084. os2*)
  8085. lt_prog_compiler_static='$wl-static'
  8086. ;;
  8087. esac
  8088. ;;
  8089. darwin* | rhapsody*)
  8090. # PIC is the default on this platform
  8091. # Common symbols not allowed in MH_DYLIB files
  8092. lt_prog_compiler_pic='-fno-common'
  8093. ;;
  8094. haiku*)
  8095. # PIC is the default for Haiku.
  8096. # The "-static" flag exists, but is broken.
  8097. lt_prog_compiler_static=
  8098. ;;
  8099. hpux*)
  8100. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8101. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8102. # sets the default TLS model and affects inlining.
  8103. case $host_cpu in
  8104. hppa*64*)
  8105. # +Z the default
  8106. ;;
  8107. *)
  8108. lt_prog_compiler_pic='-fPIC'
  8109. ;;
  8110. esac
  8111. ;;
  8112. interix[3-9]*)
  8113. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8114. # Instead, we relocate shared libraries at runtime.
  8115. ;;
  8116. msdosdjgpp*)
  8117. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8118. # on systems that don't support them.
  8119. lt_prog_compiler_can_build_shared=no
  8120. enable_shared=no
  8121. ;;
  8122. *nto* | *qnx*)
  8123. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8124. # it will coredump.
  8125. lt_prog_compiler_pic='-fPIC -shared'
  8126. ;;
  8127. sysv4*MP*)
  8128. if test -d /usr/nec; then
  8129. lt_prog_compiler_pic=-Kconform_pic
  8130. fi
  8131. ;;
  8132. *)
  8133. lt_prog_compiler_pic='-fPIC'
  8134. ;;
  8135. esac
  8136. case $cc_basename in
  8137. nvcc*) # Cuda Compiler Driver 2.2
  8138. lt_prog_compiler_wl='-Xlinker '
  8139. if test -n "$lt_prog_compiler_pic"; then
  8140. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8141. fi
  8142. ;;
  8143. esac
  8144. else
  8145. # PORTME Check for flag to pass linker flags through the system compiler.
  8146. case $host_os in
  8147. aix*)
  8148. lt_prog_compiler_wl='-Wl,'
  8149. if test ia64 = "$host_cpu"; then
  8150. # AIX 5 now supports IA64 processor
  8151. lt_prog_compiler_static='-Bstatic'
  8152. else
  8153. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8154. fi
  8155. ;;
  8156. darwin* | rhapsody*)
  8157. # PIC is the default on this platform
  8158. # Common symbols not allowed in MH_DYLIB files
  8159. lt_prog_compiler_pic='-fno-common'
  8160. case $cc_basename in
  8161. nagfor*)
  8162. # NAG Fortran compiler
  8163. lt_prog_compiler_wl='-Wl,-Wl,,'
  8164. lt_prog_compiler_pic='-PIC'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. ;;
  8167. esac
  8168. ;;
  8169. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8170. # This hack is so that the source file can tell whether it is being
  8171. # built for inclusion in a dll (and should export symbols for example).
  8172. lt_prog_compiler_pic='-DDLL_EXPORT'
  8173. case $host_os in
  8174. os2*)
  8175. lt_prog_compiler_static='$wl-static'
  8176. ;;
  8177. esac
  8178. ;;
  8179. hpux9* | hpux10* | hpux11*)
  8180. lt_prog_compiler_wl='-Wl,'
  8181. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8182. # not for PA HP-UX.
  8183. case $host_cpu in
  8184. hppa*64*|ia64*)
  8185. # +Z the default
  8186. ;;
  8187. *)
  8188. lt_prog_compiler_pic='+Z'
  8189. ;;
  8190. esac
  8191. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8192. lt_prog_compiler_static='$wl-a ${wl}archive'
  8193. ;;
  8194. irix5* | irix6* | nonstopux*)
  8195. lt_prog_compiler_wl='-Wl,'
  8196. # PIC (with -KPIC) is the default.
  8197. lt_prog_compiler_static='-non_shared'
  8198. ;;
  8199. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8200. case $cc_basename in
  8201. # old Intel for x86_64, which still supported -KPIC.
  8202. ecc*)
  8203. lt_prog_compiler_wl='-Wl,'
  8204. lt_prog_compiler_pic='-KPIC'
  8205. lt_prog_compiler_static='-static'
  8206. ;;
  8207. # icc used to be incompatible with GCC.
  8208. # ICC 10 doesn't accept -KPIC any more.
  8209. icc* | ifort*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-fPIC'
  8212. lt_prog_compiler_static='-static'
  8213. ;;
  8214. # Lahey Fortran 8.1.
  8215. lf95*)
  8216. lt_prog_compiler_wl='-Wl,'
  8217. lt_prog_compiler_pic='--shared'
  8218. lt_prog_compiler_static='--static'
  8219. ;;
  8220. nagfor*)
  8221. # NAG Fortran compiler
  8222. lt_prog_compiler_wl='-Wl,-Wl,,'
  8223. lt_prog_compiler_pic='-PIC'
  8224. lt_prog_compiler_static='-Bstatic'
  8225. ;;
  8226. tcc*)
  8227. # Fabrice Bellard et al's Tiny C Compiler
  8228. lt_prog_compiler_wl='-Wl,'
  8229. lt_prog_compiler_pic='-fPIC'
  8230. lt_prog_compiler_static='-static'
  8231. ;;
  8232. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8233. # Portland Group compilers (*not* the Pentium gcc compiler,
  8234. # which looks to be a dead project)
  8235. lt_prog_compiler_wl='-Wl,'
  8236. lt_prog_compiler_pic='-fpic'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. ;;
  8239. ccc*)
  8240. lt_prog_compiler_wl='-Wl,'
  8241. # All Alpha code is PIC.
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. xl* | bgxl* | bgf* | mpixl*)
  8245. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_pic='-qpic'
  8248. lt_prog_compiler_static='-qstaticlink'
  8249. ;;
  8250. *)
  8251. case `$CC -V 2>&1 | sed 5q` in
  8252. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8253. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8254. lt_prog_compiler_pic='-KPIC'
  8255. lt_prog_compiler_static='-Bstatic'
  8256. lt_prog_compiler_wl=''
  8257. ;;
  8258. *Sun\ F* | *Sun*Fortran*)
  8259. lt_prog_compiler_pic='-KPIC'
  8260. lt_prog_compiler_static='-Bstatic'
  8261. lt_prog_compiler_wl='-Qoption ld '
  8262. ;;
  8263. *Sun\ C*)
  8264. # Sun C 5.9
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. lt_prog_compiler_wl='-Wl,'
  8268. ;;
  8269. *Intel*\ [CF]*Compiler*)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. lt_prog_compiler_pic='-fPIC'
  8272. lt_prog_compiler_static='-static'
  8273. ;;
  8274. *Portland\ Group*)
  8275. lt_prog_compiler_wl='-Wl,'
  8276. lt_prog_compiler_pic='-fpic'
  8277. lt_prog_compiler_static='-Bstatic'
  8278. ;;
  8279. esac
  8280. ;;
  8281. esac
  8282. ;;
  8283. newsos6)
  8284. lt_prog_compiler_pic='-KPIC'
  8285. lt_prog_compiler_static='-Bstatic'
  8286. ;;
  8287. *nto* | *qnx*)
  8288. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8289. # it will coredump.
  8290. lt_prog_compiler_pic='-fPIC -shared'
  8291. ;;
  8292. osf3* | osf4* | osf5*)
  8293. lt_prog_compiler_wl='-Wl,'
  8294. # All OSF/1 code is PIC.
  8295. lt_prog_compiler_static='-non_shared'
  8296. ;;
  8297. rdos*)
  8298. lt_prog_compiler_static='-non_shared'
  8299. ;;
  8300. solaris*)
  8301. lt_prog_compiler_pic='-KPIC'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. case $cc_basename in
  8304. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8305. lt_prog_compiler_wl='-Qoption ld ';;
  8306. *)
  8307. lt_prog_compiler_wl='-Wl,';;
  8308. esac
  8309. ;;
  8310. sunos4*)
  8311. lt_prog_compiler_wl='-Qoption ld '
  8312. lt_prog_compiler_pic='-PIC'
  8313. lt_prog_compiler_static='-Bstatic'
  8314. ;;
  8315. sysv4 | sysv4.2uw2* | sysv4.3*)
  8316. lt_prog_compiler_wl='-Wl,'
  8317. lt_prog_compiler_pic='-KPIC'
  8318. lt_prog_compiler_static='-Bstatic'
  8319. ;;
  8320. sysv4*MP*)
  8321. if test -d /usr/nec; then
  8322. lt_prog_compiler_pic='-Kconform_pic'
  8323. lt_prog_compiler_static='-Bstatic'
  8324. fi
  8325. ;;
  8326. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8327. lt_prog_compiler_wl='-Wl,'
  8328. lt_prog_compiler_pic='-KPIC'
  8329. lt_prog_compiler_static='-Bstatic'
  8330. ;;
  8331. unicos*)
  8332. lt_prog_compiler_wl='-Wl,'
  8333. lt_prog_compiler_can_build_shared=no
  8334. ;;
  8335. uts4*)
  8336. lt_prog_compiler_pic='-pic'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. *)
  8340. lt_prog_compiler_can_build_shared=no
  8341. ;;
  8342. esac
  8343. fi
  8344. case $host_os in
  8345. # For platforms that do not support PIC, -DPIC is meaningless:
  8346. *djgpp*)
  8347. lt_prog_compiler_pic=
  8348. ;;
  8349. *)
  8350. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8351. ;;
  8352. esac
  8353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8354. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8355. if test ${lt_cv_prog_compiler_pic+y}
  8356. then :
  8357. printf %s "(cached) " >&6
  8358. else $as_nop
  8359. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8360. fi
  8361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8362. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8363. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8364. #
  8365. # Check to make sure the PIC flag actually works.
  8366. #
  8367. if test -n "$lt_prog_compiler_pic"; then
  8368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8369. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8370. if test ${lt_cv_prog_compiler_pic_works+y}
  8371. then :
  8372. printf %s "(cached) " >&6
  8373. else $as_nop
  8374. lt_cv_prog_compiler_pic_works=no
  8375. ac_outfile=conftest.$ac_objext
  8376. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8377. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8378. # Insert the option either (1) after the last *FLAGS variable, or
  8379. # (2) before a word containing "conftest.", or (3) at the end.
  8380. # Note that $ac_compile itself does not contain backslashes and begins
  8381. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8382. # The option is referenced via a variable to avoid confusing sed.
  8383. lt_compile=`echo "$ac_compile" | $SED \
  8384. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8386. -e 's:$: $lt_compiler_flag:'`
  8387. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8388. (eval "$lt_compile" 2>conftest.err)
  8389. ac_status=$?
  8390. cat conftest.err >&5
  8391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8392. if (exit $ac_status) && test -s "$ac_outfile"; then
  8393. # The compiler can only warn and ignore the option if not recognized
  8394. # So say no if there are warnings other than the usual output.
  8395. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8397. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8398. lt_cv_prog_compiler_pic_works=yes
  8399. fi
  8400. fi
  8401. $RM conftest*
  8402. fi
  8403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8404. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8405. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8406. case $lt_prog_compiler_pic in
  8407. "" | " "*) ;;
  8408. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8409. esac
  8410. else
  8411. lt_prog_compiler_pic=
  8412. lt_prog_compiler_can_build_shared=no
  8413. fi
  8414. fi
  8415. #
  8416. # Check to make sure the static flag actually works.
  8417. #
  8418. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8420. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8421. if test ${lt_cv_prog_compiler_static_works+y}
  8422. then :
  8423. printf %s "(cached) " >&6
  8424. else $as_nop
  8425. lt_cv_prog_compiler_static_works=no
  8426. save_LDFLAGS=$LDFLAGS
  8427. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8428. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8429. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8430. # The linker can only warn and ignore the option if not recognized
  8431. # So say no if there are warnings
  8432. if test -s conftest.err; then
  8433. # Append any errors to the config.log.
  8434. cat conftest.err 1>&5
  8435. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8436. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8437. if diff conftest.exp conftest.er2 >/dev/null; then
  8438. lt_cv_prog_compiler_static_works=yes
  8439. fi
  8440. else
  8441. lt_cv_prog_compiler_static_works=yes
  8442. fi
  8443. fi
  8444. $RM -r conftest*
  8445. LDFLAGS=$save_LDFLAGS
  8446. fi
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8448. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8449. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8450. :
  8451. else
  8452. lt_prog_compiler_static=
  8453. fi
  8454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8455. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8456. if test ${lt_cv_prog_compiler_c_o+y}
  8457. then :
  8458. printf %s "(cached) " >&6
  8459. else $as_nop
  8460. lt_cv_prog_compiler_c_o=no
  8461. $RM -r conftest 2>/dev/null
  8462. mkdir conftest
  8463. cd conftest
  8464. mkdir out
  8465. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8466. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8467. # Insert the option either (1) after the last *FLAGS variable, or
  8468. # (2) before a word containing "conftest.", or (3) at the end.
  8469. # Note that $ac_compile itself does not contain backslashes and begins
  8470. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8471. lt_compile=`echo "$ac_compile" | $SED \
  8472. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8473. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8474. -e 's:$: $lt_compiler_flag:'`
  8475. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8476. (eval "$lt_compile" 2>out/conftest.err)
  8477. ac_status=$?
  8478. cat out/conftest.err >&5
  8479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8480. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8481. then
  8482. # The compiler can only warn and ignore the option if not recognized
  8483. # So say no if there are warnings
  8484. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8485. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8486. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8487. lt_cv_prog_compiler_c_o=yes
  8488. fi
  8489. fi
  8490. chmod u+w . 2>&5
  8491. $RM conftest*
  8492. # SGI C++ compiler will create directory out/ii_files/ for
  8493. # template instantiation
  8494. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8495. $RM out/* && rmdir out
  8496. cd ..
  8497. $RM -r conftest
  8498. $RM conftest*
  8499. fi
  8500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8501. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8503. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8504. if test ${lt_cv_prog_compiler_c_o+y}
  8505. then :
  8506. printf %s "(cached) " >&6
  8507. else $as_nop
  8508. lt_cv_prog_compiler_c_o=no
  8509. $RM -r conftest 2>/dev/null
  8510. mkdir conftest
  8511. cd conftest
  8512. mkdir out
  8513. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8514. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8515. # Insert the option either (1) after the last *FLAGS variable, or
  8516. # (2) before a word containing "conftest.", or (3) at the end.
  8517. # Note that $ac_compile itself does not contain backslashes and begins
  8518. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8519. lt_compile=`echo "$ac_compile" | $SED \
  8520. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8521. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8522. -e 's:$: $lt_compiler_flag:'`
  8523. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8524. (eval "$lt_compile" 2>out/conftest.err)
  8525. ac_status=$?
  8526. cat out/conftest.err >&5
  8527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8528. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8529. then
  8530. # The compiler can only warn and ignore the option if not recognized
  8531. # So say no if there are warnings
  8532. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8533. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8534. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8535. lt_cv_prog_compiler_c_o=yes
  8536. fi
  8537. fi
  8538. chmod u+w . 2>&5
  8539. $RM conftest*
  8540. # SGI C++ compiler will create directory out/ii_files/ for
  8541. # template instantiation
  8542. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8543. $RM out/* && rmdir out
  8544. cd ..
  8545. $RM -r conftest
  8546. $RM conftest*
  8547. fi
  8548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8549. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8550. hard_links=nottested
  8551. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8552. # do not overwrite the value of need_locks provided by the user
  8553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8554. printf %s "checking if we can lock with hard links... " >&6; }
  8555. hard_links=yes
  8556. $RM conftest*
  8557. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8558. touch conftest.a
  8559. ln conftest.a conftest.b 2>&5 || hard_links=no
  8560. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8562. printf "%s\n" "$hard_links" >&6; }
  8563. if test no = "$hard_links"; then
  8564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8565. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8566. need_locks=warn
  8567. fi
  8568. else
  8569. need_locks=no
  8570. fi
  8571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8572. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8573. runpath_var=
  8574. allow_undefined_flag=
  8575. always_export_symbols=no
  8576. archive_cmds=
  8577. archive_expsym_cmds=
  8578. compiler_needs_object=no
  8579. enable_shared_with_static_runtimes=no
  8580. export_dynamic_flag_spec=
  8581. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8582. hardcode_automatic=no
  8583. hardcode_direct=no
  8584. hardcode_direct_absolute=no
  8585. hardcode_libdir_flag_spec=
  8586. hardcode_libdir_separator=
  8587. hardcode_minus_L=no
  8588. hardcode_shlibpath_var=unsupported
  8589. inherit_rpath=no
  8590. link_all_deplibs=unknown
  8591. module_cmds=
  8592. module_expsym_cmds=
  8593. old_archive_from_new_cmds=
  8594. old_archive_from_expsyms_cmds=
  8595. thread_safe_flag_spec=
  8596. whole_archive_flag_spec=
  8597. # include_expsyms should be a list of space-separated symbols to be *always*
  8598. # included in the symbol list
  8599. include_expsyms=
  8600. # exclude_expsyms can be an extended regexp of symbols to exclude
  8601. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8602. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8603. # as well as any symbol that contains 'd'.
  8604. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8605. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8606. # platforms (ab)use it in PIC code, but their linkers get confused if
  8607. # the symbol is explicitly referenced. Since portable code cannot
  8608. # rely on this symbol name, it's probably fine to never include it in
  8609. # preloaded symbol tables.
  8610. # Exclude shared library initialization/finalization symbols.
  8611. extract_expsyms_cmds=
  8612. case $host_os in
  8613. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8614. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8615. # When not using gcc, we currently assume that we are using
  8616. # Microsoft Visual C++ or Intel C++ Compiler.
  8617. if test yes != "$GCC"; then
  8618. with_gnu_ld=no
  8619. fi
  8620. ;;
  8621. interix*)
  8622. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8623. with_gnu_ld=yes
  8624. ;;
  8625. openbsd* | bitrig*)
  8626. with_gnu_ld=no
  8627. ;;
  8628. esac
  8629. ld_shlibs=yes
  8630. # On some targets, GNU ld is compatible enough with the native linker
  8631. # that we're better off using the native interface for both.
  8632. lt_use_gnu_ld_interface=no
  8633. if test yes = "$with_gnu_ld"; then
  8634. case $host_os in
  8635. aix*)
  8636. # The AIX port of GNU ld has always aspired to compatibility
  8637. # with the native linker. However, as the warning in the GNU ld
  8638. # block says, versions before 2.19.5* couldn't really create working
  8639. # shared libraries, regardless of the interface used.
  8640. case `$LD -v 2>&1` in
  8641. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8642. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8643. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8644. *)
  8645. lt_use_gnu_ld_interface=yes
  8646. ;;
  8647. esac
  8648. ;;
  8649. *)
  8650. lt_use_gnu_ld_interface=yes
  8651. ;;
  8652. esac
  8653. fi
  8654. if test yes = "$lt_use_gnu_ld_interface"; then
  8655. # If archive_cmds runs LD, not CC, wlarc should be empty
  8656. wlarc='$wl'
  8657. # Set some defaults for GNU ld with shared library support. These
  8658. # are reset later if shared libraries are not supported. Putting them
  8659. # here allows them to be overridden if necessary.
  8660. runpath_var=LD_RUN_PATH
  8661. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8662. export_dynamic_flag_spec='$wl--export-dynamic'
  8663. # ancient GNU ld didn't support --whole-archive et. al.
  8664. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8665. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8666. else
  8667. whole_archive_flag_spec=
  8668. fi
  8669. supports_anon_versioning=no
  8670. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8671. *GNU\ gold*) supports_anon_versioning=yes ;;
  8672. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8673. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8674. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8675. *\ 2.11.*) ;; # other 2.11 versions
  8676. *) supports_anon_versioning=yes ;;
  8677. esac
  8678. # See if GNU ld supports shared libraries.
  8679. case $host_os in
  8680. aix[3-9]*)
  8681. # On AIX/PPC, the GNU linker is very broken
  8682. if test ia64 != "$host_cpu"; then
  8683. ld_shlibs=no
  8684. cat <<_LT_EOF 1>&2
  8685. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8686. *** to be unable to reliably create shared libraries on AIX.
  8687. *** Therefore, libtool is disabling shared libraries support. If you
  8688. *** really care for shared libraries, you may want to install binutils
  8689. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8690. *** You will then need to restart the configuration process.
  8691. _LT_EOF
  8692. fi
  8693. ;;
  8694. amigaos*)
  8695. case $host_cpu in
  8696. powerpc)
  8697. # see comment about AmigaOS4 .so support
  8698. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8699. archive_expsym_cmds=''
  8700. ;;
  8701. m68k)
  8702. 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)'
  8703. hardcode_libdir_flag_spec='-L$libdir'
  8704. hardcode_minus_L=yes
  8705. ;;
  8706. esac
  8707. ;;
  8708. beos*)
  8709. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8710. allow_undefined_flag=unsupported
  8711. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8712. # support --undefined. This deserves some investigation. FIXME
  8713. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8714. else
  8715. ld_shlibs=no
  8716. fi
  8717. ;;
  8718. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8719. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8720. # as there is no search path for DLLs.
  8721. hardcode_libdir_flag_spec='-L$libdir'
  8722. export_dynamic_flag_spec='$wl--export-all-symbols'
  8723. allow_undefined_flag=unsupported
  8724. always_export_symbols=no
  8725. enable_shared_with_static_runtimes=yes
  8726. 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'
  8727. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8728. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8729. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8730. # If the export-symbols file already is a .def file, use it as
  8731. # is; otherwise, prepend EXPORTS...
  8732. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8733. cp $export_symbols $output_objdir/$soname.def;
  8734. else
  8735. echo EXPORTS > $output_objdir/$soname.def;
  8736. cat $export_symbols >> $output_objdir/$soname.def;
  8737. fi~
  8738. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8739. else
  8740. ld_shlibs=no
  8741. fi
  8742. ;;
  8743. haiku*)
  8744. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8745. link_all_deplibs=yes
  8746. ;;
  8747. os2*)
  8748. hardcode_libdir_flag_spec='-L$libdir'
  8749. hardcode_minus_L=yes
  8750. allow_undefined_flag=unsupported
  8751. shrext_cmds=.dll
  8752. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8753. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8754. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8755. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8756. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8757. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8758. emximp -o $lib $output_objdir/$libname.def'
  8759. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8760. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8761. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8762. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8763. prefix_cmds="$SED"~
  8764. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8765. prefix_cmds="$prefix_cmds -e 1d";
  8766. fi~
  8767. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8768. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8769. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8770. emximp -o $lib $output_objdir/$libname.def'
  8771. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8772. enable_shared_with_static_runtimes=yes
  8773. file_list_spec='@'
  8774. ;;
  8775. interix[3-9]*)
  8776. hardcode_direct=no
  8777. hardcode_shlibpath_var=no
  8778. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8779. export_dynamic_flag_spec='$wl-E'
  8780. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8781. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8782. # default) and relocated if they conflict, which is a slow very memory
  8783. # consuming and fragmenting process. To avoid this, we pick a random,
  8784. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8785. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8786. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8787. 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'
  8788. ;;
  8789. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8790. tmp_diet=no
  8791. if test linux-dietlibc = "$host_os"; then
  8792. case $cc_basename in
  8793. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8794. esac
  8795. fi
  8796. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8797. && test no = "$tmp_diet"
  8798. then
  8799. tmp_addflag=' $pic_flag'
  8800. tmp_sharedflag='-shared'
  8801. case $cc_basename,$host_cpu in
  8802. pgcc*) # Portland Group C compiler
  8803. 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'
  8804. tmp_addflag=' $pic_flag'
  8805. ;;
  8806. pgf77* | pgf90* | pgf95* | pgfortran*)
  8807. # Portland Group f77 and f90 compilers
  8808. 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'
  8809. tmp_addflag=' $pic_flag -Mnomain' ;;
  8810. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8811. tmp_addflag=' -i_dynamic' ;;
  8812. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8813. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8814. ifc* | ifort*) # Intel Fortran compiler
  8815. tmp_addflag=' -nofor_main' ;;
  8816. lf95*) # Lahey Fortran 8.1
  8817. whole_archive_flag_spec=
  8818. tmp_sharedflag='--shared' ;;
  8819. nagfor*) # NAGFOR 5.3
  8820. tmp_sharedflag='-Wl,-shared' ;;
  8821. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8822. tmp_sharedflag='-qmkshrobj'
  8823. tmp_addflag= ;;
  8824. nvcc*) # Cuda Compiler Driver 2.2
  8825. 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'
  8826. compiler_needs_object=yes
  8827. ;;
  8828. esac
  8829. case `$CC -V 2>&1 | sed 5q` in
  8830. *Sun\ C*) # Sun C 5.9
  8831. 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'
  8832. compiler_needs_object=yes
  8833. tmp_sharedflag='-G' ;;
  8834. *Sun\ F*) # Sun Fortran 8.3
  8835. tmp_sharedflag='-G' ;;
  8836. esac
  8837. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8838. if test yes = "$supports_anon_versioning"; then
  8839. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8840. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8841. echo "local: *; };" >> $output_objdir/$libname.ver~
  8842. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8843. fi
  8844. case $cc_basename in
  8845. tcc*)
  8846. export_dynamic_flag_spec='-rdynamic'
  8847. ;;
  8848. xlf* | bgf* | bgxlf* | mpixlf*)
  8849. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8850. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8851. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8852. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8853. if test yes = "$supports_anon_versioning"; then
  8854. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8855. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8856. echo "local: *; };" >> $output_objdir/$libname.ver~
  8857. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8858. fi
  8859. ;;
  8860. esac
  8861. else
  8862. ld_shlibs=no
  8863. fi
  8864. ;;
  8865. netbsd*)
  8866. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8867. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8868. wlarc=
  8869. else
  8870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8871. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8872. fi
  8873. ;;
  8874. solaris*)
  8875. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8876. ld_shlibs=no
  8877. cat <<_LT_EOF 1>&2
  8878. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8879. *** create shared libraries on Solaris systems. Therefore, libtool
  8880. *** is disabling shared libraries support. We urge you to upgrade GNU
  8881. *** binutils to release 2.9.1 or newer. Another option is to modify
  8882. *** your PATH or compiler configuration so that the native linker is
  8883. *** used, and then restart.
  8884. _LT_EOF
  8885. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8886. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8887. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8888. else
  8889. ld_shlibs=no
  8890. fi
  8891. ;;
  8892. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8893. case `$LD -v 2>&1` in
  8894. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8895. ld_shlibs=no
  8896. cat <<_LT_EOF 1>&2
  8897. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8898. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8899. *** is disabling shared libraries support. We urge you to upgrade GNU
  8900. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8901. *** your PATH or compiler configuration so that the native linker is
  8902. *** used, and then restart.
  8903. _LT_EOF
  8904. ;;
  8905. *)
  8906. # For security reasons, it is highly recommended that you always
  8907. # use absolute paths for naming shared libraries, and exclude the
  8908. # DT_RUNPATH tag from executables and libraries. But doing so
  8909. # requires that you compile everything twice, which is a pain.
  8910. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8911. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8913. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8914. else
  8915. ld_shlibs=no
  8916. fi
  8917. ;;
  8918. esac
  8919. ;;
  8920. sunos4*)
  8921. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8922. wlarc=
  8923. hardcode_direct=yes
  8924. hardcode_shlibpath_var=no
  8925. ;;
  8926. *)
  8927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8928. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8929. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8930. else
  8931. ld_shlibs=no
  8932. fi
  8933. ;;
  8934. esac
  8935. if test no = "$ld_shlibs"; then
  8936. runpath_var=
  8937. hardcode_libdir_flag_spec=
  8938. export_dynamic_flag_spec=
  8939. whole_archive_flag_spec=
  8940. fi
  8941. else
  8942. # PORTME fill in a description of your system's linker (not GNU ld)
  8943. case $host_os in
  8944. aix3*)
  8945. allow_undefined_flag=unsupported
  8946. always_export_symbols=yes
  8947. 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'
  8948. # Note: this linker hardcodes the directories in LIBPATH if there
  8949. # are no directories specified by -L.
  8950. hardcode_minus_L=yes
  8951. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8952. # Neither direct hardcoding nor static linking is supported with a
  8953. # broken collect2.
  8954. hardcode_direct=unsupported
  8955. fi
  8956. ;;
  8957. aix[4-9]*)
  8958. if test ia64 = "$host_cpu"; then
  8959. # On IA64, the linker does run time linking by default, so we don't
  8960. # have to do anything special.
  8961. aix_use_runtimelinking=no
  8962. exp_sym_flag='-Bexport'
  8963. no_entry_flag=
  8964. else
  8965. # If we're using GNU nm, then we don't want the "-C" option.
  8966. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8967. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8968. # weak defined symbols like other global defined symbols, whereas
  8969. # GNU nm marks them as "W".
  8970. # While the 'weak' keyword is ignored in the Export File, we need
  8971. # it in the Import File for the 'aix-soname' feature, so we have
  8972. # to replace the "-B" option with "-P" for AIX nm.
  8973. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8974. 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'
  8975. else
  8976. 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'
  8977. fi
  8978. aix_use_runtimelinking=no
  8979. # Test if we are trying to use run time linking or normal
  8980. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8981. # have runtime linking enabled, and use it for executables.
  8982. # For shared libraries, we enable/disable runtime linking
  8983. # depending on the kind of the shared library created -
  8984. # when "with_aix_soname,aix_use_runtimelinking" is:
  8985. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8986. # "aix,yes" lib.so shared, rtl:yes, for executables
  8987. # lib.a static archive
  8988. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8989. # lib.a(lib.so.V) shared, rtl:no, for executables
  8990. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8991. # lib.a(lib.so.V) shared, rtl:no
  8992. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8993. # lib.a static archive
  8994. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8995. for ld_flag in $LDFLAGS; do
  8996. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8997. aix_use_runtimelinking=yes
  8998. break
  8999. fi
  9000. done
  9001. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9002. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9003. # so we don't have lib.a shared libs to link our executables.
  9004. # We have to force runtime linking in this case.
  9005. aix_use_runtimelinking=yes
  9006. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9007. fi
  9008. ;;
  9009. esac
  9010. exp_sym_flag='-bexport'
  9011. no_entry_flag='-bnoentry'
  9012. fi
  9013. # When large executables or shared objects are built, AIX ld can
  9014. # have problems creating the table of contents. If linking a library
  9015. # or program results in "error TOC overflow" add -mminimal-toc to
  9016. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9017. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9018. archive_cmds=''
  9019. hardcode_direct=yes
  9020. hardcode_direct_absolute=yes
  9021. hardcode_libdir_separator=':'
  9022. link_all_deplibs=yes
  9023. file_list_spec='$wl-f,'
  9024. case $with_aix_soname,$aix_use_runtimelinking in
  9025. aix,*) ;; # traditional, no import file
  9026. svr4,* | *,yes) # use import file
  9027. # The Import File defines what to hardcode.
  9028. hardcode_direct=no
  9029. hardcode_direct_absolute=no
  9030. ;;
  9031. esac
  9032. if test yes = "$GCC"; then
  9033. case $host_os in aix4.[012]|aix4.[012].*)
  9034. # We only want to do this on AIX 4.2 and lower, the check
  9035. # below for broken collect2 doesn't work under 4.3+
  9036. collect2name=`$CC -print-prog-name=collect2`
  9037. if test -f "$collect2name" &&
  9038. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9039. then
  9040. # We have reworked collect2
  9041. :
  9042. else
  9043. # We have old collect2
  9044. hardcode_direct=unsupported
  9045. # It fails to find uninstalled libraries when the uninstalled
  9046. # path is not listed in the libpath. Setting hardcode_minus_L
  9047. # to unsupported forces relinking
  9048. hardcode_minus_L=yes
  9049. hardcode_libdir_flag_spec='-L$libdir'
  9050. hardcode_libdir_separator=
  9051. fi
  9052. ;;
  9053. esac
  9054. shared_flag='-shared'
  9055. if test yes = "$aix_use_runtimelinking"; then
  9056. shared_flag="$shared_flag "'$wl-G'
  9057. fi
  9058. # Need to ensure runtime linking is disabled for the traditional
  9059. # shared library, or the linker may eventually find shared libraries
  9060. # /with/ Import File - we do not want to mix them.
  9061. shared_flag_aix='-shared'
  9062. shared_flag_svr4='-shared $wl-G'
  9063. else
  9064. # not using gcc
  9065. if test ia64 = "$host_cpu"; then
  9066. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9067. # chokes on -Wl,-G. The following line is correct:
  9068. shared_flag='-G'
  9069. else
  9070. if test yes = "$aix_use_runtimelinking"; then
  9071. shared_flag='$wl-G'
  9072. else
  9073. shared_flag='$wl-bM:SRE'
  9074. fi
  9075. shared_flag_aix='$wl-bM:SRE'
  9076. shared_flag_svr4='$wl-G'
  9077. fi
  9078. fi
  9079. export_dynamic_flag_spec='$wl-bexpall'
  9080. # It seems that -bexpall does not export symbols beginning with
  9081. # underscore (_), so it is better to generate a list of symbols to export.
  9082. always_export_symbols=yes
  9083. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9084. # Warning - without using the other runtime loading flags (-brtl),
  9085. # -berok will link without error, but may produce a broken library.
  9086. allow_undefined_flag='-berok'
  9087. # Determine the default libpath from the value encoded in an
  9088. # empty executable.
  9089. if test set = "${lt_cv_aix_libpath+set}"; then
  9090. aix_libpath=$lt_cv_aix_libpath
  9091. else
  9092. if test ${lt_cv_aix_libpath_+y}
  9093. then :
  9094. printf %s "(cached) " >&6
  9095. else $as_nop
  9096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9097. /* end confdefs.h. */
  9098. int
  9099. main (void)
  9100. {
  9101. ;
  9102. return 0;
  9103. }
  9104. _ACEOF
  9105. if ac_fn_c_try_link "$LINENO"
  9106. then :
  9107. lt_aix_libpath_sed='
  9108. /Import File Strings/,/^$/ {
  9109. /^0/ {
  9110. s/^0 *\([^ ]*\) *$/\1/
  9111. p
  9112. }
  9113. }'
  9114. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9115. # Check for a 64-bit object if we didn't find anything.
  9116. if test -z "$lt_cv_aix_libpath_"; then
  9117. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9118. fi
  9119. fi
  9120. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9121. conftest$ac_exeext conftest.$ac_ext
  9122. if test -z "$lt_cv_aix_libpath_"; then
  9123. lt_cv_aix_libpath_=/usr/lib:/lib
  9124. fi
  9125. fi
  9126. aix_libpath=$lt_cv_aix_libpath_
  9127. fi
  9128. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9129. 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
  9130. else
  9131. if test ia64 = "$host_cpu"; then
  9132. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9133. allow_undefined_flag="-z nodefs"
  9134. 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"
  9135. else
  9136. # Determine the default libpath from the value encoded in an
  9137. # empty executable.
  9138. if test set = "${lt_cv_aix_libpath+set}"; then
  9139. aix_libpath=$lt_cv_aix_libpath
  9140. else
  9141. if test ${lt_cv_aix_libpath_+y}
  9142. then :
  9143. printf %s "(cached) " >&6
  9144. else $as_nop
  9145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9146. /* end confdefs.h. */
  9147. int
  9148. main (void)
  9149. {
  9150. ;
  9151. return 0;
  9152. }
  9153. _ACEOF
  9154. if ac_fn_c_try_link "$LINENO"
  9155. then :
  9156. lt_aix_libpath_sed='
  9157. /Import File Strings/,/^$/ {
  9158. /^0/ {
  9159. s/^0 *\([^ ]*\) *$/\1/
  9160. p
  9161. }
  9162. }'
  9163. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9164. # Check for a 64-bit object if we didn't find anything.
  9165. if test -z "$lt_cv_aix_libpath_"; then
  9166. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9167. fi
  9168. fi
  9169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9170. conftest$ac_exeext conftest.$ac_ext
  9171. if test -z "$lt_cv_aix_libpath_"; then
  9172. lt_cv_aix_libpath_=/usr/lib:/lib
  9173. fi
  9174. fi
  9175. aix_libpath=$lt_cv_aix_libpath_
  9176. fi
  9177. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9178. # Warning - without using the other run time loading flags,
  9179. # -berok will link without error, but may produce a broken library.
  9180. no_undefined_flag=' $wl-bernotok'
  9181. allow_undefined_flag=' $wl-berok'
  9182. if test yes = "$with_gnu_ld"; then
  9183. # We only use this code for GNU lds that support --whole-archive.
  9184. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9185. else
  9186. # Exported symbols can be pulled into shared objects from archives
  9187. whole_archive_flag_spec='$convenience'
  9188. fi
  9189. archive_cmds_need_lc=yes
  9190. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9191. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9192. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9193. if test svr4 != "$with_aix_soname"; then
  9194. # This is similar to how AIX traditionally builds its shared libraries.
  9195. 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'
  9196. fi
  9197. if test aix != "$with_aix_soname"; then
  9198. 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'
  9199. else
  9200. # used by -dlpreopen to get the symbols
  9201. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9202. fi
  9203. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9204. fi
  9205. fi
  9206. ;;
  9207. amigaos*)
  9208. case $host_cpu in
  9209. powerpc)
  9210. # see comment about AmigaOS4 .so support
  9211. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9212. archive_expsym_cmds=''
  9213. ;;
  9214. m68k)
  9215. 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)'
  9216. hardcode_libdir_flag_spec='-L$libdir'
  9217. hardcode_minus_L=yes
  9218. ;;
  9219. esac
  9220. ;;
  9221. bsdi[45]*)
  9222. export_dynamic_flag_spec=-rdynamic
  9223. ;;
  9224. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9225. # When not using gcc, we currently assume that we are using
  9226. # Microsoft Visual C++ or Intel C++ Compiler.
  9227. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9228. # no search path for DLLs.
  9229. case $cc_basename in
  9230. cl* | icl*)
  9231. # Native MSVC or ICC
  9232. hardcode_libdir_flag_spec=' '
  9233. allow_undefined_flag=unsupported
  9234. always_export_symbols=yes
  9235. file_list_spec='@'
  9236. # Tell ltmain to make .lib files, not .a files.
  9237. libext=lib
  9238. # Tell ltmain to make .dll files, not .so files.
  9239. shrext_cmds=.dll
  9240. # FIXME: Setting linknames here is a bad hack.
  9241. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9242. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9243. cp "$export_symbols" "$output_objdir/$soname.def";
  9244. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9245. else
  9246. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9247. fi~
  9248. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9249. linknames='
  9250. # The linker will not automatically build a static lib if we build a DLL.
  9251. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9252. enable_shared_with_static_runtimes=yes
  9253. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9254. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9255. # Don't use ranlib
  9256. old_postinstall_cmds='chmod 644 $oldlib'
  9257. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9258. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9259. case $lt_outputfile in
  9260. *.exe|*.EXE) ;;
  9261. *)
  9262. lt_outputfile=$lt_outputfile.exe
  9263. lt_tool_outputfile=$lt_tool_outputfile.exe
  9264. ;;
  9265. esac~
  9266. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9267. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9268. $RM "$lt_outputfile.manifest";
  9269. fi'
  9270. ;;
  9271. *)
  9272. # Assume MSVC and ICC wrapper
  9273. hardcode_libdir_flag_spec=' '
  9274. allow_undefined_flag=unsupported
  9275. # Tell ltmain to make .lib files, not .a files.
  9276. libext=lib
  9277. # Tell ltmain to make .dll files, not .so files.
  9278. shrext_cmds=.dll
  9279. # FIXME: Setting linknames here is a bad hack.
  9280. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9281. # The linker will automatically build a .lib file if we build a DLL.
  9282. old_archive_from_new_cmds='true'
  9283. # FIXME: Should let the user specify the lib program.
  9284. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9285. enable_shared_with_static_runtimes=yes
  9286. ;;
  9287. esac
  9288. ;;
  9289. darwin* | rhapsody*)
  9290. archive_cmds_need_lc=no
  9291. hardcode_direct=no
  9292. hardcode_automatic=yes
  9293. hardcode_shlibpath_var=unsupported
  9294. if test yes = "$lt_cv_ld_force_load"; then
  9295. 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\"`'
  9296. else
  9297. whole_archive_flag_spec=''
  9298. fi
  9299. link_all_deplibs=yes
  9300. allow_undefined_flag=$_lt_dar_allow_undefined
  9301. case $cc_basename in
  9302. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9303. *) _lt_dar_can_shared=$GCC ;;
  9304. esac
  9305. if test yes = "$_lt_dar_can_shared"; then
  9306. output_verbose_link_cmd=func_echo_all
  9307. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9308. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9309. 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"
  9310. 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"
  9311. else
  9312. ld_shlibs=no
  9313. fi
  9314. ;;
  9315. dgux*)
  9316. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9317. hardcode_libdir_flag_spec='-L$libdir'
  9318. hardcode_shlibpath_var=no
  9319. ;;
  9320. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9321. # support. Future versions do this automatically, but an explicit c++rt0.o
  9322. # does not break anything, and helps significantly (at the cost of a little
  9323. # extra space).
  9324. freebsd2.2*)
  9325. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9326. hardcode_libdir_flag_spec='-R$libdir'
  9327. hardcode_direct=yes
  9328. hardcode_shlibpath_var=no
  9329. ;;
  9330. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9331. freebsd2.*)
  9332. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9333. hardcode_direct=yes
  9334. hardcode_minus_L=yes
  9335. hardcode_shlibpath_var=no
  9336. ;;
  9337. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9338. freebsd* | dragonfly* | midnightbsd*)
  9339. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9340. hardcode_libdir_flag_spec='-R$libdir'
  9341. hardcode_direct=yes
  9342. hardcode_shlibpath_var=no
  9343. ;;
  9344. hpux9*)
  9345. if test yes = "$GCC"; then
  9346. 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'
  9347. else
  9348. 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'
  9349. fi
  9350. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9351. hardcode_libdir_separator=:
  9352. hardcode_direct=yes
  9353. # hardcode_minus_L: Not really in the search PATH,
  9354. # but as the default location of the library.
  9355. hardcode_minus_L=yes
  9356. export_dynamic_flag_spec='$wl-E'
  9357. ;;
  9358. hpux10*)
  9359. if test yes,no = "$GCC,$with_gnu_ld"; then
  9360. archive_cmds='$CC -shared $pic_flag $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. if test no = "$with_gnu_ld"; then
  9365. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9366. hardcode_libdir_separator=:
  9367. hardcode_direct=yes
  9368. hardcode_direct_absolute=yes
  9369. export_dynamic_flag_spec='$wl-E'
  9370. # hardcode_minus_L: Not really in the search PATH,
  9371. # but as the default location of the library.
  9372. hardcode_minus_L=yes
  9373. fi
  9374. ;;
  9375. hpux11*)
  9376. if test yes,no = "$GCC,$with_gnu_ld"; then
  9377. case $host_cpu in
  9378. hppa*64*)
  9379. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9380. ;;
  9381. ia64*)
  9382. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9383. ;;
  9384. *)
  9385. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9386. ;;
  9387. esac
  9388. else
  9389. case $host_cpu in
  9390. hppa*64*)
  9391. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9392. ;;
  9393. ia64*)
  9394. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9395. ;;
  9396. *)
  9397. # Older versions of the 11.00 compiler do not understand -b yet
  9398. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9400. printf %s "checking if $CC understands -b... " >&6; }
  9401. if test ${lt_cv_prog_compiler__b+y}
  9402. then :
  9403. printf %s "(cached) " >&6
  9404. else $as_nop
  9405. lt_cv_prog_compiler__b=no
  9406. save_LDFLAGS=$LDFLAGS
  9407. LDFLAGS="$LDFLAGS -b"
  9408. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9409. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9410. # The linker can only warn and ignore the option if not recognized
  9411. # So say no if there are warnings
  9412. if test -s conftest.err; then
  9413. # Append any errors to the config.log.
  9414. cat conftest.err 1>&5
  9415. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9416. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9417. if diff conftest.exp conftest.er2 >/dev/null; then
  9418. lt_cv_prog_compiler__b=yes
  9419. fi
  9420. else
  9421. lt_cv_prog_compiler__b=yes
  9422. fi
  9423. fi
  9424. $RM -r conftest*
  9425. LDFLAGS=$save_LDFLAGS
  9426. fi
  9427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9428. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9429. if test yes = "$lt_cv_prog_compiler__b"; then
  9430. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9431. else
  9432. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9433. fi
  9434. ;;
  9435. esac
  9436. fi
  9437. if test no = "$with_gnu_ld"; then
  9438. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9439. hardcode_libdir_separator=:
  9440. case $host_cpu in
  9441. hppa*64*|ia64*)
  9442. hardcode_direct=no
  9443. hardcode_shlibpath_var=no
  9444. ;;
  9445. *)
  9446. hardcode_direct=yes
  9447. hardcode_direct_absolute=yes
  9448. export_dynamic_flag_spec='$wl-E'
  9449. # hardcode_minus_L: Not really in the search PATH,
  9450. # but as the default location of the library.
  9451. hardcode_minus_L=yes
  9452. ;;
  9453. esac
  9454. fi
  9455. ;;
  9456. irix5* | irix6* | nonstopux*)
  9457. if test yes = "$GCC"; then
  9458. 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'
  9459. # Try to use the -exported_symbol ld option, if it does not
  9460. # work, assume that -exports_file does not work either and
  9461. # implicitly export all symbols.
  9462. # This should be the same for all languages, so no per-tag cache variable.
  9463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9464. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9465. if test ${lt_cv_irix_exported_symbol+y}
  9466. then :
  9467. printf %s "(cached) " >&6
  9468. else $as_nop
  9469. save_LDFLAGS=$LDFLAGS
  9470. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. int foo (void) { return 0; }
  9474. _ACEOF
  9475. if ac_fn_c_try_link "$LINENO"
  9476. then :
  9477. lt_cv_irix_exported_symbol=yes
  9478. else $as_nop
  9479. lt_cv_irix_exported_symbol=no
  9480. fi
  9481. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9482. conftest$ac_exeext conftest.$ac_ext
  9483. LDFLAGS=$save_LDFLAGS
  9484. fi
  9485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9486. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9487. if test yes = "$lt_cv_irix_exported_symbol"; then
  9488. 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'
  9489. fi
  9490. else
  9491. 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'
  9492. 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'
  9493. fi
  9494. archive_cmds_need_lc='no'
  9495. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9496. hardcode_libdir_separator=:
  9497. inherit_rpath=yes
  9498. link_all_deplibs=yes
  9499. ;;
  9500. linux*)
  9501. case $cc_basename in
  9502. tcc*)
  9503. # Fabrice Bellard et al's Tiny C Compiler
  9504. ld_shlibs=yes
  9505. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9506. ;;
  9507. esac
  9508. ;;
  9509. netbsd*)
  9510. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9511. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9512. else
  9513. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9514. fi
  9515. hardcode_libdir_flag_spec='-R$libdir'
  9516. hardcode_direct=yes
  9517. hardcode_shlibpath_var=no
  9518. ;;
  9519. newsos6)
  9520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9521. hardcode_direct=yes
  9522. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9523. hardcode_libdir_separator=:
  9524. hardcode_shlibpath_var=no
  9525. ;;
  9526. *nto* | *qnx*)
  9527. ;;
  9528. openbsd* | bitrig*)
  9529. if test -f /usr/libexec/ld.so; then
  9530. hardcode_direct=yes
  9531. hardcode_shlibpath_var=no
  9532. hardcode_direct_absolute=yes
  9533. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9534. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9535. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9536. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9537. export_dynamic_flag_spec='$wl-E'
  9538. else
  9539. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9540. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9541. fi
  9542. else
  9543. ld_shlibs=no
  9544. fi
  9545. ;;
  9546. os2*)
  9547. hardcode_libdir_flag_spec='-L$libdir'
  9548. hardcode_minus_L=yes
  9549. allow_undefined_flag=unsupported
  9550. shrext_cmds=.dll
  9551. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9552. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9553. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9554. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9555. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9556. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9557. emximp -o $lib $output_objdir/$libname.def'
  9558. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9559. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9560. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9561. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9562. prefix_cmds="$SED"~
  9563. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9564. prefix_cmds="$prefix_cmds -e 1d";
  9565. fi~
  9566. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9567. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9568. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9569. emximp -o $lib $output_objdir/$libname.def'
  9570. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9571. enable_shared_with_static_runtimes=yes
  9572. file_list_spec='@'
  9573. ;;
  9574. osf3*)
  9575. if test yes = "$GCC"; then
  9576. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9577. 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'
  9578. else
  9579. allow_undefined_flag=' -expect_unresolved \*'
  9580. 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'
  9581. fi
  9582. archive_cmds_need_lc='no'
  9583. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9584. hardcode_libdir_separator=:
  9585. ;;
  9586. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9587. if test yes = "$GCC"; then
  9588. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9589. 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'
  9590. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9591. else
  9592. allow_undefined_flag=' -expect_unresolved \*'
  9593. 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'
  9594. 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~
  9595. $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'
  9596. # Both c and cxx compiler support -rpath directly
  9597. hardcode_libdir_flag_spec='-rpath $libdir'
  9598. fi
  9599. archive_cmds_need_lc='no'
  9600. hardcode_libdir_separator=:
  9601. ;;
  9602. solaris*)
  9603. no_undefined_flag=' -z defs'
  9604. if test yes = "$GCC"; then
  9605. wlarc='$wl'
  9606. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9607. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9608. $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'
  9609. else
  9610. case `$CC -V 2>&1` in
  9611. *"Compilers 5.0"*)
  9612. wlarc=''
  9613. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9614. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9615. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9616. ;;
  9617. *)
  9618. wlarc='$wl'
  9619. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9620. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9621. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9622. ;;
  9623. esac
  9624. fi
  9625. hardcode_libdir_flag_spec='-R$libdir'
  9626. hardcode_shlibpath_var=no
  9627. case $host_os in
  9628. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9629. *)
  9630. # The compiler driver will combine and reorder linker options,
  9631. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9632. # but is careful enough not to reorder.
  9633. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9634. if test yes = "$GCC"; then
  9635. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9636. else
  9637. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9638. fi
  9639. ;;
  9640. esac
  9641. link_all_deplibs=yes
  9642. ;;
  9643. sunos4*)
  9644. if test sequent = "$host_vendor"; then
  9645. # Use $CC to link under sequent, because it throws in some extra .o
  9646. # files that make .init and .fini sections work.
  9647. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9648. else
  9649. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9650. fi
  9651. hardcode_libdir_flag_spec='-L$libdir'
  9652. hardcode_direct=yes
  9653. hardcode_minus_L=yes
  9654. hardcode_shlibpath_var=no
  9655. ;;
  9656. sysv4)
  9657. case $host_vendor in
  9658. sni)
  9659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9660. hardcode_direct=yes # is this really true???
  9661. ;;
  9662. siemens)
  9663. ## LD is ld it makes a PLAMLIB
  9664. ## CC just makes a GrossModule.
  9665. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9666. reload_cmds='$CC -r -o $output$reload_objs'
  9667. hardcode_direct=no
  9668. ;;
  9669. motorola)
  9670. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9671. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9672. ;;
  9673. esac
  9674. runpath_var='LD_RUN_PATH'
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. sysv4.3*)
  9678. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_shlibpath_var=no
  9680. export_dynamic_flag_spec='-Bexport'
  9681. ;;
  9682. sysv4*MP*)
  9683. if test -d /usr/nec; then
  9684. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9685. hardcode_shlibpath_var=no
  9686. runpath_var=LD_RUN_PATH
  9687. hardcode_runpath_var=yes
  9688. ld_shlibs=yes
  9689. fi
  9690. ;;
  9691. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9692. no_undefined_flag='$wl-z,text'
  9693. archive_cmds_need_lc=no
  9694. hardcode_shlibpath_var=no
  9695. runpath_var='LD_RUN_PATH'
  9696. if test yes = "$GCC"; then
  9697. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9698. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9699. else
  9700. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9701. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9702. fi
  9703. ;;
  9704. sysv5* | sco3.2v5* | sco5v6*)
  9705. # Note: We CANNOT use -z defs as we might desire, because we do not
  9706. # link with -lc, and that would cause any symbols used from libc to
  9707. # always be unresolved, which means just about no library would
  9708. # ever link correctly. If we're not using GNU ld we use -z text
  9709. # though, which does catch some bad symbols but isn't as heavy-handed
  9710. # as -z defs.
  9711. no_undefined_flag='$wl-z,text'
  9712. allow_undefined_flag='$wl-z,nodefs'
  9713. archive_cmds_need_lc=no
  9714. hardcode_shlibpath_var=no
  9715. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9716. hardcode_libdir_separator=':'
  9717. link_all_deplibs=yes
  9718. export_dynamic_flag_spec='$wl-Bexport'
  9719. runpath_var='LD_RUN_PATH'
  9720. if test yes = "$GCC"; then
  9721. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9722. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9723. else
  9724. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9725. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9726. fi
  9727. ;;
  9728. uts4*)
  9729. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9730. hardcode_libdir_flag_spec='-L$libdir'
  9731. hardcode_shlibpath_var=no
  9732. ;;
  9733. *)
  9734. ld_shlibs=no
  9735. ;;
  9736. esac
  9737. if test sni = "$host_vendor"; then
  9738. case $host in
  9739. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9740. export_dynamic_flag_spec='$wl-Blargedynsym'
  9741. ;;
  9742. esac
  9743. fi
  9744. fi
  9745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9746. printf "%s\n" "$ld_shlibs" >&6; }
  9747. test no = "$ld_shlibs" && can_build_shared=no
  9748. with_gnu_ld=$with_gnu_ld
  9749. #
  9750. # Do we need to explicitly link libc?
  9751. #
  9752. case "x$archive_cmds_need_lc" in
  9753. x|xyes)
  9754. # Assume -lc should be added
  9755. archive_cmds_need_lc=yes
  9756. if test yes,yes = "$GCC,$enable_shared"; then
  9757. case $archive_cmds in
  9758. *'~'*)
  9759. # FIXME: we may have to deal with multi-command sequences.
  9760. ;;
  9761. '$CC '*)
  9762. # Test whether the compiler implicitly links with -lc since on some
  9763. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9764. # to ld, don't add -lc before -lgcc.
  9765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9766. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9767. if test ${lt_cv_archive_cmds_need_lc+y}
  9768. then :
  9769. printf %s "(cached) " >&6
  9770. else $as_nop
  9771. $RM conftest*
  9772. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9774. (eval $ac_compile) 2>&5
  9775. ac_status=$?
  9776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9777. test $ac_status = 0; } 2>conftest.err; then
  9778. soname=conftest
  9779. lib=conftest
  9780. libobjs=conftest.$ac_objext
  9781. deplibs=
  9782. wl=$lt_prog_compiler_wl
  9783. pic_flag=$lt_prog_compiler_pic
  9784. compiler_flags=-v
  9785. linker_flags=-v
  9786. verstring=
  9787. output_objdir=.
  9788. libname=conftest
  9789. lt_save_allow_undefined_flag=$allow_undefined_flag
  9790. allow_undefined_flag=
  9791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9792. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9793. ac_status=$?
  9794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9795. test $ac_status = 0; }
  9796. then
  9797. lt_cv_archive_cmds_need_lc=no
  9798. else
  9799. lt_cv_archive_cmds_need_lc=yes
  9800. fi
  9801. allow_undefined_flag=$lt_save_allow_undefined_flag
  9802. else
  9803. cat conftest.err 1>&5
  9804. fi
  9805. $RM conftest*
  9806. fi
  9807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9808. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9809. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9810. ;;
  9811. esac
  9812. fi
  9813. ;;
  9814. esac
  9815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9816. printf %s "checking dynamic linker characteristics... " >&6; }
  9817. if test yes = "$GCC"; then
  9818. case $host_os in
  9819. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9820. *) lt_awk_arg='/^libraries:/' ;;
  9821. esac
  9822. case $host_os in
  9823. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9824. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9825. esac
  9826. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9827. case $lt_search_path_spec in
  9828. *\;*)
  9829. # if the path contains ";" then we assume it to be the separator
  9830. # otherwise default to the standard path separator (i.e. ":") - it is
  9831. # assumed that no part of a normal pathname contains ";" but that should
  9832. # okay in the real world where ";" in dirpaths is itself problematic.
  9833. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9834. ;;
  9835. *)
  9836. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9837. ;;
  9838. esac
  9839. # Ok, now we have the path, separated by spaces, we can step through it
  9840. # and add multilib dir if necessary...
  9841. lt_tmp_lt_search_path_spec=
  9842. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9843. # ...but if some path component already ends with the multilib dir we assume
  9844. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9845. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9846. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9847. lt_multi_os_dir=
  9848. ;;
  9849. esac
  9850. for lt_sys_path in $lt_search_path_spec; do
  9851. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9852. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9853. elif test -n "$lt_multi_os_dir"; then
  9854. test -d "$lt_sys_path" && \
  9855. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9856. fi
  9857. done
  9858. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9859. BEGIN {RS = " "; FS = "/|\n";} {
  9860. lt_foo = "";
  9861. lt_count = 0;
  9862. for (lt_i = NF; lt_i > 0; lt_i--) {
  9863. if ($lt_i != "" && $lt_i != ".") {
  9864. if ($lt_i == "..") {
  9865. lt_count++;
  9866. } else {
  9867. if (lt_count == 0) {
  9868. lt_foo = "/" $lt_i lt_foo;
  9869. } else {
  9870. lt_count--;
  9871. }
  9872. }
  9873. }
  9874. }
  9875. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9876. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9877. }'`
  9878. # AWK program above erroneously prepends '/' to C:/dos/paths
  9879. # for these hosts.
  9880. case $host_os in
  9881. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9882. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9883. esac
  9884. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9885. else
  9886. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9887. fi
  9888. library_names_spec=
  9889. libname_spec='lib$name'
  9890. soname_spec=
  9891. shrext_cmds=.so
  9892. postinstall_cmds=
  9893. postuninstall_cmds=
  9894. finish_cmds=
  9895. finish_eval=
  9896. shlibpath_var=
  9897. shlibpath_overrides_runpath=unknown
  9898. version_type=none
  9899. dynamic_linker="$host_os ld.so"
  9900. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9901. need_lib_prefix=unknown
  9902. hardcode_into_libs=no
  9903. # when you set need_version to no, make sure it does not cause -set_version
  9904. # flags to be left without arguments
  9905. need_version=unknown
  9906. case $host_os in
  9907. aix3*)
  9908. version_type=linux # correct to gnu/linux during the next big refactor
  9909. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9910. shlibpath_var=LIBPATH
  9911. # AIX 3 has no versioning support, so we append a major version to the name.
  9912. soname_spec='$libname$release$shared_ext$major'
  9913. ;;
  9914. aix[4-9]*)
  9915. version_type=linux # correct to gnu/linux during the next big refactor
  9916. need_lib_prefix=no
  9917. need_version=no
  9918. hardcode_into_libs=yes
  9919. if test ia64 = "$host_cpu"; then
  9920. # AIX 5 supports IA64
  9921. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9922. shlibpath_var=LD_LIBRARY_PATH
  9923. else
  9924. # With GCC up to 2.95.x, collect2 would create an import file
  9925. # for dependence libraries. The import file would start with
  9926. # the line '#! .'. This would cause the generated library to
  9927. # depend on '.', always an invalid library. This was fixed in
  9928. # development snapshots of GCC prior to 3.0.
  9929. case $host_os in
  9930. aix4 | aix4.[01] | aix4.[01].*)
  9931. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9932. echo ' yes '
  9933. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9934. :
  9935. else
  9936. can_build_shared=no
  9937. fi
  9938. ;;
  9939. esac
  9940. # Using Import Files as archive members, it is possible to support
  9941. # filename-based versioning of shared library archives on AIX. While
  9942. # this would work for both with and without runtime linking, it will
  9943. # prevent static linking of such archives. So we do filename-based
  9944. # shared library versioning with .so extension only, which is used
  9945. # when both runtime linking and shared linking is enabled.
  9946. # Unfortunately, runtime linking may impact performance, so we do
  9947. # not want this to be the default eventually. Also, we use the
  9948. # versioned .so libs for executables only if there is the -brtl
  9949. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9950. # To allow for filename-based versioning support, we need to create
  9951. # libNAME.so.V as an archive file, containing:
  9952. # *) an Import File, referring to the versioned filename of the
  9953. # archive as well as the shared archive member, telling the
  9954. # bitwidth (32 or 64) of that shared object, and providing the
  9955. # list of exported symbols of that shared object, eventually
  9956. # decorated with the 'weak' keyword
  9957. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9958. # it being seen by the linker.
  9959. # At run time we better use the real file rather than another symlink,
  9960. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9961. case $with_aix_soname,$aix_use_runtimelinking in
  9962. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9963. # soname into executable. Probably we can add versioning support to
  9964. # collect2, so additional links can be useful in future.
  9965. aix,yes) # traditional libtool
  9966. dynamic_linker='AIX unversionable lib.so'
  9967. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9968. # instead of lib<name>.a to let people know that these are not
  9969. # typical AIX shared libraries.
  9970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9971. ;;
  9972. aix,no) # traditional AIX only
  9973. dynamic_linker='AIX lib.a(lib.so.V)'
  9974. # We preserve .a as extension for shared libraries through AIX4.2
  9975. # and later when we are not doing run time linking.
  9976. library_names_spec='$libname$release.a $libname.a'
  9977. soname_spec='$libname$release$shared_ext$major'
  9978. ;;
  9979. svr4,*) # full svr4 only
  9980. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9981. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9982. # We do not specify a path in Import Files, so LIBPATH fires.
  9983. shlibpath_overrides_runpath=yes
  9984. ;;
  9985. *,yes) # both, prefer svr4
  9986. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9987. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9988. # unpreferred sharedlib libNAME.a needs extra handling
  9989. 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"'
  9990. 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"'
  9991. # We do not specify a path in Import Files, so LIBPATH fires.
  9992. shlibpath_overrides_runpath=yes
  9993. ;;
  9994. *,no) # both, prefer aix
  9995. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9996. library_names_spec='$libname$release.a $libname.a'
  9997. soname_spec='$libname$release$shared_ext$major'
  9998. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9999. 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)'
  10000. 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"'
  10001. ;;
  10002. esac
  10003. shlibpath_var=LIBPATH
  10004. fi
  10005. ;;
  10006. amigaos*)
  10007. case $host_cpu in
  10008. powerpc)
  10009. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10010. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10012. ;;
  10013. m68k)
  10014. library_names_spec='$libname.ixlibrary $libname.a'
  10015. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10016. 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'
  10017. ;;
  10018. esac
  10019. ;;
  10020. beos*)
  10021. library_names_spec='$libname$shared_ext'
  10022. dynamic_linker="$host_os ld.so"
  10023. shlibpath_var=LIBRARY_PATH
  10024. ;;
  10025. bsdi[45]*)
  10026. version_type=linux # correct to gnu/linux during the next big refactor
  10027. need_version=no
  10028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10029. soname_spec='$libname$release$shared_ext$major'
  10030. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10031. shlibpath_var=LD_LIBRARY_PATH
  10032. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10033. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10034. # the default ld.so.conf also contains /usr/contrib/lib and
  10035. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10036. # libtool to hard-code these into programs
  10037. ;;
  10038. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10039. version_type=windows
  10040. shrext_cmds=.dll
  10041. need_version=no
  10042. need_lib_prefix=no
  10043. case $GCC,$cc_basename in
  10044. yes,*)
  10045. # gcc
  10046. library_names_spec='$libname.dll.a'
  10047. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10048. postinstall_cmds='base_file=`basename \$file`~
  10049. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10050. dldir=$destdir/`dirname \$dlpath`~
  10051. test -d \$dldir || mkdir -p \$dldir~
  10052. $install_prog $dir/$dlname \$dldir/$dlname~
  10053. chmod a+x \$dldir/$dlname~
  10054. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10055. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10056. fi'
  10057. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10058. dlpath=$dir/\$dldll~
  10059. $RM \$dlpath'
  10060. shlibpath_overrides_runpath=yes
  10061. case $host_os in
  10062. cygwin*)
  10063. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10064. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10065. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10066. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10067. ;;
  10068. mingw* | windows* | cegcc*)
  10069. # MinGW DLLs use traditional 'lib' prefix
  10070. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10071. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10072. ;;
  10073. pw32*)
  10074. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10075. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10076. ;;
  10077. esac
  10078. dynamic_linker='Win32 ld.exe'
  10079. ;;
  10080. *,cl* | *,icl*)
  10081. # Native MSVC or ICC
  10082. libname_spec='$name'
  10083. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10084. library_names_spec='$libname.dll.lib'
  10085. case $build_os in
  10086. mingw* | windows*)
  10087. sys_lib_search_path_spec=
  10088. lt_save_ifs=$IFS
  10089. IFS=';'
  10090. for lt_path in $LIB
  10091. do
  10092. IFS=$lt_save_ifs
  10093. # Let DOS variable expansion print the short 8.3 style file name.
  10094. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10095. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10096. done
  10097. IFS=$lt_save_ifs
  10098. # Convert to MSYS style.
  10099. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10100. ;;
  10101. cygwin*)
  10102. # Convert to unix form, then to dos form, then back to unix form
  10103. # but this time dos style (no spaces!) so that the unix form looks
  10104. # like /cygdrive/c/PROGRA~1:/cygdr...
  10105. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10106. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10107. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10108. ;;
  10109. *)
  10110. sys_lib_search_path_spec=$LIB
  10111. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10112. # It is most probably a Windows format PATH.
  10113. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10114. else
  10115. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10116. fi
  10117. # FIXME: find the short name or the path components, as spaces are
  10118. # common. (e.g. "Program Files" -> "PROGRA~1")
  10119. ;;
  10120. esac
  10121. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10122. postinstall_cmds='base_file=`basename \$file`~
  10123. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10124. dldir=$destdir/`dirname \$dlpath`~
  10125. test -d \$dldir || mkdir -p \$dldir~
  10126. $install_prog $dir/$dlname \$dldir/$dlname'
  10127. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10128. dlpath=$dir/\$dldll~
  10129. $RM \$dlpath'
  10130. shlibpath_overrides_runpath=yes
  10131. dynamic_linker='Win32 link.exe'
  10132. ;;
  10133. *)
  10134. # Assume MSVC and ICC wrapper
  10135. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10136. dynamic_linker='Win32 ld.exe'
  10137. ;;
  10138. esac
  10139. # FIXME: first we should search . and the directory the executable is in
  10140. shlibpath_var=PATH
  10141. ;;
  10142. darwin* | rhapsody*)
  10143. dynamic_linker="$host_os dyld"
  10144. version_type=darwin
  10145. need_lib_prefix=no
  10146. need_version=no
  10147. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10148. soname_spec='$libname$release$major$shared_ext'
  10149. shlibpath_overrides_runpath=yes
  10150. shlibpath_var=DYLD_LIBRARY_PATH
  10151. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10152. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10153. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10154. ;;
  10155. dgux*)
  10156. version_type=linux # correct to gnu/linux during the next big refactor
  10157. need_lib_prefix=no
  10158. need_version=no
  10159. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10160. soname_spec='$libname$release$shared_ext$major'
  10161. shlibpath_var=LD_LIBRARY_PATH
  10162. ;;
  10163. freebsd* | dragonfly* | midnightbsd*)
  10164. # DragonFly does not have aout. When/if they implement a new
  10165. # versioning mechanism, adjust this.
  10166. if test -x /usr/bin/objformat; then
  10167. objformat=`/usr/bin/objformat`
  10168. else
  10169. case $host_os in
  10170. freebsd[23].*) objformat=aout ;;
  10171. *) objformat=elf ;;
  10172. esac
  10173. fi
  10174. version_type=freebsd-$objformat
  10175. case $version_type in
  10176. freebsd-elf*)
  10177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10178. soname_spec='$libname$release$shared_ext$major'
  10179. need_version=no
  10180. need_lib_prefix=no
  10181. ;;
  10182. freebsd-*)
  10183. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10184. need_version=yes
  10185. ;;
  10186. esac
  10187. shlibpath_var=LD_LIBRARY_PATH
  10188. case $host_os in
  10189. freebsd2.*)
  10190. shlibpath_overrides_runpath=yes
  10191. ;;
  10192. freebsd3.[01]* | freebsdelf3.[01]*)
  10193. shlibpath_overrides_runpath=yes
  10194. hardcode_into_libs=yes
  10195. ;;
  10196. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10197. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10198. shlibpath_overrides_runpath=no
  10199. hardcode_into_libs=yes
  10200. ;;
  10201. *) # from 4.6 on, and DragonFly
  10202. shlibpath_overrides_runpath=yes
  10203. hardcode_into_libs=yes
  10204. ;;
  10205. esac
  10206. ;;
  10207. haiku*)
  10208. version_type=linux # correct to gnu/linux during the next big refactor
  10209. need_lib_prefix=no
  10210. need_version=no
  10211. dynamic_linker="$host_os runtime_loader"
  10212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10213. soname_spec='$libname$release$shared_ext$major'
  10214. shlibpath_var=LIBRARY_PATH
  10215. shlibpath_overrides_runpath=no
  10216. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10217. hardcode_into_libs=yes
  10218. ;;
  10219. hpux9* | hpux10* | hpux11*)
  10220. # Give a soname corresponding to the major version so that dld.sl refuses to
  10221. # link against other versions.
  10222. version_type=sunos
  10223. need_lib_prefix=no
  10224. need_version=no
  10225. case $host_cpu in
  10226. ia64*)
  10227. shrext_cmds='.so'
  10228. hardcode_into_libs=yes
  10229. dynamic_linker="$host_os dld.so"
  10230. shlibpath_var=LD_LIBRARY_PATH
  10231. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10233. soname_spec='$libname$release$shared_ext$major'
  10234. if test 32 = "$HPUX_IA64_MODE"; then
  10235. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10236. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10237. else
  10238. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10239. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10240. fi
  10241. ;;
  10242. hppa*64*)
  10243. shrext_cmds='.sl'
  10244. hardcode_into_libs=yes
  10245. dynamic_linker="$host_os dld.sl"
  10246. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10247. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10249. soname_spec='$libname$release$shared_ext$major'
  10250. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10251. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10252. ;;
  10253. *)
  10254. shrext_cmds='.sl'
  10255. dynamic_linker="$host_os dld.sl"
  10256. shlibpath_var=SHLIB_PATH
  10257. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10258. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10259. soname_spec='$libname$release$shared_ext$major'
  10260. ;;
  10261. esac
  10262. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10263. postinstall_cmds='chmod 555 $lib'
  10264. # or fails outright, so override atomically:
  10265. install_override_mode=555
  10266. ;;
  10267. interix[3-9]*)
  10268. version_type=linux # correct to gnu/linux during the next big refactor
  10269. need_lib_prefix=no
  10270. need_version=no
  10271. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10272. soname_spec='$libname$release$shared_ext$major'
  10273. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10274. shlibpath_var=LD_LIBRARY_PATH
  10275. shlibpath_overrides_runpath=no
  10276. hardcode_into_libs=yes
  10277. ;;
  10278. irix5* | irix6* | nonstopux*)
  10279. case $host_os in
  10280. nonstopux*) version_type=nonstopux ;;
  10281. *)
  10282. if test yes = "$lt_cv_prog_gnu_ld"; then
  10283. version_type=linux # correct to gnu/linux during the next big refactor
  10284. else
  10285. version_type=irix
  10286. fi ;;
  10287. esac
  10288. need_lib_prefix=no
  10289. need_version=no
  10290. soname_spec='$libname$release$shared_ext$major'
  10291. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10292. case $host_os in
  10293. irix5* | nonstopux*)
  10294. libsuff= shlibsuff=
  10295. ;;
  10296. *)
  10297. case $LD in # libtool.m4 will add one of these switches to LD
  10298. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10299. libsuff= shlibsuff= libmagic=32-bit;;
  10300. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10301. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10302. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10303. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10304. *) libsuff= shlibsuff= libmagic=never-match;;
  10305. esac
  10306. ;;
  10307. esac
  10308. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10309. shlibpath_overrides_runpath=no
  10310. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10311. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10312. hardcode_into_libs=yes
  10313. ;;
  10314. # No shared lib support for Linux oldld, aout, or coff.
  10315. linux*oldld* | linux*aout* | linux*coff*)
  10316. dynamic_linker=no
  10317. ;;
  10318. linux*android*)
  10319. version_type=none # Android doesn't support versioned libraries.
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$shared_ext'
  10323. soname_spec='$libname$release$shared_ext'
  10324. finish_cmds=
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. shlibpath_overrides_runpath=yes
  10327. # This implies no fast_install, which is unacceptable.
  10328. # Some rework will be needed to allow for fast_install
  10329. # before this can be enabled.
  10330. hardcode_into_libs=yes
  10331. dynamic_linker='Android linker'
  10332. # Don't embed -rpath directories since the linker doesn't support them.
  10333. hardcode_libdir_flag_spec='-L$libdir'
  10334. ;;
  10335. # This must be glibc/ELF.
  10336. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10337. version_type=linux # correct to gnu/linux during the next big refactor
  10338. need_lib_prefix=no
  10339. need_version=no
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10343. shlibpath_var=LD_LIBRARY_PATH
  10344. shlibpath_overrides_runpath=no
  10345. # Some binutils ld are patched to set DT_RUNPATH
  10346. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10347. then :
  10348. printf %s "(cached) " >&6
  10349. else $as_nop
  10350. lt_cv_shlibpath_overrides_runpath=no
  10351. save_LDFLAGS=$LDFLAGS
  10352. save_libdir=$libdir
  10353. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10354. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10356. /* end confdefs.h. */
  10357. int
  10358. main (void)
  10359. {
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"
  10365. then :
  10366. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10367. then :
  10368. lt_cv_shlibpath_overrides_runpath=yes
  10369. fi
  10370. fi
  10371. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10372. conftest$ac_exeext conftest.$ac_ext
  10373. LDFLAGS=$save_LDFLAGS
  10374. libdir=$save_libdir
  10375. fi
  10376. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10377. # This implies no fast_install, which is unacceptable.
  10378. # Some rework will be needed to allow for fast_install
  10379. # before this can be enabled.
  10380. hardcode_into_libs=yes
  10381. # Add ABI-specific directories to the system library path.
  10382. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10383. # Ideally, we could use ldconfig to report *all* directores which are
  10384. # searched for libraries, however this is still not possible. Aside from not
  10385. # being certain /sbin/ldconfig is available, command
  10386. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10387. # even though it is searched at run-time. Try to do the best guess by
  10388. # appending ld.so.conf contents (and includes) to the search path.
  10389. if test -f /etc/ld.so.conf; then
  10390. 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' ' '`
  10391. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10392. fi
  10393. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10394. # powerpc, because MkLinux only supported shared libraries with the
  10395. # GNU dynamic linker. Since this was broken with cross compilers,
  10396. # most powerpc-linux boxes support dynamic linking these days and
  10397. # people can always --disable-shared, the test was removed, and we
  10398. # assume the GNU/Linux dynamic linker is in use.
  10399. dynamic_linker='GNU/Linux ld.so'
  10400. ;;
  10401. netbsd*)
  10402. version_type=sunos
  10403. need_lib_prefix=no
  10404. need_version=no
  10405. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10406. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10407. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10408. dynamic_linker='NetBSD (a.out) ld.so'
  10409. else
  10410. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10411. soname_spec='$libname$release$shared_ext$major'
  10412. dynamic_linker='NetBSD ld.elf_so'
  10413. fi
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. shlibpath_overrides_runpath=yes
  10416. hardcode_into_libs=yes
  10417. ;;
  10418. newsos6)
  10419. version_type=linux # correct to gnu/linux during the next big refactor
  10420. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. shlibpath_overrides_runpath=yes
  10423. ;;
  10424. *nto* | *qnx*)
  10425. version_type=qnx
  10426. need_lib_prefix=no
  10427. need_version=no
  10428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10429. soname_spec='$libname$release$shared_ext$major'
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. shlibpath_overrides_runpath=no
  10432. hardcode_into_libs=yes
  10433. dynamic_linker='ldqnx.so'
  10434. ;;
  10435. openbsd* | bitrig*)
  10436. version_type=sunos
  10437. sys_lib_dlsearch_path_spec=/usr/lib
  10438. need_lib_prefix=no
  10439. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10440. need_version=no
  10441. else
  10442. need_version=yes
  10443. fi
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=yes
  10448. ;;
  10449. os2*)
  10450. libname_spec='$name'
  10451. shrext_cmds=.dll
  10452. need_lib_prefix=no
  10453. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10454. # SDL customization: removed versioning support.
  10455. # version_type=windows
  10456. # need_version=no
  10457. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10458. # v=$($ECHO $release$versuffix | tr -d .-);
  10459. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10460. # $ECHO $n$v`$shared_ext'
  10461. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10462. library_names_spec='${libname}_dll.$libext'
  10463. dynamic_linker='OS/2 ld.exe'
  10464. shlibpath_var=BEGINLIBPATH
  10465. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10467. postinstall_cmds='base_file=`basename \$file`~
  10468. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10469. dldir=$destdir/`dirname \$dlpath`~
  10470. test -d \$dldir || mkdir -p \$dldir~
  10471. $install_prog $dir/$dlname \$dldir/$dlname~
  10472. chmod a+x \$dldir/$dlname~
  10473. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10474. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10475. fi'
  10476. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10477. dlpath=$dir/\$dldll~
  10478. $RM \$dlpath'
  10479. ;;
  10480. osf3* | osf4* | osf5*)
  10481. version_type=osf
  10482. need_lib_prefix=no
  10483. need_version=no
  10484. soname_spec='$libname$release$shared_ext$major'
  10485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10486. shlibpath_var=LD_LIBRARY_PATH
  10487. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10488. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10489. ;;
  10490. rdos*)
  10491. dynamic_linker=no
  10492. ;;
  10493. solaris*)
  10494. version_type=linux # correct to gnu/linux during the next big refactor
  10495. need_lib_prefix=no
  10496. need_version=no
  10497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10498. soname_spec='$libname$release$shared_ext$major'
  10499. shlibpath_var=LD_LIBRARY_PATH
  10500. shlibpath_overrides_runpath=yes
  10501. hardcode_into_libs=yes
  10502. # ldd complains unless libraries are executable
  10503. postinstall_cmds='chmod +x $lib'
  10504. ;;
  10505. sunos4*)
  10506. version_type=sunos
  10507. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10508. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10509. shlibpath_var=LD_LIBRARY_PATH
  10510. shlibpath_overrides_runpath=yes
  10511. if test yes = "$with_gnu_ld"; then
  10512. need_lib_prefix=no
  10513. fi
  10514. need_version=yes
  10515. ;;
  10516. sysv4 | sysv4.3*)
  10517. version_type=linux # correct to gnu/linux during the next big refactor
  10518. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10519. soname_spec='$libname$release$shared_ext$major'
  10520. shlibpath_var=LD_LIBRARY_PATH
  10521. case $host_vendor in
  10522. sni)
  10523. shlibpath_overrides_runpath=no
  10524. need_lib_prefix=no
  10525. runpath_var=LD_RUN_PATH
  10526. ;;
  10527. siemens)
  10528. need_lib_prefix=no
  10529. ;;
  10530. motorola)
  10531. need_lib_prefix=no
  10532. need_version=no
  10533. shlibpath_overrides_runpath=no
  10534. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10535. ;;
  10536. esac
  10537. ;;
  10538. sysv4*MP*)
  10539. if test -d /usr/nec; then
  10540. version_type=linux # correct to gnu/linux during the next big refactor
  10541. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10542. soname_spec='$libname$shared_ext.$major'
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. fi
  10545. ;;
  10546. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10547. version_type=sco
  10548. need_lib_prefix=no
  10549. need_version=no
  10550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10551. soname_spec='$libname$release$shared_ext$major'
  10552. shlibpath_var=LD_LIBRARY_PATH
  10553. shlibpath_overrides_runpath=yes
  10554. hardcode_into_libs=yes
  10555. if test yes = "$with_gnu_ld"; then
  10556. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10557. else
  10558. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10559. case $host_os in
  10560. sco3.2v5*)
  10561. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10562. ;;
  10563. esac
  10564. fi
  10565. sys_lib_dlsearch_path_spec='/usr/lib'
  10566. ;;
  10567. tpf*)
  10568. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10569. version_type=linux # correct to gnu/linux during the next big refactor
  10570. need_lib_prefix=no
  10571. need_version=no
  10572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10573. shlibpath_var=LD_LIBRARY_PATH
  10574. shlibpath_overrides_runpath=no
  10575. hardcode_into_libs=yes
  10576. ;;
  10577. uts4*)
  10578. version_type=linux # correct to gnu/linux during the next big refactor
  10579. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10580. soname_spec='$libname$release$shared_ext$major'
  10581. shlibpath_var=LD_LIBRARY_PATH
  10582. ;;
  10583. *)
  10584. dynamic_linker=no
  10585. ;;
  10586. esac
  10587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10588. printf "%s\n" "$dynamic_linker" >&6; }
  10589. test no = "$dynamic_linker" && can_build_shared=no
  10590. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10591. if test yes = "$GCC"; then
  10592. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10593. fi
  10594. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10595. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10596. fi
  10597. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10598. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10599. fi
  10600. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10601. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10602. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10603. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10604. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10605. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10607. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10608. hardcode_action=
  10609. if test -n "$hardcode_libdir_flag_spec" ||
  10610. test -n "$runpath_var" ||
  10611. test yes = "$hardcode_automatic"; then
  10612. # We can hardcode non-existent directories.
  10613. if test no != "$hardcode_direct" &&
  10614. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10615. # have to relink, otherwise we might link with an installed library
  10616. # when we should be linking with a yet-to-be-installed one
  10617. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10618. test no != "$hardcode_minus_L"; then
  10619. # Linking always hardcodes the temporary library directory.
  10620. hardcode_action=relink
  10621. else
  10622. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10623. hardcode_action=immediate
  10624. fi
  10625. else
  10626. # We cannot hardcode anything, or else we can only hardcode existing
  10627. # directories.
  10628. hardcode_action=unsupported
  10629. fi
  10630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10631. printf "%s\n" "$hardcode_action" >&6; }
  10632. if test relink = "$hardcode_action" ||
  10633. test yes = "$inherit_rpath"; then
  10634. # Fast installation is not supported
  10635. enable_fast_install=no
  10636. elif test yes = "$shlibpath_overrides_runpath" ||
  10637. test no = "$enable_shared"; then
  10638. # Fast installation is not necessary
  10639. enable_fast_install=needless
  10640. fi
  10641. if test yes != "$enable_dlopen"; then
  10642. enable_dlopen=unknown
  10643. enable_dlopen_self=unknown
  10644. enable_dlopen_self_static=unknown
  10645. else
  10646. lt_cv_dlopen=no
  10647. lt_cv_dlopen_libs=
  10648. case $host_os in
  10649. beos*)
  10650. lt_cv_dlopen=load_add_on
  10651. lt_cv_dlopen_libs=
  10652. lt_cv_dlopen_self=yes
  10653. ;;
  10654. mingw* | windows* | pw32* | cegcc*)
  10655. lt_cv_dlopen=LoadLibrary
  10656. lt_cv_dlopen_libs=
  10657. ;;
  10658. cygwin*)
  10659. lt_cv_dlopen=dlopen
  10660. lt_cv_dlopen_libs=
  10661. ;;
  10662. darwin*)
  10663. # if libdl is installed we need to link against it
  10664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10665. printf %s "checking for dlopen in -ldl... " >&6; }
  10666. if test ${ac_cv_lib_dl_dlopen+y}
  10667. then :
  10668. printf %s "(cached) " >&6
  10669. else $as_nop
  10670. ac_check_lib_save_LIBS=$LIBS
  10671. LIBS="-ldl $LIBS"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. /* Override any GCC internal prototype to avoid an error.
  10675. Use char because int might match the return type of a GCC
  10676. builtin and then its argument prototype would still apply. */
  10677. char dlopen ();
  10678. int
  10679. main (void)
  10680. {
  10681. return dlopen ();
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_link "$LINENO"
  10687. then :
  10688. ac_cv_lib_dl_dlopen=yes
  10689. else $as_nop
  10690. ac_cv_lib_dl_dlopen=no
  10691. fi
  10692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10693. conftest$ac_exeext conftest.$ac_ext
  10694. LIBS=$ac_check_lib_save_LIBS
  10695. fi
  10696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10697. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10698. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10699. then :
  10700. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10701. else $as_nop
  10702. lt_cv_dlopen=dyld
  10703. lt_cv_dlopen_libs=
  10704. lt_cv_dlopen_self=yes
  10705. fi
  10706. ;;
  10707. tpf*)
  10708. # Don't try to run any link tests for TPF. We know it's impossible
  10709. # because TPF is a cross-compiler, and we know how we open DSOs.
  10710. lt_cv_dlopen=dlopen
  10711. lt_cv_dlopen_libs=
  10712. lt_cv_dlopen_self=no
  10713. ;;
  10714. *)
  10715. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10716. if test "x$ac_cv_func_shl_load" = xyes
  10717. then :
  10718. lt_cv_dlopen=shl_load
  10719. else $as_nop
  10720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10721. printf %s "checking for shl_load in -ldld... " >&6; }
  10722. if test ${ac_cv_lib_dld_shl_load+y}
  10723. then :
  10724. printf %s "(cached) " >&6
  10725. else $as_nop
  10726. ac_check_lib_save_LIBS=$LIBS
  10727. LIBS="-ldld $LIBS"
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. /* Override any GCC internal prototype to avoid an error.
  10731. Use char because int might match the return type of a GCC
  10732. builtin and then its argument prototype would still apply. */
  10733. char shl_load ();
  10734. int
  10735. main (void)
  10736. {
  10737. return shl_load ();
  10738. ;
  10739. return 0;
  10740. }
  10741. _ACEOF
  10742. if ac_fn_c_try_link "$LINENO"
  10743. then :
  10744. ac_cv_lib_dld_shl_load=yes
  10745. else $as_nop
  10746. ac_cv_lib_dld_shl_load=no
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10749. conftest$ac_exeext conftest.$ac_ext
  10750. LIBS=$ac_check_lib_save_LIBS
  10751. fi
  10752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10753. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10754. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10755. then :
  10756. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10757. else $as_nop
  10758. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10759. if test "x$ac_cv_func_dlopen" = xyes
  10760. then :
  10761. lt_cv_dlopen=dlopen
  10762. else $as_nop
  10763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10764. printf %s "checking for dlopen in -ldl... " >&6; }
  10765. if test ${ac_cv_lib_dl_dlopen+y}
  10766. then :
  10767. printf %s "(cached) " >&6
  10768. else $as_nop
  10769. ac_check_lib_save_LIBS=$LIBS
  10770. LIBS="-ldl $LIBS"
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. /* Override any GCC internal prototype to avoid an error.
  10774. Use char because int might match the return type of a GCC
  10775. builtin and then its argument prototype would still apply. */
  10776. char dlopen ();
  10777. int
  10778. main (void)
  10779. {
  10780. return dlopen ();
  10781. ;
  10782. return 0;
  10783. }
  10784. _ACEOF
  10785. if ac_fn_c_try_link "$LINENO"
  10786. then :
  10787. ac_cv_lib_dl_dlopen=yes
  10788. else $as_nop
  10789. ac_cv_lib_dl_dlopen=no
  10790. fi
  10791. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10792. conftest$ac_exeext conftest.$ac_ext
  10793. LIBS=$ac_check_lib_save_LIBS
  10794. fi
  10795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10796. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10797. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10798. then :
  10799. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10800. else $as_nop
  10801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10802. printf %s "checking for dlopen in -lsvld... " >&6; }
  10803. if test ${ac_cv_lib_svld_dlopen+y}
  10804. then :
  10805. printf %s "(cached) " >&6
  10806. else $as_nop
  10807. ac_check_lib_save_LIBS=$LIBS
  10808. LIBS="-lsvld $LIBS"
  10809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10810. /* end confdefs.h. */
  10811. /* Override any GCC internal prototype to avoid an error.
  10812. Use char because int might match the return type of a GCC
  10813. builtin and then its argument prototype would still apply. */
  10814. char dlopen ();
  10815. int
  10816. main (void)
  10817. {
  10818. return dlopen ();
  10819. ;
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. if ac_fn_c_try_link "$LINENO"
  10824. then :
  10825. ac_cv_lib_svld_dlopen=yes
  10826. else $as_nop
  10827. ac_cv_lib_svld_dlopen=no
  10828. fi
  10829. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10830. conftest$ac_exeext conftest.$ac_ext
  10831. LIBS=$ac_check_lib_save_LIBS
  10832. fi
  10833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10834. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10835. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10836. then :
  10837. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10838. else $as_nop
  10839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10840. printf %s "checking for dld_link in -ldld... " >&6; }
  10841. if test ${ac_cv_lib_dld_dld_link+y}
  10842. then :
  10843. printf %s "(cached) " >&6
  10844. else $as_nop
  10845. ac_check_lib_save_LIBS=$LIBS
  10846. LIBS="-ldld $LIBS"
  10847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10848. /* end confdefs.h. */
  10849. /* Override any GCC internal prototype to avoid an error.
  10850. Use char because int might match the return type of a GCC
  10851. builtin and then its argument prototype would still apply. */
  10852. char dld_link ();
  10853. int
  10854. main (void)
  10855. {
  10856. return dld_link ();
  10857. ;
  10858. return 0;
  10859. }
  10860. _ACEOF
  10861. if ac_fn_c_try_link "$LINENO"
  10862. then :
  10863. ac_cv_lib_dld_dld_link=yes
  10864. else $as_nop
  10865. ac_cv_lib_dld_dld_link=no
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10868. conftest$ac_exeext conftest.$ac_ext
  10869. LIBS=$ac_check_lib_save_LIBS
  10870. fi
  10871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10872. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10873. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10874. then :
  10875. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10876. fi
  10877. fi
  10878. fi
  10879. fi
  10880. fi
  10881. fi
  10882. ;;
  10883. esac
  10884. if test no = "$lt_cv_dlopen"; then
  10885. enable_dlopen=no
  10886. else
  10887. enable_dlopen=yes
  10888. fi
  10889. case $lt_cv_dlopen in
  10890. dlopen)
  10891. save_CPPFLAGS=$CPPFLAGS
  10892. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10893. save_LDFLAGS=$LDFLAGS
  10894. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10895. save_LIBS=$LIBS
  10896. LIBS="$lt_cv_dlopen_libs $LIBS"
  10897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10898. printf %s "checking whether a program can dlopen itself... " >&6; }
  10899. if test ${lt_cv_dlopen_self+y}
  10900. then :
  10901. printf %s "(cached) " >&6
  10902. else $as_nop
  10903. if test yes = "$cross_compiling"; then :
  10904. lt_cv_dlopen_self=cross
  10905. else
  10906. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10907. lt_status=$lt_dlunknown
  10908. cat > conftest.$ac_ext <<_LT_EOF
  10909. #line $LINENO "configure"
  10910. #include "confdefs.h"
  10911. #if HAVE_DLFCN_H
  10912. #include <dlfcn.h>
  10913. #endif
  10914. #include <stdio.h>
  10915. #ifdef RTLD_GLOBAL
  10916. # define LT_DLGLOBAL RTLD_GLOBAL
  10917. #else
  10918. # ifdef DL_GLOBAL
  10919. # define LT_DLGLOBAL DL_GLOBAL
  10920. # else
  10921. # define LT_DLGLOBAL 0
  10922. # endif
  10923. #endif
  10924. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10925. find out it does not work in some platform. */
  10926. #ifndef LT_DLLAZY_OR_NOW
  10927. # ifdef RTLD_LAZY
  10928. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10929. # else
  10930. # ifdef DL_LAZY
  10931. # define LT_DLLAZY_OR_NOW DL_LAZY
  10932. # else
  10933. # ifdef RTLD_NOW
  10934. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10935. # else
  10936. # ifdef DL_NOW
  10937. # define LT_DLLAZY_OR_NOW DL_NOW
  10938. # else
  10939. # define LT_DLLAZY_OR_NOW 0
  10940. # endif
  10941. # endif
  10942. # endif
  10943. # endif
  10944. #endif
  10945. /* When -fvisibility=hidden is used, assume the code has been annotated
  10946. correspondingly for the symbols needed. */
  10947. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10948. int fnord () __attribute__((visibility("default")));
  10949. #endif
  10950. int fnord () { return 42; }
  10951. int main ()
  10952. {
  10953. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10954. int status = $lt_dlunknown;
  10955. if (self)
  10956. {
  10957. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10958. else
  10959. {
  10960. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10961. else puts (dlerror ());
  10962. }
  10963. /* dlclose (self); */
  10964. }
  10965. else
  10966. puts (dlerror ());
  10967. return status;
  10968. }
  10969. _LT_EOF
  10970. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10971. (eval $ac_link) 2>&5
  10972. ac_status=$?
  10973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10974. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10975. (./conftest; exit; ) >&5 2>/dev/null
  10976. lt_status=$?
  10977. case x$lt_status in
  10978. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10979. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10980. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10981. esac
  10982. else :
  10983. # compilation failed
  10984. lt_cv_dlopen_self=no
  10985. fi
  10986. fi
  10987. rm -fr conftest*
  10988. fi
  10989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10990. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10991. if test yes = "$lt_cv_dlopen_self"; then
  10992. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10994. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10995. if test ${lt_cv_dlopen_self_static+y}
  10996. then :
  10997. printf %s "(cached) " >&6
  10998. else $as_nop
  10999. if test yes = "$cross_compiling"; then :
  11000. lt_cv_dlopen_self_static=cross
  11001. else
  11002. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11003. lt_status=$lt_dlunknown
  11004. cat > conftest.$ac_ext <<_LT_EOF
  11005. #line $LINENO "configure"
  11006. #include "confdefs.h"
  11007. #if HAVE_DLFCN_H
  11008. #include <dlfcn.h>
  11009. #endif
  11010. #include <stdio.h>
  11011. #ifdef RTLD_GLOBAL
  11012. # define LT_DLGLOBAL RTLD_GLOBAL
  11013. #else
  11014. # ifdef DL_GLOBAL
  11015. # define LT_DLGLOBAL DL_GLOBAL
  11016. # else
  11017. # define LT_DLGLOBAL 0
  11018. # endif
  11019. #endif
  11020. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11021. find out it does not work in some platform. */
  11022. #ifndef LT_DLLAZY_OR_NOW
  11023. # ifdef RTLD_LAZY
  11024. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11025. # else
  11026. # ifdef DL_LAZY
  11027. # define LT_DLLAZY_OR_NOW DL_LAZY
  11028. # else
  11029. # ifdef RTLD_NOW
  11030. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11031. # else
  11032. # ifdef DL_NOW
  11033. # define LT_DLLAZY_OR_NOW DL_NOW
  11034. # else
  11035. # define LT_DLLAZY_OR_NOW 0
  11036. # endif
  11037. # endif
  11038. # endif
  11039. # endif
  11040. #endif
  11041. /* When -fvisibility=hidden is used, assume the code has been annotated
  11042. correspondingly for the symbols needed. */
  11043. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11044. int fnord () __attribute__((visibility("default")));
  11045. #endif
  11046. int fnord () { return 42; }
  11047. int main ()
  11048. {
  11049. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11050. int status = $lt_dlunknown;
  11051. if (self)
  11052. {
  11053. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11054. else
  11055. {
  11056. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11057. else puts (dlerror ());
  11058. }
  11059. /* dlclose (self); */
  11060. }
  11061. else
  11062. puts (dlerror ());
  11063. return status;
  11064. }
  11065. _LT_EOF
  11066. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11067. (eval $ac_link) 2>&5
  11068. ac_status=$?
  11069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11070. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11071. (./conftest; exit; ) >&5 2>/dev/null
  11072. lt_status=$?
  11073. case x$lt_status in
  11074. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11075. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11076. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11077. esac
  11078. else :
  11079. # compilation failed
  11080. lt_cv_dlopen_self_static=no
  11081. fi
  11082. fi
  11083. rm -fr conftest*
  11084. fi
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11086. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11087. fi
  11088. CPPFLAGS=$save_CPPFLAGS
  11089. LDFLAGS=$save_LDFLAGS
  11090. LIBS=$save_LIBS
  11091. ;;
  11092. esac
  11093. case $lt_cv_dlopen_self in
  11094. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11095. *) enable_dlopen_self=unknown ;;
  11096. esac
  11097. case $lt_cv_dlopen_self_static in
  11098. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11099. *) enable_dlopen_self_static=unknown ;;
  11100. esac
  11101. fi
  11102. striplib=
  11103. old_striplib=
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11105. printf %s "checking whether stripping libraries is possible... " >&6; }
  11106. if test -z "$STRIP"; then
  11107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11108. printf "%s\n" "no" >&6; }
  11109. else
  11110. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11111. old_striplib="$STRIP --strip-debug"
  11112. striplib="$STRIP --strip-unneeded"
  11113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11114. printf "%s\n" "yes" >&6; }
  11115. else
  11116. case $host_os in
  11117. darwin*)
  11118. # FIXME - insert some real tests, host_os isn't really good enough
  11119. striplib="$STRIP -x"
  11120. old_striplib="$STRIP -S"
  11121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11122. printf "%s\n" "yes" >&6; }
  11123. ;;
  11124. freebsd*)
  11125. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11126. old_striplib="$STRIP --strip-debug"
  11127. striplib="$STRIP --strip-unneeded"
  11128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11129. printf "%s\n" "yes" >&6; }
  11130. else
  11131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11132. printf "%s\n" "no" >&6; }
  11133. fi
  11134. ;;
  11135. *)
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11137. printf "%s\n" "no" >&6; }
  11138. ;;
  11139. esac
  11140. fi
  11141. fi
  11142. # Report what library types will actually be built
  11143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11144. printf %s "checking if libtool supports shared libraries... " >&6; }
  11145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11146. printf "%s\n" "$can_build_shared" >&6; }
  11147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11148. printf %s "checking whether to build shared libraries... " >&6; }
  11149. test no = "$can_build_shared" && enable_shared=no
  11150. # On AIX, shared libraries and static libraries use the same namespace, and
  11151. # are all built from PIC.
  11152. case $host_os in
  11153. aix3*)
  11154. test yes = "$enable_shared" && enable_static=no
  11155. if test -n "$RANLIB"; then
  11156. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11157. postinstall_cmds='$RANLIB $lib'
  11158. fi
  11159. ;;
  11160. aix[4-9]*)
  11161. if test ia64 != "$host_cpu"; then
  11162. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11163. yes,aix,yes) ;; # shared object as lib.so file only
  11164. yes,svr4,*) ;; # shared object as lib.so archive member only
  11165. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11166. esac
  11167. fi
  11168. ;;
  11169. esac
  11170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11171. printf "%s\n" "$enable_shared" >&6; }
  11172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11173. printf %s "checking whether to build static libraries... " >&6; }
  11174. # Make sure either enable_shared or enable_static is yes.
  11175. test yes = "$enable_shared" || enable_static=yes
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11177. printf "%s\n" "$enable_static" >&6; }
  11178. fi
  11179. ac_ext=c
  11180. ac_cpp='$CPP $CPPFLAGS'
  11181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11184. CC=$lt_save_CC
  11185. ac_config_commands="$ac_config_commands libtool"
  11186. # Only expand once:
  11187. if test -n "$ac_tool_prefix"; then
  11188. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11189. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11191. printf %s "checking for $ac_word... " >&6; }
  11192. if test ${ac_cv_prog_RC+y}
  11193. then :
  11194. printf %s "(cached) " >&6
  11195. else $as_nop
  11196. if test -n "$RC"; then
  11197. ac_cv_prog_RC="$RC" # Let the user override the test.
  11198. else
  11199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11200. for as_dir in $PATH
  11201. do
  11202. IFS=$as_save_IFS
  11203. case $as_dir in #(((
  11204. '') as_dir=./ ;;
  11205. */) ;;
  11206. *) as_dir=$as_dir/ ;;
  11207. esac
  11208. for ac_exec_ext in '' $ac_executable_extensions; do
  11209. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11210. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11212. break 2
  11213. fi
  11214. done
  11215. done
  11216. IFS=$as_save_IFS
  11217. fi
  11218. fi
  11219. RC=$ac_cv_prog_RC
  11220. if test -n "$RC"; then
  11221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11222. printf "%s\n" "$RC" >&6; }
  11223. else
  11224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11225. printf "%s\n" "no" >&6; }
  11226. fi
  11227. fi
  11228. if test -z "$ac_cv_prog_RC"; then
  11229. ac_ct_RC=$RC
  11230. # Extract the first word of "windres", so it can be a program name with args.
  11231. set dummy windres; ac_word=$2
  11232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11233. printf %s "checking for $ac_word... " >&6; }
  11234. if test ${ac_cv_prog_ac_ct_RC+y}
  11235. then :
  11236. printf %s "(cached) " >&6
  11237. else $as_nop
  11238. if test -n "$ac_ct_RC"; then
  11239. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11240. else
  11241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11242. for as_dir in $PATH
  11243. do
  11244. IFS=$as_save_IFS
  11245. case $as_dir in #(((
  11246. '') as_dir=./ ;;
  11247. */) ;;
  11248. *) as_dir=$as_dir/ ;;
  11249. esac
  11250. for ac_exec_ext in '' $ac_executable_extensions; do
  11251. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11252. ac_cv_prog_ac_ct_RC="windres"
  11253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11254. break 2
  11255. fi
  11256. done
  11257. done
  11258. IFS=$as_save_IFS
  11259. fi
  11260. fi
  11261. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11262. if test -n "$ac_ct_RC"; then
  11263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11264. printf "%s\n" "$ac_ct_RC" >&6; }
  11265. else
  11266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11267. printf "%s\n" "no" >&6; }
  11268. fi
  11269. if test "x$ac_ct_RC" = x; then
  11270. RC=""
  11271. else
  11272. case $cross_compiling:$ac_tool_warned in
  11273. yes:)
  11274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11275. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11276. ac_tool_warned=yes ;;
  11277. esac
  11278. RC=$ac_ct_RC
  11279. fi
  11280. else
  11281. RC="$ac_cv_prog_RC"
  11282. fi
  11283. # Source file extension for RC test sources.
  11284. ac_ext=rc
  11285. # Object file extension for compiled RC test sources.
  11286. objext=o
  11287. objext_RC=$objext
  11288. # Code to be used in simple compile tests
  11289. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11290. # Code to be used in simple link tests
  11291. lt_simple_link_test_code=$lt_simple_compile_test_code
  11292. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11293. # If no C compiler was specified, use CC.
  11294. LTCC=${LTCC-"$CC"}
  11295. # If no C compiler flags were specified, use CFLAGS.
  11296. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11297. # Allow CC to be a program name with arguments.
  11298. compiler=$CC
  11299. # save warnings/boilerplate of simple test code
  11300. ac_outfile=conftest.$ac_objext
  11301. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11302. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11303. _lt_compiler_boilerplate=`cat conftest.err`
  11304. $RM conftest*
  11305. ac_outfile=conftest.$ac_objext
  11306. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11307. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11308. _lt_linker_boilerplate=`cat conftest.err`
  11309. $RM -r conftest*
  11310. # Allow CC to be a program name with arguments.
  11311. lt_save_CC=$CC
  11312. lt_save_CFLAGS=$CFLAGS
  11313. lt_save_GCC=$GCC
  11314. GCC=
  11315. CC=${RC-"windres"}
  11316. CFLAGS=
  11317. compiler=$CC
  11318. compiler_RC=$CC
  11319. func_cc_basename $compiler
  11320. cc_basename=$func_cc_basename_result
  11321. lt_cv_prog_compiler_c_o_RC=yes
  11322. if test -n "$compiler"; then
  11323. :
  11324. fi
  11325. GCC=$lt_save_GCC
  11326. ac_ext=c
  11327. ac_cpp='$CPP $CPPFLAGS'
  11328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11331. CC=$lt_save_CC
  11332. CFLAGS=$lt_save_CFLAGS
  11333. # For historical reasons, the library name redundantly includes the major
  11334. # version twice: libSDL2-2.0.so.0.
  11335. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11336. LT_RELEASE=2.0
  11337. # Increment this if there is an incompatible change - but if that happens,
  11338. # we should rename the library from SDL2 to SDL3, at which point this would
  11339. # reset to 0 anyway.
  11340. LT_MAJOR=0
  11341. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11342. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11343. LT_REVISION=$SDL_INTERFACE_AGE
  11344. for ac_prog in gawk mawk nawk awk
  11345. do
  11346. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11347. set dummy $ac_prog; ac_word=$2
  11348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11349. printf %s "checking for $ac_word... " >&6; }
  11350. if test ${ac_cv_prog_AWK+y}
  11351. then :
  11352. printf %s "(cached) " >&6
  11353. else $as_nop
  11354. if test -n "$AWK"; then
  11355. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11356. else
  11357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11358. for as_dir in $PATH
  11359. do
  11360. IFS=$as_save_IFS
  11361. case $as_dir in #(((
  11362. '') as_dir=./ ;;
  11363. */) ;;
  11364. *) as_dir=$as_dir/ ;;
  11365. esac
  11366. for ac_exec_ext in '' $ac_executable_extensions; do
  11367. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11368. ac_cv_prog_AWK="$ac_prog"
  11369. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11370. break 2
  11371. fi
  11372. done
  11373. done
  11374. IFS=$as_save_IFS
  11375. fi
  11376. fi
  11377. AWK=$ac_cv_prog_AWK
  11378. if test -n "$AWK"; then
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11380. printf "%s\n" "$AWK" >&6; }
  11381. else
  11382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11383. printf "%s\n" "no" >&6; }
  11384. fi
  11385. test -n "$AWK" && break
  11386. done
  11387. ac_ext=c
  11388. ac_cpp='$CPP $CPPFLAGS'
  11389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11392. if test -n "$ac_tool_prefix"; then
  11393. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11394. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11396. printf %s "checking for $ac_word... " >&6; }
  11397. if test ${ac_cv_prog_CC+y}
  11398. then :
  11399. printf %s "(cached) " >&6
  11400. else $as_nop
  11401. if test -n "$CC"; then
  11402. ac_cv_prog_CC="$CC" # Let the user override the test.
  11403. else
  11404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11405. for as_dir in $PATH
  11406. do
  11407. IFS=$as_save_IFS
  11408. case $as_dir in #(((
  11409. '') as_dir=./ ;;
  11410. */) ;;
  11411. *) as_dir=$as_dir/ ;;
  11412. esac
  11413. for ac_exec_ext in '' $ac_executable_extensions; do
  11414. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11415. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11416. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11417. break 2
  11418. fi
  11419. done
  11420. done
  11421. IFS=$as_save_IFS
  11422. fi
  11423. fi
  11424. CC=$ac_cv_prog_CC
  11425. if test -n "$CC"; then
  11426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11427. printf "%s\n" "$CC" >&6; }
  11428. else
  11429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11430. printf "%s\n" "no" >&6; }
  11431. fi
  11432. fi
  11433. if test -z "$ac_cv_prog_CC"; then
  11434. ac_ct_CC=$CC
  11435. # Extract the first word of "gcc", so it can be a program name with args.
  11436. set dummy gcc; ac_word=$2
  11437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11438. printf %s "checking for $ac_word... " >&6; }
  11439. if test ${ac_cv_prog_ac_ct_CC+y}
  11440. then :
  11441. printf %s "(cached) " >&6
  11442. else $as_nop
  11443. if test -n "$ac_ct_CC"; then
  11444. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11445. else
  11446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11447. for as_dir in $PATH
  11448. do
  11449. IFS=$as_save_IFS
  11450. case $as_dir in #(((
  11451. '') as_dir=./ ;;
  11452. */) ;;
  11453. *) as_dir=$as_dir/ ;;
  11454. esac
  11455. for ac_exec_ext in '' $ac_executable_extensions; do
  11456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11457. ac_cv_prog_ac_ct_CC="gcc"
  11458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11459. break 2
  11460. fi
  11461. done
  11462. done
  11463. IFS=$as_save_IFS
  11464. fi
  11465. fi
  11466. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11467. if test -n "$ac_ct_CC"; then
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11469. printf "%s\n" "$ac_ct_CC" >&6; }
  11470. else
  11471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11472. printf "%s\n" "no" >&6; }
  11473. fi
  11474. if test "x$ac_ct_CC" = x; then
  11475. CC=""
  11476. else
  11477. case $cross_compiling:$ac_tool_warned in
  11478. yes:)
  11479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11480. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11481. ac_tool_warned=yes ;;
  11482. esac
  11483. CC=$ac_ct_CC
  11484. fi
  11485. else
  11486. CC="$ac_cv_prog_CC"
  11487. fi
  11488. if test -z "$CC"; then
  11489. if test -n "$ac_tool_prefix"; then
  11490. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11491. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11493. printf %s "checking for $ac_word... " >&6; }
  11494. if test ${ac_cv_prog_CC+y}
  11495. then :
  11496. printf %s "(cached) " >&6
  11497. else $as_nop
  11498. if test -n "$CC"; then
  11499. ac_cv_prog_CC="$CC" # Let the user override the test.
  11500. else
  11501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11502. for as_dir in $PATH
  11503. do
  11504. IFS=$as_save_IFS
  11505. case $as_dir in #(((
  11506. '') as_dir=./ ;;
  11507. */) ;;
  11508. *) as_dir=$as_dir/ ;;
  11509. esac
  11510. for ac_exec_ext in '' $ac_executable_extensions; do
  11511. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11512. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11513. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11514. break 2
  11515. fi
  11516. done
  11517. done
  11518. IFS=$as_save_IFS
  11519. fi
  11520. fi
  11521. CC=$ac_cv_prog_CC
  11522. if test -n "$CC"; then
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11524. printf "%s\n" "$CC" >&6; }
  11525. else
  11526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11527. printf "%s\n" "no" >&6; }
  11528. fi
  11529. fi
  11530. fi
  11531. if test -z "$CC"; then
  11532. # Extract the first word of "cc", so it can be a program name with args.
  11533. set dummy cc; ac_word=$2
  11534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11535. printf %s "checking for $ac_word... " >&6; }
  11536. if test ${ac_cv_prog_CC+y}
  11537. then :
  11538. printf %s "(cached) " >&6
  11539. else $as_nop
  11540. if test -n "$CC"; then
  11541. ac_cv_prog_CC="$CC" # Let the user override the test.
  11542. else
  11543. ac_prog_rejected=no
  11544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11545. for as_dir in $PATH
  11546. do
  11547. IFS=$as_save_IFS
  11548. case $as_dir in #(((
  11549. '') as_dir=./ ;;
  11550. */) ;;
  11551. *) as_dir=$as_dir/ ;;
  11552. esac
  11553. for ac_exec_ext in '' $ac_executable_extensions; do
  11554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11555. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11556. ac_prog_rejected=yes
  11557. continue
  11558. fi
  11559. ac_cv_prog_CC="cc"
  11560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11561. break 2
  11562. fi
  11563. done
  11564. done
  11565. IFS=$as_save_IFS
  11566. if test $ac_prog_rejected = yes; then
  11567. # We found a bogon in the path, so make sure we never use it.
  11568. set dummy $ac_cv_prog_CC
  11569. shift
  11570. if test $# != 0; then
  11571. # We chose a different compiler from the bogus one.
  11572. # However, it has the same basename, so the bogon will be chosen
  11573. # first if we set CC to just the basename; use the full file name.
  11574. shift
  11575. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11576. fi
  11577. fi
  11578. fi
  11579. fi
  11580. CC=$ac_cv_prog_CC
  11581. if test -n "$CC"; then
  11582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11583. printf "%s\n" "$CC" >&6; }
  11584. else
  11585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11586. printf "%s\n" "no" >&6; }
  11587. fi
  11588. fi
  11589. if test -z "$CC"; then
  11590. if test -n "$ac_tool_prefix"; then
  11591. for ac_prog in cl.exe
  11592. do
  11593. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11594. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11596. printf %s "checking for $ac_word... " >&6; }
  11597. if test ${ac_cv_prog_CC+y}
  11598. then :
  11599. printf %s "(cached) " >&6
  11600. else $as_nop
  11601. if test -n "$CC"; then
  11602. ac_cv_prog_CC="$CC" # Let the user override the test.
  11603. else
  11604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11605. for as_dir in $PATH
  11606. do
  11607. IFS=$as_save_IFS
  11608. case $as_dir in #(((
  11609. '') as_dir=./ ;;
  11610. */) ;;
  11611. *) as_dir=$as_dir/ ;;
  11612. esac
  11613. for ac_exec_ext in '' $ac_executable_extensions; do
  11614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11615. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11617. break 2
  11618. fi
  11619. done
  11620. done
  11621. IFS=$as_save_IFS
  11622. fi
  11623. fi
  11624. CC=$ac_cv_prog_CC
  11625. if test -n "$CC"; then
  11626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11627. printf "%s\n" "$CC" >&6; }
  11628. else
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11630. printf "%s\n" "no" >&6; }
  11631. fi
  11632. test -n "$CC" && break
  11633. done
  11634. fi
  11635. if test -z "$CC"; then
  11636. ac_ct_CC=$CC
  11637. for ac_prog in cl.exe
  11638. do
  11639. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11640. set dummy $ac_prog; ac_word=$2
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11642. printf %s "checking for $ac_word... " >&6; }
  11643. if test ${ac_cv_prog_ac_ct_CC+y}
  11644. then :
  11645. printf %s "(cached) " >&6
  11646. else $as_nop
  11647. if test -n "$ac_ct_CC"; then
  11648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11649. else
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $PATH
  11652. do
  11653. IFS=$as_save_IFS
  11654. case $as_dir in #(((
  11655. '') as_dir=./ ;;
  11656. */) ;;
  11657. *) as_dir=$as_dir/ ;;
  11658. esac
  11659. for ac_exec_ext in '' $ac_executable_extensions; do
  11660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11661. ac_cv_prog_ac_ct_CC="$ac_prog"
  11662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11663. break 2
  11664. fi
  11665. done
  11666. done
  11667. IFS=$as_save_IFS
  11668. fi
  11669. fi
  11670. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11671. if test -n "$ac_ct_CC"; then
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11673. printf "%s\n" "$ac_ct_CC" >&6; }
  11674. else
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11676. printf "%s\n" "no" >&6; }
  11677. fi
  11678. test -n "$ac_ct_CC" && break
  11679. done
  11680. if test "x$ac_ct_CC" = x; then
  11681. CC=""
  11682. else
  11683. case $cross_compiling:$ac_tool_warned in
  11684. yes:)
  11685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11686. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11687. ac_tool_warned=yes ;;
  11688. esac
  11689. CC=$ac_ct_CC
  11690. fi
  11691. fi
  11692. fi
  11693. if test -z "$CC"; then
  11694. if test -n "$ac_tool_prefix"; then
  11695. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11696. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11698. printf %s "checking for $ac_word... " >&6; }
  11699. if test ${ac_cv_prog_CC+y}
  11700. then :
  11701. printf %s "(cached) " >&6
  11702. else $as_nop
  11703. if test -n "$CC"; then
  11704. ac_cv_prog_CC="$CC" # Let the user override the test.
  11705. else
  11706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11707. for as_dir in $PATH
  11708. do
  11709. IFS=$as_save_IFS
  11710. case $as_dir in #(((
  11711. '') as_dir=./ ;;
  11712. */) ;;
  11713. *) as_dir=$as_dir/ ;;
  11714. esac
  11715. for ac_exec_ext in '' $ac_executable_extensions; do
  11716. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11717. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11719. break 2
  11720. fi
  11721. done
  11722. done
  11723. IFS=$as_save_IFS
  11724. fi
  11725. fi
  11726. CC=$ac_cv_prog_CC
  11727. if test -n "$CC"; then
  11728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11729. printf "%s\n" "$CC" >&6; }
  11730. else
  11731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11732. printf "%s\n" "no" >&6; }
  11733. fi
  11734. fi
  11735. if test -z "$ac_cv_prog_CC"; then
  11736. ac_ct_CC=$CC
  11737. # Extract the first word of "clang", so it can be a program name with args.
  11738. set dummy clang; ac_word=$2
  11739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11740. printf %s "checking for $ac_word... " >&6; }
  11741. if test ${ac_cv_prog_ac_ct_CC+y}
  11742. then :
  11743. printf %s "(cached) " >&6
  11744. else $as_nop
  11745. if test -n "$ac_ct_CC"; then
  11746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11747. else
  11748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11749. for as_dir in $PATH
  11750. do
  11751. IFS=$as_save_IFS
  11752. case $as_dir in #(((
  11753. '') as_dir=./ ;;
  11754. */) ;;
  11755. *) as_dir=$as_dir/ ;;
  11756. esac
  11757. for ac_exec_ext in '' $ac_executable_extensions; do
  11758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11759. ac_cv_prog_ac_ct_CC="clang"
  11760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11761. break 2
  11762. fi
  11763. done
  11764. done
  11765. IFS=$as_save_IFS
  11766. fi
  11767. fi
  11768. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11769. if test -n "$ac_ct_CC"; then
  11770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11771. printf "%s\n" "$ac_ct_CC" >&6; }
  11772. else
  11773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11774. printf "%s\n" "no" >&6; }
  11775. fi
  11776. if test "x$ac_ct_CC" = x; then
  11777. CC=""
  11778. else
  11779. case $cross_compiling:$ac_tool_warned in
  11780. yes:)
  11781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11782. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11783. ac_tool_warned=yes ;;
  11784. esac
  11785. CC=$ac_ct_CC
  11786. fi
  11787. else
  11788. CC="$ac_cv_prog_CC"
  11789. fi
  11790. fi
  11791. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11792. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11793. as_fn_error $? "no acceptable C compiler found in \$PATH
  11794. See \`config.log' for more details" "$LINENO" 5; }
  11795. # Provide some information about the compiler.
  11796. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11797. set X $ac_compile
  11798. ac_compiler=$2
  11799. for ac_option in --version -v -V -qversion -version; do
  11800. { { ac_try="$ac_compiler $ac_option >&5"
  11801. case "(($ac_try" in
  11802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11803. *) ac_try_echo=$ac_try;;
  11804. esac
  11805. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11806. printf "%s\n" "$ac_try_echo"; } >&5
  11807. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11808. ac_status=$?
  11809. if test -s conftest.err; then
  11810. sed '10a\
  11811. ... rest of stderr output deleted ...
  11812. 10q' conftest.err >conftest.er1
  11813. cat conftest.er1 >&5
  11814. fi
  11815. rm -f conftest.er1 conftest.err
  11816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11817. test $ac_status = 0; }
  11818. done
  11819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11820. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11821. if test ${ac_cv_c_compiler_gnu+y}
  11822. then :
  11823. printf %s "(cached) " >&6
  11824. else $as_nop
  11825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11826. /* end confdefs.h. */
  11827. int
  11828. main (void)
  11829. {
  11830. #ifndef __GNUC__
  11831. choke me
  11832. #endif
  11833. ;
  11834. return 0;
  11835. }
  11836. _ACEOF
  11837. if ac_fn_c_try_compile "$LINENO"
  11838. then :
  11839. ac_compiler_gnu=yes
  11840. else $as_nop
  11841. ac_compiler_gnu=no
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11844. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11845. fi
  11846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11847. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11849. if test $ac_compiler_gnu = yes; then
  11850. GCC=yes
  11851. else
  11852. GCC=
  11853. fi
  11854. ac_test_CFLAGS=${CFLAGS+y}
  11855. ac_save_CFLAGS=$CFLAGS
  11856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11857. printf %s "checking whether $CC accepts -g... " >&6; }
  11858. if test ${ac_cv_prog_cc_g+y}
  11859. then :
  11860. printf %s "(cached) " >&6
  11861. else $as_nop
  11862. ac_save_c_werror_flag=$ac_c_werror_flag
  11863. ac_c_werror_flag=yes
  11864. ac_cv_prog_cc_g=no
  11865. CFLAGS="-g"
  11866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11867. /* end confdefs.h. */
  11868. int
  11869. main (void)
  11870. {
  11871. ;
  11872. return 0;
  11873. }
  11874. _ACEOF
  11875. if ac_fn_c_try_compile "$LINENO"
  11876. then :
  11877. ac_cv_prog_cc_g=yes
  11878. else $as_nop
  11879. CFLAGS=""
  11880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11881. /* end confdefs.h. */
  11882. int
  11883. main (void)
  11884. {
  11885. ;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_c_try_compile "$LINENO"
  11890. then :
  11891. else $as_nop
  11892. ac_c_werror_flag=$ac_save_c_werror_flag
  11893. CFLAGS="-g"
  11894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11895. /* end confdefs.h. */
  11896. int
  11897. main (void)
  11898. {
  11899. ;
  11900. return 0;
  11901. }
  11902. _ACEOF
  11903. if ac_fn_c_try_compile "$LINENO"
  11904. then :
  11905. ac_cv_prog_cc_g=yes
  11906. fi
  11907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11908. fi
  11909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11910. fi
  11911. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11912. ac_c_werror_flag=$ac_save_c_werror_flag
  11913. fi
  11914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11915. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11916. if test $ac_test_CFLAGS; then
  11917. CFLAGS=$ac_save_CFLAGS
  11918. elif test $ac_cv_prog_cc_g = yes; then
  11919. if test "$GCC" = yes; then
  11920. CFLAGS="-g -O2"
  11921. else
  11922. CFLAGS="-g"
  11923. fi
  11924. else
  11925. if test "$GCC" = yes; then
  11926. CFLAGS="-O2"
  11927. else
  11928. CFLAGS=
  11929. fi
  11930. fi
  11931. ac_prog_cc_stdc=no
  11932. if test x$ac_prog_cc_stdc = xno
  11933. then :
  11934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11935. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11936. if test ${ac_cv_prog_cc_c11+y}
  11937. then :
  11938. printf %s "(cached) " >&6
  11939. else $as_nop
  11940. ac_cv_prog_cc_c11=no
  11941. ac_save_CC=$CC
  11942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11943. /* end confdefs.h. */
  11944. $ac_c_conftest_c11_program
  11945. _ACEOF
  11946. for ac_arg in '' -std=gnu11
  11947. do
  11948. CC="$ac_save_CC $ac_arg"
  11949. if ac_fn_c_try_compile "$LINENO"
  11950. then :
  11951. ac_cv_prog_cc_c11=$ac_arg
  11952. fi
  11953. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11954. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11955. done
  11956. rm -f conftest.$ac_ext
  11957. CC=$ac_save_CC
  11958. fi
  11959. if test "x$ac_cv_prog_cc_c11" = xno
  11960. then :
  11961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11962. printf "%s\n" "unsupported" >&6; }
  11963. else $as_nop
  11964. if test "x$ac_cv_prog_cc_c11" = x
  11965. then :
  11966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11967. printf "%s\n" "none needed" >&6; }
  11968. else $as_nop
  11969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11970. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11971. CC="$CC $ac_cv_prog_cc_c11"
  11972. fi
  11973. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11974. ac_prog_cc_stdc=c11
  11975. fi
  11976. fi
  11977. if test x$ac_prog_cc_stdc = xno
  11978. then :
  11979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11980. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11981. if test ${ac_cv_prog_cc_c99+y}
  11982. then :
  11983. printf %s "(cached) " >&6
  11984. else $as_nop
  11985. ac_cv_prog_cc_c99=no
  11986. ac_save_CC=$CC
  11987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11988. /* end confdefs.h. */
  11989. $ac_c_conftest_c99_program
  11990. _ACEOF
  11991. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11992. do
  11993. CC="$ac_save_CC $ac_arg"
  11994. if ac_fn_c_try_compile "$LINENO"
  11995. then :
  11996. ac_cv_prog_cc_c99=$ac_arg
  11997. fi
  11998. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11999. test "x$ac_cv_prog_cc_c99" != "xno" && break
  12000. done
  12001. rm -f conftest.$ac_ext
  12002. CC=$ac_save_CC
  12003. fi
  12004. if test "x$ac_cv_prog_cc_c99" = xno
  12005. then :
  12006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12007. printf "%s\n" "unsupported" >&6; }
  12008. else $as_nop
  12009. if test "x$ac_cv_prog_cc_c99" = x
  12010. then :
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12012. printf "%s\n" "none needed" >&6; }
  12013. else $as_nop
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12015. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12016. CC="$CC $ac_cv_prog_cc_c99"
  12017. fi
  12018. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12019. ac_prog_cc_stdc=c99
  12020. fi
  12021. fi
  12022. if test x$ac_prog_cc_stdc = xno
  12023. then :
  12024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12025. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12026. if test ${ac_cv_prog_cc_c89+y}
  12027. then :
  12028. printf %s "(cached) " >&6
  12029. else $as_nop
  12030. ac_cv_prog_cc_c89=no
  12031. ac_save_CC=$CC
  12032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12033. /* end confdefs.h. */
  12034. $ac_c_conftest_c89_program
  12035. _ACEOF
  12036. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12037. do
  12038. CC="$ac_save_CC $ac_arg"
  12039. if ac_fn_c_try_compile "$LINENO"
  12040. then :
  12041. ac_cv_prog_cc_c89=$ac_arg
  12042. fi
  12043. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12044. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12045. done
  12046. rm -f conftest.$ac_ext
  12047. CC=$ac_save_CC
  12048. fi
  12049. if test "x$ac_cv_prog_cc_c89" = xno
  12050. then :
  12051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12052. printf "%s\n" "unsupported" >&6; }
  12053. else $as_nop
  12054. if test "x$ac_cv_prog_cc_c89" = x
  12055. then :
  12056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12057. printf "%s\n" "none needed" >&6; }
  12058. else $as_nop
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12060. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12061. CC="$CC $ac_cv_prog_cc_c89"
  12062. fi
  12063. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12064. ac_prog_cc_stdc=c89
  12065. fi
  12066. fi
  12067. ac_ext=c
  12068. ac_cpp='$CPP $CPPFLAGS'
  12069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12072. ac_ext=cpp
  12073. ac_cpp='$CXXCPP $CPPFLAGS'
  12074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12077. if test -z "$CXX"; then
  12078. if test -n "$CCC"; then
  12079. CXX=$CCC
  12080. else
  12081. if test -n "$ac_tool_prefix"; then
  12082. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12083. do
  12084. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12085. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12087. printf %s "checking for $ac_word... " >&6; }
  12088. if test ${ac_cv_prog_CXX+y}
  12089. then :
  12090. printf %s "(cached) " >&6
  12091. else $as_nop
  12092. if test -n "$CXX"; then
  12093. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12094. else
  12095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12096. for as_dir in $PATH
  12097. do
  12098. IFS=$as_save_IFS
  12099. case $as_dir in #(((
  12100. '') as_dir=./ ;;
  12101. */) ;;
  12102. *) as_dir=$as_dir/ ;;
  12103. esac
  12104. for ac_exec_ext in '' $ac_executable_extensions; do
  12105. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12106. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12108. break 2
  12109. fi
  12110. done
  12111. done
  12112. IFS=$as_save_IFS
  12113. fi
  12114. fi
  12115. CXX=$ac_cv_prog_CXX
  12116. if test -n "$CXX"; then
  12117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12118. printf "%s\n" "$CXX" >&6; }
  12119. else
  12120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12121. printf "%s\n" "no" >&6; }
  12122. fi
  12123. test -n "$CXX" && break
  12124. done
  12125. fi
  12126. if test -z "$CXX"; then
  12127. ac_ct_CXX=$CXX
  12128. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12129. do
  12130. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12131. set dummy $ac_prog; ac_word=$2
  12132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12133. printf %s "checking for $ac_word... " >&6; }
  12134. if test ${ac_cv_prog_ac_ct_CXX+y}
  12135. then :
  12136. printf %s "(cached) " >&6
  12137. else $as_nop
  12138. if test -n "$ac_ct_CXX"; then
  12139. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12140. else
  12141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12142. for as_dir in $PATH
  12143. do
  12144. IFS=$as_save_IFS
  12145. case $as_dir in #(((
  12146. '') as_dir=./ ;;
  12147. */) ;;
  12148. *) as_dir=$as_dir/ ;;
  12149. esac
  12150. for ac_exec_ext in '' $ac_executable_extensions; do
  12151. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12152. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12154. break 2
  12155. fi
  12156. done
  12157. done
  12158. IFS=$as_save_IFS
  12159. fi
  12160. fi
  12161. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12162. if test -n "$ac_ct_CXX"; then
  12163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12164. printf "%s\n" "$ac_ct_CXX" >&6; }
  12165. else
  12166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12167. printf "%s\n" "no" >&6; }
  12168. fi
  12169. test -n "$ac_ct_CXX" && break
  12170. done
  12171. if test "x$ac_ct_CXX" = x; then
  12172. CXX="g++"
  12173. else
  12174. case $cross_compiling:$ac_tool_warned in
  12175. yes:)
  12176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12177. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12178. ac_tool_warned=yes ;;
  12179. esac
  12180. CXX=$ac_ct_CXX
  12181. fi
  12182. fi
  12183. fi
  12184. fi
  12185. # Provide some information about the compiler.
  12186. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12187. set X $ac_compile
  12188. ac_compiler=$2
  12189. for ac_option in --version -v -V -qversion; do
  12190. { { ac_try="$ac_compiler $ac_option >&5"
  12191. case "(($ac_try" in
  12192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12193. *) ac_try_echo=$ac_try;;
  12194. esac
  12195. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12196. printf "%s\n" "$ac_try_echo"; } >&5
  12197. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12198. ac_status=$?
  12199. if test -s conftest.err; then
  12200. sed '10a\
  12201. ... rest of stderr output deleted ...
  12202. 10q' conftest.err >conftest.er1
  12203. cat conftest.er1 >&5
  12204. fi
  12205. rm -f conftest.er1 conftest.err
  12206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12207. test $ac_status = 0; }
  12208. done
  12209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12210. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12211. if test ${ac_cv_cxx_compiler_gnu+y}
  12212. then :
  12213. printf %s "(cached) " >&6
  12214. else $as_nop
  12215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12216. /* end confdefs.h. */
  12217. int
  12218. main (void)
  12219. {
  12220. #ifndef __GNUC__
  12221. choke me
  12222. #endif
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_cxx_try_compile "$LINENO"
  12228. then :
  12229. ac_compiler_gnu=yes
  12230. else $as_nop
  12231. ac_compiler_gnu=no
  12232. fi
  12233. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12234. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12235. fi
  12236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12237. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12239. if test $ac_compiler_gnu = yes; then
  12240. GXX=yes
  12241. else
  12242. GXX=
  12243. fi
  12244. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12245. ac_save_CXXFLAGS=$CXXFLAGS
  12246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12247. printf %s "checking whether $CXX accepts -g... " >&6; }
  12248. if test ${ac_cv_prog_cxx_g+y}
  12249. then :
  12250. printf %s "(cached) " >&6
  12251. else $as_nop
  12252. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12253. ac_cxx_werror_flag=yes
  12254. ac_cv_prog_cxx_g=no
  12255. CXXFLAGS="-g"
  12256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12257. /* end confdefs.h. */
  12258. int
  12259. main (void)
  12260. {
  12261. ;
  12262. return 0;
  12263. }
  12264. _ACEOF
  12265. if ac_fn_cxx_try_compile "$LINENO"
  12266. then :
  12267. ac_cv_prog_cxx_g=yes
  12268. else $as_nop
  12269. CXXFLAGS=""
  12270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12271. /* end confdefs.h. */
  12272. int
  12273. main (void)
  12274. {
  12275. ;
  12276. return 0;
  12277. }
  12278. _ACEOF
  12279. if ac_fn_cxx_try_compile "$LINENO"
  12280. then :
  12281. else $as_nop
  12282. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12283. CXXFLAGS="-g"
  12284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12285. /* end confdefs.h. */
  12286. int
  12287. main (void)
  12288. {
  12289. ;
  12290. return 0;
  12291. }
  12292. _ACEOF
  12293. if ac_fn_cxx_try_compile "$LINENO"
  12294. then :
  12295. ac_cv_prog_cxx_g=yes
  12296. fi
  12297. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12298. fi
  12299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12300. fi
  12301. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12302. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12303. fi
  12304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12305. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12306. if test $ac_test_CXXFLAGS; then
  12307. CXXFLAGS=$ac_save_CXXFLAGS
  12308. elif test $ac_cv_prog_cxx_g = yes; then
  12309. if test "$GXX" = yes; then
  12310. CXXFLAGS="-g -O2"
  12311. else
  12312. CXXFLAGS="-g"
  12313. fi
  12314. else
  12315. if test "$GXX" = yes; then
  12316. CXXFLAGS="-O2"
  12317. else
  12318. CXXFLAGS=
  12319. fi
  12320. fi
  12321. ac_prog_cxx_stdcxx=no
  12322. if test x$ac_prog_cxx_stdcxx = xno
  12323. then :
  12324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12325. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12326. if test ${ac_cv_prog_cxx_cxx11+y}
  12327. then :
  12328. printf %s "(cached) " >&6
  12329. else $as_nop
  12330. ac_cv_prog_cxx_cxx11=no
  12331. ac_save_CXX=$CXX
  12332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12333. /* end confdefs.h. */
  12334. $ac_cxx_conftest_cxx11_program
  12335. _ACEOF
  12336. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12337. do
  12338. CXX="$ac_save_CXX $ac_arg"
  12339. if ac_fn_cxx_try_compile "$LINENO"
  12340. then :
  12341. ac_cv_prog_cxx_cxx11=$ac_arg
  12342. fi
  12343. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12344. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12345. done
  12346. rm -f conftest.$ac_ext
  12347. CXX=$ac_save_CXX
  12348. fi
  12349. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12350. then :
  12351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12352. printf "%s\n" "unsupported" >&6; }
  12353. else $as_nop
  12354. if test "x$ac_cv_prog_cxx_cxx11" = x
  12355. then :
  12356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12357. printf "%s\n" "none needed" >&6; }
  12358. else $as_nop
  12359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12360. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12361. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12362. fi
  12363. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12364. ac_prog_cxx_stdcxx=cxx11
  12365. fi
  12366. fi
  12367. if test x$ac_prog_cxx_stdcxx = xno
  12368. then :
  12369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12370. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12371. if test ${ac_cv_prog_cxx_cxx98+y}
  12372. then :
  12373. printf %s "(cached) " >&6
  12374. else $as_nop
  12375. ac_cv_prog_cxx_cxx98=no
  12376. ac_save_CXX=$CXX
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. $ac_cxx_conftest_cxx98_program
  12380. _ACEOF
  12381. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12382. do
  12383. CXX="$ac_save_CXX $ac_arg"
  12384. if ac_fn_cxx_try_compile "$LINENO"
  12385. then :
  12386. ac_cv_prog_cxx_cxx98=$ac_arg
  12387. fi
  12388. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12389. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12390. done
  12391. rm -f conftest.$ac_ext
  12392. CXX=$ac_save_CXX
  12393. fi
  12394. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12395. then :
  12396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12397. printf "%s\n" "unsupported" >&6; }
  12398. else $as_nop
  12399. if test "x$ac_cv_prog_cxx_cxx98" = x
  12400. then :
  12401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12402. printf "%s\n" "none needed" >&6; }
  12403. else $as_nop
  12404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12405. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12406. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12407. fi
  12408. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12409. ac_prog_cxx_stdcxx=cxx98
  12410. fi
  12411. fi
  12412. ac_ext=c
  12413. ac_cpp='$CPP $CPPFLAGS'
  12414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12417. func_stripname_cnf ()
  12418. {
  12419. case $2 in
  12420. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12421. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12422. esac
  12423. } # func_stripname_cnf
  12424. if test -n "$CXX" && ( test no != "$CXX" &&
  12425. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12426. (test g++ != "$CXX"))); then
  12427. ac_ext=cpp
  12428. ac_cpp='$CXXCPP $CPPFLAGS'
  12429. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12430. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12431. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12433. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12434. if test -z "$CXXCPP"; then
  12435. if test ${ac_cv_prog_CXXCPP+y}
  12436. then :
  12437. printf %s "(cached) " >&6
  12438. else $as_nop
  12439. # Double quotes because $CXX needs to be expanded
  12440. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12441. do
  12442. ac_preproc_ok=false
  12443. for ac_cxx_preproc_warn_flag in '' yes
  12444. do
  12445. # Use a header file that comes with gcc, so configuring glibc
  12446. # with a fresh cross-compiler works.
  12447. # On the NeXT, cc -E runs the code through the compiler's parser,
  12448. # not just through cpp. "Syntax error" is here to catch this case.
  12449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12450. /* end confdefs.h. */
  12451. #include <limits.h>
  12452. Syntax error
  12453. _ACEOF
  12454. if ac_fn_cxx_try_cpp "$LINENO"
  12455. then :
  12456. else $as_nop
  12457. # Broken: fails on valid input.
  12458. continue
  12459. fi
  12460. rm -f conftest.err conftest.i conftest.$ac_ext
  12461. # OK, works on sane cases. Now check whether nonexistent headers
  12462. # can be detected and how.
  12463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12464. /* end confdefs.h. */
  12465. #include <ac_nonexistent.h>
  12466. _ACEOF
  12467. if ac_fn_cxx_try_cpp "$LINENO"
  12468. then :
  12469. # Broken: success on invalid input.
  12470. continue
  12471. else $as_nop
  12472. # Passes both tests.
  12473. ac_preproc_ok=:
  12474. break
  12475. fi
  12476. rm -f conftest.err conftest.i conftest.$ac_ext
  12477. done
  12478. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12479. rm -f conftest.i conftest.err conftest.$ac_ext
  12480. if $ac_preproc_ok
  12481. then :
  12482. break
  12483. fi
  12484. done
  12485. ac_cv_prog_CXXCPP=$CXXCPP
  12486. fi
  12487. CXXCPP=$ac_cv_prog_CXXCPP
  12488. else
  12489. ac_cv_prog_CXXCPP=$CXXCPP
  12490. fi
  12491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12492. printf "%s\n" "$CXXCPP" >&6; }
  12493. ac_preproc_ok=false
  12494. for ac_cxx_preproc_warn_flag in '' yes
  12495. do
  12496. # Use a header file that comes with gcc, so configuring glibc
  12497. # with a fresh cross-compiler works.
  12498. # On the NeXT, cc -E runs the code through the compiler's parser,
  12499. # not just through cpp. "Syntax error" is here to catch this case.
  12500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12501. /* end confdefs.h. */
  12502. #include <limits.h>
  12503. Syntax error
  12504. _ACEOF
  12505. if ac_fn_cxx_try_cpp "$LINENO"
  12506. then :
  12507. else $as_nop
  12508. # Broken: fails on valid input.
  12509. continue
  12510. fi
  12511. rm -f conftest.err conftest.i conftest.$ac_ext
  12512. # OK, works on sane cases. Now check whether nonexistent headers
  12513. # can be detected and how.
  12514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12515. /* end confdefs.h. */
  12516. #include <ac_nonexistent.h>
  12517. _ACEOF
  12518. if ac_fn_cxx_try_cpp "$LINENO"
  12519. then :
  12520. # Broken: success on invalid input.
  12521. continue
  12522. else $as_nop
  12523. # Passes both tests.
  12524. ac_preproc_ok=:
  12525. break
  12526. fi
  12527. rm -f conftest.err conftest.i conftest.$ac_ext
  12528. done
  12529. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12530. rm -f conftest.i conftest.err conftest.$ac_ext
  12531. if $ac_preproc_ok
  12532. then :
  12533. else $as_nop
  12534. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12535. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12536. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12537. See \`config.log' for more details" "$LINENO" 5; }
  12538. fi
  12539. ac_ext=c
  12540. ac_cpp='$CPP $CPPFLAGS'
  12541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12544. else
  12545. _lt_caught_CXX_error=yes
  12546. fi
  12547. ac_ext=cpp
  12548. ac_cpp='$CXXCPP $CPPFLAGS'
  12549. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12550. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12551. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12552. archive_cmds_need_lc_CXX=no
  12553. allow_undefined_flag_CXX=
  12554. always_export_symbols_CXX=no
  12555. archive_expsym_cmds_CXX=
  12556. compiler_needs_object_CXX=no
  12557. export_dynamic_flag_spec_CXX=
  12558. hardcode_direct_CXX=no
  12559. hardcode_direct_absolute_CXX=no
  12560. hardcode_libdir_flag_spec_CXX=
  12561. hardcode_libdir_separator_CXX=
  12562. hardcode_minus_L_CXX=no
  12563. hardcode_shlibpath_var_CXX=unsupported
  12564. hardcode_automatic_CXX=no
  12565. inherit_rpath_CXX=no
  12566. module_cmds_CXX=
  12567. module_expsym_cmds_CXX=
  12568. link_all_deplibs_CXX=unknown
  12569. old_archive_cmds_CXX=$old_archive_cmds
  12570. reload_flag_CXX=$reload_flag
  12571. reload_cmds_CXX=$reload_cmds
  12572. no_undefined_flag_CXX=
  12573. whole_archive_flag_spec_CXX=
  12574. enable_shared_with_static_runtimes_CXX=no
  12575. # Source file extension for C++ test sources.
  12576. ac_ext=cpp
  12577. # Object file extension for compiled C++ test sources.
  12578. objext=o
  12579. objext_CXX=$objext
  12580. # No sense in running all these tests if we already determined that
  12581. # the CXX compiler isn't working. Some variables (like enable_shared)
  12582. # are currently assumed to apply to all compilers on this platform,
  12583. # and will be corrupted by setting them based on a non-working compiler.
  12584. if test yes != "$_lt_caught_CXX_error"; then
  12585. # Code to be used in simple compile tests
  12586. lt_simple_compile_test_code="int some_variable = 0;"
  12587. # Code to be used in simple link tests
  12588. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12589. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12590. # If no C compiler was specified, use CC.
  12591. LTCC=${LTCC-"$CC"}
  12592. # If no C compiler flags were specified, use CFLAGS.
  12593. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12594. # Allow CC to be a program name with arguments.
  12595. compiler=$CC
  12596. # save warnings/boilerplate of simple test code
  12597. ac_outfile=conftest.$ac_objext
  12598. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12599. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12600. _lt_compiler_boilerplate=`cat conftest.err`
  12601. $RM conftest*
  12602. ac_outfile=conftest.$ac_objext
  12603. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12604. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12605. _lt_linker_boilerplate=`cat conftest.err`
  12606. $RM -r conftest*
  12607. # Allow CC to be a program name with arguments.
  12608. lt_save_CC=$CC
  12609. lt_save_CFLAGS=$CFLAGS
  12610. lt_save_LD=$LD
  12611. lt_save_GCC=$GCC
  12612. GCC=$GXX
  12613. lt_save_with_gnu_ld=$with_gnu_ld
  12614. lt_save_path_LD=$lt_cv_path_LD
  12615. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12616. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12617. else
  12618. $as_unset lt_cv_prog_gnu_ld
  12619. fi
  12620. if test -n "${lt_cv_path_LDCXX+set}"; then
  12621. lt_cv_path_LD=$lt_cv_path_LDCXX
  12622. else
  12623. $as_unset lt_cv_path_LD
  12624. fi
  12625. test -z "${LDCXX+set}" || LD=$LDCXX
  12626. CC=${CXX-"c++"}
  12627. CFLAGS=$CXXFLAGS
  12628. compiler=$CC
  12629. compiler_CXX=$CC
  12630. func_cc_basename $compiler
  12631. cc_basename=$func_cc_basename_result
  12632. if test -n "$compiler"; then
  12633. # We don't want -fno-exception when compiling C++ code, so set the
  12634. # no_builtin_flag separately
  12635. if test yes = "$GXX"; then
  12636. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12637. else
  12638. lt_prog_compiler_no_builtin_flag_CXX=
  12639. fi
  12640. if test yes = "$GXX"; then
  12641. # Set up default GNU C++ configuration
  12642. # Check whether --with-gnu-ld was given.
  12643. if test ${with_gnu_ld+y}
  12644. then :
  12645. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12646. else $as_nop
  12647. with_gnu_ld=no
  12648. fi
  12649. ac_prog=ld
  12650. if test yes = "$GCC"; then
  12651. # Check if gcc -print-prog-name=ld gives a path.
  12652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12653. printf %s "checking for ld used by $CC... " >&6; }
  12654. case $host in
  12655. *-*-mingw* | *-*-windows*)
  12656. # gcc leaves a trailing carriage return, which upsets mingw
  12657. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12658. *)
  12659. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12660. esac
  12661. case $ac_prog in
  12662. # Accept absolute paths.
  12663. [\\/]* | ?:[\\/]*)
  12664. re_direlt='/[^/][^/]*/\.\./'
  12665. # Canonicalize the pathname of ld
  12666. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12667. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12668. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12669. done
  12670. test -z "$LD" && LD=$ac_prog
  12671. ;;
  12672. "")
  12673. # If it fails, then pretend we aren't using GCC.
  12674. ac_prog=ld
  12675. ;;
  12676. *)
  12677. # If it is relative, then search for the first ld in PATH.
  12678. with_gnu_ld=unknown
  12679. ;;
  12680. esac
  12681. elif test yes = "$with_gnu_ld"; then
  12682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12683. printf %s "checking for GNU ld... " >&6; }
  12684. else
  12685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12686. printf %s "checking for non-GNU ld... " >&6; }
  12687. fi
  12688. if test ${lt_cv_path_LD+y}
  12689. then :
  12690. printf %s "(cached) " >&6
  12691. else $as_nop
  12692. if test -z "$LD"; then
  12693. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12694. for ac_dir in $PATH; do
  12695. IFS=$lt_save_ifs
  12696. test -z "$ac_dir" && ac_dir=.
  12697. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12698. lt_cv_path_LD=$ac_dir/$ac_prog
  12699. # Check to see if the program is GNU ld. I'd rather use --version,
  12700. # but apparently some variants of GNU ld only accept -v.
  12701. # Break only if it was the GNU/non-GNU ld that we prefer.
  12702. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12703. *GNU* | *'with BFD'*)
  12704. test no != "$with_gnu_ld" && break
  12705. ;;
  12706. *)
  12707. test yes != "$with_gnu_ld" && break
  12708. ;;
  12709. esac
  12710. fi
  12711. done
  12712. IFS=$lt_save_ifs
  12713. else
  12714. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12715. fi
  12716. fi
  12717. LD=$lt_cv_path_LD
  12718. if test -n "$LD"; then
  12719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12720. printf "%s\n" "$LD" >&6; }
  12721. else
  12722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12723. printf "%s\n" "no" >&6; }
  12724. fi
  12725. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12727. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12728. if test ${lt_cv_prog_gnu_ld+y}
  12729. then :
  12730. printf %s "(cached) " >&6
  12731. else $as_nop
  12732. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12733. case `$LD -v 2>&1 </dev/null` in
  12734. *GNU* | *'with BFD'*)
  12735. lt_cv_prog_gnu_ld=yes
  12736. ;;
  12737. *)
  12738. lt_cv_prog_gnu_ld=no
  12739. ;;
  12740. esac
  12741. fi
  12742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12743. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12744. with_gnu_ld=$lt_cv_prog_gnu_ld
  12745. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12746. # archiving commands below assume that GNU ld is being used.
  12747. if test yes = "$with_gnu_ld"; then
  12748. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12749. 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'
  12750. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12751. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12752. # If archive_cmds runs LD, not CC, wlarc should be empty
  12753. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12754. # investigate it a little bit more. (MM)
  12755. wlarc='$wl'
  12756. # ancient GNU ld didn't support --whole-archive et. al.
  12757. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12758. $GREP 'no-whole-archive' > /dev/null; then
  12759. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12760. else
  12761. whole_archive_flag_spec_CXX=
  12762. fi
  12763. else
  12764. with_gnu_ld=no
  12765. wlarc=
  12766. # A generic and very simple default shared library creation
  12767. # command for GNU C++ for the case where it uses the native
  12768. # linker, instead of GNU ld. If possible, this setting should
  12769. # overridden to take advantage of the native linker features on
  12770. # the platform it is being used on.
  12771. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12772. fi
  12773. # Commands to make compiler produce verbose output that lists
  12774. # what "hidden" libraries, object files and flags are used when
  12775. # linking a shared library.
  12776. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12777. else
  12778. GXX=no
  12779. with_gnu_ld=no
  12780. wlarc=
  12781. fi
  12782. # PORTME: fill in a description of your system's C++ link characteristics
  12783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12784. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12785. ld_shlibs_CXX=yes
  12786. case $host_os in
  12787. aix3*)
  12788. # FIXME: insert proper C++ library support
  12789. ld_shlibs_CXX=no
  12790. ;;
  12791. aix[4-9]*)
  12792. if test ia64 = "$host_cpu"; then
  12793. # On IA64, the linker does run time linking by default, so we don't
  12794. # have to do anything special.
  12795. aix_use_runtimelinking=no
  12796. exp_sym_flag='-Bexport'
  12797. no_entry_flag=
  12798. else
  12799. aix_use_runtimelinking=no
  12800. # Test if we are trying to use run time linking or normal
  12801. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12802. # have runtime linking enabled, and use it for executables.
  12803. # For shared libraries, we enable/disable runtime linking
  12804. # depending on the kind of the shared library created -
  12805. # when "with_aix_soname,aix_use_runtimelinking" is:
  12806. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12807. # "aix,yes" lib.so shared, rtl:yes, for executables
  12808. # lib.a static archive
  12809. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12810. # lib.a(lib.so.V) shared, rtl:no, for executables
  12811. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12812. # lib.a(lib.so.V) shared, rtl:no
  12813. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12814. # lib.a static archive
  12815. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12816. for ld_flag in $LDFLAGS; do
  12817. case $ld_flag in
  12818. *-brtl*)
  12819. aix_use_runtimelinking=yes
  12820. break
  12821. ;;
  12822. esac
  12823. done
  12824. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12825. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12826. # so we don't have lib.a shared libs to link our executables.
  12827. # We have to force runtime linking in this case.
  12828. aix_use_runtimelinking=yes
  12829. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12830. fi
  12831. ;;
  12832. esac
  12833. exp_sym_flag='-bexport'
  12834. no_entry_flag='-bnoentry'
  12835. fi
  12836. # When large executables or shared objects are built, AIX ld can
  12837. # have problems creating the table of contents. If linking a library
  12838. # or program results in "error TOC overflow" add -mminimal-toc to
  12839. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12840. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12841. archive_cmds_CXX=''
  12842. hardcode_direct_CXX=yes
  12843. hardcode_direct_absolute_CXX=yes
  12844. hardcode_libdir_separator_CXX=':'
  12845. link_all_deplibs_CXX=yes
  12846. file_list_spec_CXX='$wl-f,'
  12847. case $with_aix_soname,$aix_use_runtimelinking in
  12848. aix,*) ;; # no import file
  12849. svr4,* | *,yes) # use import file
  12850. # The Import File defines what to hardcode.
  12851. hardcode_direct_CXX=no
  12852. hardcode_direct_absolute_CXX=no
  12853. ;;
  12854. esac
  12855. if test yes = "$GXX"; then
  12856. case $host_os in aix4.[012]|aix4.[012].*)
  12857. # We only want to do this on AIX 4.2 and lower, the check
  12858. # below for broken collect2 doesn't work under 4.3+
  12859. collect2name=`$CC -print-prog-name=collect2`
  12860. if test -f "$collect2name" &&
  12861. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12862. then
  12863. # We have reworked collect2
  12864. :
  12865. else
  12866. # We have old collect2
  12867. hardcode_direct_CXX=unsupported
  12868. # It fails to find uninstalled libraries when the uninstalled
  12869. # path is not listed in the libpath. Setting hardcode_minus_L
  12870. # to unsupported forces relinking
  12871. hardcode_minus_L_CXX=yes
  12872. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12873. hardcode_libdir_separator_CXX=
  12874. fi
  12875. esac
  12876. shared_flag='-shared'
  12877. if test yes = "$aix_use_runtimelinking"; then
  12878. shared_flag=$shared_flag' $wl-G'
  12879. fi
  12880. # Need to ensure runtime linking is disabled for the traditional
  12881. # shared library, or the linker may eventually find shared libraries
  12882. # /with/ Import File - we do not want to mix them.
  12883. shared_flag_aix='-shared'
  12884. shared_flag_svr4='-shared $wl-G'
  12885. else
  12886. # not using gcc
  12887. if test ia64 = "$host_cpu"; then
  12888. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12889. # chokes on -Wl,-G. The following line is correct:
  12890. shared_flag='-G'
  12891. else
  12892. if test yes = "$aix_use_runtimelinking"; then
  12893. shared_flag='$wl-G'
  12894. else
  12895. shared_flag='$wl-bM:SRE'
  12896. fi
  12897. shared_flag_aix='$wl-bM:SRE'
  12898. shared_flag_svr4='$wl-G'
  12899. fi
  12900. fi
  12901. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12902. # It seems that -bexpall does not export symbols beginning with
  12903. # underscore (_), so it is better to generate a list of symbols to
  12904. # export.
  12905. always_export_symbols_CXX=yes
  12906. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12907. # Warning - without using the other runtime loading flags (-brtl),
  12908. # -berok will link without error, but may produce a broken library.
  12909. # The "-G" linker flag allows undefined symbols.
  12910. no_undefined_flag_CXX='-bernotok'
  12911. # Determine the default libpath from the value encoded in an empty
  12912. # executable.
  12913. if test set = "${lt_cv_aix_libpath+set}"; then
  12914. aix_libpath=$lt_cv_aix_libpath
  12915. else
  12916. if test ${lt_cv_aix_libpath__CXX+y}
  12917. then :
  12918. printf %s "(cached) " >&6
  12919. else $as_nop
  12920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12921. /* end confdefs.h. */
  12922. int
  12923. main (void)
  12924. {
  12925. ;
  12926. return 0;
  12927. }
  12928. _ACEOF
  12929. if ac_fn_cxx_try_link "$LINENO"
  12930. then :
  12931. lt_aix_libpath_sed='
  12932. /Import File Strings/,/^$/ {
  12933. /^0/ {
  12934. s/^0 *\([^ ]*\) *$/\1/
  12935. p
  12936. }
  12937. }'
  12938. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12939. # Check for a 64-bit object if we didn't find anything.
  12940. if test -z "$lt_cv_aix_libpath__CXX"; then
  12941. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12942. fi
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. if test -z "$lt_cv_aix_libpath__CXX"; then
  12947. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12948. fi
  12949. fi
  12950. aix_libpath=$lt_cv_aix_libpath__CXX
  12951. fi
  12952. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12953. 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
  12954. else
  12955. if test ia64 = "$host_cpu"; then
  12956. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12957. allow_undefined_flag_CXX="-z nodefs"
  12958. 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"
  12959. else
  12960. # Determine the default libpath from the value encoded in an
  12961. # empty executable.
  12962. if test set = "${lt_cv_aix_libpath+set}"; then
  12963. aix_libpath=$lt_cv_aix_libpath
  12964. else
  12965. if test ${lt_cv_aix_libpath__CXX+y}
  12966. then :
  12967. printf %s "(cached) " >&6
  12968. else $as_nop
  12969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12970. /* end confdefs.h. */
  12971. int
  12972. main (void)
  12973. {
  12974. ;
  12975. return 0;
  12976. }
  12977. _ACEOF
  12978. if ac_fn_cxx_try_link "$LINENO"
  12979. then :
  12980. lt_aix_libpath_sed='
  12981. /Import File Strings/,/^$/ {
  12982. /^0/ {
  12983. s/^0 *\([^ ]*\) *$/\1/
  12984. p
  12985. }
  12986. }'
  12987. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12988. # Check for a 64-bit object if we didn't find anything.
  12989. if test -z "$lt_cv_aix_libpath__CXX"; then
  12990. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12991. fi
  12992. fi
  12993. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12994. conftest$ac_exeext conftest.$ac_ext
  12995. if test -z "$lt_cv_aix_libpath__CXX"; then
  12996. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12997. fi
  12998. fi
  12999. aix_libpath=$lt_cv_aix_libpath__CXX
  13000. fi
  13001. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  13002. # Warning - without using the other run time loading flags,
  13003. # -berok will link without error, but may produce a broken library.
  13004. no_undefined_flag_CXX=' $wl-bernotok'
  13005. allow_undefined_flag_CXX=' $wl-berok'
  13006. if test yes = "$with_gnu_ld"; then
  13007. # We only use this code for GNU lds that support --whole-archive.
  13008. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13009. else
  13010. # Exported symbols can be pulled into shared objects from archives
  13011. whole_archive_flag_spec_CXX='$convenience'
  13012. fi
  13013. archive_cmds_need_lc_CXX=yes
  13014. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13015. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13016. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13017. if test svr4 != "$with_aix_soname"; then
  13018. # This is similar to how AIX traditionally builds its shared
  13019. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13020. 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'
  13021. fi
  13022. if test aix != "$with_aix_soname"; then
  13023. 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'
  13024. else
  13025. # used by -dlpreopen to get the symbols
  13026. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13027. fi
  13028. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13029. fi
  13030. fi
  13031. ;;
  13032. beos*)
  13033. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13034. allow_undefined_flag_CXX=unsupported
  13035. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13036. # support --undefined. This deserves some investigation. FIXME
  13037. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13038. else
  13039. ld_shlibs_CXX=no
  13040. fi
  13041. ;;
  13042. chorus*)
  13043. case $cc_basename in
  13044. *)
  13045. # FIXME: insert proper C++ library support
  13046. ld_shlibs_CXX=no
  13047. ;;
  13048. esac
  13049. ;;
  13050. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13051. case $GXX,$cc_basename in
  13052. ,cl* | no,cl* | ,icl* | no,icl*)
  13053. # Native MSVC or ICC
  13054. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13055. # no search path for DLLs.
  13056. hardcode_libdir_flag_spec_CXX=' '
  13057. allow_undefined_flag_CXX=unsupported
  13058. always_export_symbols_CXX=yes
  13059. file_list_spec_CXX='@'
  13060. # Tell ltmain to make .lib files, not .a files.
  13061. libext=lib
  13062. # Tell ltmain to make .dll files, not .so files.
  13063. shrext_cmds=.dll
  13064. # FIXME: Setting linknames here is a bad hack.
  13065. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13066. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13067. cp "$export_symbols" "$output_objdir/$soname.def";
  13068. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13069. else
  13070. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13071. fi~
  13072. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13073. linknames='
  13074. # The linker will not automatically build a static lib if we build a DLL.
  13075. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13076. enable_shared_with_static_runtimes_CXX=yes
  13077. # Don't use ranlib
  13078. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13079. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13080. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13081. case $lt_outputfile in
  13082. *.exe|*.EXE) ;;
  13083. *)
  13084. lt_outputfile=$lt_outputfile.exe
  13085. lt_tool_outputfile=$lt_tool_outputfile.exe
  13086. ;;
  13087. esac~
  13088. func_to_tool_file "$lt_outputfile"~
  13089. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13090. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13091. $RM "$lt_outputfile.manifest";
  13092. fi'
  13093. ;;
  13094. *)
  13095. # g++
  13096. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13097. # as there is no search path for DLLs.
  13098. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13099. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13100. allow_undefined_flag_CXX=unsupported
  13101. always_export_symbols_CXX=no
  13102. enable_shared_with_static_runtimes_CXX=yes
  13103. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13104. 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'
  13105. # If the export-symbols file already is a .def file, use it as
  13106. # is; otherwise, prepend EXPORTS...
  13107. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13108. cp $export_symbols $output_objdir/$soname.def;
  13109. else
  13110. echo EXPORTS > $output_objdir/$soname.def;
  13111. cat $export_symbols >> $output_objdir/$soname.def;
  13112. fi~
  13113. $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'
  13114. else
  13115. ld_shlibs_CXX=no
  13116. fi
  13117. ;;
  13118. esac
  13119. ;;
  13120. darwin* | rhapsody*)
  13121. archive_cmds_need_lc_CXX=no
  13122. hardcode_direct_CXX=no
  13123. hardcode_automatic_CXX=yes
  13124. hardcode_shlibpath_var_CXX=unsupported
  13125. if test yes = "$lt_cv_ld_force_load"; then
  13126. 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\"`'
  13127. else
  13128. whole_archive_flag_spec_CXX=''
  13129. fi
  13130. link_all_deplibs_CXX=yes
  13131. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13132. case $cc_basename in
  13133. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13134. *) _lt_dar_can_shared=$GCC ;;
  13135. esac
  13136. if test yes = "$_lt_dar_can_shared"; then
  13137. output_verbose_link_cmd=func_echo_all
  13138. 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"
  13139. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13140. 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"
  13141. 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"
  13142. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13143. 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"
  13144. 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"
  13145. fi
  13146. else
  13147. ld_shlibs_CXX=no
  13148. fi
  13149. ;;
  13150. os2*)
  13151. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13152. hardcode_minus_L_CXX=yes
  13153. allow_undefined_flag_CXX=unsupported
  13154. shrext_cmds=.dll
  13155. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13156. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13157. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13158. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13159. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13160. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13161. emximp -o $lib $output_objdir/$libname.def'
  13162. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13163. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13164. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13165. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13166. prefix_cmds="$SED"~
  13167. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13168. prefix_cmds="$prefix_cmds -e 1d";
  13169. fi~
  13170. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13171. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13172. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13173. emximp -o $lib $output_objdir/$libname.def'
  13174. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13175. enable_shared_with_static_runtimes_CXX=yes
  13176. file_list_spec_CXX='@'
  13177. ;;
  13178. dgux*)
  13179. case $cc_basename in
  13180. ec++*)
  13181. # FIXME: insert proper C++ library support
  13182. ld_shlibs_CXX=no
  13183. ;;
  13184. ghcx*)
  13185. # Green Hills C++ Compiler
  13186. # FIXME: insert proper C++ library support
  13187. ld_shlibs_CXX=no
  13188. ;;
  13189. *)
  13190. # FIXME: insert proper C++ library support
  13191. ld_shlibs_CXX=no
  13192. ;;
  13193. esac
  13194. ;;
  13195. freebsd2.*)
  13196. # C++ shared libraries reported to be fairly broken before
  13197. # switch to ELF
  13198. ld_shlibs_CXX=no
  13199. ;;
  13200. freebsd-elf*)
  13201. archive_cmds_need_lc_CXX=no
  13202. ;;
  13203. freebsd* | dragonfly* | midnightbsd*)
  13204. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13205. # conventions
  13206. ld_shlibs_CXX=yes
  13207. ;;
  13208. haiku*)
  13209. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13210. link_all_deplibs_CXX=yes
  13211. ;;
  13212. hpux9*)
  13213. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13214. hardcode_libdir_separator_CXX=:
  13215. export_dynamic_flag_spec_CXX='$wl-E'
  13216. hardcode_direct_CXX=yes
  13217. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13218. # but as the default
  13219. # location of the library.
  13220. case $cc_basename in
  13221. CC*)
  13222. # FIXME: insert proper C++ library support
  13223. ld_shlibs_CXX=no
  13224. ;;
  13225. aCC*)
  13226. 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'
  13227. # Commands to make compiler produce verbose output that lists
  13228. # what "hidden" libraries, object files and flags are used when
  13229. # linking a shared library.
  13230. #
  13231. # There doesn't appear to be a way to prevent this compiler from
  13232. # explicitly linking system object files so we need to strip them
  13233. # from the output so that they don't get included in the library
  13234. # dependencies.
  13235. 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"'
  13236. ;;
  13237. *)
  13238. if test yes = "$GXX"; then
  13239. 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'
  13240. else
  13241. # FIXME: insert proper C++ library support
  13242. ld_shlibs_CXX=no
  13243. fi
  13244. ;;
  13245. esac
  13246. ;;
  13247. hpux10*|hpux11*)
  13248. if test no = "$with_gnu_ld"; then
  13249. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13250. hardcode_libdir_separator_CXX=:
  13251. case $host_cpu in
  13252. hppa*64*|ia64*)
  13253. ;;
  13254. *)
  13255. export_dynamic_flag_spec_CXX='$wl-E'
  13256. ;;
  13257. esac
  13258. fi
  13259. case $host_cpu in
  13260. hppa*64*|ia64*)
  13261. hardcode_direct_CXX=no
  13262. hardcode_shlibpath_var_CXX=no
  13263. ;;
  13264. *)
  13265. hardcode_direct_CXX=yes
  13266. hardcode_direct_absolute_CXX=yes
  13267. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13268. # but as the default
  13269. # location of the library.
  13270. ;;
  13271. esac
  13272. case $cc_basename in
  13273. CC*)
  13274. # FIXME: insert proper C++ library support
  13275. ld_shlibs_CXX=no
  13276. ;;
  13277. aCC*)
  13278. case $host_cpu in
  13279. hppa*64*)
  13280. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13281. ;;
  13282. ia64*)
  13283. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13284. ;;
  13285. *)
  13286. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13287. ;;
  13288. esac
  13289. # Commands to make compiler produce verbose output that lists
  13290. # what "hidden" libraries, object files and flags are used when
  13291. # linking a shared library.
  13292. #
  13293. # There doesn't appear to be a way to prevent this compiler from
  13294. # explicitly linking system object files so we need to strip them
  13295. # from the output so that they don't get included in the library
  13296. # dependencies.
  13297. 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"'
  13298. ;;
  13299. *)
  13300. if test yes = "$GXX"; then
  13301. if test no = "$with_gnu_ld"; then
  13302. case $host_cpu in
  13303. hppa*64*)
  13304. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13305. ;;
  13306. ia64*)
  13307. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13308. ;;
  13309. *)
  13310. 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'
  13311. ;;
  13312. esac
  13313. fi
  13314. else
  13315. # FIXME: insert proper C++ library support
  13316. ld_shlibs_CXX=no
  13317. fi
  13318. ;;
  13319. esac
  13320. ;;
  13321. interix[3-9]*)
  13322. hardcode_direct_CXX=no
  13323. hardcode_shlibpath_var_CXX=no
  13324. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13325. export_dynamic_flag_spec_CXX='$wl-E'
  13326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13328. # default) and relocated if they conflict, which is a slow very memory
  13329. # consuming and fragmenting process. To avoid this, we pick a random,
  13330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13332. 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'
  13333. 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'
  13334. ;;
  13335. irix5* | irix6*)
  13336. case $cc_basename in
  13337. CC*)
  13338. # SGI C++
  13339. 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'
  13340. # Archives containing C++ object files must be created using
  13341. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13342. # necessary to make sure instantiated templates are included
  13343. # in the archive.
  13344. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13345. ;;
  13346. *)
  13347. if test yes = "$GXX"; then
  13348. if test no = "$with_gnu_ld"; then
  13349. 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'
  13350. else
  13351. 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'
  13352. fi
  13353. fi
  13354. link_all_deplibs_CXX=yes
  13355. ;;
  13356. esac
  13357. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13358. hardcode_libdir_separator_CXX=:
  13359. inherit_rpath_CXX=yes
  13360. ;;
  13361. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13362. case $cc_basename in
  13363. KCC*)
  13364. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13365. # KCC will only create a shared library if the output file
  13366. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13367. # to its proper name (with version) after linking.
  13368. 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'
  13369. 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'
  13370. # Commands to make compiler produce verbose output that lists
  13371. # what "hidden" libraries, object files and flags are used when
  13372. # linking a shared library.
  13373. #
  13374. # There doesn't appear to be a way to prevent this compiler from
  13375. # explicitly linking system object files so we need to strip them
  13376. # from the output so that they don't get included in the library
  13377. # dependencies.
  13378. 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"'
  13379. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13380. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13381. # Archives containing C++ object files must be created using
  13382. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13383. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13384. ;;
  13385. icpc* | ecpc* )
  13386. # Intel C++
  13387. with_gnu_ld=yes
  13388. # version 8.0 and above of icpc choke on multiply defined symbols
  13389. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13390. # earlier do not add the objects themselves.
  13391. case `$CC -V 2>&1` in
  13392. *"Version 7."*)
  13393. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13394. 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'
  13395. ;;
  13396. *) # Version 8.0 or newer
  13397. tmp_idyn=
  13398. case $host_cpu in
  13399. ia64*) tmp_idyn=' -i_dynamic';;
  13400. esac
  13401. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13402. 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'
  13403. ;;
  13404. esac
  13405. archive_cmds_need_lc_CXX=no
  13406. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13407. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13408. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13409. ;;
  13410. pgCC* | pgcpp*)
  13411. # Portland Group C++ compiler
  13412. case `$CC -V` in
  13413. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13414. prelink_cmds_CXX='tpldir=Template.dir~
  13415. rm -rf $tpldir~
  13416. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13417. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13418. old_archive_cmds_CXX='tpldir=Template.dir~
  13419. rm -rf $tpldir~
  13420. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13421. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13422. $RANLIB $oldlib'
  13423. archive_cmds_CXX='tpldir=Template.dir~
  13424. rm -rf $tpldir~
  13425. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13426. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13427. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13428. rm -rf $tpldir~
  13429. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13430. $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'
  13431. ;;
  13432. *) # Version 6 and above use weak symbols
  13433. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13434. 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'
  13435. ;;
  13436. esac
  13437. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13438. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13439. 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'
  13440. ;;
  13441. cxx*)
  13442. # Compaq C++
  13443. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13444. 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'
  13445. runpath_var=LD_RUN_PATH
  13446. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13447. hardcode_libdir_separator_CXX=:
  13448. # Commands to make compiler produce verbose output that lists
  13449. # what "hidden" libraries, object files and flags are used when
  13450. # linking a shared library.
  13451. #
  13452. # There doesn't appear to be a way to prevent this compiler from
  13453. # explicitly linking system object files so we need to strip them
  13454. # from the output so that they don't get included in the library
  13455. # dependencies.
  13456. 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'
  13457. ;;
  13458. xl* | mpixl* | bgxl*)
  13459. # IBM XL 8.0 on PPC, with GNU ld
  13460. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13461. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13462. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13463. if test yes = "$supports_anon_versioning"; then
  13464. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13465. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13466. echo "local: *; };" >> $output_objdir/$libname.ver~
  13467. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13468. fi
  13469. ;;
  13470. *)
  13471. case `$CC -V 2>&1 | sed 5q` in
  13472. *Sun\ C*)
  13473. # Sun C++ 5.9
  13474. no_undefined_flag_CXX=' -zdefs'
  13475. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13476. 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'
  13477. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13478. 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'
  13479. compiler_needs_object_CXX=yes
  13480. # Not sure whether something based on
  13481. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13482. # would be better.
  13483. output_verbose_link_cmd='func_echo_all'
  13484. # Archives containing C++ object files must be created using
  13485. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13486. # necessary to make sure instantiated templates are included
  13487. # in the archive.
  13488. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13489. ;;
  13490. esac
  13491. ;;
  13492. esac
  13493. ;;
  13494. lynxos*)
  13495. # FIXME: insert proper C++ library support
  13496. ld_shlibs_CXX=no
  13497. ;;
  13498. m88k*)
  13499. # FIXME: insert proper C++ library support
  13500. ld_shlibs_CXX=no
  13501. ;;
  13502. mvs*)
  13503. case $cc_basename in
  13504. cxx*)
  13505. # FIXME: insert proper C++ library support
  13506. ld_shlibs_CXX=no
  13507. ;;
  13508. *)
  13509. # FIXME: insert proper C++ library support
  13510. ld_shlibs_CXX=no
  13511. ;;
  13512. esac
  13513. ;;
  13514. netbsd*)
  13515. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13516. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13517. wlarc=
  13518. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13519. hardcode_direct_CXX=yes
  13520. hardcode_shlibpath_var_CXX=no
  13521. fi
  13522. # Workaround some broken pre-1.5 toolchains
  13523. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13524. ;;
  13525. *nto* | *qnx*)
  13526. ld_shlibs_CXX=yes
  13527. ;;
  13528. openbsd* | bitrig*)
  13529. if test -f /usr/libexec/ld.so; then
  13530. hardcode_direct_CXX=yes
  13531. hardcode_shlibpath_var_CXX=no
  13532. hardcode_direct_absolute_CXX=yes
  13533. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13534. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13535. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13536. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13537. export_dynamic_flag_spec_CXX='$wl-E'
  13538. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13539. fi
  13540. output_verbose_link_cmd=func_echo_all
  13541. else
  13542. ld_shlibs_CXX=no
  13543. fi
  13544. ;;
  13545. osf3* | osf4* | osf5*)
  13546. case $cc_basename in
  13547. KCC*)
  13548. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13549. # KCC will only create a shared library if the output file
  13550. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13551. # to its proper name (with version) after linking.
  13552. 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'
  13553. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13554. hardcode_libdir_separator_CXX=:
  13555. # Archives containing C++ object files must be created using
  13556. # the KAI C++ compiler.
  13557. case $host in
  13558. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13559. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13560. esac
  13561. ;;
  13562. RCC*)
  13563. # Rational C++ 2.4.1
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. cxx*)
  13568. case $host in
  13569. osf3*)
  13570. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13571. 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'
  13572. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13573. ;;
  13574. *)
  13575. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13576. 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'
  13577. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13578. echo "-hidden">> $lib.exp~
  13579. $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~
  13580. $RM $lib.exp'
  13581. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13582. ;;
  13583. esac
  13584. hardcode_libdir_separator_CXX=:
  13585. # Commands to make compiler produce verbose output that lists
  13586. # what "hidden" libraries, object files and flags are used when
  13587. # linking a shared library.
  13588. #
  13589. # There doesn't appear to be a way to prevent this compiler from
  13590. # explicitly linking system object files so we need to strip them
  13591. # from the output so that they don't get included in the library
  13592. # dependencies.
  13593. 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"'
  13594. ;;
  13595. *)
  13596. if test yes,no = "$GXX,$with_gnu_ld"; then
  13597. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13598. case $host in
  13599. osf3*)
  13600. 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'
  13601. ;;
  13602. *)
  13603. 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'
  13604. ;;
  13605. esac
  13606. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13607. hardcode_libdir_separator_CXX=:
  13608. # Commands to make compiler produce verbose output that lists
  13609. # what "hidden" libraries, object files and flags are used when
  13610. # linking a shared library.
  13611. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13612. else
  13613. # FIXME: insert proper C++ library support
  13614. ld_shlibs_CXX=no
  13615. fi
  13616. ;;
  13617. esac
  13618. ;;
  13619. psos*)
  13620. # FIXME: insert proper C++ library support
  13621. ld_shlibs_CXX=no
  13622. ;;
  13623. sunos4*)
  13624. case $cc_basename in
  13625. CC*)
  13626. # Sun C++ 4.x
  13627. # FIXME: insert proper C++ library support
  13628. ld_shlibs_CXX=no
  13629. ;;
  13630. lcc*)
  13631. # Lucid
  13632. # FIXME: insert proper C++ library support
  13633. ld_shlibs_CXX=no
  13634. ;;
  13635. *)
  13636. # FIXME: insert proper C++ library support
  13637. ld_shlibs_CXX=no
  13638. ;;
  13639. esac
  13640. ;;
  13641. solaris*)
  13642. case $cc_basename in
  13643. CC* | sunCC*)
  13644. # Sun C++ 4.2, 5.x and Centerline C++
  13645. archive_cmds_need_lc_CXX=yes
  13646. no_undefined_flag_CXX=' -zdefs'
  13647. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13648. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13649. $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'
  13650. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13651. hardcode_shlibpath_var_CXX=no
  13652. case $host_os in
  13653. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13654. *)
  13655. # The compiler driver will combine and reorder linker options,
  13656. # but understands '-z linker_flag'.
  13657. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13658. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13659. ;;
  13660. esac
  13661. link_all_deplibs_CXX=yes
  13662. output_verbose_link_cmd='func_echo_all'
  13663. # Archives containing C++ object files must be created using
  13664. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13665. # necessary to make sure instantiated templates are included
  13666. # in the archive.
  13667. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13668. ;;
  13669. gcx*)
  13670. # Green Hills C++ Compiler
  13671. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13672. # The C++ compiler must be used to create the archive.
  13673. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13674. ;;
  13675. *)
  13676. # GNU C++ compiler with Solaris linker
  13677. if test yes,no = "$GXX,$with_gnu_ld"; then
  13678. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13679. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13680. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13681. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13682. $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'
  13683. # Commands to make compiler produce verbose output that lists
  13684. # what "hidden" libraries, object files and flags are used when
  13685. # linking a shared library.
  13686. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13687. else
  13688. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13689. # platform.
  13690. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13691. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13692. $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'
  13693. # Commands to make compiler produce verbose output that lists
  13694. # what "hidden" libraries, object files and flags are used when
  13695. # linking a shared library.
  13696. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13697. fi
  13698. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13699. case $host_os in
  13700. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13701. *)
  13702. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13703. ;;
  13704. esac
  13705. fi
  13706. ;;
  13707. esac
  13708. ;;
  13709. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13710. no_undefined_flag_CXX='$wl-z,text'
  13711. archive_cmds_need_lc_CXX=no
  13712. hardcode_shlibpath_var_CXX=no
  13713. runpath_var='LD_RUN_PATH'
  13714. case $cc_basename in
  13715. CC*)
  13716. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13717. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13718. ;;
  13719. *)
  13720. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13721. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13722. ;;
  13723. esac
  13724. ;;
  13725. sysv5* | sco3.2v5* | sco5v6*)
  13726. # Note: We CANNOT use -z defs as we might desire, because we do not
  13727. # link with -lc, and that would cause any symbols used from libc to
  13728. # always be unresolved, which means just about no library would
  13729. # ever link correctly. If we're not using GNU ld we use -z text
  13730. # though, which does catch some bad symbols but isn't as heavy-handed
  13731. # as -z defs.
  13732. no_undefined_flag_CXX='$wl-z,text'
  13733. allow_undefined_flag_CXX='$wl-z,nodefs'
  13734. archive_cmds_need_lc_CXX=no
  13735. hardcode_shlibpath_var_CXX=no
  13736. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13737. hardcode_libdir_separator_CXX=':'
  13738. link_all_deplibs_CXX=yes
  13739. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13740. runpath_var='LD_RUN_PATH'
  13741. case $cc_basename in
  13742. CC*)
  13743. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13744. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13745. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13746. '"$old_archive_cmds_CXX"
  13747. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13748. '"$reload_cmds_CXX"
  13749. ;;
  13750. *)
  13751. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13752. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13753. ;;
  13754. esac
  13755. ;;
  13756. tandem*)
  13757. case $cc_basename in
  13758. NCC*)
  13759. # NonStop-UX NCC 3.20
  13760. # FIXME: insert proper C++ library support
  13761. ld_shlibs_CXX=no
  13762. ;;
  13763. *)
  13764. # FIXME: insert proper C++ library support
  13765. ld_shlibs_CXX=no
  13766. ;;
  13767. esac
  13768. ;;
  13769. vxworks*)
  13770. # FIXME: insert proper C++ library support
  13771. ld_shlibs_CXX=no
  13772. ;;
  13773. *)
  13774. # FIXME: insert proper C++ library support
  13775. ld_shlibs_CXX=no
  13776. ;;
  13777. esac
  13778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13779. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13780. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13781. GCC_CXX=$GXX
  13782. LD_CXX=$LD
  13783. ## CAVEAT EMPTOR:
  13784. ## There is no encapsulation within the following macros, do not change
  13785. ## the running order or otherwise move them around unless you know exactly
  13786. ## what you are doing...
  13787. # Dependencies to place before and after the object being linked:
  13788. predep_objects_CXX=
  13789. postdep_objects_CXX=
  13790. predeps_CXX=
  13791. postdeps_CXX=
  13792. compiler_lib_search_path_CXX=
  13793. cat > conftest.$ac_ext <<_LT_EOF
  13794. class Foo
  13795. {
  13796. public:
  13797. Foo (void) { a = 0; }
  13798. private:
  13799. int a;
  13800. };
  13801. _LT_EOF
  13802. _lt_libdeps_save_CFLAGS=$CFLAGS
  13803. case "$CC $CFLAGS " in #(
  13804. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13805. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13806. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13807. esac
  13808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13809. (eval $ac_compile) 2>&5
  13810. ac_status=$?
  13811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13812. test $ac_status = 0; }; then
  13813. # Parse the compiler output and extract the necessary
  13814. # objects, libraries and library flags.
  13815. # Sentinel used to keep track of whether or not we are before
  13816. # the conftest object file.
  13817. pre_test_object_deps_done=no
  13818. for p in `eval "$output_verbose_link_cmd"`; do
  13819. case $prev$p in
  13820. -L* | -R* | -l*)
  13821. # Some compilers place space between "-{L,R}" and the path.
  13822. # Remove the space.
  13823. if test x-L = "x$p" ||
  13824. test x-R = "x$p" ||
  13825. test x-l = "x$p"; then
  13826. prev=$p
  13827. continue
  13828. fi
  13829. # Expand the sysroot to ease extracting the directories later.
  13830. if test -z "$prev"; then
  13831. case $p in
  13832. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13833. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13834. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13835. esac
  13836. fi
  13837. case $p in
  13838. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13839. esac
  13840. if test no = "$pre_test_object_deps_done"; then
  13841. case $prev in
  13842. -L | -R)
  13843. # Internal compiler library paths should come after those
  13844. # provided the user. The postdeps already come after the
  13845. # user supplied libs so there is no need to process them.
  13846. if test -z "$compiler_lib_search_path_CXX"; then
  13847. compiler_lib_search_path_CXX=$prev$p
  13848. else
  13849. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13850. fi
  13851. ;;
  13852. # The "-l" case would never come before the object being
  13853. # linked, so don't bother handling this case.
  13854. esac
  13855. else
  13856. if test -z "$postdeps_CXX"; then
  13857. postdeps_CXX=$prev$p
  13858. else
  13859. postdeps_CXX="${postdeps_CXX} $prev$p"
  13860. fi
  13861. fi
  13862. prev=
  13863. ;;
  13864. *.lto.$objext) ;; # Ignore GCC LTO objects
  13865. *.$objext)
  13866. # This assumes that the test object file only shows up
  13867. # once in the compiler output.
  13868. if test "$p" = "conftest.$objext"; then
  13869. pre_test_object_deps_done=yes
  13870. continue
  13871. fi
  13872. if test no = "$pre_test_object_deps_done"; then
  13873. if test -z "$predep_objects_CXX"; then
  13874. predep_objects_CXX=$p
  13875. else
  13876. predep_objects_CXX="$predep_objects_CXX $p"
  13877. fi
  13878. else
  13879. if test -z "$postdep_objects_CXX"; then
  13880. postdep_objects_CXX=$p
  13881. else
  13882. postdep_objects_CXX="$postdep_objects_CXX $p"
  13883. fi
  13884. fi
  13885. ;;
  13886. *) ;; # Ignore the rest.
  13887. esac
  13888. done
  13889. # Clean up.
  13890. rm -f a.out a.exe
  13891. else
  13892. echo "libtool.m4: error: problem compiling CXX test program"
  13893. fi
  13894. $RM -f confest.$objext
  13895. CFLAGS=$_lt_libdeps_save_CFLAGS
  13896. # PORTME: override above test on systems where it is broken
  13897. case $host_os in
  13898. interix[3-9]*)
  13899. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13900. # hack all around it, let's just trust "g++" to DTRT.
  13901. predep_objects_CXX=
  13902. postdep_objects_CXX=
  13903. postdeps_CXX=
  13904. ;;
  13905. esac
  13906. case " $postdeps_CXX " in
  13907. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13908. esac
  13909. compiler_lib_search_dirs_CXX=
  13910. if test -n "${compiler_lib_search_path_CXX}"; then
  13911. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13912. fi
  13913. lt_prog_compiler_wl_CXX=
  13914. lt_prog_compiler_pic_CXX=
  13915. lt_prog_compiler_static_CXX=
  13916. # C++ specific cases for pic, static, wl, etc.
  13917. if test yes = "$GXX"; then
  13918. lt_prog_compiler_wl_CXX='-Wl,'
  13919. lt_prog_compiler_static_CXX='-static'
  13920. case $host_os in
  13921. aix*)
  13922. # All AIX code is PIC.
  13923. if test ia64 = "$host_cpu"; then
  13924. # AIX 5 now supports IA64 processor
  13925. lt_prog_compiler_static_CXX='-Bstatic'
  13926. fi
  13927. lt_prog_compiler_pic_CXX='-fPIC'
  13928. ;;
  13929. amigaos*)
  13930. case $host_cpu in
  13931. powerpc)
  13932. # see comment about AmigaOS4 .so support
  13933. lt_prog_compiler_pic_CXX='-fPIC'
  13934. ;;
  13935. m68k)
  13936. # FIXME: we need at least 68020 code to build shared libraries, but
  13937. # adding the '-m68020' flag to GCC prevents building anything better,
  13938. # like '-m68040'.
  13939. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13940. ;;
  13941. esac
  13942. ;;
  13943. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13944. # PIC is the default for these OSes.
  13945. ;;
  13946. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13947. # This hack is so that the source file can tell whether it is being
  13948. # built for inclusion in a dll (and should export symbols for example).
  13949. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13950. # (--disable-auto-import) libraries
  13951. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13952. case $host_os in
  13953. os2*)
  13954. lt_prog_compiler_static_CXX='$wl-static'
  13955. ;;
  13956. esac
  13957. ;;
  13958. darwin* | rhapsody*)
  13959. # PIC is the default on this platform
  13960. # Common symbols not allowed in MH_DYLIB files
  13961. lt_prog_compiler_pic_CXX='-fno-common'
  13962. ;;
  13963. *djgpp*)
  13964. # DJGPP does not support shared libraries at all
  13965. lt_prog_compiler_pic_CXX=
  13966. ;;
  13967. haiku*)
  13968. # PIC is the default for Haiku.
  13969. # The "-static" flag exists, but is broken.
  13970. lt_prog_compiler_static_CXX=
  13971. ;;
  13972. interix[3-9]*)
  13973. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13974. # Instead, we relocate shared libraries at runtime.
  13975. ;;
  13976. sysv4*MP*)
  13977. if test -d /usr/nec; then
  13978. lt_prog_compiler_pic_CXX=-Kconform_pic
  13979. fi
  13980. ;;
  13981. hpux*)
  13982. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13983. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13984. # sets the default TLS model and affects inlining.
  13985. case $host_cpu in
  13986. hppa*64*)
  13987. ;;
  13988. *)
  13989. lt_prog_compiler_pic_CXX='-fPIC'
  13990. ;;
  13991. esac
  13992. ;;
  13993. *qnx* | *nto*)
  13994. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13995. # it will coredump.
  13996. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13997. ;;
  13998. *)
  13999. lt_prog_compiler_pic_CXX='-fPIC'
  14000. ;;
  14001. esac
  14002. else
  14003. case $host_os in
  14004. aix[4-9]*)
  14005. # All AIX code is PIC.
  14006. if test ia64 = "$host_cpu"; then
  14007. # AIX 5 now supports IA64 processor
  14008. lt_prog_compiler_static_CXX='-Bstatic'
  14009. else
  14010. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14011. fi
  14012. ;;
  14013. chorus*)
  14014. case $cc_basename in
  14015. cxch68*)
  14016. # Green Hills C++ Compiler
  14017. # _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"
  14018. ;;
  14019. esac
  14020. ;;
  14021. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14022. # This hack is so that the source file can tell whether it is being
  14023. # built for inclusion in a dll (and should export symbols for example).
  14024. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14025. ;;
  14026. dgux*)
  14027. case $cc_basename in
  14028. ec++*)
  14029. lt_prog_compiler_pic_CXX='-KPIC'
  14030. ;;
  14031. ghcx*)
  14032. # Green Hills C++ Compiler
  14033. lt_prog_compiler_pic_CXX='-pic'
  14034. ;;
  14035. *)
  14036. ;;
  14037. esac
  14038. ;;
  14039. freebsd* | dragonfly* | midnightbsd*)
  14040. # FreeBSD uses GNU C++
  14041. ;;
  14042. hpux9* | hpux10* | hpux11*)
  14043. case $cc_basename in
  14044. CC*)
  14045. lt_prog_compiler_wl_CXX='-Wl,'
  14046. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14047. if test ia64 != "$host_cpu"; then
  14048. lt_prog_compiler_pic_CXX='+Z'
  14049. fi
  14050. ;;
  14051. aCC*)
  14052. lt_prog_compiler_wl_CXX='-Wl,'
  14053. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14054. case $host_cpu in
  14055. hppa*64*|ia64*)
  14056. # +Z the default
  14057. ;;
  14058. *)
  14059. lt_prog_compiler_pic_CXX='+Z'
  14060. ;;
  14061. esac
  14062. ;;
  14063. *)
  14064. ;;
  14065. esac
  14066. ;;
  14067. interix*)
  14068. # This is c89, which is MS Visual C++ (no shared libs)
  14069. # Anyone wants to do a port?
  14070. ;;
  14071. irix5* | irix6* | nonstopux*)
  14072. case $cc_basename in
  14073. CC*)
  14074. lt_prog_compiler_wl_CXX='-Wl,'
  14075. lt_prog_compiler_static_CXX='-non_shared'
  14076. # CC pic flag -KPIC is the default.
  14077. ;;
  14078. *)
  14079. ;;
  14080. esac
  14081. ;;
  14082. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14083. case $cc_basename in
  14084. KCC*)
  14085. # KAI C++ Compiler
  14086. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14087. lt_prog_compiler_pic_CXX='-fPIC'
  14088. ;;
  14089. ecpc* )
  14090. # old Intel C++ for x86_64, which still supported -KPIC.
  14091. lt_prog_compiler_wl_CXX='-Wl,'
  14092. lt_prog_compiler_pic_CXX='-KPIC'
  14093. lt_prog_compiler_static_CXX='-static'
  14094. ;;
  14095. icpc* )
  14096. # Intel C++, used to be incompatible with GCC.
  14097. # ICC 10 doesn't accept -KPIC any more.
  14098. lt_prog_compiler_wl_CXX='-Wl,'
  14099. lt_prog_compiler_pic_CXX='-fPIC'
  14100. lt_prog_compiler_static_CXX='-static'
  14101. ;;
  14102. pgCC* | pgcpp*)
  14103. # Portland Group C++ compiler
  14104. lt_prog_compiler_wl_CXX='-Wl,'
  14105. lt_prog_compiler_pic_CXX='-fpic'
  14106. lt_prog_compiler_static_CXX='-Bstatic'
  14107. ;;
  14108. cxx*)
  14109. # Compaq C++
  14110. # Make sure the PIC flag is empty. It appears that all Alpha
  14111. # Linux and Compaq Tru64 Unix objects are PIC.
  14112. lt_prog_compiler_pic_CXX=
  14113. lt_prog_compiler_static_CXX='-non_shared'
  14114. ;;
  14115. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14116. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14117. lt_prog_compiler_wl_CXX='-Wl,'
  14118. lt_prog_compiler_pic_CXX='-qpic'
  14119. lt_prog_compiler_static_CXX='-qstaticlink'
  14120. ;;
  14121. *)
  14122. case `$CC -V 2>&1 | sed 5q` in
  14123. *Sun\ C*)
  14124. # Sun C++ 5.9
  14125. lt_prog_compiler_pic_CXX='-KPIC'
  14126. lt_prog_compiler_static_CXX='-Bstatic'
  14127. lt_prog_compiler_wl_CXX='-Qoption ld '
  14128. ;;
  14129. esac
  14130. ;;
  14131. esac
  14132. ;;
  14133. lynxos*)
  14134. ;;
  14135. m88k*)
  14136. ;;
  14137. mvs*)
  14138. case $cc_basename in
  14139. cxx*)
  14140. lt_prog_compiler_pic_CXX='-W c,exportall'
  14141. ;;
  14142. *)
  14143. ;;
  14144. esac
  14145. ;;
  14146. netbsd*)
  14147. ;;
  14148. *qnx* | *nto*)
  14149. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14150. # it will coredump.
  14151. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14152. ;;
  14153. osf3* | osf4* | osf5*)
  14154. case $cc_basename in
  14155. KCC*)
  14156. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14157. ;;
  14158. RCC*)
  14159. # Rational C++ 2.4.1
  14160. lt_prog_compiler_pic_CXX='-pic'
  14161. ;;
  14162. cxx*)
  14163. # Digital/Compaq C++
  14164. lt_prog_compiler_wl_CXX='-Wl,'
  14165. # Make sure the PIC flag is empty. It appears that all Alpha
  14166. # Linux and Compaq Tru64 Unix objects are PIC.
  14167. lt_prog_compiler_pic_CXX=
  14168. lt_prog_compiler_static_CXX='-non_shared'
  14169. ;;
  14170. *)
  14171. ;;
  14172. esac
  14173. ;;
  14174. psos*)
  14175. ;;
  14176. solaris*)
  14177. case $cc_basename in
  14178. CC* | sunCC*)
  14179. # Sun C++ 4.2, 5.x and Centerline C++
  14180. lt_prog_compiler_pic_CXX='-KPIC'
  14181. lt_prog_compiler_static_CXX='-Bstatic'
  14182. lt_prog_compiler_wl_CXX='-Qoption ld '
  14183. ;;
  14184. gcx*)
  14185. # Green Hills C++ Compiler
  14186. lt_prog_compiler_pic_CXX='-PIC'
  14187. ;;
  14188. *)
  14189. ;;
  14190. esac
  14191. ;;
  14192. sunos4*)
  14193. case $cc_basename in
  14194. CC*)
  14195. # Sun C++ 4.x
  14196. lt_prog_compiler_pic_CXX='-pic'
  14197. lt_prog_compiler_static_CXX='-Bstatic'
  14198. ;;
  14199. lcc*)
  14200. # Lucid
  14201. lt_prog_compiler_pic_CXX='-pic'
  14202. ;;
  14203. *)
  14204. ;;
  14205. esac
  14206. ;;
  14207. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14208. case $cc_basename in
  14209. CC*)
  14210. lt_prog_compiler_wl_CXX='-Wl,'
  14211. lt_prog_compiler_pic_CXX='-KPIC'
  14212. lt_prog_compiler_static_CXX='-Bstatic'
  14213. ;;
  14214. esac
  14215. ;;
  14216. tandem*)
  14217. case $cc_basename in
  14218. NCC*)
  14219. # NonStop-UX NCC 3.20
  14220. lt_prog_compiler_pic_CXX='-KPIC'
  14221. ;;
  14222. *)
  14223. ;;
  14224. esac
  14225. ;;
  14226. vxworks*)
  14227. ;;
  14228. *)
  14229. lt_prog_compiler_can_build_shared_CXX=no
  14230. ;;
  14231. esac
  14232. fi
  14233. case $host_os in
  14234. # For platforms that do not support PIC, -DPIC is meaningless:
  14235. *djgpp*)
  14236. lt_prog_compiler_pic_CXX=
  14237. ;;
  14238. *)
  14239. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14240. ;;
  14241. esac
  14242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14243. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14244. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14245. then :
  14246. printf %s "(cached) " >&6
  14247. else $as_nop
  14248. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14249. fi
  14250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14251. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14252. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14253. #
  14254. # Check to make sure the PIC flag actually works.
  14255. #
  14256. if test -n "$lt_prog_compiler_pic_CXX"; then
  14257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14258. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14259. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14260. then :
  14261. printf %s "(cached) " >&6
  14262. else $as_nop
  14263. lt_cv_prog_compiler_pic_works_CXX=no
  14264. ac_outfile=conftest.$ac_objext
  14265. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14266. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14267. # Insert the option either (1) after the last *FLAGS variable, or
  14268. # (2) before a word containing "conftest.", or (3) at the end.
  14269. # Note that $ac_compile itself does not contain backslashes and begins
  14270. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14271. # The option is referenced via a variable to avoid confusing sed.
  14272. lt_compile=`echo "$ac_compile" | $SED \
  14273. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14274. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14275. -e 's:$: $lt_compiler_flag:'`
  14276. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14277. (eval "$lt_compile" 2>conftest.err)
  14278. ac_status=$?
  14279. cat conftest.err >&5
  14280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14281. if (exit $ac_status) && test -s "$ac_outfile"; then
  14282. # The compiler can only warn and ignore the option if not recognized
  14283. # So say no if there are warnings other than the usual output.
  14284. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14285. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14286. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14287. lt_cv_prog_compiler_pic_works_CXX=yes
  14288. fi
  14289. fi
  14290. $RM conftest*
  14291. fi
  14292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14293. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14294. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14295. case $lt_prog_compiler_pic_CXX in
  14296. "" | " "*) ;;
  14297. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14298. esac
  14299. else
  14300. lt_prog_compiler_pic_CXX=
  14301. lt_prog_compiler_can_build_shared_CXX=no
  14302. fi
  14303. fi
  14304. #
  14305. # Check to make sure the static flag actually works.
  14306. #
  14307. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14309. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14310. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14311. then :
  14312. printf %s "(cached) " >&6
  14313. else $as_nop
  14314. lt_cv_prog_compiler_static_works_CXX=no
  14315. save_LDFLAGS=$LDFLAGS
  14316. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14317. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14318. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14319. # The linker can only warn and ignore the option if not recognized
  14320. # So say no if there are warnings
  14321. if test -s conftest.err; then
  14322. # Append any errors to the config.log.
  14323. cat conftest.err 1>&5
  14324. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14325. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14326. if diff conftest.exp conftest.er2 >/dev/null; then
  14327. lt_cv_prog_compiler_static_works_CXX=yes
  14328. fi
  14329. else
  14330. lt_cv_prog_compiler_static_works_CXX=yes
  14331. fi
  14332. fi
  14333. $RM -r conftest*
  14334. LDFLAGS=$save_LDFLAGS
  14335. fi
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14337. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14338. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14339. :
  14340. else
  14341. lt_prog_compiler_static_CXX=
  14342. fi
  14343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14344. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14345. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14346. then :
  14347. printf %s "(cached) " >&6
  14348. else $as_nop
  14349. lt_cv_prog_compiler_c_o_CXX=no
  14350. $RM -r conftest 2>/dev/null
  14351. mkdir conftest
  14352. cd conftest
  14353. mkdir out
  14354. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14355. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14356. # Insert the option either (1) after the last *FLAGS variable, or
  14357. # (2) before a word containing "conftest.", or (3) at the end.
  14358. # Note that $ac_compile itself does not contain backslashes and begins
  14359. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14360. lt_compile=`echo "$ac_compile" | $SED \
  14361. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14362. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14363. -e 's:$: $lt_compiler_flag:'`
  14364. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14365. (eval "$lt_compile" 2>out/conftest.err)
  14366. ac_status=$?
  14367. cat out/conftest.err >&5
  14368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14369. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14370. then
  14371. # The compiler can only warn and ignore the option if not recognized
  14372. # So say no if there are warnings
  14373. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14374. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14375. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14376. lt_cv_prog_compiler_c_o_CXX=yes
  14377. fi
  14378. fi
  14379. chmod u+w . 2>&5
  14380. $RM conftest*
  14381. # SGI C++ compiler will create directory out/ii_files/ for
  14382. # template instantiation
  14383. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14384. $RM out/* && rmdir out
  14385. cd ..
  14386. $RM -r conftest
  14387. $RM conftest*
  14388. fi
  14389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14390. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14392. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14393. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14394. then :
  14395. printf %s "(cached) " >&6
  14396. else $as_nop
  14397. lt_cv_prog_compiler_c_o_CXX=no
  14398. $RM -r conftest 2>/dev/null
  14399. mkdir conftest
  14400. cd conftest
  14401. mkdir out
  14402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14403. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14404. # Insert the option either (1) after the last *FLAGS variable, or
  14405. # (2) before a word containing "conftest.", or (3) at the end.
  14406. # Note that $ac_compile itself does not contain backslashes and begins
  14407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14408. lt_compile=`echo "$ac_compile" | $SED \
  14409. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14410. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14411. -e 's:$: $lt_compiler_flag:'`
  14412. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14413. (eval "$lt_compile" 2>out/conftest.err)
  14414. ac_status=$?
  14415. cat out/conftest.err >&5
  14416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14417. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14418. then
  14419. # The compiler can only warn and ignore the option if not recognized
  14420. # So say no if there are warnings
  14421. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14422. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14423. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14424. lt_cv_prog_compiler_c_o_CXX=yes
  14425. fi
  14426. fi
  14427. chmod u+w . 2>&5
  14428. $RM conftest*
  14429. # SGI C++ compiler will create directory out/ii_files/ for
  14430. # template instantiation
  14431. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14432. $RM out/* && rmdir out
  14433. cd ..
  14434. $RM -r conftest
  14435. $RM conftest*
  14436. fi
  14437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14438. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14439. hard_links=nottested
  14440. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14441. # do not overwrite the value of need_locks provided by the user
  14442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14443. printf %s "checking if we can lock with hard links... " >&6; }
  14444. hard_links=yes
  14445. $RM conftest*
  14446. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14447. touch conftest.a
  14448. ln conftest.a conftest.b 2>&5 || hard_links=no
  14449. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14451. printf "%s\n" "$hard_links" >&6; }
  14452. if test no = "$hard_links"; then
  14453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14454. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14455. need_locks=warn
  14456. fi
  14457. else
  14458. need_locks=no
  14459. fi
  14460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14461. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14462. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14463. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14464. case $host_os in
  14465. aix[4-9]*)
  14466. # If we're using GNU nm, then we don't want the "-C" option.
  14467. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14468. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14469. # weak defined symbols like other global defined symbols, whereas
  14470. # GNU nm marks them as "W".
  14471. # While the 'weak' keyword is ignored in the Export File, we need
  14472. # it in the Import File for the 'aix-soname' feature, so we have
  14473. # to replace the "-B" option with "-P" for AIX nm.
  14474. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14475. 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'
  14476. else
  14477. 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'
  14478. fi
  14479. ;;
  14480. pw32*)
  14481. export_symbols_cmds_CXX=$ltdll_cmds
  14482. ;;
  14483. cygwin* | mingw* | windows* | cegcc*)
  14484. case $cc_basename in
  14485. cl* | icl*)
  14486. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14487. ;;
  14488. *)
  14489. 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'
  14490. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14491. ;;
  14492. esac
  14493. ;;
  14494. *)
  14495. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14496. ;;
  14497. esac
  14498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14499. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14500. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14501. with_gnu_ld_CXX=$with_gnu_ld
  14502. #
  14503. # Do we need to explicitly link libc?
  14504. #
  14505. case "x$archive_cmds_need_lc_CXX" in
  14506. x|xyes)
  14507. # Assume -lc should be added
  14508. archive_cmds_need_lc_CXX=yes
  14509. if test yes,yes = "$GCC,$enable_shared"; then
  14510. case $archive_cmds_CXX in
  14511. *'~'*)
  14512. # FIXME: we may have to deal with multi-command sequences.
  14513. ;;
  14514. '$CC '*)
  14515. # Test whether the compiler implicitly links with -lc since on some
  14516. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14517. # to ld, don't add -lc before -lgcc.
  14518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14519. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14520. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14521. then :
  14522. printf %s "(cached) " >&6
  14523. else $as_nop
  14524. $RM conftest*
  14525. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14526. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14527. (eval $ac_compile) 2>&5
  14528. ac_status=$?
  14529. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14530. test $ac_status = 0; } 2>conftest.err; then
  14531. soname=conftest
  14532. lib=conftest
  14533. libobjs=conftest.$ac_objext
  14534. deplibs=
  14535. wl=$lt_prog_compiler_wl_CXX
  14536. pic_flag=$lt_prog_compiler_pic_CXX
  14537. compiler_flags=-v
  14538. linker_flags=-v
  14539. verstring=
  14540. output_objdir=.
  14541. libname=conftest
  14542. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14543. allow_undefined_flag_CXX=
  14544. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14545. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14546. ac_status=$?
  14547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14548. test $ac_status = 0; }
  14549. then
  14550. lt_cv_archive_cmds_need_lc_CXX=no
  14551. else
  14552. lt_cv_archive_cmds_need_lc_CXX=yes
  14553. fi
  14554. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14555. else
  14556. cat conftest.err 1>&5
  14557. fi
  14558. $RM conftest*
  14559. fi
  14560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14561. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14562. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14563. ;;
  14564. esac
  14565. fi
  14566. ;;
  14567. esac
  14568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14569. printf %s "checking dynamic linker characteristics... " >&6; }
  14570. library_names_spec=
  14571. libname_spec='lib$name'
  14572. soname_spec=
  14573. shrext_cmds=.so
  14574. postinstall_cmds=
  14575. postuninstall_cmds=
  14576. finish_cmds=
  14577. finish_eval=
  14578. shlibpath_var=
  14579. shlibpath_overrides_runpath=unknown
  14580. version_type=none
  14581. dynamic_linker="$host_os ld.so"
  14582. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14583. need_lib_prefix=unknown
  14584. hardcode_into_libs=no
  14585. # when you set need_version to no, make sure it does not cause -set_version
  14586. # flags to be left without arguments
  14587. need_version=unknown
  14588. case $host_os in
  14589. aix3*)
  14590. version_type=linux # correct to gnu/linux during the next big refactor
  14591. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14592. shlibpath_var=LIBPATH
  14593. # AIX 3 has no versioning support, so we append a major version to the name.
  14594. soname_spec='$libname$release$shared_ext$major'
  14595. ;;
  14596. aix[4-9]*)
  14597. version_type=linux # correct to gnu/linux during the next big refactor
  14598. need_lib_prefix=no
  14599. need_version=no
  14600. hardcode_into_libs=yes
  14601. if test ia64 = "$host_cpu"; then
  14602. # AIX 5 supports IA64
  14603. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14604. shlibpath_var=LD_LIBRARY_PATH
  14605. else
  14606. # With GCC up to 2.95.x, collect2 would create an import file
  14607. # for dependence libraries. The import file would start with
  14608. # the line '#! .'. This would cause the generated library to
  14609. # depend on '.', always an invalid library. This was fixed in
  14610. # development snapshots of GCC prior to 3.0.
  14611. case $host_os in
  14612. aix4 | aix4.[01] | aix4.[01].*)
  14613. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14614. echo ' yes '
  14615. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14616. :
  14617. else
  14618. can_build_shared=no
  14619. fi
  14620. ;;
  14621. esac
  14622. # Using Import Files as archive members, it is possible to support
  14623. # filename-based versioning of shared library archives on AIX. While
  14624. # this would work for both with and without runtime linking, it will
  14625. # prevent static linking of such archives. So we do filename-based
  14626. # shared library versioning with .so extension only, which is used
  14627. # when both runtime linking and shared linking is enabled.
  14628. # Unfortunately, runtime linking may impact performance, so we do
  14629. # not want this to be the default eventually. Also, we use the
  14630. # versioned .so libs for executables only if there is the -brtl
  14631. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14632. # To allow for filename-based versioning support, we need to create
  14633. # libNAME.so.V as an archive file, containing:
  14634. # *) an Import File, referring to the versioned filename of the
  14635. # archive as well as the shared archive member, telling the
  14636. # bitwidth (32 or 64) of that shared object, and providing the
  14637. # list of exported symbols of that shared object, eventually
  14638. # decorated with the 'weak' keyword
  14639. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14640. # it being seen by the linker.
  14641. # At run time we better use the real file rather than another symlink,
  14642. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14643. case $with_aix_soname,$aix_use_runtimelinking in
  14644. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14645. # soname into executable. Probably we can add versioning support to
  14646. # collect2, so additional links can be useful in future.
  14647. aix,yes) # traditional libtool
  14648. dynamic_linker='AIX unversionable lib.so'
  14649. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14650. # instead of lib<name>.a to let people know that these are not
  14651. # typical AIX shared libraries.
  14652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14653. ;;
  14654. aix,no) # traditional AIX only
  14655. dynamic_linker='AIX lib.a(lib.so.V)'
  14656. # We preserve .a as extension for shared libraries through AIX4.2
  14657. # and later when we are not doing run time linking.
  14658. library_names_spec='$libname$release.a $libname.a'
  14659. soname_spec='$libname$release$shared_ext$major'
  14660. ;;
  14661. svr4,*) # full svr4 only
  14662. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14663. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14664. # We do not specify a path in Import Files, so LIBPATH fires.
  14665. shlibpath_overrides_runpath=yes
  14666. ;;
  14667. *,yes) # both, prefer svr4
  14668. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14669. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14670. # unpreferred sharedlib libNAME.a needs extra handling
  14671. 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"'
  14672. 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"'
  14673. # We do not specify a path in Import Files, so LIBPATH fires.
  14674. shlibpath_overrides_runpath=yes
  14675. ;;
  14676. *,no) # both, prefer aix
  14677. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14678. library_names_spec='$libname$release.a $libname.a'
  14679. soname_spec='$libname$release$shared_ext$major'
  14680. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14681. 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)'
  14682. 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"'
  14683. ;;
  14684. esac
  14685. shlibpath_var=LIBPATH
  14686. fi
  14687. ;;
  14688. amigaos*)
  14689. case $host_cpu in
  14690. powerpc)
  14691. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14692. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14693. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14694. ;;
  14695. m68k)
  14696. library_names_spec='$libname.ixlibrary $libname.a'
  14697. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14698. 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'
  14699. ;;
  14700. esac
  14701. ;;
  14702. beos*)
  14703. library_names_spec='$libname$shared_ext'
  14704. dynamic_linker="$host_os ld.so"
  14705. shlibpath_var=LIBRARY_PATH
  14706. ;;
  14707. bsdi[45]*)
  14708. version_type=linux # correct to gnu/linux during the next big refactor
  14709. need_version=no
  14710. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14711. soname_spec='$libname$release$shared_ext$major'
  14712. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14713. shlibpath_var=LD_LIBRARY_PATH
  14714. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14715. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14716. # the default ld.so.conf also contains /usr/contrib/lib and
  14717. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14718. # libtool to hard-code these into programs
  14719. ;;
  14720. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14721. version_type=windows
  14722. shrext_cmds=.dll
  14723. need_version=no
  14724. need_lib_prefix=no
  14725. case $GCC,$cc_basename in
  14726. yes,*)
  14727. # gcc
  14728. library_names_spec='$libname.dll.a'
  14729. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14730. postinstall_cmds='base_file=`basename \$file`~
  14731. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14732. dldir=$destdir/`dirname \$dlpath`~
  14733. test -d \$dldir || mkdir -p \$dldir~
  14734. $install_prog $dir/$dlname \$dldir/$dlname~
  14735. chmod a+x \$dldir/$dlname~
  14736. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14737. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14738. fi'
  14739. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14740. dlpath=$dir/\$dldll~
  14741. $RM \$dlpath'
  14742. shlibpath_overrides_runpath=yes
  14743. case $host_os in
  14744. cygwin*)
  14745. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14746. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14747. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14748. ;;
  14749. mingw* | windows* | cegcc*)
  14750. # MinGW DLLs use traditional 'lib' prefix
  14751. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14752. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14753. ;;
  14754. pw32*)
  14755. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14756. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14757. ;;
  14758. esac
  14759. dynamic_linker='Win32 ld.exe'
  14760. ;;
  14761. *,cl* | *,icl*)
  14762. # Native MSVC or ICC
  14763. libname_spec='$name'
  14764. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14765. library_names_spec='$libname.dll.lib'
  14766. case $build_os in
  14767. mingw* | windows*)
  14768. sys_lib_search_path_spec=
  14769. lt_save_ifs=$IFS
  14770. IFS=';'
  14771. for lt_path in $LIB
  14772. do
  14773. IFS=$lt_save_ifs
  14774. # Let DOS variable expansion print the short 8.3 style file name.
  14775. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14776. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14777. done
  14778. IFS=$lt_save_ifs
  14779. # Convert to MSYS style.
  14780. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14781. ;;
  14782. cygwin*)
  14783. # Convert to unix form, then to dos form, then back to unix form
  14784. # but this time dos style (no spaces!) so that the unix form looks
  14785. # like /cygdrive/c/PROGRA~1:/cygdr...
  14786. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14787. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14788. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14789. ;;
  14790. *)
  14791. sys_lib_search_path_spec=$LIB
  14792. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14793. # It is most probably a Windows format PATH.
  14794. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14795. else
  14796. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14797. fi
  14798. # FIXME: find the short name or the path components, as spaces are
  14799. # common. (e.g. "Program Files" -> "PROGRA~1")
  14800. ;;
  14801. esac
  14802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14803. postinstall_cmds='base_file=`basename \$file`~
  14804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14805. dldir=$destdir/`dirname \$dlpath`~
  14806. test -d \$dldir || mkdir -p \$dldir~
  14807. $install_prog $dir/$dlname \$dldir/$dlname'
  14808. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14809. dlpath=$dir/\$dldll~
  14810. $RM \$dlpath'
  14811. shlibpath_overrides_runpath=yes
  14812. dynamic_linker='Win32 link.exe'
  14813. ;;
  14814. *)
  14815. # Assume MSVC and ICC wrapper
  14816. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14817. dynamic_linker='Win32 ld.exe'
  14818. ;;
  14819. esac
  14820. # FIXME: first we should search . and the directory the executable is in
  14821. shlibpath_var=PATH
  14822. ;;
  14823. darwin* | rhapsody*)
  14824. dynamic_linker="$host_os dyld"
  14825. version_type=darwin
  14826. need_lib_prefix=no
  14827. need_version=no
  14828. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14829. soname_spec='$libname$release$major$shared_ext'
  14830. shlibpath_overrides_runpath=yes
  14831. shlibpath_var=DYLD_LIBRARY_PATH
  14832. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14833. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14834. ;;
  14835. dgux*)
  14836. version_type=linux # correct to gnu/linux during the next big refactor
  14837. need_lib_prefix=no
  14838. need_version=no
  14839. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14840. soname_spec='$libname$release$shared_ext$major'
  14841. shlibpath_var=LD_LIBRARY_PATH
  14842. ;;
  14843. freebsd* | dragonfly* | midnightbsd*)
  14844. # DragonFly does not have aout. When/if they implement a new
  14845. # versioning mechanism, adjust this.
  14846. if test -x /usr/bin/objformat; then
  14847. objformat=`/usr/bin/objformat`
  14848. else
  14849. case $host_os in
  14850. freebsd[23].*) objformat=aout ;;
  14851. *) objformat=elf ;;
  14852. esac
  14853. fi
  14854. version_type=freebsd-$objformat
  14855. case $version_type in
  14856. freebsd-elf*)
  14857. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14858. soname_spec='$libname$release$shared_ext$major'
  14859. need_version=no
  14860. need_lib_prefix=no
  14861. ;;
  14862. freebsd-*)
  14863. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14864. need_version=yes
  14865. ;;
  14866. esac
  14867. shlibpath_var=LD_LIBRARY_PATH
  14868. case $host_os in
  14869. freebsd2.*)
  14870. shlibpath_overrides_runpath=yes
  14871. ;;
  14872. freebsd3.[01]* | freebsdelf3.[01]*)
  14873. shlibpath_overrides_runpath=yes
  14874. hardcode_into_libs=yes
  14875. ;;
  14876. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14877. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14878. shlibpath_overrides_runpath=no
  14879. hardcode_into_libs=yes
  14880. ;;
  14881. *) # from 4.6 on, and DragonFly
  14882. shlibpath_overrides_runpath=yes
  14883. hardcode_into_libs=yes
  14884. ;;
  14885. esac
  14886. ;;
  14887. haiku*)
  14888. version_type=linux # correct to gnu/linux during the next big refactor
  14889. need_lib_prefix=no
  14890. need_version=no
  14891. dynamic_linker="$host_os runtime_loader"
  14892. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14893. soname_spec='$libname$release$shared_ext$major'
  14894. shlibpath_var=LIBRARY_PATH
  14895. shlibpath_overrides_runpath=no
  14896. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14897. hardcode_into_libs=yes
  14898. ;;
  14899. hpux9* | hpux10* | hpux11*)
  14900. # Give a soname corresponding to the major version so that dld.sl refuses to
  14901. # link against other versions.
  14902. version_type=sunos
  14903. need_lib_prefix=no
  14904. need_version=no
  14905. case $host_cpu in
  14906. ia64*)
  14907. shrext_cmds='.so'
  14908. hardcode_into_libs=yes
  14909. dynamic_linker="$host_os dld.so"
  14910. shlibpath_var=LD_LIBRARY_PATH
  14911. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14913. soname_spec='$libname$release$shared_ext$major'
  14914. if test 32 = "$HPUX_IA64_MODE"; then
  14915. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14916. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14917. else
  14918. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14919. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14920. fi
  14921. ;;
  14922. hppa*64*)
  14923. shrext_cmds='.sl'
  14924. hardcode_into_libs=yes
  14925. dynamic_linker="$host_os dld.sl"
  14926. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14928. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14929. soname_spec='$libname$release$shared_ext$major'
  14930. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14931. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14932. ;;
  14933. *)
  14934. shrext_cmds='.sl'
  14935. dynamic_linker="$host_os dld.sl"
  14936. shlibpath_var=SHLIB_PATH
  14937. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14938. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14939. soname_spec='$libname$release$shared_ext$major'
  14940. ;;
  14941. esac
  14942. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14943. postinstall_cmds='chmod 555 $lib'
  14944. # or fails outright, so override atomically:
  14945. install_override_mode=555
  14946. ;;
  14947. interix[3-9]*)
  14948. version_type=linux # correct to gnu/linux during the next big refactor
  14949. need_lib_prefix=no
  14950. need_version=no
  14951. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14952. soname_spec='$libname$release$shared_ext$major'
  14953. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14954. shlibpath_var=LD_LIBRARY_PATH
  14955. shlibpath_overrides_runpath=no
  14956. hardcode_into_libs=yes
  14957. ;;
  14958. irix5* | irix6* | nonstopux*)
  14959. case $host_os in
  14960. nonstopux*) version_type=nonstopux ;;
  14961. *)
  14962. if test yes = "$lt_cv_prog_gnu_ld"; then
  14963. version_type=linux # correct to gnu/linux during the next big refactor
  14964. else
  14965. version_type=irix
  14966. fi ;;
  14967. esac
  14968. need_lib_prefix=no
  14969. need_version=no
  14970. soname_spec='$libname$release$shared_ext$major'
  14971. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14972. case $host_os in
  14973. irix5* | nonstopux*)
  14974. libsuff= shlibsuff=
  14975. ;;
  14976. *)
  14977. case $LD in # libtool.m4 will add one of these switches to LD
  14978. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14979. libsuff= shlibsuff= libmagic=32-bit;;
  14980. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14981. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14982. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14983. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14984. *) libsuff= shlibsuff= libmagic=never-match;;
  14985. esac
  14986. ;;
  14987. esac
  14988. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14989. shlibpath_overrides_runpath=no
  14990. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14991. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14992. hardcode_into_libs=yes
  14993. ;;
  14994. # No shared lib support for Linux oldld, aout, or coff.
  14995. linux*oldld* | linux*aout* | linux*coff*)
  14996. dynamic_linker=no
  14997. ;;
  14998. linux*android*)
  14999. version_type=none # Android doesn't support versioned libraries.
  15000. need_lib_prefix=no
  15001. need_version=no
  15002. library_names_spec='$libname$release$shared_ext'
  15003. soname_spec='$libname$release$shared_ext'
  15004. finish_cmds=
  15005. shlibpath_var=LD_LIBRARY_PATH
  15006. shlibpath_overrides_runpath=yes
  15007. # This implies no fast_install, which is unacceptable.
  15008. # Some rework will be needed to allow for fast_install
  15009. # before this can be enabled.
  15010. hardcode_into_libs=yes
  15011. dynamic_linker='Android linker'
  15012. # Don't embed -rpath directories since the linker doesn't support them.
  15013. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15014. ;;
  15015. # This must be glibc/ELF.
  15016. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15017. version_type=linux # correct to gnu/linux during the next big refactor
  15018. need_lib_prefix=no
  15019. need_version=no
  15020. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15021. soname_spec='$libname$release$shared_ext$major'
  15022. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15023. shlibpath_var=LD_LIBRARY_PATH
  15024. shlibpath_overrides_runpath=no
  15025. # Some binutils ld are patched to set DT_RUNPATH
  15026. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15027. then :
  15028. printf %s "(cached) " >&6
  15029. else $as_nop
  15030. lt_cv_shlibpath_overrides_runpath=no
  15031. save_LDFLAGS=$LDFLAGS
  15032. save_libdir=$libdir
  15033. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15034. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15036. /* end confdefs.h. */
  15037. int
  15038. main (void)
  15039. {
  15040. ;
  15041. return 0;
  15042. }
  15043. _ACEOF
  15044. if ac_fn_cxx_try_link "$LINENO"
  15045. then :
  15046. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15047. then :
  15048. lt_cv_shlibpath_overrides_runpath=yes
  15049. fi
  15050. fi
  15051. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15052. conftest$ac_exeext conftest.$ac_ext
  15053. LDFLAGS=$save_LDFLAGS
  15054. libdir=$save_libdir
  15055. fi
  15056. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15057. # This implies no fast_install, which is unacceptable.
  15058. # Some rework will be needed to allow for fast_install
  15059. # before this can be enabled.
  15060. hardcode_into_libs=yes
  15061. # Add ABI-specific directories to the system library path.
  15062. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15063. # Ideally, we could use ldconfig to report *all* directores which are
  15064. # searched for libraries, however this is still not possible. Aside from not
  15065. # being certain /sbin/ldconfig is available, command
  15066. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15067. # even though it is searched at run-time. Try to do the best guess by
  15068. # appending ld.so.conf contents (and includes) to the search path.
  15069. if test -f /etc/ld.so.conf; then
  15070. 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' ' '`
  15071. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15072. fi
  15073. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15074. # powerpc, because MkLinux only supported shared libraries with the
  15075. # GNU dynamic linker. Since this was broken with cross compilers,
  15076. # most powerpc-linux boxes support dynamic linking these days and
  15077. # people can always --disable-shared, the test was removed, and we
  15078. # assume the GNU/Linux dynamic linker is in use.
  15079. dynamic_linker='GNU/Linux ld.so'
  15080. ;;
  15081. netbsd*)
  15082. version_type=sunos
  15083. need_lib_prefix=no
  15084. need_version=no
  15085. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15086. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15087. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15088. dynamic_linker='NetBSD (a.out) ld.so'
  15089. else
  15090. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15091. soname_spec='$libname$release$shared_ext$major'
  15092. dynamic_linker='NetBSD ld.elf_so'
  15093. fi
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. shlibpath_overrides_runpath=yes
  15096. hardcode_into_libs=yes
  15097. ;;
  15098. newsos6)
  15099. version_type=linux # correct to gnu/linux during the next big refactor
  15100. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15101. shlibpath_var=LD_LIBRARY_PATH
  15102. shlibpath_overrides_runpath=yes
  15103. ;;
  15104. *nto* | *qnx*)
  15105. version_type=qnx
  15106. need_lib_prefix=no
  15107. need_version=no
  15108. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15109. soname_spec='$libname$release$shared_ext$major'
  15110. shlibpath_var=LD_LIBRARY_PATH
  15111. shlibpath_overrides_runpath=no
  15112. hardcode_into_libs=yes
  15113. dynamic_linker='ldqnx.so'
  15114. ;;
  15115. openbsd* | bitrig*)
  15116. version_type=sunos
  15117. sys_lib_dlsearch_path_spec=/usr/lib
  15118. need_lib_prefix=no
  15119. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15120. need_version=no
  15121. else
  15122. need_version=yes
  15123. fi
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=yes
  15128. ;;
  15129. os2*)
  15130. libname_spec='$name'
  15131. shrext_cmds=.dll
  15132. need_lib_prefix=no
  15133. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15134. # SDL customization: removed versioning support.
  15135. # version_type=windows
  15136. # need_version=no
  15137. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15138. # v=$($ECHO $release$versuffix | tr -d .-);
  15139. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15140. # $ECHO $n$v`$shared_ext'
  15141. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15142. library_names_spec='${libname}_dll.$libext'
  15143. dynamic_linker='OS/2 ld.exe'
  15144. shlibpath_var=BEGINLIBPATH
  15145. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15146. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15147. postinstall_cmds='base_file=`basename \$file`~
  15148. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15149. dldir=$destdir/`dirname \$dlpath`~
  15150. test -d \$dldir || mkdir -p \$dldir~
  15151. $install_prog $dir/$dlname \$dldir/$dlname~
  15152. chmod a+x \$dldir/$dlname~
  15153. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15154. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15155. fi'
  15156. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15157. dlpath=$dir/\$dldll~
  15158. $RM \$dlpath'
  15159. ;;
  15160. osf3* | osf4* | osf5*)
  15161. version_type=osf
  15162. need_lib_prefix=no
  15163. need_version=no
  15164. soname_spec='$libname$release$shared_ext$major'
  15165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15166. shlibpath_var=LD_LIBRARY_PATH
  15167. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15168. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15169. ;;
  15170. rdos*)
  15171. dynamic_linker=no
  15172. ;;
  15173. solaris*)
  15174. version_type=linux # correct to gnu/linux during the next big refactor
  15175. need_lib_prefix=no
  15176. need_version=no
  15177. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15178. soname_spec='$libname$release$shared_ext$major'
  15179. shlibpath_var=LD_LIBRARY_PATH
  15180. shlibpath_overrides_runpath=yes
  15181. hardcode_into_libs=yes
  15182. # ldd complains unless libraries are executable
  15183. postinstall_cmds='chmod +x $lib'
  15184. ;;
  15185. sunos4*)
  15186. version_type=sunos
  15187. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15188. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15189. shlibpath_var=LD_LIBRARY_PATH
  15190. shlibpath_overrides_runpath=yes
  15191. if test yes = "$with_gnu_ld"; then
  15192. need_lib_prefix=no
  15193. fi
  15194. need_version=yes
  15195. ;;
  15196. sysv4 | sysv4.3*)
  15197. version_type=linux # correct to gnu/linux during the next big refactor
  15198. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15199. soname_spec='$libname$release$shared_ext$major'
  15200. shlibpath_var=LD_LIBRARY_PATH
  15201. case $host_vendor in
  15202. sni)
  15203. shlibpath_overrides_runpath=no
  15204. need_lib_prefix=no
  15205. runpath_var=LD_RUN_PATH
  15206. ;;
  15207. siemens)
  15208. need_lib_prefix=no
  15209. ;;
  15210. motorola)
  15211. need_lib_prefix=no
  15212. need_version=no
  15213. shlibpath_overrides_runpath=no
  15214. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15215. ;;
  15216. esac
  15217. ;;
  15218. sysv4*MP*)
  15219. if test -d /usr/nec; then
  15220. version_type=linux # correct to gnu/linux during the next big refactor
  15221. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15222. soname_spec='$libname$shared_ext.$major'
  15223. shlibpath_var=LD_LIBRARY_PATH
  15224. fi
  15225. ;;
  15226. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15227. version_type=sco
  15228. need_lib_prefix=no
  15229. need_version=no
  15230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15231. soname_spec='$libname$release$shared_ext$major'
  15232. shlibpath_var=LD_LIBRARY_PATH
  15233. shlibpath_overrides_runpath=yes
  15234. hardcode_into_libs=yes
  15235. if test yes = "$with_gnu_ld"; then
  15236. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15237. else
  15238. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15239. case $host_os in
  15240. sco3.2v5*)
  15241. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15242. ;;
  15243. esac
  15244. fi
  15245. sys_lib_dlsearch_path_spec='/usr/lib'
  15246. ;;
  15247. tpf*)
  15248. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15249. version_type=linux # correct to gnu/linux during the next big refactor
  15250. need_lib_prefix=no
  15251. need_version=no
  15252. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15253. shlibpath_var=LD_LIBRARY_PATH
  15254. shlibpath_overrides_runpath=no
  15255. hardcode_into_libs=yes
  15256. ;;
  15257. uts4*)
  15258. version_type=linux # correct to gnu/linux during the next big refactor
  15259. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15260. soname_spec='$libname$release$shared_ext$major'
  15261. shlibpath_var=LD_LIBRARY_PATH
  15262. ;;
  15263. *)
  15264. dynamic_linker=no
  15265. ;;
  15266. esac
  15267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15268. printf "%s\n" "$dynamic_linker" >&6; }
  15269. test no = "$dynamic_linker" && can_build_shared=no
  15270. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15271. if test yes = "$GCC"; then
  15272. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15273. fi
  15274. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15275. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15276. fi
  15277. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15278. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15279. fi
  15280. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15281. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15282. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15283. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15284. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15285. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15287. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15288. hardcode_action_CXX=
  15289. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15290. test -n "$runpath_var_CXX" ||
  15291. test yes = "$hardcode_automatic_CXX"; then
  15292. # We can hardcode non-existent directories.
  15293. if test no != "$hardcode_direct_CXX" &&
  15294. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15295. # have to relink, otherwise we might link with an installed library
  15296. # when we should be linking with a yet-to-be-installed one
  15297. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15298. test no != "$hardcode_minus_L_CXX"; then
  15299. # Linking always hardcodes the temporary library directory.
  15300. hardcode_action_CXX=relink
  15301. else
  15302. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15303. hardcode_action_CXX=immediate
  15304. fi
  15305. else
  15306. # We cannot hardcode anything, or else we can only hardcode existing
  15307. # directories.
  15308. hardcode_action_CXX=unsupported
  15309. fi
  15310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15311. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15312. if test relink = "$hardcode_action_CXX" ||
  15313. test yes = "$inherit_rpath_CXX"; then
  15314. # Fast installation is not supported
  15315. enable_fast_install=no
  15316. elif test yes = "$shlibpath_overrides_runpath" ||
  15317. test no = "$enable_shared"; then
  15318. # Fast installation is not necessary
  15319. enable_fast_install=needless
  15320. fi
  15321. fi # test -n "$compiler"
  15322. CC=$lt_save_CC
  15323. CFLAGS=$lt_save_CFLAGS
  15324. LDCXX=$LD
  15325. LD=$lt_save_LD
  15326. GCC=$lt_save_GCC
  15327. with_gnu_ld=$lt_save_with_gnu_ld
  15328. lt_cv_path_LDCXX=$lt_cv_path_LD
  15329. lt_cv_path_LD=$lt_save_path_LD
  15330. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15331. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15332. fi # test yes != "$_lt_caught_CXX_error"
  15333. ac_ext=c
  15334. ac_cpp='$CPP $CPPFLAGS'
  15335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15339. printf %s "checking for egrep... " >&6; }
  15340. if test ${ac_cv_path_EGREP+y}
  15341. then :
  15342. printf %s "(cached) " >&6
  15343. else $as_nop
  15344. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15345. then ac_cv_path_EGREP="$GREP -E"
  15346. else
  15347. if test -z "$EGREP"; then
  15348. ac_path_EGREP_found=false
  15349. # Loop through the user's path and test for each of PROGNAME-LIST
  15350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15351. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15352. do
  15353. IFS=$as_save_IFS
  15354. case $as_dir in #(((
  15355. '') as_dir=./ ;;
  15356. */) ;;
  15357. *) as_dir=$as_dir/ ;;
  15358. esac
  15359. for ac_prog in egrep
  15360. do
  15361. for ac_exec_ext in '' $ac_executable_extensions; do
  15362. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15363. as_fn_executable_p "$ac_path_EGREP" || continue
  15364. # Check for GNU ac_path_EGREP and select it if it is found.
  15365. # Check for GNU $ac_path_EGREP
  15366. case `"$ac_path_EGREP" --version 2>&1` in
  15367. *GNU*)
  15368. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15369. *)
  15370. ac_count=0
  15371. printf %s 0123456789 >"conftest.in"
  15372. while :
  15373. do
  15374. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15375. mv "conftest.tmp" "conftest.in"
  15376. cp "conftest.in" "conftest.nl"
  15377. printf "%s\n" 'EGREP' >> "conftest.nl"
  15378. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15379. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15380. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15381. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15382. # Best one so far, save it but keep looking for a better one
  15383. ac_cv_path_EGREP="$ac_path_EGREP"
  15384. ac_path_EGREP_max=$ac_count
  15385. fi
  15386. # 10*(2^10) chars as input seems more than enough
  15387. test $ac_count -gt 10 && break
  15388. done
  15389. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15390. esac
  15391. $ac_path_EGREP_found && break 3
  15392. done
  15393. done
  15394. done
  15395. IFS=$as_save_IFS
  15396. if test -z "$ac_cv_path_EGREP"; then
  15397. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15398. fi
  15399. else
  15400. ac_cv_path_EGREP=$EGREP
  15401. fi
  15402. fi
  15403. fi
  15404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15405. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15406. EGREP="$ac_cv_path_EGREP"
  15407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15408. printf %s "checking for fgrep... " >&6; }
  15409. if test ${ac_cv_path_FGREP+y}
  15410. then :
  15411. printf %s "(cached) " >&6
  15412. else $as_nop
  15413. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15414. then ac_cv_path_FGREP="$GREP -F"
  15415. else
  15416. if test -z "$FGREP"; then
  15417. ac_path_FGREP_found=false
  15418. # Loop through the user's path and test for each of PROGNAME-LIST
  15419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15420. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15421. do
  15422. IFS=$as_save_IFS
  15423. case $as_dir in #(((
  15424. '') as_dir=./ ;;
  15425. */) ;;
  15426. *) as_dir=$as_dir/ ;;
  15427. esac
  15428. for ac_prog in fgrep
  15429. do
  15430. for ac_exec_ext in '' $ac_executable_extensions; do
  15431. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15432. as_fn_executable_p "$ac_path_FGREP" || continue
  15433. # Check for GNU ac_path_FGREP and select it if it is found.
  15434. # Check for GNU $ac_path_FGREP
  15435. case `"$ac_path_FGREP" --version 2>&1` in
  15436. *GNU*)
  15437. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15438. *)
  15439. ac_count=0
  15440. printf %s 0123456789 >"conftest.in"
  15441. while :
  15442. do
  15443. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15444. mv "conftest.tmp" "conftest.in"
  15445. cp "conftest.in" "conftest.nl"
  15446. printf "%s\n" 'FGREP' >> "conftest.nl"
  15447. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15448. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15449. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15450. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15451. # Best one so far, save it but keep looking for a better one
  15452. ac_cv_path_FGREP="$ac_path_FGREP"
  15453. ac_path_FGREP_max=$ac_count
  15454. fi
  15455. # 10*(2^10) chars as input seems more than enough
  15456. test $ac_count -gt 10 && break
  15457. done
  15458. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15459. esac
  15460. $ac_path_FGREP_found && break 3
  15461. done
  15462. done
  15463. done
  15464. IFS=$as_save_IFS
  15465. if test -z "$ac_cv_path_FGREP"; then
  15466. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15467. fi
  15468. else
  15469. ac_cv_path_FGREP=$FGREP
  15470. fi
  15471. fi
  15472. fi
  15473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15474. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15475. FGREP="$ac_cv_path_FGREP"
  15476. # Find a good install program. We prefer a C program (faster),
  15477. # so one script is as good as another. But avoid the broken or
  15478. # incompatible versions:
  15479. # SysV /etc/install, /usr/sbin/install
  15480. # SunOS /usr/etc/install
  15481. # IRIX /sbin/install
  15482. # AIX /bin/install
  15483. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15484. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15485. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15486. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15487. # OS/2's system install, which has a completely different semantic
  15488. # ./install, which can be erroneously created by make from ./install.sh.
  15489. # Reject install programs that cannot install multiple files.
  15490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15491. printf %s "checking for a BSD-compatible install... " >&6; }
  15492. if test -z "$INSTALL"; then
  15493. if test ${ac_cv_path_install+y}
  15494. then :
  15495. printf %s "(cached) " >&6
  15496. else $as_nop
  15497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15498. for as_dir in $PATH
  15499. do
  15500. IFS=$as_save_IFS
  15501. case $as_dir in #(((
  15502. '') as_dir=./ ;;
  15503. */) ;;
  15504. *) as_dir=$as_dir/ ;;
  15505. esac
  15506. # Account for fact that we put trailing slashes in our PATH walk.
  15507. case $as_dir in #((
  15508. ./ | /[cC]/* | \
  15509. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15510. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15511. /usr/ucb/* ) ;;
  15512. *)
  15513. # OSF1 and SCO ODT 3.0 have their own names for install.
  15514. # Don't use installbsd from OSF since it installs stuff as root
  15515. # by default.
  15516. for ac_prog in ginstall scoinst install; do
  15517. for ac_exec_ext in '' $ac_executable_extensions; do
  15518. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15519. if test $ac_prog = install &&
  15520. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15521. # AIX install. It has an incompatible calling convention.
  15522. :
  15523. elif test $ac_prog = install &&
  15524. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15525. # program-specific install script used by HP pwplus--don't use.
  15526. :
  15527. else
  15528. rm -rf conftest.one conftest.two conftest.dir
  15529. echo one > conftest.one
  15530. echo two > conftest.two
  15531. mkdir conftest.dir
  15532. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15533. test -s conftest.one && test -s conftest.two &&
  15534. test -s conftest.dir/conftest.one &&
  15535. test -s conftest.dir/conftest.two
  15536. then
  15537. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15538. break 3
  15539. fi
  15540. fi
  15541. fi
  15542. done
  15543. done
  15544. ;;
  15545. esac
  15546. done
  15547. IFS=$as_save_IFS
  15548. rm -rf conftest.one conftest.two conftest.dir
  15549. fi
  15550. if test ${ac_cv_path_install+y}; then
  15551. INSTALL=$ac_cv_path_install
  15552. else
  15553. # As a last resort, use the slow shell script. Don't cache a
  15554. # value for INSTALL within a source directory, because that will
  15555. # break other packages using the cache if that directory is
  15556. # removed, or if the value is a relative name.
  15557. INSTALL=$ac_install_sh
  15558. fi
  15559. fi
  15560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15561. printf "%s\n" "$INSTALL" >&6; }
  15562. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15563. # It thinks the first close brace ends the variable substitution.
  15564. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15565. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15566. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15568. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15569. set x ${MAKE-make}
  15570. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15571. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15572. then :
  15573. printf %s "(cached) " >&6
  15574. else $as_nop
  15575. cat >conftest.make <<\_ACEOF
  15576. SHELL = /bin/sh
  15577. all:
  15578. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15579. _ACEOF
  15580. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15581. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15582. *@@@%%%=?*=@@@%%%*)
  15583. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15584. *)
  15585. eval ac_cv_prog_make_${ac_make}_set=no;;
  15586. esac
  15587. rm -f conftest.make
  15588. fi
  15589. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15591. printf "%s\n" "yes" >&6; }
  15592. SET_MAKE=
  15593. else
  15594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15595. printf "%s\n" "no" >&6; }
  15596. SET_MAKE="MAKE=${MAKE-make}"
  15597. fi
  15598. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15599. if test -n "$ac_tool_prefix"; then
  15600. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15601. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15603. printf %s "checking for $ac_word... " >&6; }
  15604. if test ${ac_cv_path_PKG_CONFIG+y}
  15605. then :
  15606. printf %s "(cached) " >&6
  15607. else $as_nop
  15608. case $PKG_CONFIG in
  15609. [\\/]* | ?:[\\/]*)
  15610. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15611. ;;
  15612. *)
  15613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15614. for as_dir in $PATH
  15615. do
  15616. IFS=$as_save_IFS
  15617. case $as_dir in #(((
  15618. '') as_dir=./ ;;
  15619. */) ;;
  15620. *) as_dir=$as_dir/ ;;
  15621. esac
  15622. for ac_exec_ext in '' $ac_executable_extensions; do
  15623. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15624. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15626. break 2
  15627. fi
  15628. done
  15629. done
  15630. IFS=$as_save_IFS
  15631. ;;
  15632. esac
  15633. fi
  15634. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15635. if test -n "$PKG_CONFIG"; then
  15636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15637. printf "%s\n" "$PKG_CONFIG" >&6; }
  15638. else
  15639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15640. printf "%s\n" "no" >&6; }
  15641. fi
  15642. fi
  15643. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15644. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15645. # Extract the first word of "pkg-config", so it can be a program name with args.
  15646. set dummy pkg-config; ac_word=$2
  15647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15648. printf %s "checking for $ac_word... " >&6; }
  15649. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15650. then :
  15651. printf %s "(cached) " >&6
  15652. else $as_nop
  15653. case $ac_pt_PKG_CONFIG in
  15654. [\\/]* | ?:[\\/]*)
  15655. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15656. ;;
  15657. *)
  15658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15659. for as_dir in $PATH
  15660. do
  15661. IFS=$as_save_IFS
  15662. case $as_dir in #(((
  15663. '') as_dir=./ ;;
  15664. */) ;;
  15665. *) as_dir=$as_dir/ ;;
  15666. esac
  15667. for ac_exec_ext in '' $ac_executable_extensions; do
  15668. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15669. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15671. break 2
  15672. fi
  15673. done
  15674. done
  15675. IFS=$as_save_IFS
  15676. ;;
  15677. esac
  15678. fi
  15679. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15680. if test -n "$ac_pt_PKG_CONFIG"; then
  15681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15682. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15683. else
  15684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15685. printf "%s\n" "no" >&6; }
  15686. fi
  15687. if test "x$ac_pt_PKG_CONFIG" = x; then
  15688. PKG_CONFIG=""
  15689. else
  15690. case $cross_compiling:$ac_tool_warned in
  15691. yes:)
  15692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15693. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15694. ac_tool_warned=yes ;;
  15695. esac
  15696. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15697. fi
  15698. else
  15699. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15700. fi
  15701. fi
  15702. if test -n "$PKG_CONFIG"; then
  15703. _pkg_min_version=0.9.0
  15704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15705. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15706. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15708. printf "%s\n" "yes" >&6; }
  15709. else
  15710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15711. printf "%s\n" "no" >&6; }
  15712. PKG_CONFIG=""
  15713. fi
  15714. fi
  15715. if test -z "$AWK" ; then
  15716. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15717. fi
  15718. for ac_prog in gsort sort
  15719. do
  15720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15721. set dummy $ac_prog; ac_word=$2
  15722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15723. printf %s "checking for $ac_word... " >&6; }
  15724. if test ${ac_cv_prog_SORT+y}
  15725. then :
  15726. printf %s "(cached) " >&6
  15727. else $as_nop
  15728. if test -n "$SORT"; then
  15729. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15730. else
  15731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15732. for as_dir in $PATH
  15733. do
  15734. IFS=$as_save_IFS
  15735. case $as_dir in #(((
  15736. '') as_dir=./ ;;
  15737. */) ;;
  15738. *) as_dir=$as_dir/ ;;
  15739. esac
  15740. for ac_exec_ext in '' $ac_executable_extensions; do
  15741. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15742. ac_cv_prog_SORT="$ac_prog"
  15743. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15744. break 2
  15745. fi
  15746. done
  15747. done
  15748. IFS=$as_save_IFS
  15749. fi
  15750. fi
  15751. SORT=$ac_cv_prog_SORT
  15752. if test -n "$SORT"; then
  15753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15754. printf "%s\n" "$SORT" >&6; }
  15755. else
  15756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15757. printf "%s\n" "no" >&6; }
  15758. fi
  15759. test -n "$SORT" && break
  15760. done
  15761. test -n "$SORT" || SORT="false"
  15762. if ! "$SORT" -V </dev/null >/dev/null
  15763. then :
  15764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15765. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15766. fi
  15767. # Check whether --enable-largefile was given.
  15768. if test ${enable_largefile+y}
  15769. then :
  15770. enableval=$enable_largefile;
  15771. fi
  15772. if test "$enable_largefile" != no; then
  15773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15774. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15775. if test ${ac_cv_sys_largefile_CC+y}
  15776. then :
  15777. printf %s "(cached) " >&6
  15778. else $as_nop
  15779. ac_cv_sys_largefile_CC=no
  15780. if test "$GCC" != yes; then
  15781. ac_save_CC=$CC
  15782. while :; do
  15783. # IRIX 6.2 and later do not support large files by default,
  15784. # so use the C compiler's -n32 option if that helps.
  15785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15786. /* end confdefs.h. */
  15787. #include <sys/types.h>
  15788. /* Check that off_t can represent 2**63 - 1 correctly.
  15789. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15790. since some C++ compilers masquerading as C compilers
  15791. incorrectly reject 9223372036854775807. */
  15792. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15793. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15794. && LARGE_OFF_T % 2147483647 == 1)
  15795. ? 1 : -1];
  15796. int
  15797. main (void)
  15798. {
  15799. ;
  15800. return 0;
  15801. }
  15802. _ACEOF
  15803. if ac_fn_c_try_compile "$LINENO"
  15804. then :
  15805. break
  15806. fi
  15807. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15808. CC="$CC -n32"
  15809. if ac_fn_c_try_compile "$LINENO"
  15810. then :
  15811. ac_cv_sys_largefile_CC=' -n32'; break
  15812. fi
  15813. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15814. break
  15815. done
  15816. CC=$ac_save_CC
  15817. rm -f conftest.$ac_ext
  15818. fi
  15819. fi
  15820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15821. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15822. if test "$ac_cv_sys_largefile_CC" != no; then
  15823. CC=$CC$ac_cv_sys_largefile_CC
  15824. fi
  15825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15826. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15827. if test ${ac_cv_sys_file_offset_bits+y}
  15828. then :
  15829. printf %s "(cached) " >&6
  15830. else $as_nop
  15831. while :; do
  15832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15833. /* end confdefs.h. */
  15834. #include <sys/types.h>
  15835. /* Check that off_t can represent 2**63 - 1 correctly.
  15836. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15837. since some C++ compilers masquerading as C compilers
  15838. incorrectly reject 9223372036854775807. */
  15839. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15840. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15841. && LARGE_OFF_T % 2147483647 == 1)
  15842. ? 1 : -1];
  15843. int
  15844. main (void)
  15845. {
  15846. ;
  15847. return 0;
  15848. }
  15849. _ACEOF
  15850. if ac_fn_c_try_compile "$LINENO"
  15851. then :
  15852. ac_cv_sys_file_offset_bits=no; break
  15853. fi
  15854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15856. /* end confdefs.h. */
  15857. #define _FILE_OFFSET_BITS 64
  15858. #include <sys/types.h>
  15859. /* Check that off_t can represent 2**63 - 1 correctly.
  15860. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15861. since some C++ compilers masquerading as C compilers
  15862. incorrectly reject 9223372036854775807. */
  15863. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15864. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15865. && LARGE_OFF_T % 2147483647 == 1)
  15866. ? 1 : -1];
  15867. int
  15868. main (void)
  15869. {
  15870. ;
  15871. return 0;
  15872. }
  15873. _ACEOF
  15874. if ac_fn_c_try_compile "$LINENO"
  15875. then :
  15876. ac_cv_sys_file_offset_bits=64; break
  15877. fi
  15878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15879. ac_cv_sys_file_offset_bits=unknown
  15880. break
  15881. done
  15882. fi
  15883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15884. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15885. case $ac_cv_sys_file_offset_bits in #(
  15886. no | unknown) ;;
  15887. *)
  15888. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15889. ;;
  15890. esac
  15891. rm -rf conftest*
  15892. if test $ac_cv_sys_file_offset_bits = unknown; then
  15893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15894. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15895. if test ${ac_cv_sys_large_files+y}
  15896. then :
  15897. printf %s "(cached) " >&6
  15898. else $as_nop
  15899. while :; do
  15900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15901. /* end confdefs.h. */
  15902. #include <sys/types.h>
  15903. /* Check that off_t can represent 2**63 - 1 correctly.
  15904. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15905. since some C++ compilers masquerading as C compilers
  15906. incorrectly reject 9223372036854775807. */
  15907. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15908. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15909. && LARGE_OFF_T % 2147483647 == 1)
  15910. ? 1 : -1];
  15911. int
  15912. main (void)
  15913. {
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. if ac_fn_c_try_compile "$LINENO"
  15919. then :
  15920. ac_cv_sys_large_files=no; break
  15921. fi
  15922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15924. /* end confdefs.h. */
  15925. #define _LARGE_FILES 1
  15926. #include <sys/types.h>
  15927. /* Check that off_t can represent 2**63 - 1 correctly.
  15928. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15929. since some C++ compilers masquerading as C compilers
  15930. incorrectly reject 9223372036854775807. */
  15931. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15932. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15933. && LARGE_OFF_T % 2147483647 == 1)
  15934. ? 1 : -1];
  15935. int
  15936. main (void)
  15937. {
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. if ac_fn_c_try_compile "$LINENO"
  15943. then :
  15944. ac_cv_sys_large_files=1; break
  15945. fi
  15946. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15947. ac_cv_sys_large_files=unknown
  15948. break
  15949. done
  15950. fi
  15951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15952. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15953. case $ac_cv_sys_large_files in #(
  15954. no | unknown) ;;
  15955. *)
  15956. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15957. ;;
  15958. esac
  15959. rm -rf conftest*
  15960. fi
  15961. fi
  15962. case "$host" in
  15963. *-*-mingw*)
  15964. # Except on msys, where make can't handle full pathnames (bug 1972)
  15965. ;;
  15966. *)
  15967. srcdir=`cd $srcdir && pwd`
  15968. ;;
  15969. esac
  15970. INCLUDE="-I$srcdir/include"
  15971. case "$host" in
  15972. *-*-nto-qnx*)
  15973. ;;
  15974. *)
  15975. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15976. ;;
  15977. esac
  15978. case "$host" in
  15979. *-*-haiku*)
  15980. LINKER='$(CXX)'
  15981. LIBTOOLLINKERTAG='CXX'
  15982. ;;
  15983. *)
  15984. LINKER='$(CC)'
  15985. LIBTOOLLINKERTAG='CC'
  15986. ;;
  15987. esac
  15988. case "$host" in
  15989. # On Solaris, jack must be linked deferred explicitly
  15990. # to prevent undefined symbol failures.
  15991. *-*-solaris*)
  15992. SDL2_CONFIG_INTERPRETER=/bin/bash
  15993. ;;
  15994. *)
  15995. SDL2_CONFIG_INTERPRETER=/bin/sh
  15996. ;;
  15997. esac
  15998. if test x$srcdir != x.; then
  15999. INCLUDE="-Iinclude $INCLUDE"
  16000. elif test -d .git; then
  16001. as_fn_error $? "
  16002. *** When building from a git clone you should configure and build in a
  16003. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  16004. " "$LINENO" 5
  16005. fi
  16006. BASE_CFLAGS=""
  16007. BASE_LDFLAGS=""
  16008. case "$host" in
  16009. *-*-cygwin*)
  16010. # We build SDL on cygwin without the UNIX emulation layer
  16011. save_CFLAGS="$CFLAGS"
  16012. have_no_cygwin=no
  16013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  16014. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  16015. CFLAGS="$save_CFLAGS -mno-cygwin"
  16016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16017. /* end confdefs.h. */
  16018. int
  16019. main (void)
  16020. {
  16021. ;
  16022. return 0;
  16023. }
  16024. _ACEOF
  16025. if ac_fn_c_try_compile "$LINENO"
  16026. then :
  16027. have_no_cygwin=yes
  16028. fi
  16029. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16031. printf "%s\n" "$have_no_cygwin" >&6; }
  16032. CFLAGS="$save_CFLAGS"
  16033. if test x$have_no_cygwin = xyes; then
  16034. BASE_CFLAGS="-mno-cygwin"
  16035. BASE_LDFLAGS="-mno-cygwin"
  16036. fi
  16037. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16038. ;;
  16039. esac
  16040. # Uncomment the following line if you want to force SDL and applications
  16041. # built with it to be compiled for a particular architecture.
  16042. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16043. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16044. # The default optimization for SDL is -O3 (Bug #31)
  16045. if test "x$orig_CFLAGS" = x; then
  16046. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16047. fi
  16048. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16049. BUILD_LDFLAGS="$LDFLAGS"
  16050. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16051. ## These are common directories to find software packages
  16052. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16053. # if test -d $path/include; then
  16054. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16055. # fi
  16056. # if test -d $path/lib; then
  16057. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16058. # fi
  16059. #done
  16060. SDL_CFLAGS="$BASE_CFLAGS"
  16061. SDL_LIBS="-lSDL2"
  16062. if test "x$BASE_LDFLAGS" != x; then
  16063. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16064. fi
  16065. if test "x$EXTRA_CFLAGS" != x; then
  16066. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16067. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16068. fi
  16069. if test "x$EXTRA_LDFLAGS" != x; then
  16070. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16071. fi
  16072. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16073. find_lib()
  16074. {
  16075. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16076. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16077. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16078. if test "$cross_compiling" = yes; then
  16079. host_lib_path=""
  16080. else
  16081. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16082. fi
  16083. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16084. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  16085. if test x$lib != x; then
  16086. echo $lib
  16087. return
  16088. fi
  16089. done
  16090. }
  16091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16092. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16093. if test ${ac_cv_c_const+y}
  16094. then :
  16095. printf %s "(cached) " >&6
  16096. else $as_nop
  16097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16098. /* end confdefs.h. */
  16099. int
  16100. main (void)
  16101. {
  16102. #ifndef __cplusplus
  16103. /* Ultrix mips cc rejects this sort of thing. */
  16104. typedef int charset[2];
  16105. const charset cs = { 0, 0 };
  16106. /* SunOS 4.1.1 cc rejects this. */
  16107. char const *const *pcpcc;
  16108. char **ppc;
  16109. /* NEC SVR4.0.2 mips cc rejects this. */
  16110. struct point {int x, y;};
  16111. static struct point const zero = {0,0};
  16112. /* IBM XL C 1.02.0.0 rejects this.
  16113. It does not let you subtract one const X* pointer from another in
  16114. an arm of an if-expression whose if-part is not a constant
  16115. expression */
  16116. const char *g = "string";
  16117. pcpcc = &g + (g ? g-g : 0);
  16118. /* HPUX 7.0 cc rejects these. */
  16119. ++pcpcc;
  16120. ppc = (char**) pcpcc;
  16121. pcpcc = (char const *const *) ppc;
  16122. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16123. char tx;
  16124. char *t = &tx;
  16125. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16126. *t++ = 0;
  16127. if (s) return 0;
  16128. }
  16129. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16130. int x[] = {25, 17};
  16131. const int *foo = &x[0];
  16132. ++foo;
  16133. }
  16134. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16135. typedef const int *iptr;
  16136. iptr p = 0;
  16137. ++p;
  16138. }
  16139. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16140. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16141. struct s { int j; const int *ap[3]; } bx;
  16142. struct s *b = &bx; b->j = 5;
  16143. }
  16144. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16145. const int foo = 10;
  16146. if (!foo) return 0;
  16147. }
  16148. return !cs[0] && !zero.x;
  16149. #endif
  16150. ;
  16151. return 0;
  16152. }
  16153. _ACEOF
  16154. if ac_fn_c_try_compile "$LINENO"
  16155. then :
  16156. ac_cv_c_const=yes
  16157. else $as_nop
  16158. ac_cv_c_const=no
  16159. fi
  16160. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16161. fi
  16162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16163. printf "%s\n" "$ac_cv_c_const" >&6; }
  16164. if test $ac_cv_c_const = no; then
  16165. printf "%s\n" "#define const /**/" >>confdefs.h
  16166. fi
  16167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16168. printf %s "checking for inline... " >&6; }
  16169. if test ${ac_cv_c_inline+y}
  16170. then :
  16171. printf %s "(cached) " >&6
  16172. else $as_nop
  16173. ac_cv_c_inline=no
  16174. for ac_kw in inline __inline__ __inline; do
  16175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16176. /* end confdefs.h. */
  16177. #ifndef __cplusplus
  16178. typedef int foo_t;
  16179. static $ac_kw foo_t static_foo (void) {return 0; }
  16180. $ac_kw foo_t foo (void) {return 0; }
  16181. #endif
  16182. _ACEOF
  16183. if ac_fn_c_try_compile "$LINENO"
  16184. then :
  16185. ac_cv_c_inline=$ac_kw
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16188. test "$ac_cv_c_inline" != no && break
  16189. done
  16190. fi
  16191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16192. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16193. case $ac_cv_c_inline in
  16194. inline | yes) ;;
  16195. *)
  16196. case $ac_cv_c_inline in
  16197. no) ac_val=;;
  16198. *) ac_val=$ac_cv_c_inline;;
  16199. esac
  16200. cat >>confdefs.h <<_ACEOF
  16201. #ifndef __cplusplus
  16202. #define inline $ac_val
  16203. #endif
  16204. _ACEOF
  16205. ;;
  16206. esac
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16208. printf %s "checking for working volatile... " >&6; }
  16209. if test ${ac_cv_c_volatile+y}
  16210. then :
  16211. printf %s "(cached) " >&6
  16212. else $as_nop
  16213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16214. /* end confdefs.h. */
  16215. int
  16216. main (void)
  16217. {
  16218. volatile int x;
  16219. int * volatile y = (int *) 0;
  16220. return !x && !y;
  16221. ;
  16222. return 0;
  16223. }
  16224. _ACEOF
  16225. if ac_fn_c_try_compile "$LINENO"
  16226. then :
  16227. ac_cv_c_volatile=yes
  16228. else $as_nop
  16229. ac_cv_c_volatile=no
  16230. fi
  16231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16232. fi
  16233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16234. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16235. if test $ac_cv_c_volatile = no; then
  16236. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16237. fi
  16238. # Check whether --enable-assertions was given.
  16239. if test ${enable_assertions+y}
  16240. then :
  16241. enableval=$enable_assertions;
  16242. else $as_nop
  16243. enable_assertions=auto
  16244. fi
  16245. case "$enable_assertions" in
  16246. auto) # Use optimization settings to determine assertion level
  16247. ;;
  16248. disabled)
  16249. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16250. ;;
  16251. release)
  16252. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16253. ;;
  16254. enabled)
  16255. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16256. ;;
  16257. paranoid)
  16258. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16259. ;;
  16260. *)
  16261. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16262. ;;
  16263. esac
  16264. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16265. # Check whether --enable-dependency-tracking was given.
  16266. if test ${enable_dependency_tracking+y}
  16267. then :
  16268. enableval=$enable_dependency_tracking;
  16269. else $as_nop
  16270. enable_dependency_tracking=yes
  16271. fi
  16272. if test x$enable_dependency_tracking = xyes; then
  16273. have_gcc_mmd_mt=no
  16274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16275. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16277. /* end confdefs.h. */
  16278. #if !defined(__GNUC__) || __GNUC__ < 3
  16279. #error Dependency tracking requires GCC 3.0 or newer
  16280. #endif
  16281. int
  16282. main (void)
  16283. {
  16284. ;
  16285. return 0;
  16286. }
  16287. _ACEOF
  16288. if ac_fn_c_try_compile "$LINENO"
  16289. then :
  16290. have_gcc_mmd_mt=yes
  16291. fi
  16292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16294. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16295. if test x$have_gcc_mmd_mt = xyes; then
  16296. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16297. fi
  16298. fi
  16299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16300. printf %s "checking for linker option --no-undefined... " >&6; }
  16301. have_no_undefined=no
  16302. case "$host" in
  16303. *-*-openbsd*)
  16304. ;;
  16305. *)
  16306. save_LDFLAGS="$LDFLAGS"
  16307. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16309. /* end confdefs.h. */
  16310. int
  16311. main (void)
  16312. {
  16313. ;
  16314. return 0;
  16315. }
  16316. _ACEOF
  16317. if ac_fn_c_try_link "$LINENO"
  16318. then :
  16319. have_no_undefined=yes
  16320. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16321. fi
  16322. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16323. conftest$ac_exeext conftest.$ac_ext
  16324. LDFLAGS="$save_LDFLAGS"
  16325. ;;
  16326. esac
  16327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16328. printf "%s\n" "$have_no_undefined" >&6; }
  16329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16330. printf %s "checking for linker option --dynamicbase... " >&6; }
  16331. have_dynamicbase=no
  16332. case "$host" in
  16333. *)
  16334. save_LDFLAGS="$LDFLAGS"
  16335. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16337. /* end confdefs.h. */
  16338. int
  16339. main (void)
  16340. {
  16341. ;
  16342. return 0;
  16343. }
  16344. _ACEOF
  16345. if ac_fn_c_try_link "$LINENO"
  16346. then :
  16347. have_dynamicbase=yes
  16348. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16349. fi
  16350. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16351. conftest$ac_exeext conftest.$ac_ext
  16352. LDFLAGS="$save_LDFLAGS"
  16353. ;;
  16354. esac
  16355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16356. printf "%s\n" "$have_dynamicbase" >&6; }
  16357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16358. printf %s "checking for linker option --nxcompat... " >&6; }
  16359. have_nxcompat=no
  16360. case "$host" in
  16361. *)
  16362. save_LDFLAGS="$LDFLAGS"
  16363. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. int
  16367. main (void)
  16368. {
  16369. ;
  16370. return 0;
  16371. }
  16372. _ACEOF
  16373. if ac_fn_c_try_link "$LINENO"
  16374. then :
  16375. have_nxcompat=yes
  16376. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16377. fi
  16378. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16379. conftest$ac_exeext conftest.$ac_ext
  16380. LDFLAGS="$save_LDFLAGS"
  16381. ;;
  16382. esac
  16383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16384. printf "%s\n" "$have_nxcompat" >&6; }
  16385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16386. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16387. have_high_entropy_va=no
  16388. case "$host" in
  16389. *)
  16390. save_LDFLAGS="$LDFLAGS"
  16391. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. int
  16395. main (void)
  16396. {
  16397. ;
  16398. return 0;
  16399. }
  16400. _ACEOF
  16401. if ac_fn_c_try_link "$LINENO"
  16402. then :
  16403. have_high_entropy_va=yes
  16404. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16405. fi
  16406. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16407. conftest$ac_exeext conftest.$ac_ext
  16408. LDFLAGS="$save_LDFLAGS"
  16409. ;;
  16410. esac
  16411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16412. printf "%s\n" "$have_high_entropy_va" >&6; }
  16413. # Check whether --enable-libc was given.
  16414. if test ${enable_libc+y}
  16415. then :
  16416. enableval=$enable_libc;
  16417. else $as_nop
  16418. enable_libc=yes
  16419. fi
  16420. enable_system_iconv_default=yes
  16421. case "$host" in
  16422. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16423. enable_system_iconv_default=no
  16424. ;;
  16425. esac
  16426. # Check whether --enable-system-iconv was given.
  16427. if test ${enable_system_iconv+y}
  16428. then :
  16429. enableval=$enable_system_iconv;
  16430. else $as_nop
  16431. enable_system_iconv=$enable_system_iconv_default
  16432. fi
  16433. # Check whether --enable-libiconv was given.
  16434. if test ${enable_libiconv+y}
  16435. then :
  16436. enableval=$enable_libiconv;
  16437. else $as_nop
  16438. enable_libiconv=no
  16439. fi
  16440. if test x$enable_libc = xyes; then
  16441. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16442. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16443. if test "x$ac_cv_header_sys_types_h" = xyes
  16444. then :
  16445. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16446. fi
  16447. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16448. if test "x$ac_cv_header_stdio_h" = xyes
  16449. then :
  16450. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16451. fi
  16452. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16453. if test "x$ac_cv_header_stdlib_h" = xyes
  16454. then :
  16455. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16456. fi
  16457. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16458. if test "x$ac_cv_header_stddef_h" = xyes
  16459. then :
  16460. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16461. fi
  16462. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16463. if test "x$ac_cv_header_stdarg_h" = xyes
  16464. then :
  16465. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16466. fi
  16467. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16468. if test "x$ac_cv_header_malloc_h" = xyes
  16469. then :
  16470. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16471. fi
  16472. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16473. if test "x$ac_cv_header_memory_h" = xyes
  16474. then :
  16475. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16476. fi
  16477. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16478. if test "x$ac_cv_header_string_h" = xyes
  16479. then :
  16480. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16481. fi
  16482. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16483. if test "x$ac_cv_header_strings_h" = xyes
  16484. then :
  16485. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16486. fi
  16487. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16488. if test "x$ac_cv_header_wchar_h" = xyes
  16489. then :
  16490. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16491. fi
  16492. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16493. if test "x$ac_cv_header_inttypes_h" = xyes
  16494. then :
  16495. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16496. fi
  16497. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16498. if test "x$ac_cv_header_stdint_h" = xyes
  16499. then :
  16500. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16501. fi
  16502. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16503. if test "x$ac_cv_header_limits_h" = xyes
  16504. then :
  16505. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16506. fi
  16507. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16508. if test "x$ac_cv_header_ctype_h" = xyes
  16509. then :
  16510. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16511. fi
  16512. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16513. if test "x$ac_cv_header_math_h" = xyes
  16514. then :
  16515. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16516. fi
  16517. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16518. if test "x$ac_cv_header_float_h" = xyes
  16519. then :
  16520. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16521. fi
  16522. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16523. if test "x$ac_cv_header_iconv_h" = xyes
  16524. then :
  16525. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16526. fi
  16527. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16528. if test "x$ac_cv_header_signal_h" = xyes
  16529. then :
  16530. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16531. fi
  16532. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16533. if test "x$ac_cv_type_size_t" = xyes
  16534. then :
  16535. else $as_nop
  16536. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16537. fi
  16538. ac_ext=c
  16539. ac_cpp='$CPP $CPPFLAGS'
  16540. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16541. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16542. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16544. printf %s "checking how to run the C preprocessor... " >&6; }
  16545. # On Suns, sometimes $CPP names a directory.
  16546. if test -n "$CPP" && test -d "$CPP"; then
  16547. CPP=
  16548. fi
  16549. if test -z "$CPP"; then
  16550. if test ${ac_cv_prog_CPP+y}
  16551. then :
  16552. printf %s "(cached) " >&6
  16553. else $as_nop
  16554. # Double quotes because $CC needs to be expanded
  16555. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16556. do
  16557. ac_preproc_ok=false
  16558. for ac_c_preproc_warn_flag in '' yes
  16559. do
  16560. # Use a header file that comes with gcc, so configuring glibc
  16561. # with a fresh cross-compiler works.
  16562. # On the NeXT, cc -E runs the code through the compiler's parser,
  16563. # not just through cpp. "Syntax error" is here to catch this case.
  16564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16565. /* end confdefs.h. */
  16566. #include <limits.h>
  16567. Syntax error
  16568. _ACEOF
  16569. if ac_fn_c_try_cpp "$LINENO"
  16570. then :
  16571. else $as_nop
  16572. # Broken: fails on valid input.
  16573. continue
  16574. fi
  16575. rm -f conftest.err conftest.i conftest.$ac_ext
  16576. # OK, works on sane cases. Now check whether nonexistent headers
  16577. # can be detected and how.
  16578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16579. /* end confdefs.h. */
  16580. #include <ac_nonexistent.h>
  16581. _ACEOF
  16582. if ac_fn_c_try_cpp "$LINENO"
  16583. then :
  16584. # Broken: success on invalid input.
  16585. continue
  16586. else $as_nop
  16587. # Passes both tests.
  16588. ac_preproc_ok=:
  16589. break
  16590. fi
  16591. rm -f conftest.err conftest.i conftest.$ac_ext
  16592. done
  16593. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16594. rm -f conftest.i conftest.err conftest.$ac_ext
  16595. if $ac_preproc_ok
  16596. then :
  16597. break
  16598. fi
  16599. done
  16600. ac_cv_prog_CPP=$CPP
  16601. fi
  16602. CPP=$ac_cv_prog_CPP
  16603. else
  16604. ac_cv_prog_CPP=$CPP
  16605. fi
  16606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16607. printf "%s\n" "$CPP" >&6; }
  16608. ac_preproc_ok=false
  16609. for ac_c_preproc_warn_flag in '' yes
  16610. do
  16611. # Use a header file that comes with gcc, so configuring glibc
  16612. # with a fresh cross-compiler works.
  16613. # On the NeXT, cc -E runs the code through the compiler's parser,
  16614. # not just through cpp. "Syntax error" is here to catch this case.
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. #include <limits.h>
  16618. Syntax error
  16619. _ACEOF
  16620. if ac_fn_c_try_cpp "$LINENO"
  16621. then :
  16622. else $as_nop
  16623. # Broken: fails on valid input.
  16624. continue
  16625. fi
  16626. rm -f conftest.err conftest.i conftest.$ac_ext
  16627. # OK, works on sane cases. Now check whether nonexistent headers
  16628. # can be detected and how.
  16629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16630. /* end confdefs.h. */
  16631. #include <ac_nonexistent.h>
  16632. _ACEOF
  16633. if ac_fn_c_try_cpp "$LINENO"
  16634. then :
  16635. # Broken: success on invalid input.
  16636. continue
  16637. else $as_nop
  16638. # Passes both tests.
  16639. ac_preproc_ok=:
  16640. break
  16641. fi
  16642. rm -f conftest.err conftest.i conftest.$ac_ext
  16643. done
  16644. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16645. rm -f conftest.i conftest.err conftest.$ac_ext
  16646. if $ac_preproc_ok
  16647. then :
  16648. else $as_nop
  16649. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16650. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16651. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16652. See \`config.log' for more details" "$LINENO" 5; }
  16653. fi
  16654. ac_ext=c
  16655. ac_cpp='$CPP $CPPFLAGS'
  16656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16660. printf %s "checking for M_PI in math.h... " >&6; }
  16661. if test ${ac_cv_define_M_PI+y}
  16662. then :
  16663. printf %s "(cached) " >&6
  16664. else $as_nop
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. #include <math.h>
  16668. #ifdef M_PI
  16669. YES_IS_DEFINED
  16670. #endif
  16671. _ACEOF
  16672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16673. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16674. then :
  16675. ac_cv_define_M_PI=yes
  16676. else $as_nop
  16677. ac_cv_define_M_PI=no
  16678. fi
  16679. rm -rf conftest*
  16680. fi
  16681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16682. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16683. if test "$ac_cv_define_M_PI" = "yes" ; then
  16684. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16685. fi
  16686. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16687. # for constant arguments. Useless!
  16688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16689. printf %s "checking for working alloca.h... " >&6; }
  16690. if test ${ac_cv_working_alloca_h+y}
  16691. then :
  16692. printf %s "(cached) " >&6
  16693. else $as_nop
  16694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16695. /* end confdefs.h. */
  16696. #include <alloca.h>
  16697. int
  16698. main (void)
  16699. {
  16700. char *p = (char *) alloca (2 * sizeof (int));
  16701. if (p) return 0;
  16702. ;
  16703. return 0;
  16704. }
  16705. _ACEOF
  16706. if ac_fn_c_try_link "$LINENO"
  16707. then :
  16708. ac_cv_working_alloca_h=yes
  16709. else $as_nop
  16710. ac_cv_working_alloca_h=no
  16711. fi
  16712. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16713. conftest$ac_exeext conftest.$ac_ext
  16714. fi
  16715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16716. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16717. if test $ac_cv_working_alloca_h = yes; then
  16718. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16719. fi
  16720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16721. printf %s "checking for alloca... " >&6; }
  16722. if test ${ac_cv_func_alloca_works+y}
  16723. then :
  16724. printf %s "(cached) " >&6
  16725. else $as_nop
  16726. if test $ac_cv_working_alloca_h = yes; then
  16727. ac_cv_func_alloca_works=yes
  16728. else
  16729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16730. /* end confdefs.h. */
  16731. #include <stdlib.h>
  16732. #include <stddef.h>
  16733. #ifndef alloca
  16734. # ifdef __GNUC__
  16735. # define alloca __builtin_alloca
  16736. # elif defined _MSC_VER
  16737. # include <malloc.h>
  16738. # define alloca _alloca
  16739. # else
  16740. # ifdef __cplusplus
  16741. extern "C"
  16742. # endif
  16743. void *alloca (size_t);
  16744. # endif
  16745. #endif
  16746. int
  16747. main (void)
  16748. {
  16749. char *p = (char *) alloca (1);
  16750. if (p) return 0;
  16751. ;
  16752. return 0;
  16753. }
  16754. _ACEOF
  16755. if ac_fn_c_try_link "$LINENO"
  16756. then :
  16757. ac_cv_func_alloca_works=yes
  16758. else $as_nop
  16759. ac_cv_func_alloca_works=no
  16760. fi
  16761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16762. conftest$ac_exeext conftest.$ac_ext
  16763. fi
  16764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16765. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16766. fi
  16767. if test $ac_cv_func_alloca_works = yes; then
  16768. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16769. else
  16770. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16771. # that cause trouble. Some versions do not even contain alloca or
  16772. # contain a buggy version. If you still want to use their alloca,
  16773. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16774. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16775. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16777. printf %s "checking stack direction for C alloca... " >&6; }
  16778. if test ${ac_cv_c_stack_direction+y}
  16779. then :
  16780. printf %s "(cached) " >&6
  16781. else $as_nop
  16782. if test "$cross_compiling" = yes
  16783. then :
  16784. ac_cv_c_stack_direction=0
  16785. else $as_nop
  16786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16787. /* end confdefs.h. */
  16788. $ac_includes_default
  16789. int
  16790. find_stack_direction (int *addr, int depth)
  16791. {
  16792. int dir, dummy = 0;
  16793. if (! addr)
  16794. addr = &dummy;
  16795. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16796. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16797. return dir + dummy;
  16798. }
  16799. int
  16800. main (int argc, char **argv)
  16801. {
  16802. return find_stack_direction (0, argc + !argv + 20) < 0;
  16803. }
  16804. _ACEOF
  16805. if ac_fn_c_try_run "$LINENO"
  16806. then :
  16807. ac_cv_c_stack_direction=1
  16808. else $as_nop
  16809. ac_cv_c_stack_direction=-1
  16810. fi
  16811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16812. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16813. fi
  16814. fi
  16815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16816. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16817. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16820. if test "x$ac_cv_func_mprotect" = xyes
  16821. then :
  16822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16823. /* end confdefs.h. */
  16824. #include <sys/types.h>
  16825. #include <sys/mman.h>
  16826. int
  16827. main (void)
  16828. {
  16829. ;
  16830. return 0;
  16831. }
  16832. _ACEOF
  16833. if ac_fn_c_try_compile "$LINENO"
  16834. then :
  16835. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16836. fi
  16837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16840. if test "x$ac_cv_func_malloc" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16845. if test "x$ac_cv_func_calloc" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16850. if test "x$ac_cv_func_realloc" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16855. if test "x$ac_cv_func_free" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16860. if test "x$ac_cv_func_getenv" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16865. if test "x$ac_cv_func_setenv" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16870. if test "x$ac_cv_func_putenv" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16875. if test "x$ac_cv_func_unsetenv" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16880. if test "x$ac_cv_func_bsearch" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16885. if test "x$ac_cv_func_qsort" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16890. if test "x$ac_cv_func_abs" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16895. if test "x$ac_cv_func_bcopy" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16900. if test "x$ac_cv_func_memset" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16905. if test "x$ac_cv_func_memcmp" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16910. if test "x$ac_cv_func_memcpy" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16915. if test "x$ac_cv_func_memmove" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16920. if test "x$ac_cv_func_wcslen" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16925. if test "x$ac_cv_func_wcslcpy" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16930. if test "x$ac_cv_func_wcslcat" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16935. if test "x$ac_cv_func__wcsdup" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16940. if test "x$ac_cv_func_wcsdup" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16945. if test "x$ac_cv_func_wcsstr" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16950. if test "x$ac_cv_func_wcscmp" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16955. if test "x$ac_cv_func_wcsncmp" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16960. if test "x$ac_cv_func_wcscasecmp" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16965. if test "x$ac_cv_func__wcsicmp" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16970. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16975. if test "x$ac_cv_func__wcsnicmp" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16980. if test "x$ac_cv_func_strlen" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16985. if test "x$ac_cv_func_strlcpy" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16990. if test "x$ac_cv_func_strlcat" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16995. if test "x$ac_cv_func__strrev" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  17000. if test "x$ac_cv_func__strupr" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  17005. if test "x$ac_cv_func__strlwr" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  17010. if test "x$ac_cv_func_index" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  17015. if test "x$ac_cv_func_rindex" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17020. if test "x$ac_cv_func_strchr" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17025. if test "x$ac_cv_func_strrchr" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17030. if test "x$ac_cv_func_strstr" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17035. if test "x$ac_cv_func_strtok_r" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17040. if test "x$ac_cv_func_itoa" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17045. if test "x$ac_cv_func__ltoa" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17050. if test "x$ac_cv_func__uitoa" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17055. if test "x$ac_cv_func__ultoa" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17060. if test "x$ac_cv_func_strtod" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17065. if test "x$ac_cv_func_strtol" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17070. if test "x$ac_cv_func_strtoul" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17075. if test "x$ac_cv_func__i64toa" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17078. fi
  17079. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17080. if test "x$ac_cv_func__ui64toa" = xyes
  17081. then :
  17082. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17083. fi
  17084. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17085. if test "x$ac_cv_func_strtoll" = xyes
  17086. then :
  17087. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17088. fi
  17089. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17090. if test "x$ac_cv_func_strtoull" = xyes
  17091. then :
  17092. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17095. if test "x$ac_cv_func_atoi" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17100. if test "x$ac_cv_func_atof" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17105. if test "x$ac_cv_func_strcmp" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17110. if test "x$ac_cv_func_strncmp" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17115. if test "x$ac_cv_func__stricmp" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17120. if test "x$ac_cv_func_strcasecmp" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17125. if test "x$ac_cv_func__strnicmp" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17130. if test "x$ac_cv_func_strncasecmp" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17135. if test "x$ac_cv_func_strcasestr" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17140. if test "x$ac_cv_func_vsscanf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17145. if test "x$ac_cv_func_vsnprintf" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17150. if test "x$ac_cv_func_fopen64" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17155. if test "x$ac_cv_func_fseeko" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17160. if test "x$ac_cv_func_fseeko64" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17165. if test "x$ac_cv_func_sigaction" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17170. if test "x$ac_cv_func_setjmp" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17175. if test "x$ac_cv_func_nanosleep" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17180. if test "x$ac_cv_func_sysconf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17185. if test "x$ac_cv_func_sysctlbyname" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17190. if test "x$ac_cv_func_getauxval" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17195. if test "x$ac_cv_func_elf_aux_info" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17200. if test "x$ac_cv_func_poll" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17205. if test "x$ac_cv_func_memfd_create" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17210. if test "x$ac_cv_func_posix_fallocate" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17215. if test "x$ac_cv_func__Exit" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17218. fi
  17219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17220. printf %s "checking for pow in -lm... " >&6; }
  17221. if test ${ac_cv_lib_m_pow+y}
  17222. then :
  17223. printf %s "(cached) " >&6
  17224. else $as_nop
  17225. ac_check_lib_save_LIBS=$LIBS
  17226. LIBS="-lm $LIBS"
  17227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17228. /* end confdefs.h. */
  17229. /* Override any GCC internal prototype to avoid an error.
  17230. Use char because int might match the return type of a GCC
  17231. builtin and then its argument prototype would still apply. */
  17232. char pow ();
  17233. int
  17234. main (void)
  17235. {
  17236. return pow ();
  17237. ;
  17238. return 0;
  17239. }
  17240. _ACEOF
  17241. if ac_fn_c_try_link "$LINENO"
  17242. then :
  17243. ac_cv_lib_m_pow=yes
  17244. else $as_nop
  17245. ac_cv_lib_m_pow=no
  17246. fi
  17247. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17248. conftest$ac_exeext conftest.$ac_ext
  17249. LIBS=$ac_check_lib_save_LIBS
  17250. fi
  17251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17252. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17253. if test "x$ac_cv_lib_m_pow" = xyes
  17254. then :
  17255. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17258. if test "x$ac_cv_func_acos" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17263. if test "x$ac_cv_func_acosf" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17268. if test "x$ac_cv_func_asin" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17273. if test "x$ac_cv_func_asinf" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17278. if test "x$ac_cv_func_atan" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17283. if test "x$ac_cv_func_atanf" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17288. if test "x$ac_cv_func_atan2" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17293. if test "x$ac_cv_func_atan2f" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17298. if test "x$ac_cv_func_ceil" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17303. if test "x$ac_cv_func_ceilf" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17308. if test "x$ac_cv_func_copysign" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17313. if test "x$ac_cv_func_copysignf" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17318. if test "x$ac_cv_func_cos" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17323. if test "x$ac_cv_func_cosf" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17326. fi
  17327. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17328. if test "x$ac_cv_func_exp" = xyes
  17329. then :
  17330. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17331. fi
  17332. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17333. if test "x$ac_cv_func_expf" = xyes
  17334. then :
  17335. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17336. fi
  17337. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17338. if test "x$ac_cv_func_fabs" = xyes
  17339. then :
  17340. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17341. fi
  17342. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17343. if test "x$ac_cv_func_fabsf" = xyes
  17344. then :
  17345. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17346. fi
  17347. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17348. if test "x$ac_cv_func_floor" = xyes
  17349. then :
  17350. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17351. fi
  17352. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17353. if test "x$ac_cv_func_floorf" = xyes
  17354. then :
  17355. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17356. fi
  17357. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17358. if test "x$ac_cv_func_trunc" = xyes
  17359. then :
  17360. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17361. fi
  17362. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17363. if test "x$ac_cv_func_truncf" = xyes
  17364. then :
  17365. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17366. fi
  17367. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17368. if test "x$ac_cv_func_fmod" = xyes
  17369. then :
  17370. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17371. fi
  17372. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17373. if test "x$ac_cv_func_fmodf" = xyes
  17374. then :
  17375. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17376. fi
  17377. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17378. if test "x$ac_cv_func_log" = xyes
  17379. then :
  17380. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17381. fi
  17382. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17383. if test "x$ac_cv_func_logf" = xyes
  17384. then :
  17385. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17386. fi
  17387. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17388. if test "x$ac_cv_func_log10" = xyes
  17389. then :
  17390. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17391. fi
  17392. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17393. if test "x$ac_cv_func_log10f" = xyes
  17394. then :
  17395. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17396. fi
  17397. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17398. if test "x$ac_cv_func_lround" = xyes
  17399. then :
  17400. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17401. fi
  17402. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17403. if test "x$ac_cv_func_lroundf" = xyes
  17404. then :
  17405. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17406. fi
  17407. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17408. if test "x$ac_cv_func_pow" = xyes
  17409. then :
  17410. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17411. fi
  17412. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17413. if test "x$ac_cv_func_powf" = xyes
  17414. then :
  17415. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17416. fi
  17417. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17418. if test "x$ac_cv_func_round" = xyes
  17419. then :
  17420. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17421. fi
  17422. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17423. if test "x$ac_cv_func_roundf" = xyes
  17424. then :
  17425. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17426. fi
  17427. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17428. if test "x$ac_cv_func_scalbn" = xyes
  17429. then :
  17430. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17431. fi
  17432. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17433. if test "x$ac_cv_func_scalbnf" = xyes
  17434. then :
  17435. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17436. fi
  17437. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17438. if test "x$ac_cv_func_sin" = xyes
  17439. then :
  17440. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17441. fi
  17442. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17443. if test "x$ac_cv_func_sinf" = xyes
  17444. then :
  17445. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17446. fi
  17447. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17448. if test "x$ac_cv_func_sqrt" = xyes
  17449. then :
  17450. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17451. fi
  17452. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17453. if test "x$ac_cv_func_sqrtf" = xyes
  17454. then :
  17455. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17456. fi
  17457. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17458. if test "x$ac_cv_func_tan" = xyes
  17459. then :
  17460. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17461. fi
  17462. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17463. if test "x$ac_cv_func_tanf" = xyes
  17464. then :
  17465. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17466. fi
  17467. if test x$enable_system_iconv = xyes; then
  17468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17469. printf %s "checking for iconv in libc... " >&6; }
  17470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17471. /* end confdefs.h. */
  17472. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17473. #include <stddef.h>
  17474. #include <iconv.h>
  17475. int
  17476. main (void)
  17477. {
  17478. iconv_open(NULL,NULL);
  17479. ;
  17480. return 0;
  17481. }
  17482. _ACEOF
  17483. if ac_fn_c_try_link "$LINENO"
  17484. then :
  17485. have_libc_iconv=yes
  17486. else $as_nop
  17487. have_libc_iconv=no
  17488. fi
  17489. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17490. conftest$ac_exeext conftest.$ac_ext
  17491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17492. printf "%s\n" "$have_libc_iconv" >&6; }
  17493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17494. printf %s "checking for iconv in libiconv... " >&6; }
  17495. save_LIBS="$LIBS"
  17496. LIBS="$LIBS -liconv"
  17497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17498. /* end confdefs.h. */
  17499. #include <stddef.h>
  17500. #include <iconv.h>
  17501. int
  17502. main (void)
  17503. {
  17504. iconv_open(NULL,NULL);
  17505. ;
  17506. return 0;
  17507. }
  17508. _ACEOF
  17509. if ac_fn_c_try_link "$LINENO"
  17510. then :
  17511. have_libiconv=yes
  17512. else $as_nop
  17513. have_libiconv=no
  17514. fi
  17515. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17516. conftest$ac_exeext conftest.$ac_ext
  17517. LIBS="$save_LIBS"
  17518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17519. printf "%s\n" "$have_libiconv" >&6; }
  17520. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17521. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17522. if test x$have_libiconv = xyes; then
  17523. if test x$have_libc_iconv != xyes; then
  17524. use_libiconv=yes
  17525. elif test x$enable_libiconv = xyes; then
  17526. use_libiconv=yes
  17527. fi
  17528. fi
  17529. if test x$use_libiconv = xyes; then
  17530. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17531. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17532. echo "-- Using iconv from libiconv"
  17533. else
  17534. echo "-- Using iconv from libc"
  17535. fi
  17536. fi
  17537. fi
  17538. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17539. "
  17540. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17541. then :
  17542. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17543. fi
  17544. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17545. if test "x$ac_cv_header_libunwind_h" = xyes
  17546. then :
  17547. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17548. fi
  17549. fi
  17550. # Check whether --enable-gcc-atomics was given.
  17551. if test ${enable_gcc_atomics+y}
  17552. then :
  17553. enableval=$enable_gcc_atomics;
  17554. else $as_nop
  17555. enable_gcc_atomics=yes
  17556. fi
  17557. if test x$enable_gcc_atomics = xyes; then
  17558. have_gcc_atomics=no
  17559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17560. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17562. /* end confdefs.h. */
  17563. int
  17564. main (void)
  17565. {
  17566. int a;
  17567. void *x, *y, *z;
  17568. __sync_lock_test_and_set(&a, 4);
  17569. __sync_lock_test_and_set(&x, y);
  17570. __sync_fetch_and_add(&a, 1);
  17571. __sync_bool_compare_and_swap(&a, 5, 10);
  17572. __sync_bool_compare_and_swap(&x, y, z);
  17573. ;
  17574. return 0;
  17575. }
  17576. _ACEOF
  17577. if ac_fn_c_try_link "$LINENO"
  17578. then :
  17579. have_gcc_atomics=yes
  17580. fi
  17581. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17582. conftest$ac_exeext conftest.$ac_ext
  17583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17584. printf "%s\n" "$have_gcc_atomics" >&6; }
  17585. if test x$have_gcc_atomics = xyes; then
  17586. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17587. else
  17588. # See if we have the minimum operation needed for GCC atomics
  17589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17590. /* end confdefs.h. */
  17591. int
  17592. main (void)
  17593. {
  17594. int a;
  17595. __sync_lock_test_and_set(&a, 1);
  17596. __sync_lock_release(&a);
  17597. ;
  17598. return 0;
  17599. }
  17600. _ACEOF
  17601. if ac_fn_c_try_link "$LINENO"
  17602. then :
  17603. have_gcc_sync_lock_test_and_set=yes
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17606. conftest$ac_exeext conftest.$ac_ext
  17607. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17608. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17609. fi
  17610. fi
  17611. fi
  17612. # Standard C sources
  17613. SOURCES="$SOURCES $srcdir/src/*.c"
  17614. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17615. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17616. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17617. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17618. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17619. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17620. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17621. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17622. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17623. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17624. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17625. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17626. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17627. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17628. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17629. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17630. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17631. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17632. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17633. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17634. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17635. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17636. case "$host" in
  17637. *-*-emscripten*)
  17638. default_atomic=no
  17639. ;;
  17640. *)
  17641. default_atomic=yes
  17642. ;;
  17643. esac
  17644. # Check whether --enable-atomic was given.
  17645. if test ${enable_atomic+y}
  17646. then :
  17647. enableval=$enable_atomic;
  17648. else $as_nop
  17649. enable_atomic=$default_atomic
  17650. fi
  17651. if test x$enable_atomic != xyes; then
  17652. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17653. else
  17654. SUMMARY_modules="${SUMMARY_modules} atomic"
  17655. fi
  17656. # Check whether --enable-audio was given.
  17657. if test ${enable_audio+y}
  17658. then :
  17659. enableval=$enable_audio;
  17660. else $as_nop
  17661. enable_audio=yes
  17662. fi
  17663. if test x$enable_audio != xyes; then
  17664. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17665. else
  17666. SUMMARY_modules="${SUMMARY_modules} audio"
  17667. fi
  17668. # Check whether --enable-video was given.
  17669. if test ${enable_video+y}
  17670. then :
  17671. enableval=$enable_video;
  17672. else $as_nop
  17673. enable_video=yes
  17674. fi
  17675. if test x$enable_video != xyes; then
  17676. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17677. else
  17678. SUMMARY_modules="${SUMMARY_modules} video"
  17679. fi
  17680. # Check whether --enable-render was given.
  17681. if test ${enable_render+y}
  17682. then :
  17683. enableval=$enable_render;
  17684. else $as_nop
  17685. enable_render=yes
  17686. fi
  17687. if test x$enable_render != xyes; then
  17688. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17689. else
  17690. SUMMARY_modules="${SUMMARY_modules} render"
  17691. fi
  17692. # Check whether --enable-events was given.
  17693. if test ${enable_events+y}
  17694. then :
  17695. enableval=$enable_events;
  17696. else $as_nop
  17697. enable_events=yes
  17698. fi
  17699. if test x$enable_events != xyes; then
  17700. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17701. else
  17702. SUMMARY_modules="${SUMMARY_modules} events"
  17703. fi
  17704. # Check whether --enable-joystick was given.
  17705. if test ${enable_joystick+y}
  17706. then :
  17707. enableval=$enable_joystick;
  17708. else $as_nop
  17709. enable_joystick=yes
  17710. fi
  17711. if test x$enable_joystick != xyes; then
  17712. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17713. else
  17714. SUMMARY_modules="${SUMMARY_modules} joystick"
  17715. fi
  17716. # Check whether --enable-haptic was given.
  17717. if test ${enable_haptic+y}
  17718. then :
  17719. enableval=$enable_haptic;
  17720. else $as_nop
  17721. enable_haptic=yes
  17722. fi
  17723. if test x$enable_haptic != xyes; then
  17724. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17725. else
  17726. SUMMARY_modules="${SUMMARY_modules} haptic"
  17727. fi
  17728. # Check whether --enable-hidapi was given.
  17729. if test ${enable_hidapi+y}
  17730. then :
  17731. enableval=$enable_hidapi;
  17732. else $as_nop
  17733. enable_hidapi=yes
  17734. fi
  17735. if test x$enable_hidapi != xyes; then
  17736. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17737. else
  17738. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17739. fi
  17740. # Check whether --enable-sensor was given.
  17741. if test ${enable_sensor+y}
  17742. then :
  17743. enableval=$enable_sensor;
  17744. else $as_nop
  17745. enable_sensor=yes
  17746. fi
  17747. if test x$enable_sensor != xyes; then
  17748. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17749. else
  17750. SUMMARY_modules="${SUMMARY_modules} sensor"
  17751. fi
  17752. # Check whether --enable-power was given.
  17753. if test ${enable_power+y}
  17754. then :
  17755. enableval=$enable_power;
  17756. else $as_nop
  17757. enable_power=yes
  17758. fi
  17759. if test x$enable_power != xyes; then
  17760. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17761. else
  17762. SUMMARY_modules="${SUMMARY_modules} power"
  17763. fi
  17764. # Check whether --enable-filesystem was given.
  17765. if test ${enable_filesystem+y}
  17766. then :
  17767. enableval=$enable_filesystem;
  17768. else $as_nop
  17769. enable_filesystem=yes
  17770. fi
  17771. if test x$enable_filesystem != xyes; then
  17772. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17773. else
  17774. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17775. fi
  17776. # Many subsystems depend on threads, so leave them enabled by default
  17777. #AC_ARG_ENABLE(threads,
  17778. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17779. # , enable_threads=yes)
  17780. enable_threads=yes
  17781. if test x$enable_threads != xyes; then
  17782. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17783. else
  17784. SUMMARY_modules="${SUMMARY_modules} threads"
  17785. fi
  17786. # Check whether --enable-timers was given.
  17787. if test ${enable_timers+y}
  17788. then :
  17789. enableval=$enable_timers;
  17790. else $as_nop
  17791. enable_timers=yes
  17792. fi
  17793. if test x$enable_timers != xyes; then
  17794. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17795. else
  17796. SUMMARY_modules="${SUMMARY_modules} timers"
  17797. fi
  17798. # Check whether --enable-file was given.
  17799. if test ${enable_file+y}
  17800. then :
  17801. enableval=$enable_file;
  17802. else $as_nop
  17803. enable_file=yes
  17804. fi
  17805. if test x$enable_file != xyes; then
  17806. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17807. else
  17808. SUMMARY_modules="${SUMMARY_modules} file"
  17809. fi
  17810. # Check whether --enable-misc was given.
  17811. if test ${enable_misc+y}
  17812. then :
  17813. enableval=$enable_misc;
  17814. else $as_nop
  17815. enable_misc=yes
  17816. fi
  17817. if test x$enable_misc != xyes; then
  17818. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17819. else
  17820. SUMMARY_modules="${SUMMARY_modules} misc"
  17821. fi
  17822. # Check whether --enable-locale was given.
  17823. if test ${enable_locale+y}
  17824. then :
  17825. enableval=$enable_locale;
  17826. else $as_nop
  17827. enable_locale=yes
  17828. fi
  17829. if test x$enable_locale != xyes; then
  17830. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17831. else
  17832. SUMMARY_modules="${SUMMARY_modules} locale"
  17833. fi
  17834. # Check whether --enable-loadso was given.
  17835. if test ${enable_loadso+y}
  17836. then :
  17837. enableval=$enable_loadso;
  17838. else $as_nop
  17839. enable_loadso=yes
  17840. fi
  17841. if test x$enable_loadso != xyes; then
  17842. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17843. else
  17844. SUMMARY_modules="${SUMMARY_modules} loadso"
  17845. fi
  17846. # Check whether --enable-cpuinfo was given.
  17847. if test ${enable_cpuinfo+y}
  17848. then :
  17849. enableval=$enable_cpuinfo;
  17850. else $as_nop
  17851. enable_cpuinfo=yes
  17852. fi
  17853. if test x$enable_cpuinfo != xyes; then
  17854. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17855. else
  17856. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17857. fi
  17858. # Check whether --enable-assembly was given.
  17859. if test ${enable_assembly+y}
  17860. then :
  17861. enableval=$enable_assembly;
  17862. else $as_nop
  17863. enable_assembly=yes
  17864. fi
  17865. if test x$enable_assembly = xyes; then
  17866. SUMMARY_modules="${SUMMARY_modules} assembly"
  17867. # Make sure that we don't generate floating point code that would
  17868. # cause illegal instruction exceptions on older processors
  17869. case "$host" in
  17870. *-*-darwin*)
  17871. # Don't need to worry about Apple hardware, it's all SSE capable
  17872. default_ssemath=yes
  17873. ;;
  17874. *64-*-*)
  17875. # x86 64-bit architectures all have SSE instructions
  17876. default_ssemath=yes
  17877. ;;
  17878. *)
  17879. default_ssemath=no
  17880. ;;
  17881. esac
  17882. # Check whether --enable-ssemath was given.
  17883. if test ${enable_ssemath+y}
  17884. then :
  17885. enableval=$enable_ssemath;
  17886. else $as_nop
  17887. enable_ssemath=$default_ssemath
  17888. fi
  17889. if test x$enable_ssemath = xno; then
  17890. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17891. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17892. fi
  17893. fi
  17894. # Check whether --enable-mmx was given.
  17895. if test ${enable_mmx+y}
  17896. then :
  17897. enableval=$enable_mmx;
  17898. else $as_nop
  17899. enable_mmx=yes
  17900. fi
  17901. if test x$enable_mmx = xyes; then
  17902. save_CFLAGS="$CFLAGS"
  17903. have_gcc_mmx=no
  17904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17905. printf %s "checking for GCC -mmmx option... " >&6; }
  17906. mmx_CFLAGS="-mmmx"
  17907. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. #ifdef __MINGW32__
  17911. #include <_mingw.h>
  17912. #ifdef __MINGW64_VERSION_MAJOR
  17913. #include <intrin.h>
  17914. #else
  17915. #include <mmintrin.h>
  17916. #endif
  17917. #else
  17918. #include <mmintrin.h>
  17919. #endif
  17920. #ifndef __MMX__
  17921. #error Assembler CPP flag not enabled
  17922. #endif
  17923. int
  17924. main (void)
  17925. {
  17926. ;
  17927. return 0;
  17928. }
  17929. _ACEOF
  17930. if ac_fn_c_try_compile "$LINENO"
  17931. then :
  17932. have_gcc_mmx=yes
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17936. printf "%s\n" "$have_gcc_mmx" >&6; }
  17937. CFLAGS="$save_CFLAGS"
  17938. if test x$have_gcc_mmx = xyes; then
  17939. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17940. SUMMARY_math="${SUMMARY_math} mmx"
  17941. fi
  17942. fi
  17943. # Check whether --enable-3dnow was given.
  17944. if test ${enable_3dnow+y}
  17945. then :
  17946. enableval=$enable_3dnow;
  17947. else $as_nop
  17948. enable_3dnow=yes
  17949. fi
  17950. if test x$enable_3dnow = xyes; then
  17951. save_CFLAGS="$CFLAGS"
  17952. have_gcc_3dnow=no
  17953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17954. printf %s "checking for GCC -m3dnow option... " >&6; }
  17955. amd3dnow_CFLAGS="-m3dnow"
  17956. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17958. /* end confdefs.h. */
  17959. #include <mm3dnow.h>
  17960. #ifndef __3dNOW__
  17961. #error Assembler CPP flag not enabled
  17962. #endif
  17963. int
  17964. main (void)
  17965. {
  17966. void *p = 0;
  17967. _m_prefetch(p);
  17968. ;
  17969. return 0;
  17970. }
  17971. _ACEOF
  17972. if ac_fn_c_try_link "$LINENO"
  17973. then :
  17974. have_gcc_3dnow=yes
  17975. fi
  17976. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17977. conftest$ac_exeext conftest.$ac_ext
  17978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17979. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17980. CFLAGS="$save_CFLAGS"
  17981. if test x$have_gcc_3dnow = xyes; then
  17982. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17983. SUMMARY_math="${SUMMARY_math} 3dnow"
  17984. fi
  17985. fi
  17986. # Check whether --enable-sse was given.
  17987. if test ${enable_sse+y}
  17988. then :
  17989. enableval=$enable_sse;
  17990. else $as_nop
  17991. enable_sse=yes
  17992. fi
  17993. if test x$enable_sse = xyes; then
  17994. save_CFLAGS="$CFLAGS"
  17995. have_gcc_sse=no
  17996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17997. printf %s "checking for GCC -msse option... " >&6; }
  17998. sse_CFLAGS="-msse"
  17999. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  18000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18001. /* end confdefs.h. */
  18002. #ifdef __MINGW32__
  18003. #include <_mingw.h>
  18004. #ifdef __MINGW64_VERSION_MAJOR
  18005. #include <intrin.h>
  18006. #else
  18007. #include <xmmintrin.h>
  18008. #endif
  18009. #else
  18010. #include <xmmintrin.h>
  18011. #endif
  18012. #ifndef __SSE__
  18013. #error Assembler CPP flag not enabled
  18014. #endif
  18015. int
  18016. main (void)
  18017. {
  18018. ;
  18019. return 0;
  18020. }
  18021. _ACEOF
  18022. if ac_fn_c_try_compile "$LINENO"
  18023. then :
  18024. have_gcc_sse=yes
  18025. fi
  18026. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18028. printf "%s\n" "$have_gcc_sse" >&6; }
  18029. CFLAGS="$save_CFLAGS"
  18030. if test x$have_gcc_sse = xyes; then
  18031. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18032. SUMMARY_math="${SUMMARY_math} sse"
  18033. fi
  18034. fi
  18035. # Check whether --enable-sse2 was given.
  18036. if test ${enable_sse2+y}
  18037. then :
  18038. enableval=$enable_sse2;
  18039. else $as_nop
  18040. enable_sse2=$default_ssemath
  18041. fi
  18042. if test x$enable_sse2 = xyes; then
  18043. save_CFLAGS="$CFLAGS"
  18044. have_gcc_sse2=no
  18045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18046. printf %s "checking for GCC -msse2 option... " >&6; }
  18047. sse2_CFLAGS="-msse2"
  18048. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18050. /* end confdefs.h. */
  18051. #ifdef __MINGW32__
  18052. #include <_mingw.h>
  18053. #ifdef __MINGW64_VERSION_MAJOR
  18054. #include <intrin.h>
  18055. #else
  18056. #include <emmintrin.h>
  18057. #endif
  18058. #else
  18059. #include <emmintrin.h>
  18060. #endif
  18061. #ifndef __SSE2__
  18062. #error Assembler CPP flag not enabled
  18063. #endif
  18064. int
  18065. main (void)
  18066. {
  18067. ;
  18068. return 0;
  18069. }
  18070. _ACEOF
  18071. if ac_fn_c_try_compile "$LINENO"
  18072. then :
  18073. have_gcc_sse2=yes
  18074. fi
  18075. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18077. printf "%s\n" "$have_gcc_sse2" >&6; }
  18078. CFLAGS="$save_CFLAGS"
  18079. if test x$have_gcc_sse2 = xyes; then
  18080. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18081. SUMMARY_math="${SUMMARY_math} sse2"
  18082. fi
  18083. fi
  18084. # Check whether --enable-sse3 was given.
  18085. if test ${enable_sse3+y}
  18086. then :
  18087. enableval=$enable_sse3;
  18088. else $as_nop
  18089. enable_sse3=$default_ssemath
  18090. fi
  18091. if test x$enable_sse3 = xyes; then
  18092. save_CFLAGS="$CFLAGS"
  18093. have_gcc_sse3=no
  18094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18095. printf %s "checking for GCC -msse3 option... " >&6; }
  18096. sse3_CFLAGS="-msse3"
  18097. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. #ifdef __MINGW32__
  18101. #include <_mingw.h>
  18102. #ifdef __MINGW64_VERSION_MAJOR
  18103. #include <intrin.h>
  18104. #else
  18105. #include <pmmintrin.h>
  18106. #endif
  18107. #else
  18108. #include <pmmintrin.h>
  18109. #endif
  18110. #ifndef __SSE2__
  18111. #error Assembler CPP flag not enabled
  18112. #endif
  18113. int
  18114. main (void)
  18115. {
  18116. ;
  18117. return 0;
  18118. }
  18119. _ACEOF
  18120. if ac_fn_c_try_compile "$LINENO"
  18121. then :
  18122. have_gcc_sse3=yes
  18123. fi
  18124. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18126. printf "%s\n" "$have_gcc_sse3" >&6; }
  18127. CFLAGS="$save_CFLAGS"
  18128. if test x$have_gcc_sse3 = xyes; then
  18129. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18130. SUMMARY_math="${SUMMARY_math} sse3"
  18131. fi
  18132. fi
  18133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18134. printf %s "checking for immintrin.h... " >&6; }
  18135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18136. /* end confdefs.h. */
  18137. #include <immintrin.h>
  18138. int
  18139. main (void)
  18140. {
  18141. ;
  18142. return 0;
  18143. }
  18144. _ACEOF
  18145. if ac_fn_c_try_compile "$LINENO"
  18146. then :
  18147. have_immintrin_h_hdr=yes
  18148. else $as_nop
  18149. have_immintrin_h_hdr=no
  18150. fi
  18151. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18153. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18154. if test x$have_immintrin_h_hdr = xyes; then
  18155. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18156. fi
  18157. # Check whether --enable-altivec was given.
  18158. if test ${enable_altivec+y}
  18159. then :
  18160. enableval=$enable_altivec;
  18161. else $as_nop
  18162. enable_altivec=yes
  18163. fi
  18164. if test x$enable_altivec = xyes; then
  18165. save_CFLAGS="$CFLAGS"
  18166. have_gcc_altivec=no
  18167. have_altivec_h_hdr=no
  18168. altivec_CFLAGS="-maltivec"
  18169. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18171. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18173. /* end confdefs.h. */
  18174. #include <altivec.h>
  18175. vector unsigned int vzero() {
  18176. return vec_splat_u32(0);
  18177. }
  18178. int
  18179. main (void)
  18180. {
  18181. ;
  18182. return 0;
  18183. }
  18184. _ACEOF
  18185. if ac_fn_c_try_compile "$LINENO"
  18186. then :
  18187. have_gcc_altivec=yes
  18188. have_altivec_h_hdr=yes
  18189. fi
  18190. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18192. printf "%s\n" "$have_gcc_altivec" >&6; }
  18193. if test x$have_gcc_altivec = xno; then
  18194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18195. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18197. /* end confdefs.h. */
  18198. vector unsigned int vzero() {
  18199. return vec_splat_u32(0);
  18200. }
  18201. int
  18202. main (void)
  18203. {
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. if ac_fn_c_try_compile "$LINENO"
  18209. then :
  18210. have_gcc_altivec=yes
  18211. fi
  18212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18214. printf "%s\n" "$have_gcc_altivec" >&6; }
  18215. fi
  18216. if test x$have_gcc_altivec = xno; then
  18217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18218. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18219. altivec_CFLAGS="-faltivec"
  18220. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18222. /* end confdefs.h. */
  18223. #include <altivec.h>
  18224. vector unsigned int vzero() {
  18225. return vec_splat_u32(0);
  18226. }
  18227. int
  18228. main (void)
  18229. {
  18230. ;
  18231. return 0;
  18232. }
  18233. _ACEOF
  18234. if ac_fn_c_try_compile "$LINENO"
  18235. then :
  18236. have_gcc_altivec=yes
  18237. have_altivec_h_hdr=yes
  18238. fi
  18239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18241. printf "%s\n" "$have_gcc_altivec" >&6; }
  18242. fi
  18243. if test x$have_gcc_altivec = xno; then
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18245. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18247. /* end confdefs.h. */
  18248. vector unsigned int vzero() {
  18249. return vec_splat_u32(0);
  18250. }
  18251. int
  18252. main (void)
  18253. {
  18254. ;
  18255. return 0;
  18256. }
  18257. _ACEOF
  18258. if ac_fn_c_try_compile "$LINENO"
  18259. then :
  18260. have_gcc_altivec=yes
  18261. fi
  18262. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18264. printf "%s\n" "$have_gcc_altivec" >&6; }
  18265. fi
  18266. CFLAGS="$save_CFLAGS"
  18267. if test x$have_gcc_altivec = xyes; then
  18268. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18269. if test x$have_altivec_h_hdr = xyes; then
  18270. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18271. fi
  18272. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18273. SUMMARY_math="${SUMMARY_math} altivec"
  18274. fi
  18275. fi
  18276. fi
  18277. # Check whether --enable-lsx was given.
  18278. if test ${enable_lsx+y}
  18279. then :
  18280. enableval=$enable_lsx;
  18281. else $as_nop
  18282. enable_lsx=yes
  18283. fi
  18284. if test x$enable_lsx = xyes; then
  18285. save_CFLAGS="$CFLAGS"
  18286. have_gcc_lsx=no
  18287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18288. printf %s "checking for GCC -mlsx option... " >&6; }
  18289. lsx_CFLAGS="-mlsx"
  18290. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18292. /* end confdefs.h. */
  18293. #ifndef __loongarch_sx
  18294. #error Assembler CPP flag not enabled
  18295. #endif
  18296. int
  18297. main (void)
  18298. {
  18299. ;
  18300. return 0;
  18301. }
  18302. _ACEOF
  18303. if ac_fn_c_try_compile "$LINENO"
  18304. then :
  18305. have_gcc_lsx=yes
  18306. fi
  18307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18309. printf "%s\n" "$have_gcc_lsx" >&6; }
  18310. CFLAGS="$save_CFLAGS"
  18311. if test x$have_gcc_lsx = xyes; then
  18312. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18313. SUMMARY_math="${SUMMARY_math} lsx"
  18314. fi
  18315. fi
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18317. printf %s "checking for lsxintrin.h... " >&6; }
  18318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18319. /* end confdefs.h. */
  18320. #include <lsxintrin.h>
  18321. int
  18322. main (void)
  18323. {
  18324. ;
  18325. return 0;
  18326. }
  18327. _ACEOF
  18328. if ac_fn_c_try_compile "$LINENO"
  18329. then :
  18330. have_lsxintrin_h_hdr=yes
  18331. else $as_nop
  18332. have_lsxintrin_h_hdr=no
  18333. fi
  18334. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18336. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18337. if test x$have_lsxintrin_h_hdr = xyes; then
  18338. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18339. fi
  18340. CheckOSS()
  18341. {
  18342. # Check whether --enable-oss was given.
  18343. if test ${enable_oss+y}
  18344. then :
  18345. enableval=$enable_oss;
  18346. else $as_nop
  18347. enable_oss=maybe
  18348. fi
  18349. if test x$enable_oss = xmaybe; then
  18350. enable_oss=yes
  18351. fi
  18352. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18354. printf %s "checking for OSS audio support... " >&6; }
  18355. have_oss=no
  18356. if test x$have_oss != xyes; then
  18357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18358. /* end confdefs.h. */
  18359. #include <sys/soundcard.h>
  18360. int
  18361. main (void)
  18362. {
  18363. int arg = SNDCTL_DSP_SETFRAGMENT;
  18364. ;
  18365. return 0;
  18366. }
  18367. _ACEOF
  18368. if ac_fn_c_try_compile "$LINENO"
  18369. then :
  18370. have_oss=yes
  18371. fi
  18372. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18373. fi
  18374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18375. printf "%s\n" "$have_oss" >&6; }
  18376. if test x$have_oss = xyes; then
  18377. SUMMARY_audio="${SUMMARY_audio} oss"
  18378. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18379. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18380. have_audio=yes
  18381. # We may need to link with ossaudio emulation library
  18382. case "$host" in
  18383. *-*-netbsd*)
  18384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18385. esac
  18386. fi
  18387. fi
  18388. }
  18389. CheckALSA()
  18390. {
  18391. # Check whether --enable-alsa was given.
  18392. if test ${enable_alsa+y}
  18393. then :
  18394. enableval=$enable_alsa;
  18395. else $as_nop
  18396. enable_alsa=yes
  18397. fi
  18398. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18399. alsa_save_CFLAGS="$CFLAGS"
  18400. alsa_save_LDFLAGS="$LDFLAGS"
  18401. alsa_save_LIBS="$LIBS"
  18402. alsa_found=yes
  18403. # Check whether --with-alsa-prefix was given.
  18404. if test ${with_alsa_prefix+y}
  18405. then :
  18406. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18407. else $as_nop
  18408. alsa_prefix=""
  18409. fi
  18410. # Check whether --with-alsa-inc-prefix was given.
  18411. if test ${with_alsa_inc_prefix+y}
  18412. then :
  18413. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18414. else $as_nop
  18415. alsa_inc_prefix=""
  18416. fi
  18417. # Check whether --enable-alsatest was given.
  18418. if test ${enable_alsatest+y}
  18419. then :
  18420. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18421. else $as_nop
  18422. enable_alsatest=yes
  18423. fi
  18424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18425. printf %s "checking for ALSA CFLAGS... " >&6; }
  18426. if test "$alsa_inc_prefix" != "" ; then
  18427. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18428. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18429. fi
  18430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18431. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18433. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18434. if test "$alsa_prefix" != "" ; then
  18435. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18436. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18437. fi
  18438. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18439. LIBS=`echo $LIBS | sed 's/-lm//'`
  18440. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18441. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18442. LIBS=`echo $LIBS | sed 's/ //'`
  18443. LIBS="$ALSA_LIBS $LIBS"
  18444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18445. printf "%s\n" "$ALSA_LIBS" >&6; }
  18446. min_alsa_version=1.0.11
  18447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18448. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18449. no_alsa=""
  18450. alsa_min_major_version=`echo $min_alsa_version | \
  18451. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18452. alsa_min_minor_version=`echo $min_alsa_version | \
  18453. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18454. alsa_min_micro_version=`echo $min_alsa_version | \
  18455. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18456. ac_ext=c
  18457. ac_cpp='$CPP $CPPFLAGS'
  18458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18462. /* end confdefs.h. */
  18463. #include <alsa/asoundlib.h>
  18464. int
  18465. main (void)
  18466. {
  18467. /* ensure backward compatibility */
  18468. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18469. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18470. #endif
  18471. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18472. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18473. #endif
  18474. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18475. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18476. #endif
  18477. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18478. exit(0);
  18479. # else
  18480. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18481. # error not present
  18482. # endif
  18483. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18484. exit(0);
  18485. # else
  18486. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18487. # error not present
  18488. # endif
  18489. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18490. # error not present
  18491. # endif
  18492. # endif
  18493. # endif
  18494. exit(0);
  18495. ;
  18496. return 0;
  18497. }
  18498. _ACEOF
  18499. if ac_fn_c_try_compile "$LINENO"
  18500. then :
  18501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18502. printf "%s\n" "found." >&6; }
  18503. else $as_nop
  18504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18505. printf "%s\n" "not present." >&6; }
  18506. alsa_found=no
  18507. fi
  18508. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18509. ac_ext=c
  18510. ac_cpp='$CPP $CPPFLAGS'
  18511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18514. if test "x$enable_alsatest" = "xyes"; then
  18515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18516. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18517. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18518. then :
  18519. printf %s "(cached) " >&6
  18520. else $as_nop
  18521. ac_check_lib_save_LIBS=$LIBS
  18522. LIBS="-lasound $LIBS"
  18523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18524. /* end confdefs.h. */
  18525. /* Override any GCC internal prototype to avoid an error.
  18526. Use char because int might match the return type of a GCC
  18527. builtin and then its argument prototype would still apply. */
  18528. char snd_ctl_open ();
  18529. int
  18530. main (void)
  18531. {
  18532. return snd_ctl_open ();
  18533. ;
  18534. return 0;
  18535. }
  18536. _ACEOF
  18537. if ac_fn_c_try_link "$LINENO"
  18538. then :
  18539. ac_cv_lib_asound_snd_ctl_open=yes
  18540. else $as_nop
  18541. ac_cv_lib_asound_snd_ctl_open=no
  18542. fi
  18543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18544. conftest$ac_exeext conftest.$ac_ext
  18545. LIBS=$ac_check_lib_save_LIBS
  18546. fi
  18547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18548. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18549. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18550. then :
  18551. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18552. LIBS="-lasound $LIBS"
  18553. else $as_nop
  18554. alsa_found=no
  18555. fi
  18556. fi
  18557. if test "x$alsa_found" = "xyes" ; then
  18558. have_alsa=yes
  18559. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18560. LIBS=`echo $LIBS | sed 's/ //'`
  18561. LIBS="-lasound $LIBS"
  18562. fi
  18563. if test "x$alsa_found" = "xno" ; then
  18564. have_alsa=no
  18565. CFLAGS="$alsa_save_CFLAGS"
  18566. LDFLAGS="$alsa_save_LDFLAGS"
  18567. LIBS="$alsa_save_LIBS"
  18568. ALSA_CFLAGS=""
  18569. ALSA_LIBS=""
  18570. fi
  18571. # Restore all flags from before the ALSA detection runs
  18572. CFLAGS="$alsa_save_CFLAGS"
  18573. LDFLAGS="$alsa_save_LDFLAGS"
  18574. LIBS="$alsa_save_LIBS"
  18575. if test x$have_alsa = xyes; then
  18576. # Check whether --enable-alsa-shared was given.
  18577. if test ${enable_alsa_shared+y}
  18578. then :
  18579. enableval=$enable_alsa_shared;
  18580. else $as_nop
  18581. enable_alsa_shared=yes
  18582. fi
  18583. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18584. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18585. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18586. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18587. if test x$have_loadso != xyes && \
  18588. test x$enable_alsa_shared = xyes; then
  18589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18590. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18591. fi
  18592. if test x$have_loadso = xyes && \
  18593. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18594. echo "-- dynamic libasound -> $alsa_lib"
  18595. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18596. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18597. else
  18598. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18599. SUMMARY_audio="${SUMMARY_audio} alsa"
  18600. fi
  18601. have_audio=yes
  18602. fi
  18603. fi
  18604. }
  18605. CheckJACK()
  18606. {
  18607. # Check whether --enable-jack was given.
  18608. if test ${enable_jack+y}
  18609. then :
  18610. enableval=$enable_jack;
  18611. else $as_nop
  18612. enable_jack=yes
  18613. fi
  18614. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18615. pkg_failed=no
  18616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18617. printf %s "checking for jack >= 0.125... " >&6; }
  18618. if test -n "$JACK_CFLAGS"; then
  18619. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18620. elif test -n "$PKG_CONFIG"; then
  18621. if test -n "$PKG_CONFIG" && \
  18622. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18623. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18624. ac_status=$?
  18625. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18626. test $ac_status = 0; }; then
  18627. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18628. test "x$?" != "x0" && pkg_failed=yes
  18629. else
  18630. pkg_failed=yes
  18631. fi
  18632. else
  18633. pkg_failed=untried
  18634. fi
  18635. if test -n "$JACK_LIBS"; then
  18636. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18637. elif test -n "$PKG_CONFIG"; then
  18638. if test -n "$PKG_CONFIG" && \
  18639. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18640. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18641. ac_status=$?
  18642. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18643. test $ac_status = 0; }; then
  18644. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18645. test "x$?" != "x0" && pkg_failed=yes
  18646. else
  18647. pkg_failed=yes
  18648. fi
  18649. else
  18650. pkg_failed=untried
  18651. fi
  18652. if test $pkg_failed = yes; then
  18653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18654. printf "%s\n" "no" >&6; }
  18655. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18656. _pkg_short_errors_supported=yes
  18657. else
  18658. _pkg_short_errors_supported=no
  18659. fi
  18660. if test $_pkg_short_errors_supported = yes; then
  18661. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18662. else
  18663. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18664. fi
  18665. # Put the nasty error message in config.log where it belongs
  18666. echo "$JACK_PKG_ERRORS" >&5
  18667. audio_jack=no
  18668. elif test $pkg_failed = untried; then
  18669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18670. printf "%s\n" "no" >&6; }
  18671. audio_jack=no
  18672. else
  18673. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18674. JACK_LIBS=$pkg_cv_JACK_LIBS
  18675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18676. printf "%s\n" "yes" >&6; }
  18677. audio_jack=yes
  18678. fi
  18679. if test x$audio_jack = xyes; then
  18680. # Check whether --enable-jack-shared was given.
  18681. if test ${enable_jack_shared+y}
  18682. then :
  18683. enableval=$enable_jack_shared;
  18684. else $as_nop
  18685. enable_jack_shared=yes
  18686. fi
  18687. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18688. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18689. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18690. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18691. if test x$have_loadso != xyes && \
  18692. test x$enable_jack_shared = xyes; then
  18693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18694. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18695. fi
  18696. if test x$have_loadso = xyes && \
  18697. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18698. echo "-- dynamic libjack -> $jack_lib"
  18699. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18700. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18701. case "$host" in
  18702. # On Solaris, jack must be linked deferred explicitly
  18703. # to prevent undefined symbol failures.
  18704. *-*-solaris*)
  18705. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18706. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18707. esac
  18708. else
  18709. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18710. SUMMARY_audio="${SUMMARY_audio} jack"
  18711. fi
  18712. have_audio=yes
  18713. fi
  18714. fi
  18715. }
  18716. CheckESD()
  18717. {
  18718. # Check whether --enable-esd was given.
  18719. if test ${enable_esd+y}
  18720. then :
  18721. enableval=$enable_esd;
  18722. else $as_nop
  18723. enable_esd=yes
  18724. fi
  18725. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18726. pkg_failed=no
  18727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18728. printf %s "checking for esound >= 0.2.8... " >&6; }
  18729. if test -n "$ESD_CFLAGS"; then
  18730. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18731. elif test -n "$PKG_CONFIG"; then
  18732. if test -n "$PKG_CONFIG" && \
  18733. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18734. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18735. ac_status=$?
  18736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18737. test $ac_status = 0; }; then
  18738. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18739. test "x$?" != "x0" && pkg_failed=yes
  18740. else
  18741. pkg_failed=yes
  18742. fi
  18743. else
  18744. pkg_failed=untried
  18745. fi
  18746. if test -n "$ESD_LIBS"; then
  18747. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18748. elif test -n "$PKG_CONFIG"; then
  18749. if test -n "$PKG_CONFIG" && \
  18750. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18751. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18752. ac_status=$?
  18753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18754. test $ac_status = 0; }; then
  18755. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18756. test "x$?" != "x0" && pkg_failed=yes
  18757. else
  18758. pkg_failed=yes
  18759. fi
  18760. else
  18761. pkg_failed=untried
  18762. fi
  18763. if test $pkg_failed = yes; then
  18764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18765. printf "%s\n" "no" >&6; }
  18766. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18767. _pkg_short_errors_supported=yes
  18768. else
  18769. _pkg_short_errors_supported=no
  18770. fi
  18771. if test $_pkg_short_errors_supported = yes; then
  18772. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18773. else
  18774. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18775. fi
  18776. # Put the nasty error message in config.log where it belongs
  18777. echo "$ESD_PKG_ERRORS" >&5
  18778. have_esd=no
  18779. elif test $pkg_failed = untried; then
  18780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18781. printf "%s\n" "no" >&6; }
  18782. have_esd=no
  18783. else
  18784. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18785. ESD_LIBS=$pkg_cv_ESD_LIBS
  18786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18787. printf "%s\n" "yes" >&6; }
  18788. have_esd=yes
  18789. fi
  18790. if test x$have_esd = xno; then
  18791. # Check whether --with-esd-prefix was given.
  18792. if test ${with_esd_prefix+y}
  18793. then :
  18794. withval=$with_esd_prefix; esd_prefix="$withval"
  18795. else $as_nop
  18796. esd_prefix=""
  18797. fi
  18798. # Check whether --with-esd-exec-prefix was given.
  18799. if test ${with_esd_exec_prefix+y}
  18800. then :
  18801. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18802. else $as_nop
  18803. esd_exec_prefix=""
  18804. fi
  18805. # Check whether --enable-esdtest was given.
  18806. if test ${enable_esdtest+y}
  18807. then :
  18808. enableval=$enable_esdtest;
  18809. else $as_nop
  18810. enable_esdtest=yes
  18811. fi
  18812. if test x$esd_exec_prefix != x ; then
  18813. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18814. if test x${ESD_CONFIG+set} != xset ; then
  18815. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18816. fi
  18817. fi
  18818. if test x$esd_prefix != x ; then
  18819. esd_args="$esd_args --prefix=$esd_prefix"
  18820. if test x${ESD_CONFIG+set} != xset ; then
  18821. ESD_CONFIG=$esd_prefix/bin/esd-config
  18822. fi
  18823. fi
  18824. # Extract the first word of "esd-config", so it can be a program name with args.
  18825. set dummy esd-config; ac_word=$2
  18826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18827. printf %s "checking for $ac_word... " >&6; }
  18828. if test ${ac_cv_path_ESD_CONFIG+y}
  18829. then :
  18830. printf %s "(cached) " >&6
  18831. else $as_nop
  18832. case $ESD_CONFIG in
  18833. [\\/]* | ?:[\\/]*)
  18834. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18835. ;;
  18836. *)
  18837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18838. for as_dir in $PATH
  18839. do
  18840. IFS=$as_save_IFS
  18841. case $as_dir in #(((
  18842. '') as_dir=./ ;;
  18843. */) ;;
  18844. *) as_dir=$as_dir/ ;;
  18845. esac
  18846. for ac_exec_ext in '' $ac_executable_extensions; do
  18847. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18848. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18850. break 2
  18851. fi
  18852. done
  18853. done
  18854. IFS=$as_save_IFS
  18855. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18856. ;;
  18857. esac
  18858. fi
  18859. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18860. if test -n "$ESD_CONFIG"; then
  18861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18862. printf "%s\n" "$ESD_CONFIG" >&6; }
  18863. else
  18864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18865. printf "%s\n" "no" >&6; }
  18866. fi
  18867. min_esd_version=0.2.8
  18868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18869. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18870. no_esd=""
  18871. if test "$ESD_CONFIG" = "no" ; then
  18872. no_esd=yes
  18873. else
  18874. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18875. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18876. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18877. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18878. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18879. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18880. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18881. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18882. if test "x$enable_esdtest" = "xyes" ; then
  18883. ac_ext=c
  18884. ac_cpp='$CPP $CPPFLAGS'
  18885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18888. ac_save_CFLAGS="$CFLAGS"
  18889. ac_save_LIBS="$LIBS"
  18890. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18891. LIBS="$LIBS $ESD_LIBS"
  18892. rm -f conf.esdtest
  18893. if test "$cross_compiling" = yes
  18894. then :
  18895. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18896. else $as_nop
  18897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18898. /* end confdefs.h. */
  18899. #include <stdio.h>
  18900. #include <stdlib.h>
  18901. #include <esd.h>
  18902. int main (void)
  18903. {
  18904. int major, minor, micro;
  18905. FILE *fp = fopen("conf.esdtest", "w");
  18906. if (fp) fclose(fp);
  18907. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18908. printf("%s, bad version string\n", "$min_esd_version");
  18909. exit(1);
  18910. }
  18911. if (($esd_major_version > major) ||
  18912. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18913. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18914. {
  18915. return 0;
  18916. }
  18917. else
  18918. {
  18919. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18920. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18921. printf("*** best to upgrade to the required version.\n");
  18922. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18923. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18924. printf("*** config.cache before re-running configure\n");
  18925. return 1;
  18926. }
  18927. }
  18928. _ACEOF
  18929. if ac_fn_c_try_run "$LINENO"
  18930. then :
  18931. else $as_nop
  18932. no_esd=yes
  18933. fi
  18934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18935. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18936. fi
  18937. CFLAGS="$ac_save_CFLAGS"
  18938. LIBS="$ac_save_LIBS"
  18939. ac_ext=c
  18940. ac_cpp='$CPP $CPPFLAGS'
  18941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18944. fi
  18945. fi
  18946. if test "x$no_esd" = x ; then
  18947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18948. printf "%s\n" "yes" >&6; }
  18949. have_esd=yes
  18950. else
  18951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18952. printf "%s\n" "no" >&6; }
  18953. if test "$ESD_CONFIG" = "no" ; then
  18954. :
  18955. else
  18956. if test -f conf.esdtest ; then
  18957. :
  18958. else
  18959. echo "*** Could not run ESD test program, checking why..."
  18960. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18961. LIBS="$LIBS $ESD_LIBS"
  18962. ac_ext=c
  18963. ac_cpp='$CPP $CPPFLAGS'
  18964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. /* end confdefs.h. */
  18969. #include <stdio.h>
  18970. #include <esd.h>
  18971. int
  18972. main (void)
  18973. {
  18974. return 0;
  18975. ;
  18976. return 0;
  18977. }
  18978. _ACEOF
  18979. if ac_fn_c_try_link "$LINENO"
  18980. then :
  18981. echo "*** The test program compiled, but did not run. This usually means"
  18982. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18983. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18984. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18985. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18986. echo "*** is required on your system"
  18987. echo "***"
  18988. echo "*** If you have an old version installed, it is best to remove it, although"
  18989. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18990. else $as_nop
  18991. echo "*** The test program failed to compile or link. See the file config.log for the"
  18992. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18993. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18994. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18995. fi
  18996. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18997. conftest$ac_exeext conftest.$ac_ext
  18998. CFLAGS="$ac_save_CFLAGS"
  18999. LIBS="$ac_save_LIBS"
  19000. ac_ext=c
  19001. ac_cpp='$CPP $CPPFLAGS'
  19002. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19003. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19004. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19005. fi
  19006. fi
  19007. ESD_CFLAGS=""
  19008. ESD_LIBS=""
  19009. have_esd=no
  19010. fi
  19011. rm -f conf.esdtest
  19012. fi
  19013. if test x$have_esd = xyes; then
  19014. # Check whether --enable-esd-shared was given.
  19015. if test ${enable_esd_shared+y}
  19016. then :
  19017. enableval=$enable_esd_shared;
  19018. else $as_nop
  19019. enable_esd_shared=yes
  19020. fi
  19021. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19022. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19023. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19024. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19025. if test x$have_loadso != xyes && \
  19026. test x$enable_esd_shared = xyes; then
  19027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19028. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19029. fi
  19030. if test x$have_loadso = xyes && \
  19031. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19032. echo "-- dynamic libesd -> $esd_lib"
  19033. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19034. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19035. else
  19036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19037. SUMMARY_audio="${SUMMARY_audio} esd"
  19038. fi
  19039. have_audio=yes
  19040. fi
  19041. fi
  19042. }
  19043. CheckPipewire()
  19044. {
  19045. # Check whether --enable-pipewire was given.
  19046. if test ${enable_pipewire+y}
  19047. then :
  19048. enableval=$enable_pipewire;
  19049. else $as_nop
  19050. enable_pipewire=yes
  19051. fi
  19052. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19053. pkg_failed=no
  19054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19055. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19056. if test -n "$PIPEWIRE_CFLAGS"; then
  19057. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19058. elif test -n "$PKG_CONFIG"; then
  19059. if test -n "$PKG_CONFIG" && \
  19060. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19061. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19062. ac_status=$?
  19063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19064. test $ac_status = 0; }; then
  19065. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19066. test "x$?" != "x0" && pkg_failed=yes
  19067. else
  19068. pkg_failed=yes
  19069. fi
  19070. else
  19071. pkg_failed=untried
  19072. fi
  19073. if test -n "$PIPEWIRE_LIBS"; then
  19074. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19075. elif test -n "$PKG_CONFIG"; then
  19076. if test -n "$PKG_CONFIG" && \
  19077. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19078. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19079. ac_status=$?
  19080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19081. test $ac_status = 0; }; then
  19082. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19083. test "x$?" != "x0" && pkg_failed=yes
  19084. else
  19085. pkg_failed=yes
  19086. fi
  19087. else
  19088. pkg_failed=untried
  19089. fi
  19090. if test $pkg_failed = yes; then
  19091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19092. printf "%s\n" "no" >&6; }
  19093. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19094. _pkg_short_errors_supported=yes
  19095. else
  19096. _pkg_short_errors_supported=no
  19097. fi
  19098. if test $_pkg_short_errors_supported = yes; then
  19099. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19100. else
  19101. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19102. fi
  19103. # Put the nasty error message in config.log where it belongs
  19104. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19105. audio_pipewire=no
  19106. elif test $pkg_failed = untried; then
  19107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19108. printf "%s\n" "no" >&6; }
  19109. audio_pipewire=no
  19110. else
  19111. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19112. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19114. printf "%s\n" "yes" >&6; }
  19115. audio_pipewire=yes
  19116. fi
  19117. if test x$audio_pipewire = xyes; then
  19118. # Check whether --enable-pipewire-shared was given.
  19119. if test ${enable_pipewire_shared+y}
  19120. then :
  19121. enableval=$enable_pipewire_shared;
  19122. else $as_nop
  19123. enable_pipewire_shared=yes
  19124. fi
  19125. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19126. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19127. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19128. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19129. if test x$have_loadso != xyes && \
  19130. test x$enable_pipewire_shared = xyes; then
  19131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19132. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19133. fi
  19134. if test x$have_loadso = xyes && \
  19135. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19136. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19137. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19138. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19139. else
  19140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19141. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19142. fi
  19143. have_audio=yes
  19144. fi
  19145. fi
  19146. }
  19147. CheckPulseAudio()
  19148. {
  19149. # Check whether --enable-pulseaudio was given.
  19150. if test ${enable_pulseaudio+y}
  19151. then :
  19152. enableval=$enable_pulseaudio;
  19153. else $as_nop
  19154. enable_pulseaudio=yes
  19155. fi
  19156. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19157. pkg_failed=no
  19158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19159. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19160. if test -n "$PULSEAUDIO_CFLAGS"; then
  19161. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19162. elif test -n "$PKG_CONFIG"; then
  19163. if test -n "$PKG_CONFIG" && \
  19164. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19165. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19166. ac_status=$?
  19167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19168. test $ac_status = 0; }; then
  19169. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19170. test "x$?" != "x0" && pkg_failed=yes
  19171. else
  19172. pkg_failed=yes
  19173. fi
  19174. else
  19175. pkg_failed=untried
  19176. fi
  19177. if test -n "$PULSEAUDIO_LIBS"; then
  19178. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19179. elif test -n "$PKG_CONFIG"; then
  19180. if test -n "$PKG_CONFIG" && \
  19181. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19182. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19183. ac_status=$?
  19184. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19185. test $ac_status = 0; }; then
  19186. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19187. test "x$?" != "x0" && pkg_failed=yes
  19188. else
  19189. pkg_failed=yes
  19190. fi
  19191. else
  19192. pkg_failed=untried
  19193. fi
  19194. if test $pkg_failed = yes; then
  19195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19196. printf "%s\n" "no" >&6; }
  19197. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19198. _pkg_short_errors_supported=yes
  19199. else
  19200. _pkg_short_errors_supported=no
  19201. fi
  19202. if test $_pkg_short_errors_supported = yes; then
  19203. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19204. else
  19205. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19206. fi
  19207. # Put the nasty error message in config.log where it belongs
  19208. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19209. audio_pulseaudio=no
  19210. elif test $pkg_failed = untried; then
  19211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19212. printf "%s\n" "no" >&6; }
  19213. audio_pulseaudio=no
  19214. else
  19215. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19216. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19218. printf "%s\n" "yes" >&6; }
  19219. audio_pulseaudio=yes
  19220. fi
  19221. if test x$audio_pulseaudio = xyes; then
  19222. # Check whether --enable-pulseaudio-shared was given.
  19223. if test ${enable_pulseaudio_shared+y}
  19224. then :
  19225. enableval=$enable_pulseaudio_shared;
  19226. else $as_nop
  19227. enable_pulseaudio_shared=yes
  19228. fi
  19229. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19230. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19231. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19232. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19233. if test x$have_loadso != xyes && \
  19234. test x$enable_pulseaudio_shared = xyes; then
  19235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19236. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19237. fi
  19238. if test x$have_loadso = xyes && \
  19239. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19240. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19241. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19242. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19243. case "$host" in
  19244. # On Solaris, pulseaudio must be linked deferred explicitly
  19245. # to prevent undefined symbol failures.
  19246. *-*-solaris*)
  19247. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19248. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19249. esac
  19250. else
  19251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19252. SUMMARY_audio="${SUMMARY_audio} pulse"
  19253. fi
  19254. have_audio=yes
  19255. fi
  19256. fi
  19257. }
  19258. CheckARTSC()
  19259. {
  19260. # Check whether --enable-arts was given.
  19261. if test ${enable_arts+y}
  19262. then :
  19263. enableval=$enable_arts;
  19264. else $as_nop
  19265. enable_arts=yes
  19266. fi
  19267. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19268. # Extract the first word of "artsc-config", so it can be a program name with args.
  19269. set dummy artsc-config; ac_word=$2
  19270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19271. printf %s "checking for $ac_word... " >&6; }
  19272. if test ${ac_cv_path_ARTSCONFIG+y}
  19273. then :
  19274. printf %s "(cached) " >&6
  19275. else $as_nop
  19276. case $ARTSCONFIG in
  19277. [\\/]* | ?:[\\/]*)
  19278. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19279. ;;
  19280. *)
  19281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19282. for as_dir in $PATH
  19283. do
  19284. IFS=$as_save_IFS
  19285. case $as_dir in #(((
  19286. '') as_dir=./ ;;
  19287. */) ;;
  19288. *) as_dir=$as_dir/ ;;
  19289. esac
  19290. for ac_exec_ext in '' $ac_executable_extensions; do
  19291. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19292. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19293. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19294. break 2
  19295. fi
  19296. done
  19297. done
  19298. IFS=$as_save_IFS
  19299. ;;
  19300. esac
  19301. fi
  19302. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19303. if test -n "$ARTSCONFIG"; then
  19304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19305. printf "%s\n" "$ARTSCONFIG" >&6; }
  19306. else
  19307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19308. printf "%s\n" "no" >&6; }
  19309. fi
  19310. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19311. : # arts isn't installed
  19312. else
  19313. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19314. ARTS_LIBS=`$ARTSCONFIG --libs`
  19315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19316. printf %s "checking for aRts development environment... " >&6; }
  19317. audio_arts=no
  19318. save_CFLAGS="$CFLAGS"
  19319. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19321. /* end confdefs.h. */
  19322. #include <artsc.h>
  19323. int
  19324. main (void)
  19325. {
  19326. arts_stream_t stream;
  19327. ;
  19328. return 0;
  19329. }
  19330. _ACEOF
  19331. if ac_fn_c_try_compile "$LINENO"
  19332. then :
  19333. audio_arts=yes
  19334. fi
  19335. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19336. CFLAGS="$save_CFLAGS"
  19337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19338. printf "%s\n" "$audio_arts" >&6; }
  19339. if test x$audio_arts = xyes; then
  19340. # Check whether --enable-arts-shared was given.
  19341. if test ${enable_arts_shared+y}
  19342. then :
  19343. enableval=$enable_arts_shared;
  19344. else $as_nop
  19345. enable_arts_shared=yes
  19346. fi
  19347. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19348. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19349. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19350. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19351. if test x$have_loadso != xyes && \
  19352. test x$enable_arts_shared = xyes; then
  19353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19354. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19355. fi
  19356. if test x$have_loadso = xyes && \
  19357. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19358. echo "-- dynamic libartsc -> $arts_lib"
  19359. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19360. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19361. else
  19362. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19363. SUMMARY_audio="${SUMMARY_audio} arts"
  19364. fi
  19365. have_audio=yes
  19366. fi
  19367. fi
  19368. fi
  19369. }
  19370. CheckNAS()
  19371. {
  19372. # Check whether --enable-nas was given.
  19373. if test ${enable_nas+y}
  19374. then :
  19375. enableval=$enable_nas;
  19376. else $as_nop
  19377. enable_nas=yes
  19378. fi
  19379. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19380. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19381. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19382. then :
  19383. have_nas_hdr=yes
  19384. fi
  19385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19386. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19387. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19388. then :
  19389. printf %s "(cached) " >&6
  19390. else $as_nop
  19391. ac_check_lib_save_LIBS=$LIBS
  19392. LIBS="-laudio $LIBS"
  19393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19394. /* end confdefs.h. */
  19395. /* Override any GCC internal prototype to avoid an error.
  19396. Use char because int might match the return type of a GCC
  19397. builtin and then its argument prototype would still apply. */
  19398. char AuOpenServer ();
  19399. int
  19400. main (void)
  19401. {
  19402. return AuOpenServer ();
  19403. ;
  19404. return 0;
  19405. }
  19406. _ACEOF
  19407. if ac_fn_c_try_link "$LINENO"
  19408. then :
  19409. ac_cv_lib_audio_AuOpenServer=yes
  19410. else $as_nop
  19411. ac_cv_lib_audio_AuOpenServer=no
  19412. fi
  19413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19414. conftest$ac_exeext conftest.$ac_ext
  19415. LIBS=$ac_check_lib_save_LIBS
  19416. fi
  19417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19418. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19419. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19420. then :
  19421. have_nas_lib=yes
  19422. fi
  19423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19424. printf %s "checking for NAS audio support... " >&6; }
  19425. have_nas=no
  19426. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19427. have_nas=yes
  19428. NAS_LIBS="-laudio"
  19429. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19430. have_nas=yes
  19431. NAS_CFLAGS="-I/usr/X11R6/include/"
  19432. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19433. fi
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19435. printf "%s\n" "$have_nas" >&6; }
  19436. if test x$have_nas = xyes; then
  19437. # Check whether --enable-nas-shared was given.
  19438. if test ${enable_nas_shared+y}
  19439. then :
  19440. enableval=$enable_nas_shared;
  19441. else $as_nop
  19442. enable_nas_shared=yes
  19443. fi
  19444. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19445. if test x$have_loadso != xyes && \
  19446. test x$enable_nas_shared = xyes; then
  19447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19448. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19449. fi
  19450. if test x$have_loadso = xyes && \
  19451. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19452. echo "-- dynamic libaudio -> $nas_lib"
  19453. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19454. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19455. else
  19456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19457. SUMMARY_audio="${SUMMARY_audio} nas"
  19458. fi
  19459. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19460. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19461. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19462. have_audio=yes
  19463. fi
  19464. fi
  19465. }
  19466. CheckSNDIO()
  19467. {
  19468. # Check whether --enable-sndio was given.
  19469. if test ${enable_sndio+y}
  19470. then :
  19471. enableval=$enable_sndio;
  19472. else $as_nop
  19473. enable_sndio=yes
  19474. fi
  19475. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19476. pkg_failed=no
  19477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19478. printf %s "checking for sndio... " >&6; }
  19479. if test -n "$SNDIO_CFLAGS"; then
  19480. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19481. elif test -n "$PKG_CONFIG"; then
  19482. if test -n "$PKG_CONFIG" && \
  19483. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19484. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19485. ac_status=$?
  19486. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19487. test $ac_status = 0; }; then
  19488. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19489. test "x$?" != "x0" && pkg_failed=yes
  19490. else
  19491. pkg_failed=yes
  19492. fi
  19493. else
  19494. pkg_failed=untried
  19495. fi
  19496. if test -n "$SNDIO_LIBS"; then
  19497. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19498. elif test -n "$PKG_CONFIG"; then
  19499. if test -n "$PKG_CONFIG" && \
  19500. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19501. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19502. ac_status=$?
  19503. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19504. test $ac_status = 0; }; then
  19505. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19506. test "x$?" != "x0" && pkg_failed=yes
  19507. else
  19508. pkg_failed=yes
  19509. fi
  19510. else
  19511. pkg_failed=untried
  19512. fi
  19513. if test $pkg_failed = yes; then
  19514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19515. printf "%s\n" "no" >&6; }
  19516. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19517. _pkg_short_errors_supported=yes
  19518. else
  19519. _pkg_short_errors_supported=no
  19520. fi
  19521. if test $_pkg_short_errors_supported = yes; then
  19522. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19523. else
  19524. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19525. fi
  19526. # Put the nasty error message in config.log where it belongs
  19527. echo "$SNDIO_PKG_ERRORS" >&5
  19528. audio_sndio=no
  19529. elif test $pkg_failed = untried; then
  19530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19531. printf "%s\n" "no" >&6; }
  19532. audio_sndio=no
  19533. else
  19534. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19535. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19537. printf "%s\n" "yes" >&6; }
  19538. audio_sndio=yes
  19539. fi
  19540. if test x$audio_sndio = xyes; then
  19541. # Check whether --enable-sndio-shared was given.
  19542. if test ${enable_sndio_shared+y}
  19543. then :
  19544. enableval=$enable_sndio_shared;
  19545. else $as_nop
  19546. enable_sndio_shared=yes
  19547. fi
  19548. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19549. if test x$have_loadso != xyes && \
  19550. test x$enable_sndio_shared = xyes; then
  19551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19552. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19553. fi
  19554. if test x$have_loadso = xyes && \
  19555. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19556. echo "-- dynamic libsndio -> $sndio_lib"
  19557. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19558. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19559. else
  19560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19561. SUMMARY_audio="${SUMMARY_audio} sndio"
  19562. fi
  19563. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19564. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19565. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19566. have_audio=yes
  19567. fi
  19568. fi
  19569. }
  19570. CheckFusionSound()
  19571. {
  19572. # Check whether --enable-fusionsound was given.
  19573. if test ${enable_fusionsound+y}
  19574. then :
  19575. enableval=$enable_fusionsound;
  19576. else $as_nop
  19577. enable_fusionsound=no
  19578. fi
  19579. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19580. pkg_failed=no
  19581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19582. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19583. if test -n "$FUSIONSOUND_CFLAGS"; then
  19584. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19585. elif test -n "$PKG_CONFIG"; then
  19586. if test -n "$PKG_CONFIG" && \
  19587. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19588. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19589. ac_status=$?
  19590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19591. test $ac_status = 0; }; then
  19592. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19593. test "x$?" != "x0" && pkg_failed=yes
  19594. else
  19595. pkg_failed=yes
  19596. fi
  19597. else
  19598. pkg_failed=untried
  19599. fi
  19600. if test -n "$FUSIONSOUND_LIBS"; then
  19601. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19602. elif test -n "$PKG_CONFIG"; then
  19603. if test -n "$PKG_CONFIG" && \
  19604. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19605. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19606. ac_status=$?
  19607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19608. test $ac_status = 0; }; then
  19609. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19610. test "x$?" != "x0" && pkg_failed=yes
  19611. else
  19612. pkg_failed=yes
  19613. fi
  19614. else
  19615. pkg_failed=untried
  19616. fi
  19617. if test $pkg_failed = yes; then
  19618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19619. printf "%s\n" "no" >&6; }
  19620. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19621. _pkg_short_errors_supported=yes
  19622. else
  19623. _pkg_short_errors_supported=no
  19624. fi
  19625. if test $_pkg_short_errors_supported = yes; then
  19626. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19627. else
  19628. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19629. fi
  19630. # Put the nasty error message in config.log where it belongs
  19631. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19632. fusionsound=no
  19633. elif test $pkg_failed = untried; then
  19634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19635. printf "%s\n" "no" >&6; }
  19636. fusionsound=no
  19637. else
  19638. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19639. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19641. printf "%s\n" "yes" >&6; }
  19642. fusionsound=yes
  19643. fi
  19644. if test x$fusionsound = xyes; then
  19645. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19646. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19647. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19648. # Check whether --enable-fusionsound-shared was given.
  19649. if test ${enable_fusionsound_shared+y}
  19650. then :
  19651. enableval=$enable_fusionsound_shared;
  19652. else $as_nop
  19653. enable_fusionsound_shared=yes
  19654. fi
  19655. fusionsound_shared=no
  19656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19657. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19658. if test x$have_loadso != xyes && \
  19659. test x$enable_fusionsound_shared = xyes; then
  19660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19661. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19662. fi
  19663. if test x$have_loadso = xyes && \
  19664. test x$enable_fusionsound_shared = xyes; then
  19665. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19666. fusionsound_shared=yes
  19667. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19668. else
  19669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19670. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19671. fi
  19672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19673. printf "%s\n" "$fusionsound_shared" >&6; }
  19674. have_audio=yes
  19675. fi
  19676. fi
  19677. }
  19678. CheckDiskAudio()
  19679. {
  19680. # Check whether --enable-diskaudio was given.
  19681. if test ${enable_diskaudio+y}
  19682. then :
  19683. enableval=$enable_diskaudio;
  19684. else $as_nop
  19685. enable_diskaudio=yes
  19686. fi
  19687. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19688. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19689. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19690. SUMMARY_audio="${SUMMARY_audio} disk"
  19691. have_audio=yes
  19692. fi
  19693. }
  19694. CheckDummyAudio()
  19695. {
  19696. # Check whether --enable-dummyaudio was given.
  19697. if test ${enable_dummyaudio+y}
  19698. then :
  19699. enableval=$enable_dummyaudio;
  19700. else $as_nop
  19701. enable_dummyaudio=yes
  19702. fi
  19703. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19704. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19705. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19706. SUMMARY_audio="${SUMMARY_audio} dummy"
  19707. have_audio=yes
  19708. fi
  19709. }
  19710. CheckLibSampleRate()
  19711. {
  19712. # Check whether --enable-libsamplerate was given.
  19713. if test ${enable_libsamplerate+y}
  19714. then :
  19715. enableval=$enable_libsamplerate;
  19716. else $as_nop
  19717. enable_libsamplerate=yes
  19718. fi
  19719. if test x$enable_libsamplerate = xyes; then
  19720. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19721. if test "x$ac_cv_header_samplerate_h" = xyes
  19722. then :
  19723. have_samplerate_h_hdr=yes
  19724. else $as_nop
  19725. have_samplerate_h_hdr=no
  19726. fi
  19727. if test x$have_samplerate_h_hdr = xyes; then
  19728. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19729. # Check whether --enable-libsamplerate-shared was given.
  19730. if test ${enable_libsamplerate_shared+y}
  19731. then :
  19732. enableval=$enable_libsamplerate_shared;
  19733. else $as_nop
  19734. enable_libsamplerate_shared=yes
  19735. fi
  19736. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19737. if test x$have_loadso != xyes && \
  19738. test x$enable_libsamplerate_shared = xyes; then
  19739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19740. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19741. fi
  19742. if test x$have_loadso = xyes && \
  19743. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19744. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19745. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19746. else
  19747. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19748. fi
  19749. fi
  19750. fi
  19751. }
  19752. CheckARM()
  19753. {
  19754. # Check whether --enable-arm-simd was given.
  19755. if test ${enable_arm_simd+y}
  19756. then :
  19757. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19758. else $as_nop
  19759. enable_arm_simd=no
  19760. fi
  19761. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19762. save_CFLAGS="$CFLAGS"
  19763. have_arm_simd=no
  19764. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19766. printf %s "checking for ARM SIMD... " >&6; }
  19767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19768. /* end confdefs.h. */
  19769. .text
  19770. .arch armv6
  19771. .object_arch armv4
  19772. .arm
  19773. .altmacro
  19774. #ifndef __ARM_EABI__
  19775. #error EABI is required (to be sure that calling conventions are compatible)
  19776. #endif
  19777. pld [r0]
  19778. uqadd8 r0, r0, r0
  19779. _ACEOF
  19780. if ac_fn_c_try_compile "$LINENO"
  19781. then :
  19782. have_arm_simd=yes
  19783. fi
  19784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19786. printf "%s\n" "$have_arm_simd" >&6; }
  19787. CFLAGS="$save_CFLAGS"
  19788. if test x$have_arm_simd = xyes; then
  19789. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19790. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19791. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19792. fi
  19793. fi
  19794. }
  19795. CheckNEON()
  19796. {
  19797. # Check whether --enable-arm-neon was given.
  19798. if test ${enable_arm_neon+y}
  19799. then :
  19800. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19801. else $as_nop
  19802. enable_arm_neon=no
  19803. fi
  19804. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19805. save_CFLAGS="$CFLAGS"
  19806. have_arm_neon=no
  19807. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19809. printf %s "checking for ARM NEON... " >&6; }
  19810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19811. /* end confdefs.h. */
  19812. .text
  19813. .fpu neon
  19814. .arch armv7a
  19815. .object_arch armv4
  19816. .eabi_attribute 10, 0
  19817. .arm
  19818. .altmacro
  19819. #ifndef __ARM_EABI__
  19820. #error EABI is required (to be sure that calling conventions are compatible)
  19821. #endif
  19822. pld [r0]
  19823. vmovn.u16 d0, q0
  19824. _ACEOF
  19825. if ac_fn_c_try_compile "$LINENO"
  19826. then :
  19827. have_arm_neon=yes
  19828. fi
  19829. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19831. printf "%s\n" "$have_arm_neon" >&6; }
  19832. CFLAGS="$save_CFLAGS"
  19833. if test x$have_arm_neon = xyes; then
  19834. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19835. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19836. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19837. fi
  19838. fi
  19839. }
  19840. CheckObjectiveCARC()
  19841. {
  19842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19843. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19844. have_clang_objc_arc=no
  19845. save_CFLAGS="$CFLAGS"
  19846. CFLAGS="$save_CFLAGS -fobjc-arc"
  19847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19848. /* end confdefs.h. */
  19849. int x = 0;
  19850. int
  19851. main (void)
  19852. {
  19853. ;
  19854. return 0;
  19855. }
  19856. _ACEOF
  19857. if ac_fn_c_try_compile "$LINENO"
  19858. then :
  19859. have_clang_objc_arc=yes
  19860. fi
  19861. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19863. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19864. CFLAGS="$save_CFLAGS"
  19865. if test x$have_clang_objc_arc = xyes; then
  19866. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19867. fi
  19868. }
  19869. CheckGDwarf4()
  19870. {
  19871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19872. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19873. have_gcc_gdwarf4=no
  19874. save_CFLAGS="$CFLAGS"
  19875. CFLAGS="$save_CFLAGS -gdwarf-4"
  19876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19877. /* end confdefs.h. */
  19878. int x = 0;
  19879. int
  19880. main (void)
  19881. {
  19882. ;
  19883. return 0;
  19884. }
  19885. _ACEOF
  19886. if ac_fn_c_try_compile "$LINENO"
  19887. then :
  19888. have_gcc_gdwarf4=yes
  19889. fi
  19890. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19892. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19893. CFLAGS="$save_CFLAGS"
  19894. if test x$have_gcc_gdwarf4 = xyes; then
  19895. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19896. fi
  19897. }
  19898. CheckVisibilityHidden()
  19899. {
  19900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19901. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19902. have_gcc_fvisibility=no
  19903. visibility_CFLAGS="-fvisibility=hidden"
  19904. save_CFLAGS="$CFLAGS"
  19905. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19907. /* end confdefs.h. */
  19908. #if !defined(__GNUC__) || __GNUC__ < 4
  19909. #error SDL only uses visibility attributes in GCC 4 or newer
  19910. #endif
  19911. int
  19912. main (void)
  19913. {
  19914. ;
  19915. return 0;
  19916. }
  19917. _ACEOF
  19918. if ac_fn_c_try_compile "$LINENO"
  19919. then :
  19920. have_gcc_fvisibility=yes
  19921. fi
  19922. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19924. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19925. CFLAGS="$save_CFLAGS"
  19926. if test x$have_gcc_fvisibility = xyes; then
  19927. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19928. fi
  19929. }
  19930. CheckNoStrictAliasing()
  19931. {
  19932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19933. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19934. have_gcc_no_strict_aliasing=no
  19935. save_CFLAGS="$CFLAGS"
  19936. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19938. /* end confdefs.h. */
  19939. int x = 0;
  19940. int
  19941. main (void)
  19942. {
  19943. ;
  19944. return 0;
  19945. }
  19946. _ACEOF
  19947. if ac_fn_c_try_compile "$LINENO"
  19948. then :
  19949. have_gcc_no_strict_aliasing=yes
  19950. fi
  19951. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19953. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19954. CFLAGS="$save_CFLAGS"
  19955. if test x$have_gcc_no_strict_aliasing = xyes; then
  19956. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19957. fi
  19958. }
  19959. CheckWerror()
  19960. {
  19961. # Check whether --enable-werror was given.
  19962. if test ${enable_werror+y}
  19963. then :
  19964. enableval=$enable_werror; enable_werror=$enableval
  19965. else $as_nop
  19966. enable_werror=no
  19967. fi
  19968. if test x$enable_werror = xyes; then
  19969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19970. printf %s "checking for GCC -Werror option... " >&6; }
  19971. have_gcc_werror=no
  19972. save_CFLAGS="$CFLAGS"
  19973. CFLAGS="$save_CFLAGS -Werror"
  19974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19975. /* end confdefs.h. */
  19976. int x = 0;
  19977. int
  19978. main (void)
  19979. {
  19980. ;
  19981. return 0;
  19982. }
  19983. _ACEOF
  19984. if ac_fn_c_try_compile "$LINENO"
  19985. then :
  19986. have_gcc_werror=yes
  19987. fi
  19988. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19990. printf "%s\n" "$have_gcc_werror" >&6; }
  19991. CFLAGS="$save_CFLAGS"
  19992. if test x$have_gcc_werror = xyes; then
  19993. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19994. fi
  19995. fi
  19996. }
  19997. CheckNoErrorDeprecatedDeclarationsWerror()
  19998. {
  19999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  20000. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  20001. have_gcc_no_werror_deprecated_declarations=no
  20002. save_CFLAGS="$CFLAGS"
  20003. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  20004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20005. /* end confdefs.h. */
  20006. int x = 0;
  20007. int
  20008. main (void)
  20009. {
  20010. ;
  20011. return 0;
  20012. }
  20013. _ACEOF
  20014. if ac_fn_c_try_compile "$LINENO"
  20015. then :
  20016. have_gcc_no_werror_deprecated_declarations=yes
  20017. fi
  20018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20020. printf "%s\n" "$have_gcc_werror" >&6; }
  20021. CFLAGS="$save_CFLAGS"
  20022. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20023. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20024. fi
  20025. }
  20026. CheckDeclarationAfterStatement()
  20027. {
  20028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20029. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20030. have_gcc_declaration_after_statement=no
  20031. save_CFLAGS="$CFLAGS"
  20032. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20034. /* end confdefs.h. */
  20035. int x = 0;
  20036. int
  20037. main (void)
  20038. {
  20039. ;
  20040. return 0;
  20041. }
  20042. _ACEOF
  20043. if ac_fn_c_try_compile "$LINENO"
  20044. then :
  20045. have_gcc_declaration_after_statement=yes
  20046. fi
  20047. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20049. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20050. CFLAGS="$save_CFLAGS"
  20051. if test x$have_gcc_declaration_after_statement = xyes; then
  20052. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20053. fi
  20054. }
  20055. CheckWarnAll()
  20056. {
  20057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20058. printf %s "checking for GCC -Wall option... " >&6; }
  20059. have_gcc_Wall=no
  20060. save_CFLAGS="$CFLAGS"
  20061. CFLAGS="$save_CFLAGS -Wall"
  20062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20063. /* end confdefs.h. */
  20064. int x = 0;
  20065. int
  20066. main (void)
  20067. {
  20068. ;
  20069. return 0;
  20070. }
  20071. _ACEOF
  20072. if ac_fn_c_try_compile "$LINENO"
  20073. then :
  20074. have_gcc_Wall=yes
  20075. fi
  20076. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20078. printf "%s\n" "$have_gcc_Wall" >&6; }
  20079. CFLAGS="$save_CFLAGS"
  20080. if test x$have_gcc_Wall = xyes; then
  20081. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20083. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20084. need_gcc_Wno_multichar=no
  20085. case "$host" in
  20086. *-*-haiku*)
  20087. need_gcc_Wno_multichar=yes
  20088. ;;
  20089. esac
  20090. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20091. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20092. if test x$need_gcc_Wno_multichar = xyes; then
  20093. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20094. fi
  20095. fi
  20096. }
  20097. CheckUnusedLocalTypedefs()
  20098. {
  20099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20100. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20101. have_gcc_unused_local_typedefs=no
  20102. save_CFLAGS="$CFLAGS"
  20103. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20105. /* end confdefs.h. */
  20106. int x = 0;
  20107. int
  20108. main (void)
  20109. {
  20110. ;
  20111. return 0;
  20112. }
  20113. _ACEOF
  20114. if ac_fn_c_try_compile "$LINENO"
  20115. then :
  20116. have_gcc_unused_local_typedefs=yes
  20117. fi
  20118. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20120. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20121. CFLAGS="$save_CFLAGS"
  20122. if test x$have_gcc_unused_local_typedefs = xyes; then
  20123. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20124. fi
  20125. }
  20126. CheckWayland()
  20127. {
  20128. # Check whether --enable-video-wayland was given.
  20129. if test ${enable_video_wayland+y}
  20130. then :
  20131. enableval=$enable_video_wayland;
  20132. else $as_nop
  20133. enable_video_wayland=yes
  20134. fi
  20135. # Check whether --enable-video-wayland-qt-touch was given.
  20136. if test ${enable_video_wayland_qt_touch+y}
  20137. then :
  20138. enableval=$enable_video_wayland_qt_touch;
  20139. else $as_nop
  20140. enable_video_wayland_qt_touch=yes
  20141. fi
  20142. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20144. printf %s "checking for Wayland support... " >&6; }
  20145. video_wayland=no
  20146. if test x$video_opengl_egl = xyes && \
  20147. test x$video_opengles_v2 = xyes; then
  20148. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20149. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20150. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20151. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20152. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20153. then :
  20154. WAYLAND_SCANNER_CODE_MODE=private-code
  20155. else $as_nop
  20156. WAYLAND_SCANNER_CODE_MODE=code
  20157. fi
  20158. video_wayland=yes
  20159. fi
  20160. fi
  20161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20162. printf "%s\n" "$video_wayland" >&6; }
  20163. if test x$video_wayland = xyes; then
  20164. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20165. if test x$enable_video_wayland_qt_touch = xyes; then
  20166. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20167. fi
  20168. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20169. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20170. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20171. # Check whether --enable-wayland-shared was given.
  20172. if test ${enable_wayland_shared+y}
  20173. then :
  20174. enableval=$enable_wayland_shared;
  20175. else $as_nop
  20176. enable_wayland_shared=maybe
  20177. fi
  20178. case "$host" in
  20179. *)
  20180. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20181. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20182. if test x$wayland_egl_lib = x; then
  20183. # This works in Ubuntu 13.10, maybe others
  20184. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20185. fi
  20186. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20187. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20188. ;;
  20189. esac
  20190. if test x$enable_wayland_shared = xmaybe; then
  20191. enable_wayland_shared=yes
  20192. fi
  20193. if test x$have_loadso != xyes && \
  20194. test x$enable_wayland_shared = xyes; then
  20195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20196. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20197. enable_wayland_shared=no
  20198. fi
  20199. if test x$have_loadso = xyes && \
  20200. test x$enable_wayland_shared = xyes && \
  20201. test x$wayland_client_lib != x && \
  20202. test x$wayland_egl_lib != x && \
  20203. test x$wayland_cursor_lib != x && \
  20204. test x$xkbcommon_lib != x; then
  20205. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20206. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20207. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20208. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20209. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20210. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20211. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20212. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20213. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20214. else
  20215. enable_wayland_shared=no
  20216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20217. SUMMARY_video="${SUMMARY_video} wayland"
  20218. fi
  20219. have_video=yes
  20220. # Check whether --enable-libdecor was given.
  20221. if test ${enable_libdecor+y}
  20222. then :
  20223. enableval=$enable_libdecor;
  20224. else $as_nop
  20225. enable_libdecor=yes
  20226. fi
  20227. if test x$enable_libdecor = xyes; then
  20228. pkg_failed=no
  20229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20230. printf %s "checking for libdecor-0... " >&6; }
  20231. if test -n "$DECOR_CFLAGS"; then
  20232. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20233. elif test -n "$PKG_CONFIG"; then
  20234. if test -n "$PKG_CONFIG" && \
  20235. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20236. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20237. ac_status=$?
  20238. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20239. test $ac_status = 0; }; then
  20240. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20241. test "x$?" != "x0" && pkg_failed=yes
  20242. else
  20243. pkg_failed=yes
  20244. fi
  20245. else
  20246. pkg_failed=untried
  20247. fi
  20248. if test -n "$DECOR_LIBS"; then
  20249. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20250. elif test -n "$PKG_CONFIG"; then
  20251. if test -n "$PKG_CONFIG" && \
  20252. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20253. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20254. ac_status=$?
  20255. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20256. test $ac_status = 0; }; then
  20257. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20258. test "x$?" != "x0" && pkg_failed=yes
  20259. else
  20260. pkg_failed=yes
  20261. fi
  20262. else
  20263. pkg_failed=untried
  20264. fi
  20265. if test $pkg_failed = yes; then
  20266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20267. printf "%s\n" "no" >&6; }
  20268. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20269. _pkg_short_errors_supported=yes
  20270. else
  20271. _pkg_short_errors_supported=no
  20272. fi
  20273. if test $_pkg_short_errors_supported = yes; then
  20274. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20275. else
  20276. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20277. fi
  20278. # Put the nasty error message in config.log where it belongs
  20279. echo "$DECOR_PKG_ERRORS" >&5
  20280. video_libdecor=no
  20281. elif test $pkg_failed = untried; then
  20282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20283. printf "%s\n" "no" >&6; }
  20284. video_libdecor=no
  20285. else
  20286. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20287. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20289. printf "%s\n" "yes" >&6; }
  20290. video_libdecor=yes
  20291. fi
  20292. if test x$video_libdecor = xyes; then
  20293. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20294. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20295. # Check whether --enable-libdecor-shared was given.
  20296. if test ${enable_libdecor_shared+y}
  20297. then :
  20298. enableval=$enable_libdecor_shared;
  20299. else $as_nop
  20300. enable_libdecor_shared=yes
  20301. fi
  20302. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20303. if test x$enable_wayland_shared != xyes; then
  20304. enable_libdecor_shared=no
  20305. fi
  20306. if test x$have_loadso != xyes && \
  20307. test x$enable_libdecor_shared = xyes; then
  20308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20309. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20310. fi
  20311. if test x$have_loadso = xyes && \
  20312. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20313. echo "-- dynamic libdecor -> $decor_lib"
  20314. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20315. else
  20316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20317. fi
  20318. saved_cflags=$CFLAGS
  20319. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20321. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20322. if test ${ac_cv_c_undeclared_builtin_options+y}
  20323. then :
  20324. printf %s "(cached) " >&6
  20325. else $as_nop
  20326. ac_save_CFLAGS=$CFLAGS
  20327. ac_cv_c_undeclared_builtin_options='cannot detect'
  20328. for ac_arg in '' -fno-builtin; do
  20329. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20330. # This test program should *not* compile successfully.
  20331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20332. /* end confdefs.h. */
  20333. int
  20334. main (void)
  20335. {
  20336. (void) strchr;
  20337. ;
  20338. return 0;
  20339. }
  20340. _ACEOF
  20341. if ac_fn_c_try_compile "$LINENO"
  20342. then :
  20343. else $as_nop
  20344. # This test program should compile successfully.
  20345. # No library function is consistently available on
  20346. # freestanding implementations, so test against a dummy
  20347. # declaration. Include always-available headers on the
  20348. # off chance that they somehow elicit warnings.
  20349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20350. /* end confdefs.h. */
  20351. #include <float.h>
  20352. #include <limits.h>
  20353. #include <stdarg.h>
  20354. #include <stddef.h>
  20355. extern void ac_decl (int, char *);
  20356. int
  20357. main (void)
  20358. {
  20359. (void) ac_decl (0, (char *) 0);
  20360. (void) ac_decl;
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. if ac_fn_c_try_compile "$LINENO"
  20366. then :
  20367. if test x"$ac_arg" = x
  20368. then :
  20369. ac_cv_c_undeclared_builtin_options='none needed'
  20370. else $as_nop
  20371. ac_cv_c_undeclared_builtin_options=$ac_arg
  20372. fi
  20373. break
  20374. fi
  20375. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20376. fi
  20377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20378. done
  20379. CFLAGS=$ac_save_CFLAGS
  20380. fi
  20381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20382. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20383. case $ac_cv_c_undeclared_builtin_options in #(
  20384. 'cannot detect') :
  20385. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20386. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20387. as_fn_error $? "cannot make $CC report undeclared builtins
  20388. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20389. 'none needed') :
  20390. ac_c_undeclared_builtin_options='' ;; #(
  20391. *) :
  20392. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20393. esac
  20394. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20395. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20396. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20397. then :
  20398. ac_have_decl=1
  20399. else $as_nop
  20400. ac_have_decl=0
  20401. fi
  20402. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20403. if test $ac_have_decl = 1
  20404. then :
  20405. libdecor_get_min_max=yes
  20406. fi
  20407. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20408. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20409. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20410. then :
  20411. ac_have_decl=1
  20412. else $as_nop
  20413. ac_have_decl=0
  20414. fi
  20415. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20416. if test $ac_have_decl = 1
  20417. then :
  20418. libdecor_get_min_max=yes
  20419. fi
  20420. if test x$libdecor_get_min_max = xyes; then
  20421. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20422. fi
  20423. CFLAGS="$saved_cflags"
  20424. fi
  20425. fi
  20426. fi
  20427. fi
  20428. }
  20429. CheckNativeClient()
  20430. {
  20431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20432. /* end confdefs.h. */
  20433. #if !defined(__native_client__)
  20434. #error "NO NACL"
  20435. #endif
  20436. int
  20437. main (void)
  20438. {
  20439. ;
  20440. return 0;
  20441. }
  20442. _ACEOF
  20443. if ac_fn_c_try_compile "$LINENO"
  20444. then :
  20445. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20446. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20447. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20448. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20449. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20450. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20451. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20452. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20453. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20454. SUMMARY_audio="${SUMMARY_audio} nacl"
  20455. have_audio=yes
  20456. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20457. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20458. have_video=yes
  20459. fi
  20460. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20461. }
  20462. CheckRPI()
  20463. {
  20464. # Check whether --enable-video-rpi was given.
  20465. if test ${enable_video_rpi+y}
  20466. then :
  20467. enableval=$enable_video_rpi;
  20468. else $as_nop
  20469. enable_video_rpi=yes
  20470. fi
  20471. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20472. pkg_failed=no
  20473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host" >&5
  20474. printf %s "checking for bcm_host... " >&6; }
  20475. if test -n "$RPI_CFLAGS"; then
  20476. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20477. elif test -n "$PKG_CONFIG"; then
  20478. if test -n "$PKG_CONFIG" && \
  20479. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20480. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20481. ac_status=$?
  20482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20483. test $ac_status = 0; }; then
  20484. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host" 2>/dev/null`
  20485. test "x$?" != "x0" && pkg_failed=yes
  20486. else
  20487. pkg_failed=yes
  20488. fi
  20489. else
  20490. pkg_failed=untried
  20491. fi
  20492. if test -n "$RPI_LIBS"; then
  20493. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20494. elif test -n "$PKG_CONFIG"; then
  20495. if test -n "$PKG_CONFIG" && \
  20496. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host\""; } >&5
  20497. ($PKG_CONFIG --exists --print-errors "bcm_host") 2>&5
  20498. ac_status=$?
  20499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20500. test $ac_status = 0; }; then
  20501. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host" 2>/dev/null`
  20502. test "x$?" != "x0" && pkg_failed=yes
  20503. else
  20504. pkg_failed=yes
  20505. fi
  20506. else
  20507. pkg_failed=untried
  20508. fi
  20509. if test $pkg_failed = yes; then
  20510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20511. printf "%s\n" "no" >&6; }
  20512. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20513. _pkg_short_errors_supported=yes
  20514. else
  20515. _pkg_short_errors_supported=no
  20516. fi
  20517. if test $_pkg_short_errors_supported = yes; then
  20518. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host" 2>&1`
  20519. else
  20520. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host" 2>&1`
  20521. fi
  20522. # Put the nasty error message in config.log where it belongs
  20523. echo "$RPI_PKG_ERRORS" >&5
  20524. video_rpi=no
  20525. elif test $pkg_failed = untried; then
  20526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20527. printf "%s\n" "no" >&6; }
  20528. video_rpi=no
  20529. else
  20530. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20531. RPI_LIBS=$pkg_cv_RPI_LIBS
  20532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20533. printf "%s\n" "yes" >&6; }
  20534. video_rpi=yes
  20535. fi
  20536. pkg_failed=no
  20537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brcmegl" >&5
  20538. printf %s "checking for brcmegl... " >&6; }
  20539. if test -n "$RPI_EGL_CFLAGS"; then
  20540. pkg_cv_RPI_EGL_CFLAGS="$RPI_EGL_CFLAGS"
  20541. elif test -n "$PKG_CONFIG"; then
  20542. if test -n "$PKG_CONFIG" && \
  20543. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20544. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20545. ac_status=$?
  20546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20547. test $ac_status = 0; }; then
  20548. pkg_cv_RPI_EGL_CFLAGS=`$PKG_CONFIG --cflags "brcmegl" 2>/dev/null`
  20549. test "x$?" != "x0" && pkg_failed=yes
  20550. else
  20551. pkg_failed=yes
  20552. fi
  20553. else
  20554. pkg_failed=untried
  20555. fi
  20556. if test -n "$RPI_EGL_LIBS"; then
  20557. pkg_cv_RPI_EGL_LIBS="$RPI_EGL_LIBS"
  20558. elif test -n "$PKG_CONFIG"; then
  20559. if test -n "$PKG_CONFIG" && \
  20560. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"brcmegl\""; } >&5
  20561. ($PKG_CONFIG --exists --print-errors "brcmegl") 2>&5
  20562. ac_status=$?
  20563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20564. test $ac_status = 0; }; then
  20565. pkg_cv_RPI_EGL_LIBS=`$PKG_CONFIG --libs "brcmegl" 2>/dev/null`
  20566. test "x$?" != "x0" && pkg_failed=yes
  20567. else
  20568. pkg_failed=yes
  20569. fi
  20570. else
  20571. pkg_failed=untried
  20572. fi
  20573. if test $pkg_failed = yes; then
  20574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20575. printf "%s\n" "no" >&6; }
  20576. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20577. _pkg_short_errors_supported=yes
  20578. else
  20579. _pkg_short_errors_supported=no
  20580. fi
  20581. if test $_pkg_short_errors_supported = yes; then
  20582. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "brcmegl" 2>&1`
  20583. else
  20584. RPI_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "brcmegl" 2>&1`
  20585. fi
  20586. # Put the nasty error message in config.log where it belongs
  20587. echo "$RPI_EGL_PKG_ERRORS" >&5
  20588. video_rpi_egl=no
  20589. elif test $pkg_failed = untried; then
  20590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20591. printf "%s\n" "no" >&6; }
  20592. video_rpi_egl=no
  20593. else
  20594. RPI_EGL_CFLAGS=$pkg_cv_RPI_EGL_CFLAGS
  20595. RPI_EGL_LIBS=$pkg_cv_RPI_EGL_LIBS
  20596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20597. printf "%s\n" "yes" >&6; }
  20598. video_rpi_egl=yes
  20599. fi
  20600. if test x$video_rpi = xno; then
  20601. if test x$ARCH = xnetbsd; then
  20602. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20603. RPI_LIBS="-L/usr/pkg/lib -lbcm_host"
  20604. else
  20605. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20606. RPI_LIBS="-L/opt/vc/lib -lbcm_host"
  20607. fi
  20608. fi
  20609. if test x$video_rpi_egl = xno; then
  20610. if test x$ARCH = xnetbsd; then
  20611. RPI_EGL_LIBS="-Wl,-R/usr/pkg/lib"
  20612. else
  20613. RPI_EGL_LIBS="-Wl,-rpath,/opt/vc/lib"
  20614. fi
  20615. fi
  20616. # Save the original compiler flags and libraries
  20617. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20618. # Add the Raspberry Pi compiler flags and libraries
  20619. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_EGL_LIBS $RPI_LIBS"
  20620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 0-3" >&5
  20621. printf %s "checking for Raspberry Pi 0-3... " >&6; }
  20622. have_video_rpi=no
  20623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20624. /* end confdefs.h. */
  20625. #include <bcm_host.h>
  20626. int
  20627. main (void)
  20628. {
  20629. bcm_host_init();
  20630. ;
  20631. return 0;
  20632. }
  20633. _ACEOF
  20634. if ac_fn_c_try_link "$LINENO"
  20635. then :
  20636. have_video_rpi=yes
  20637. fi
  20638. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20639. conftest$ac_exeext conftest.$ac_ext
  20640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20641. printf "%s\n" "$have_video_rpi" >&6; }
  20642. # Restore the compiler flags and libraries
  20643. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20644. if test x$have_video_rpi = xyes; then
  20645. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20646. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20647. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_EGL_LIBS $RPI_LIBS"
  20649. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20650. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20651. SUMMARY_video="${SUMMARY_video} rpi"
  20652. have_video=yes
  20653. fi
  20654. fi
  20655. }
  20656. CheckX11()
  20657. {
  20658. # Check whether --enable-video-x11 was given.
  20659. if test ${enable_video_x11+y}
  20660. then :
  20661. enableval=$enable_video_x11;
  20662. else $as_nop
  20663. enable_video_x11=yes
  20664. case "$host" in
  20665. *-*-darwin*|*-ios-*)
  20666. enable_video_x11=no
  20667. ;;
  20668. esac
  20669. fi
  20670. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20671. case "$host" in
  20672. *-*-darwin*)
  20673. # This isn't necessary for X11, but fixes GLX detection
  20674. if test "x$x_includes" = xNONE && \
  20675. test "x$x_libraries" = xNONE && \
  20676. test -d /opt/X11/include && \
  20677. test -d /opt/X11/lib; then
  20678. x_includes="/opt/X11/include"
  20679. x_libraries="/opt/X11/lib"
  20680. fi
  20681. ;;
  20682. esac
  20683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20684. printf %s "checking for X... " >&6; }
  20685. # Check whether --with-x was given.
  20686. if test ${with_x+y}
  20687. then :
  20688. withval=$with_x;
  20689. fi
  20690. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20691. if test "x$with_x" = xno; then
  20692. # The user explicitly disabled X.
  20693. have_x=disabled
  20694. else
  20695. case $x_includes,$x_libraries in #(
  20696. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20697. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20698. then :
  20699. printf %s "(cached) " >&6
  20700. else $as_nop
  20701. # One or both of the vars are not set, and there is no cached value.
  20702. ac_x_includes=no
  20703. ac_x_libraries=no
  20704. # Do we need to do anything special at all?
  20705. ac_save_LIBS=$LIBS
  20706. LIBS="-lX11 $LIBS"
  20707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20708. /* end confdefs.h. */
  20709. #include <X11/Xlib.h>
  20710. int
  20711. main (void)
  20712. {
  20713. XrmInitialize ()
  20714. ;
  20715. return 0;
  20716. }
  20717. _ACEOF
  20718. if ac_fn_c_try_link "$LINENO"
  20719. then :
  20720. # We can compile and link X programs with no special options.
  20721. ac_x_includes=
  20722. ac_x_libraries=
  20723. fi
  20724. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20725. conftest$ac_exeext conftest.$ac_ext
  20726. LIBS="$ac_save_LIBS"
  20727. # If that didn't work, only try xmkmf and file system searches
  20728. # for native compilation.
  20729. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20730. then :
  20731. rm -f -r conftest.dir
  20732. if mkdir conftest.dir; then
  20733. cd conftest.dir
  20734. cat >Imakefile <<'_ACEOF'
  20735. incroot:
  20736. @echo incroot='${INCROOT}'
  20737. usrlibdir:
  20738. @echo usrlibdir='${USRLIBDIR}'
  20739. libdir:
  20740. @echo libdir='${LIBDIR}'
  20741. _ACEOF
  20742. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20743. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20744. for ac_var in incroot usrlibdir libdir; do
  20745. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20746. done
  20747. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20748. for ac_extension in a so sl dylib la dll; do
  20749. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20750. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20751. ac_im_usrlibdir=$ac_im_libdir; break
  20752. fi
  20753. done
  20754. # Screen out bogus values from the imake configuration. They are
  20755. # bogus both because they are the default anyway, and because
  20756. # using them would break gcc on systems where it needs fixed includes.
  20757. case $ac_im_incroot in
  20758. /usr/include) ac_x_includes= ;;
  20759. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20760. esac
  20761. case $ac_im_usrlibdir in
  20762. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20763. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20764. esac
  20765. fi
  20766. cd ..
  20767. rm -f -r conftest.dir
  20768. fi
  20769. # Standard set of common directories for X headers.
  20770. # Check X11 before X11Rn because it is often a symlink to the current release.
  20771. ac_x_header_dirs='
  20772. /usr/X11/include
  20773. /usr/X11R7/include
  20774. /usr/X11R6/include
  20775. /usr/X11R5/include
  20776. /usr/X11R4/include
  20777. /usr/include/X11
  20778. /usr/include/X11R7
  20779. /usr/include/X11R6
  20780. /usr/include/X11R5
  20781. /usr/include/X11R4
  20782. /usr/local/X11/include
  20783. /usr/local/X11R7/include
  20784. /usr/local/X11R6/include
  20785. /usr/local/X11R5/include
  20786. /usr/local/X11R4/include
  20787. /usr/local/include/X11
  20788. /usr/local/include/X11R7
  20789. /usr/local/include/X11R6
  20790. /usr/local/include/X11R5
  20791. /usr/local/include/X11R4
  20792. /opt/X11/include
  20793. /usr/X386/include
  20794. /usr/x386/include
  20795. /usr/XFree86/include/X11
  20796. /usr/include
  20797. /usr/local/include
  20798. /usr/unsupported/include
  20799. /usr/athena/include
  20800. /usr/local/x11r5/include
  20801. /usr/lpp/Xamples/include
  20802. /usr/openwin/include
  20803. /usr/openwin/share/include'
  20804. if test "$ac_x_includes" = no; then
  20805. # Guess where to find include files, by looking for Xlib.h.
  20806. # First, try using that file with no special directory specified.
  20807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20808. /* end confdefs.h. */
  20809. #include <X11/Xlib.h>
  20810. _ACEOF
  20811. if ac_fn_c_try_cpp "$LINENO"
  20812. then :
  20813. # We can compile using X headers with no special include directory.
  20814. ac_x_includes=
  20815. else $as_nop
  20816. for ac_dir in $ac_x_header_dirs; do
  20817. if test -r "$ac_dir/X11/Xlib.h"; then
  20818. ac_x_includes=$ac_dir
  20819. break
  20820. fi
  20821. done
  20822. fi
  20823. rm -f conftest.err conftest.i conftest.$ac_ext
  20824. fi # $ac_x_includes = no
  20825. if test "$ac_x_libraries" = no; then
  20826. # Check for the libraries.
  20827. # See if we find them without any special options.
  20828. # Don't add to $LIBS permanently.
  20829. ac_save_LIBS=$LIBS
  20830. LIBS="-lX11 $LIBS"
  20831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20832. /* end confdefs.h. */
  20833. #include <X11/Xlib.h>
  20834. int
  20835. main (void)
  20836. {
  20837. XrmInitialize ()
  20838. ;
  20839. return 0;
  20840. }
  20841. _ACEOF
  20842. if ac_fn_c_try_link "$LINENO"
  20843. then :
  20844. LIBS=$ac_save_LIBS
  20845. # We can link X programs with no special library path.
  20846. ac_x_libraries=
  20847. else $as_nop
  20848. LIBS=$ac_save_LIBS
  20849. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20850. do
  20851. # Don't even attempt the hair of trying to link an X program!
  20852. for ac_extension in a so sl dylib la dll; do
  20853. if test -r "$ac_dir/libX11.$ac_extension"; then
  20854. ac_x_libraries=$ac_dir
  20855. break 2
  20856. fi
  20857. done
  20858. done
  20859. fi
  20860. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20861. conftest$ac_exeext conftest.$ac_ext
  20862. fi # $ac_x_libraries = no
  20863. fi
  20864. # Record the results.
  20865. case $ac_x_includes,$ac_x_libraries in #(
  20866. no,* | *,no | *\'*) :
  20867. # Didn't find X, or a directory has "'" in its name.
  20868. ac_cv_have_x="have_x=no" ;; #(
  20869. *) :
  20870. # Record where we found X for the cache.
  20871. ac_cv_have_x="have_x=yes\
  20872. ac_x_includes='$ac_x_includes'\
  20873. ac_x_libraries='$ac_x_libraries'" ;;
  20874. esac
  20875. fi
  20876. ;; #(
  20877. *) have_x=yes;;
  20878. esac
  20879. eval "$ac_cv_have_x"
  20880. fi # $with_x != no
  20881. if test "$have_x" != yes; then
  20882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20883. printf "%s\n" "$have_x" >&6; }
  20884. no_x=yes
  20885. else
  20886. # If each of the values was on the command line, it overrides each guess.
  20887. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20888. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20889. # Update the cache value to reflect the command line values.
  20890. ac_cv_have_x="have_x=yes\
  20891. ac_x_includes='$x_includes'\
  20892. ac_x_libraries='$x_libraries'"
  20893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20894. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20895. fi
  20896. if test "$no_x" = yes; then
  20897. # Not all programs may use this symbol, but it does not hurt to define it.
  20898. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20899. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20900. else
  20901. if test -n "$x_includes"; then
  20902. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20903. fi
  20904. # It would also be nice to do this for all -L options, not just this one.
  20905. if test -n "$x_libraries"; then
  20906. X_LIBS="$X_LIBS -L$x_libraries"
  20907. # For Solaris; some versions of Sun CC require a space after -R and
  20908. # others require no space. Words are not sufficient . . . .
  20909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20910. printf %s "checking whether -R must be followed by a space... " >&6; }
  20911. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20912. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20913. ac_c_werror_flag=yes
  20914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20915. /* end confdefs.h. */
  20916. int
  20917. main (void)
  20918. {
  20919. ;
  20920. return 0;
  20921. }
  20922. _ACEOF
  20923. if ac_fn_c_try_link "$LINENO"
  20924. then :
  20925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20926. printf "%s\n" "no" >&6; }
  20927. X_LIBS="$X_LIBS -R$x_libraries"
  20928. else $as_nop
  20929. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20931. /* end confdefs.h. */
  20932. int
  20933. main (void)
  20934. {
  20935. ;
  20936. return 0;
  20937. }
  20938. _ACEOF
  20939. if ac_fn_c_try_link "$LINENO"
  20940. then :
  20941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20942. printf "%s\n" "yes" >&6; }
  20943. X_LIBS="$X_LIBS -R $x_libraries"
  20944. else $as_nop
  20945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20946. printf "%s\n" "neither works" >&6; }
  20947. fi
  20948. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20949. conftest$ac_exeext conftest.$ac_ext
  20950. fi
  20951. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20952. conftest$ac_exeext conftest.$ac_ext
  20953. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20954. LIBS=$ac_xsave_LIBS
  20955. fi
  20956. # Check for system-dependent libraries X programs must link with.
  20957. # Do this before checking for the system-independent R6 libraries
  20958. # (-lICE), since we may need -lsocket or whatever for X linking.
  20959. if test "$ISC" = yes; then
  20960. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20961. else
  20962. # Martyn Johnson says this is needed for Ultrix, if the X
  20963. # libraries were built with DECnet support. And Karl Berry says
  20964. # the Alpha needs dnet_stub (dnet does not exist).
  20965. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20967. /* end confdefs.h. */
  20968. /* Override any GCC internal prototype to avoid an error.
  20969. Use char because int might match the return type of a GCC
  20970. builtin and then its argument prototype would still apply. */
  20971. char XOpenDisplay ();
  20972. int
  20973. main (void)
  20974. {
  20975. return XOpenDisplay ();
  20976. ;
  20977. return 0;
  20978. }
  20979. _ACEOF
  20980. if ac_fn_c_try_link "$LINENO"
  20981. then :
  20982. else $as_nop
  20983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20984. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20985. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20986. then :
  20987. printf %s "(cached) " >&6
  20988. else $as_nop
  20989. ac_check_lib_save_LIBS=$LIBS
  20990. LIBS="-ldnet $LIBS"
  20991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20992. /* end confdefs.h. */
  20993. /* Override any GCC internal prototype to avoid an error.
  20994. Use char because int might match the return type of a GCC
  20995. builtin and then its argument prototype would still apply. */
  20996. char dnet_ntoa ();
  20997. int
  20998. main (void)
  20999. {
  21000. return dnet_ntoa ();
  21001. ;
  21002. return 0;
  21003. }
  21004. _ACEOF
  21005. if ac_fn_c_try_link "$LINENO"
  21006. then :
  21007. ac_cv_lib_dnet_dnet_ntoa=yes
  21008. else $as_nop
  21009. ac_cv_lib_dnet_dnet_ntoa=no
  21010. fi
  21011. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21012. conftest$ac_exeext conftest.$ac_ext
  21013. LIBS=$ac_check_lib_save_LIBS
  21014. fi
  21015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  21016. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  21017. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  21018. then :
  21019. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  21020. fi
  21021. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  21022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  21023. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  21024. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  21025. then :
  21026. printf %s "(cached) " >&6
  21027. else $as_nop
  21028. ac_check_lib_save_LIBS=$LIBS
  21029. LIBS="-ldnet_stub $LIBS"
  21030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21031. /* end confdefs.h. */
  21032. /* Override any GCC internal prototype to avoid an error.
  21033. Use char because int might match the return type of a GCC
  21034. builtin and then its argument prototype would still apply. */
  21035. char dnet_ntoa ();
  21036. int
  21037. main (void)
  21038. {
  21039. return dnet_ntoa ();
  21040. ;
  21041. return 0;
  21042. }
  21043. _ACEOF
  21044. if ac_fn_c_try_link "$LINENO"
  21045. then :
  21046. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  21047. else $as_nop
  21048. ac_cv_lib_dnet_stub_dnet_ntoa=no
  21049. fi
  21050. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21051. conftest$ac_exeext conftest.$ac_ext
  21052. LIBS=$ac_check_lib_save_LIBS
  21053. fi
  21054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  21055. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  21056. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  21057. then :
  21058. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  21059. fi
  21060. fi
  21061. fi
  21062. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21063. conftest$ac_exeext conftest.$ac_ext
  21064. LIBS="$ac_xsave_LIBS"
  21065. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  21066. # to get the SysV transport functions.
  21067. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  21068. # needs -lnsl.
  21069. # The nsl library prevents programs from opening the X display
  21070. # on Irix 5.2, according to T.E. Dickey.
  21071. # The functions gethostbyname, getservbyname, and inet_addr are
  21072. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  21073. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  21074. if test "x$ac_cv_func_gethostbyname" = xyes
  21075. then :
  21076. fi
  21077. if test $ac_cv_func_gethostbyname = no; then
  21078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  21079. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  21080. if test ${ac_cv_lib_nsl_gethostbyname+y}
  21081. then :
  21082. printf %s "(cached) " >&6
  21083. else $as_nop
  21084. ac_check_lib_save_LIBS=$LIBS
  21085. LIBS="-lnsl $LIBS"
  21086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21087. /* end confdefs.h. */
  21088. /* Override any GCC internal prototype to avoid an error.
  21089. Use char because int might match the return type of a GCC
  21090. builtin and then its argument prototype would still apply. */
  21091. char gethostbyname ();
  21092. int
  21093. main (void)
  21094. {
  21095. return gethostbyname ();
  21096. ;
  21097. return 0;
  21098. }
  21099. _ACEOF
  21100. if ac_fn_c_try_link "$LINENO"
  21101. then :
  21102. ac_cv_lib_nsl_gethostbyname=yes
  21103. else $as_nop
  21104. ac_cv_lib_nsl_gethostbyname=no
  21105. fi
  21106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21107. conftest$ac_exeext conftest.$ac_ext
  21108. LIBS=$ac_check_lib_save_LIBS
  21109. fi
  21110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21111. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21112. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21113. then :
  21114. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21115. fi
  21116. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21118. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21119. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21120. then :
  21121. printf %s "(cached) " >&6
  21122. else $as_nop
  21123. ac_check_lib_save_LIBS=$LIBS
  21124. LIBS="-lbsd $LIBS"
  21125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21126. /* end confdefs.h. */
  21127. /* Override any GCC internal prototype to avoid an error.
  21128. Use char because int might match the return type of a GCC
  21129. builtin and then its argument prototype would still apply. */
  21130. char gethostbyname ();
  21131. int
  21132. main (void)
  21133. {
  21134. return gethostbyname ();
  21135. ;
  21136. return 0;
  21137. }
  21138. _ACEOF
  21139. if ac_fn_c_try_link "$LINENO"
  21140. then :
  21141. ac_cv_lib_bsd_gethostbyname=yes
  21142. else $as_nop
  21143. ac_cv_lib_bsd_gethostbyname=no
  21144. fi
  21145. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21146. conftest$ac_exeext conftest.$ac_ext
  21147. LIBS=$ac_check_lib_save_LIBS
  21148. fi
  21149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21150. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21151. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21152. then :
  21153. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21154. fi
  21155. fi
  21156. fi
  21157. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21158. # socket/setsockopt and other routines are undefined under SCO ODT
  21159. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21160. # on later versions), says Simon Leinen: it contains gethostby*
  21161. # variants that don't use the name server (or something). -lsocket
  21162. # must be given before -lnsl if both are needed. We assume that
  21163. # if connect needs -lnsl, so does gethostbyname.
  21164. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21165. if test "x$ac_cv_func_connect" = xyes
  21166. then :
  21167. fi
  21168. if test $ac_cv_func_connect = no; then
  21169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21170. printf %s "checking for connect in -lsocket... " >&6; }
  21171. if test ${ac_cv_lib_socket_connect+y}
  21172. then :
  21173. printf %s "(cached) " >&6
  21174. else $as_nop
  21175. ac_check_lib_save_LIBS=$LIBS
  21176. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21178. /* end confdefs.h. */
  21179. /* Override any GCC internal prototype to avoid an error.
  21180. Use char because int might match the return type of a GCC
  21181. builtin and then its argument prototype would still apply. */
  21182. char connect ();
  21183. int
  21184. main (void)
  21185. {
  21186. return connect ();
  21187. ;
  21188. return 0;
  21189. }
  21190. _ACEOF
  21191. if ac_fn_c_try_link "$LINENO"
  21192. then :
  21193. ac_cv_lib_socket_connect=yes
  21194. else $as_nop
  21195. ac_cv_lib_socket_connect=no
  21196. fi
  21197. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21198. conftest$ac_exeext conftest.$ac_ext
  21199. LIBS=$ac_check_lib_save_LIBS
  21200. fi
  21201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21202. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21203. if test "x$ac_cv_lib_socket_connect" = xyes
  21204. then :
  21205. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21206. fi
  21207. fi
  21208. # Guillermo Gomez says -lposix is necessary on A/UX.
  21209. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21210. if test "x$ac_cv_func_remove" = xyes
  21211. then :
  21212. fi
  21213. if test $ac_cv_func_remove = no; then
  21214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21215. printf %s "checking for remove in -lposix... " >&6; }
  21216. if test ${ac_cv_lib_posix_remove+y}
  21217. then :
  21218. printf %s "(cached) " >&6
  21219. else $as_nop
  21220. ac_check_lib_save_LIBS=$LIBS
  21221. LIBS="-lposix $LIBS"
  21222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21223. /* end confdefs.h. */
  21224. /* Override any GCC internal prototype to avoid an error.
  21225. Use char because int might match the return type of a GCC
  21226. builtin and then its argument prototype would still apply. */
  21227. char remove ();
  21228. int
  21229. main (void)
  21230. {
  21231. return remove ();
  21232. ;
  21233. return 0;
  21234. }
  21235. _ACEOF
  21236. if ac_fn_c_try_link "$LINENO"
  21237. then :
  21238. ac_cv_lib_posix_remove=yes
  21239. else $as_nop
  21240. ac_cv_lib_posix_remove=no
  21241. fi
  21242. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21243. conftest$ac_exeext conftest.$ac_ext
  21244. LIBS=$ac_check_lib_save_LIBS
  21245. fi
  21246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21247. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21248. if test "x$ac_cv_lib_posix_remove" = xyes
  21249. then :
  21250. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21251. fi
  21252. fi
  21253. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21254. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21255. if test "x$ac_cv_func_shmat" = xyes
  21256. then :
  21257. fi
  21258. if test $ac_cv_func_shmat = no; then
  21259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21260. printf %s "checking for shmat in -lipc... " >&6; }
  21261. if test ${ac_cv_lib_ipc_shmat+y}
  21262. then :
  21263. printf %s "(cached) " >&6
  21264. else $as_nop
  21265. ac_check_lib_save_LIBS=$LIBS
  21266. LIBS="-lipc $LIBS"
  21267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21268. /* end confdefs.h. */
  21269. /* Override any GCC internal prototype to avoid an error.
  21270. Use char because int might match the return type of a GCC
  21271. builtin and then its argument prototype would still apply. */
  21272. char shmat ();
  21273. int
  21274. main (void)
  21275. {
  21276. return shmat ();
  21277. ;
  21278. return 0;
  21279. }
  21280. _ACEOF
  21281. if ac_fn_c_try_link "$LINENO"
  21282. then :
  21283. ac_cv_lib_ipc_shmat=yes
  21284. else $as_nop
  21285. ac_cv_lib_ipc_shmat=no
  21286. fi
  21287. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21288. conftest$ac_exeext conftest.$ac_ext
  21289. LIBS=$ac_check_lib_save_LIBS
  21290. fi
  21291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21292. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21293. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21294. then :
  21295. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21296. fi
  21297. fi
  21298. fi
  21299. # Check for libraries that X11R6 Xt/Xaw programs need.
  21300. ac_save_LDFLAGS=$LDFLAGS
  21301. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21302. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21303. # check for ICE first), but we must link in the order -lSM -lICE or
  21304. # we get undefined symbols. So assume we have SM if we have ICE.
  21305. # These have to be linked with before -lX11, unlike the other
  21306. # libraries we check for below, so use a different variable.
  21307. # John Interrante, Karl Berry
  21308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21309. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21310. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21311. then :
  21312. printf %s "(cached) " >&6
  21313. else $as_nop
  21314. ac_check_lib_save_LIBS=$LIBS
  21315. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21317. /* end confdefs.h. */
  21318. /* Override any GCC internal prototype to avoid an error.
  21319. Use char because int might match the return type of a GCC
  21320. builtin and then its argument prototype would still apply. */
  21321. char IceConnectionNumber ();
  21322. int
  21323. main (void)
  21324. {
  21325. return IceConnectionNumber ();
  21326. ;
  21327. return 0;
  21328. }
  21329. _ACEOF
  21330. if ac_fn_c_try_link "$LINENO"
  21331. then :
  21332. ac_cv_lib_ICE_IceConnectionNumber=yes
  21333. else $as_nop
  21334. ac_cv_lib_ICE_IceConnectionNumber=no
  21335. fi
  21336. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21337. conftest$ac_exeext conftest.$ac_ext
  21338. LIBS=$ac_check_lib_save_LIBS
  21339. fi
  21340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21341. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21342. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21343. then :
  21344. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21345. fi
  21346. LDFLAGS=$ac_save_LDFLAGS
  21347. fi
  21348. if test x$have_x = xyes; then
  21349. # Check whether --enable-x11-shared was given.
  21350. if test ${enable_x11_shared+y}
  21351. then :
  21352. enableval=$enable_x11_shared;
  21353. else $as_nop
  21354. enable_x11_shared=maybe
  21355. fi
  21356. case "$host" in
  21357. *-*-darwin*)
  21358. # Apple now puts this in /opt/X11
  21359. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21360. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21361. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21362. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21363. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21364. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21365. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21366. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21367. ;;
  21368. *-*-openbsd*)
  21369. x11_lib='libX11.so'
  21370. x11ext_lib='libXext.so'
  21371. xcursor_lib='libXcursor.so'
  21372. xinput_lib='libXi.so'
  21373. xfixes_lib='libXfixes.so'
  21374. xrandr_lib='libXrandr.so'
  21375. xrender_lib='libXrender.so'
  21376. xss_lib='libXss.so'
  21377. ;;
  21378. *)
  21379. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21380. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21381. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21382. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21383. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21384. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21385. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21386. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21387. ;;
  21388. esac
  21389. if test x$ac_cv_func_shmat != xyes; then
  21390. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21391. fi
  21392. CFLAGS="$CFLAGS $X_CFLAGS"
  21393. LDFLAGS="$LDFLAGS $X_LIBS"
  21394. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21395. #include <X11/Xproto.h>
  21396. "
  21397. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21398. then :
  21399. have_xext_h_hdr=yes
  21400. else $as_nop
  21401. have_xext_h_hdr=no
  21402. fi
  21403. if test x$have_xext_h_hdr != xyes; then
  21404. as_fn_error $? "
  21405. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21406. " "$LINENO" 5
  21407. fi
  21408. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21409. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21410. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21411. # Needed so SDL applications can include SDL_syswm.h
  21412. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21413. if test x$enable_x11_shared = xmaybe; then
  21414. enable_x11_shared=yes
  21415. fi
  21416. if test x$have_loadso != xyes && \
  21417. test x$enable_x11_shared = xyes; then
  21418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21419. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21420. enable_x11_shared=no
  21421. fi
  21422. if test x$have_loadso = xyes && \
  21423. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21424. echo "-- dynamic libX11 -> $x11_lib"
  21425. echo "-- dynamic libX11ext -> $x11ext_lib"
  21426. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21427. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21428. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21429. else
  21430. enable_x11_shared=no
  21431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21432. SUMMARY_video="${SUMMARY_video} x11"
  21433. fi
  21434. have_video=yes
  21435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21436. printf %s "checking for XGenericEvent... " >&6; }
  21437. have_XGenericEvent=no
  21438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21439. /* end confdefs.h. */
  21440. #include <X11/Xlib.h>
  21441. int
  21442. main (void)
  21443. {
  21444. Display *display;
  21445. XEvent event;
  21446. XGenericEventCookie *cookie = &event.xcookie;
  21447. XNextEvent(display, &event);
  21448. XGetEventData(display, cookie);
  21449. XFreeEventData(display, cookie);
  21450. ;
  21451. return 0;
  21452. }
  21453. _ACEOF
  21454. if ac_fn_c_try_compile "$LINENO"
  21455. then :
  21456. have_XGenericEvent=yes
  21457. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21458. fi
  21459. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21461. printf "%s\n" "$have_XGenericEvent" >&6; }
  21462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21463. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21464. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21465. then :
  21466. printf %s "(cached) " >&6
  21467. else $as_nop
  21468. ac_check_lib_save_LIBS=$LIBS
  21469. LIBS="-lX11 $LIBS"
  21470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21471. /* end confdefs.h. */
  21472. /* Override any GCC internal prototype to avoid an error.
  21473. Use char because int might match the return type of a GCC
  21474. builtin and then its argument prototype would still apply. */
  21475. char XkbKeycodeToKeysym ();
  21476. int
  21477. main (void)
  21478. {
  21479. return XkbKeycodeToKeysym ();
  21480. ;
  21481. return 0;
  21482. }
  21483. _ACEOF
  21484. if ac_fn_c_try_link "$LINENO"
  21485. then :
  21486. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21487. else $as_nop
  21488. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21489. fi
  21490. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21491. conftest$ac_exeext conftest.$ac_ext
  21492. LIBS=$ac_check_lib_save_LIBS
  21493. fi
  21494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21495. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21496. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21497. then :
  21498. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21499. fi
  21500. # Check whether --enable-video-x11-xcursor was given.
  21501. if test ${enable_video_x11_xcursor+y}
  21502. then :
  21503. enableval=$enable_video_x11_xcursor;
  21504. else $as_nop
  21505. enable_video_x11_xcursor=yes
  21506. fi
  21507. if test x$enable_video_x11_xcursor = xyes; then
  21508. definitely_enable_video_x11_xcursor=no
  21509. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21510. "
  21511. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21512. then :
  21513. have_xcursor_h_hdr=yes
  21514. else $as_nop
  21515. have_xcursor_h_hdr=no
  21516. fi
  21517. if test x$have_xcursor_h_hdr = xyes; then
  21518. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21519. echo "-- dynamic libXcursor -> $xcursor_lib"
  21520. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21521. definitely_enable_video_x11_xcursor=yes
  21522. else
  21523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21524. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21525. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21526. then :
  21527. printf %s "(cached) " >&6
  21528. else $as_nop
  21529. ac_check_lib_save_LIBS=$LIBS
  21530. LIBS="-lXcursor $LIBS"
  21531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21532. /* end confdefs.h. */
  21533. /* Override any GCC internal prototype to avoid an error.
  21534. Use char because int might match the return type of a GCC
  21535. builtin and then its argument prototype would still apply. */
  21536. char XcursorImageCreate ();
  21537. int
  21538. main (void)
  21539. {
  21540. return XcursorImageCreate ();
  21541. ;
  21542. return 0;
  21543. }
  21544. _ACEOF
  21545. if ac_fn_c_try_link "$LINENO"
  21546. then :
  21547. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21548. else $as_nop
  21549. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21550. fi
  21551. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21552. conftest$ac_exeext conftest.$ac_ext
  21553. LIBS=$ac_check_lib_save_LIBS
  21554. fi
  21555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21556. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21557. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21558. then :
  21559. have_xcursor_lib=yes
  21560. fi
  21561. if test x$have_xcursor_lib = xyes ; then
  21562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21563. definitely_enable_video_x11_xcursor=yes
  21564. fi
  21565. fi
  21566. fi
  21567. fi
  21568. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21569. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21570. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21571. fi
  21572. # Check whether --enable-video-x11-xdbe was given.
  21573. if test ${enable_video_x11_xdbe+y}
  21574. then :
  21575. enableval=$enable_video_x11_xdbe;
  21576. else $as_nop
  21577. enable_video_x11_xdbe=yes
  21578. fi
  21579. if test x$enable_video_x11_xdbe = xyes; then
  21580. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21581. "
  21582. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21583. then :
  21584. have_dbe_h_hdr=yes
  21585. else $as_nop
  21586. have_dbe_h_hdr=no
  21587. fi
  21588. if test x$have_dbe_h_hdr = xyes; then
  21589. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21590. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21591. fi
  21592. fi
  21593. # Check whether --enable-video-x11-xinput was given.
  21594. if test ${enable_video_x11_xinput+y}
  21595. then :
  21596. enableval=$enable_video_x11_xinput;
  21597. else $as_nop
  21598. enable_video_x11_xinput=yes
  21599. fi
  21600. if test x$enable_video_x11_xinput = xyes; then
  21601. definitely_enable_video_x11_xinput=no
  21602. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21603. "
  21604. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21605. then :
  21606. have_xinput_h_hdr=yes
  21607. else $as_nop
  21608. have_xinput_h_hdr=no
  21609. fi
  21610. if test x$have_xinput_h_hdr = xyes; then
  21611. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21612. echo "-- dynamic libXi -> $xinput_lib"
  21613. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21614. definitely_enable_video_x11_xinput=yes
  21615. else
  21616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21617. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21618. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21619. then :
  21620. printf %s "(cached) " >&6
  21621. else $as_nop
  21622. ac_check_lib_save_LIBS=$LIBS
  21623. LIBS="-lXi $LIBS"
  21624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. /* Override any GCC internal prototype to avoid an error.
  21627. Use char because int might match the return type of a GCC
  21628. builtin and then its argument prototype would still apply. */
  21629. char XOpenDevice ();
  21630. int
  21631. main (void)
  21632. {
  21633. return XOpenDevice ();
  21634. ;
  21635. return 0;
  21636. }
  21637. _ACEOF
  21638. if ac_fn_c_try_link "$LINENO"
  21639. then :
  21640. ac_cv_lib_Xi_XOpenDevice=yes
  21641. else $as_nop
  21642. ac_cv_lib_Xi_XOpenDevice=no
  21643. fi
  21644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21645. conftest$ac_exeext conftest.$ac_ext
  21646. LIBS=$ac_check_lib_save_LIBS
  21647. fi
  21648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21649. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21650. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21651. then :
  21652. have_xinput_lib=yes
  21653. fi
  21654. if test x$have_xinput_lib = xyes ; then
  21655. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21656. definitely_enable_video_x11_xinput=yes
  21657. fi
  21658. fi
  21659. fi
  21660. fi
  21661. if test x$definitely_enable_video_x11_xinput = xyes; then
  21662. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21663. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21665. printf %s "checking for xinput2 multitouch... " >&6; }
  21666. have_xinput2_multitouch=no
  21667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21668. /* end confdefs.h. */
  21669. #include <X11/Xlib.h>
  21670. #include <X11/Xproto.h>
  21671. #include <X11/extensions/XInput2.h>
  21672. int
  21673. main (void)
  21674. {
  21675. int event_type = XI_TouchBegin;
  21676. XITouchClassInfo *t;
  21677. ;
  21678. return 0;
  21679. }
  21680. _ACEOF
  21681. if ac_fn_c_try_compile "$LINENO"
  21682. then :
  21683. have_xinput2_multitouch=yes
  21684. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21685. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21686. fi
  21687. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21689. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21690. fi
  21691. # Check whether --enable-video-x11-xfixes was given.
  21692. if test ${enable_video_x11_xfixes+y}
  21693. then :
  21694. enableval=$enable_video_x11_xfixes;
  21695. else $as_nop
  21696. enable_video_x11_xfixes=yes
  21697. fi
  21698. if test x$enable_video_x11_xfixes = xyes; then
  21699. definitely_enable_video_x11_xfixes=no
  21700. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21702. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21704. /* end confdefs.h. */
  21705. #include <X11/Xlib.h>
  21706. #include <X11/Xproto.h>
  21707. #include <X11/extensions/XInput2.h>
  21708. #include <X11/extensions/Xfixes.h>
  21709. int
  21710. main (void)
  21711. {
  21712. BarrierEventID b;
  21713. ;
  21714. return 0;
  21715. }
  21716. _ACEOF
  21717. if ac_fn_c_try_compile "$LINENO"
  21718. then :
  21719. have_xfixes_h_hdr=yes
  21720. else $as_nop
  21721. have_xfixes_h_hdr=no
  21722. fi
  21723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21725. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21726. if test x$have_xfixes_h_hdr = xyes; then
  21727. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21728. echo "-- dynamic libXfixes -> $xfixes_lib"
  21729. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21730. definitely_enable_video_x11_xfixes=yes
  21731. else
  21732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21733. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21734. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21735. then :
  21736. printf %s "(cached) " >&6
  21737. else $as_nop
  21738. ac_check_lib_save_LIBS=$LIBS
  21739. LIBS="-lXfixes $LIBS"
  21740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21741. /* end confdefs.h. */
  21742. /* Override any GCC internal prototype to avoid an error.
  21743. Use char because int might match the return type of a GCC
  21744. builtin and then its argument prototype would still apply. */
  21745. char XFixesCreatePointerBarrier ();
  21746. int
  21747. main (void)
  21748. {
  21749. return XFixesCreatePointerBarrier ();
  21750. ;
  21751. return 0;
  21752. }
  21753. _ACEOF
  21754. if ac_fn_c_try_link "$LINENO"
  21755. then :
  21756. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21757. else $as_nop
  21758. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21759. fi
  21760. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21761. conftest$ac_exeext conftest.$ac_ext
  21762. LIBS=$ac_check_lib_save_LIBS
  21763. fi
  21764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21765. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21766. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21767. then :
  21768. have_xfixes_lib=yes
  21769. fi
  21770. if test x$have_xfixes_lib = xyes ; then
  21771. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21772. definitely_enable_video_x11_xfixes=yes
  21773. fi
  21774. fi
  21775. fi
  21776. fi
  21777. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21778. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21779. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21780. fi
  21781. # Check whether --enable-video-x11-xrandr was given.
  21782. if test ${enable_video_x11_xrandr+y}
  21783. then :
  21784. enableval=$enable_video_x11_xrandr;
  21785. else $as_nop
  21786. enable_video_x11_xrandr=yes
  21787. fi
  21788. if test x$enable_video_x11_xrandr = xyes; then
  21789. definitely_enable_video_x11_xrandr=no
  21790. have_xrandr_h_hdr=no
  21791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21792. /* end confdefs.h. */
  21793. #include <X11/Xlib.h>
  21794. #include <X11/extensions/Xrandr.h>
  21795. int
  21796. main (void)
  21797. {
  21798. XRRScreenResources *res = NULL;
  21799. ;
  21800. return 0;
  21801. }
  21802. _ACEOF
  21803. if ac_fn_c_try_compile "$LINENO"
  21804. then :
  21805. have_xrandr_h_hdr=yes
  21806. fi
  21807. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21808. if test x$have_xrandr_h_hdr = xyes; then
  21809. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21810. echo "-- dynamic libXrandr -> $xrandr_lib"
  21811. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21812. definitely_enable_video_x11_xrandr=yes
  21813. else
  21814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21815. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21816. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21817. then :
  21818. printf %s "(cached) " >&6
  21819. else $as_nop
  21820. ac_check_lib_save_LIBS=$LIBS
  21821. LIBS="-lXrandr $LIBS"
  21822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21823. /* end confdefs.h. */
  21824. /* Override any GCC internal prototype to avoid an error.
  21825. Use char because int might match the return type of a GCC
  21826. builtin and then its argument prototype would still apply. */
  21827. char XRRQueryExtension ();
  21828. int
  21829. main (void)
  21830. {
  21831. return XRRQueryExtension ();
  21832. ;
  21833. return 0;
  21834. }
  21835. _ACEOF
  21836. if ac_fn_c_try_link "$LINENO"
  21837. then :
  21838. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21839. else $as_nop
  21840. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21841. fi
  21842. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21843. conftest$ac_exeext conftest.$ac_ext
  21844. LIBS=$ac_check_lib_save_LIBS
  21845. fi
  21846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21847. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21848. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21849. then :
  21850. have_xrandr_lib=yes
  21851. fi
  21852. if test x$have_xrandr_lib = xyes ; then
  21853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21854. definitely_enable_video_x11_xrandr=yes
  21855. fi
  21856. fi
  21857. fi
  21858. fi
  21859. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21860. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21861. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21862. fi
  21863. # Check whether --enable-video-x11-scrnsaver was given.
  21864. if test ${enable_video_x11_scrnsaver+y}
  21865. then :
  21866. enableval=$enable_video_x11_scrnsaver;
  21867. else $as_nop
  21868. enable_video_x11_scrnsaver=yes
  21869. fi
  21870. if test x$enable_video_x11_scrnsaver = xyes; then
  21871. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21872. "
  21873. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21874. then :
  21875. have_scrnsaver_h_hdr=yes
  21876. else $as_nop
  21877. have_scrnsaver_h_hdr=no
  21878. fi
  21879. if test x$have_scrnsaver_h_hdr = xyes; then
  21880. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21881. echo "-- dynamic libXss -> $xss_lib"
  21882. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21883. definitely_enable_video_x11_scrnsaver=yes
  21884. else
  21885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21886. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21887. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21888. then :
  21889. printf %s "(cached) " >&6
  21890. else $as_nop
  21891. ac_check_lib_save_LIBS=$LIBS
  21892. LIBS="-lXss $LIBS"
  21893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21894. /* end confdefs.h. */
  21895. /* Override any GCC internal prototype to avoid an error.
  21896. Use char because int might match the return type of a GCC
  21897. builtin and then its argument prototype would still apply. */
  21898. char XScreenSaverSuspend ();
  21899. int
  21900. main (void)
  21901. {
  21902. return XScreenSaverSuspend ();
  21903. ;
  21904. return 0;
  21905. }
  21906. _ACEOF
  21907. if ac_fn_c_try_link "$LINENO"
  21908. then :
  21909. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21910. else $as_nop
  21911. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21912. fi
  21913. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21914. conftest$ac_exeext conftest.$ac_ext
  21915. LIBS=$ac_check_lib_save_LIBS
  21916. fi
  21917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21918. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21919. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21920. then :
  21921. have_xss_lib=yes
  21922. fi
  21923. if test x$have_xss_lib = xyes ; then
  21924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21925. definitely_enable_video_x11_scrnsaver=yes
  21926. fi
  21927. fi
  21928. fi
  21929. fi
  21930. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21931. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21932. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21933. fi
  21934. # Check whether --enable-video-x11-xshape was given.
  21935. if test ${enable_video_x11_xshape+y}
  21936. then :
  21937. enableval=$enable_video_x11_xshape;
  21938. else $as_nop
  21939. enable_video_x11_xshape=yes
  21940. fi
  21941. if test x$enable_video_x11_xshape = xyes; then
  21942. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21943. "
  21944. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21945. then :
  21946. have_shape_h_hdr=yes
  21947. else $as_nop
  21948. have_shape_h_hdr=no
  21949. fi
  21950. if test x$have_shape_h_hdr = xyes; then
  21951. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21952. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21953. fi
  21954. fi
  21955. fi
  21956. fi
  21957. if test x$have_x != xyes; then
  21958. # Prevent Mesa from including X11 headers
  21959. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21960. fi
  21961. }
  21962. CheckVivanteVideo()
  21963. {
  21964. # Check whether --enable-video-vivante was given.
  21965. if test ${enable_video_vivante+y}
  21966. then :
  21967. enableval=$enable_video_vivante;
  21968. else $as_nop
  21969. enable_video_vivante=yes
  21970. fi
  21971. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21973. printf %s "checking for Vivante VDK API... " >&6; }
  21974. have_vivante_vdk=no
  21975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21976. /* end confdefs.h. */
  21977. #define LINUX
  21978. #define EGL_API_FB
  21979. #include <gc_vdk.h>
  21980. int
  21981. main (void)
  21982. {
  21983. ;
  21984. return 0;
  21985. }
  21986. _ACEOF
  21987. if ac_fn_c_try_compile "$LINENO"
  21988. then :
  21989. have_vivante_vdk=yes
  21990. fi
  21991. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21993. printf "%s\n" "$have_vivante_vdk" >&6; }
  21994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21995. printf %s "checking for Vivante FB API... " >&6; }
  21996. have_vivante_egl=no
  21997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21998. /* end confdefs.h. */
  21999. #define LINUX
  22000. #define EGL_API_FB
  22001. #include <EGL/eglvivante.h>
  22002. int
  22003. main (void)
  22004. {
  22005. ;
  22006. return 0;
  22007. }
  22008. _ACEOF
  22009. if ac_fn_c_try_compile "$LINENO"
  22010. then :
  22011. have_vivante_egl=yes
  22012. fi
  22013. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  22015. printf "%s\n" "$have_vivante_egl" >&6; }
  22016. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  22017. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  22018. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  22019. if test x$have_vivante_vdk = xyes; then
  22020. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  22021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  22022. fi
  22023. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  22024. SUMMARY_video="${SUMMARY_video} vivante"
  22025. have_video=yes
  22026. fi
  22027. fi
  22028. }
  22029. CheckHaikuVideo()
  22030. {
  22031. if test x$enable_video = xyes; then
  22032. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  22033. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  22034. have_video=yes
  22035. SUMMARY_video="${SUMMARY_video} haiku"
  22036. fi
  22037. }
  22038. CheckCOCOA()
  22039. {
  22040. # Check whether --enable-video-cocoa was given.
  22041. if test ${enable_video_cocoa+y}
  22042. then :
  22043. enableval=$enable_video_cocoa;
  22044. else $as_nop
  22045. enable_video_cocoa=yes
  22046. fi
  22047. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  22048. save_CFLAGS="$CFLAGS"
  22049. CFLAGS="$CFLAGS -x objective-c"
  22050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  22051. printf %s "checking for Cocoa framework... " >&6; }
  22052. have_cocoa=no
  22053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22054. /* end confdefs.h. */
  22055. #import <Cocoa/Cocoa.h>
  22056. int
  22057. main (void)
  22058. {
  22059. ;
  22060. return 0;
  22061. }
  22062. _ACEOF
  22063. if ac_fn_c_try_compile "$LINENO"
  22064. then :
  22065. have_cocoa=yes
  22066. fi
  22067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  22069. printf "%s\n" "$have_cocoa" >&6; }
  22070. CFLAGS="$save_CFLAGS"
  22071. if test x$have_cocoa = xyes; then
  22072. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  22073. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  22074. SUMMARY_video="${SUMMARY_video} cocoa"
  22075. have_video=yes
  22076. fi
  22077. fi
  22078. }
  22079. CheckMETAL()
  22080. {
  22081. # Check whether --enable-video-metal was given.
  22082. if test ${enable_video_metal+y}
  22083. then :
  22084. enableval=$enable_video_metal;
  22085. else $as_nop
  22086. enable_video_metal=yes
  22087. fi
  22088. # Check whether --enable-render-metal was given.
  22089. if test ${enable_render_metal+y}
  22090. then :
  22091. enableval=$enable_render_metal;
  22092. else $as_nop
  22093. enable_render_metal=yes
  22094. fi
  22095. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22096. save_CFLAGS="$CFLAGS"
  22097. CFLAGS="$CFLAGS -x objective-c"
  22098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22099. printf %s "checking for Metal framework... " >&6; }
  22100. have_metal=no
  22101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22102. /* end confdefs.h. */
  22103. #import <Cocoa/Cocoa.h>
  22104. #import <Metal/Metal.h>
  22105. #import <QuartzCore/CAMetalLayer.h>
  22106. #if TARGET_CPU_X86
  22107. #error Metal doesn't work on this configuration
  22108. #endif
  22109. int
  22110. main (void)
  22111. {
  22112. ;
  22113. return 0;
  22114. }
  22115. _ACEOF
  22116. if ac_fn_c_try_compile "$LINENO"
  22117. then :
  22118. have_metal=yes
  22119. fi
  22120. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22121. CFLAGS="$save_CFLAGS"
  22122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22123. printf "%s\n" "$have_metal" >&6; }
  22124. if test x$have_metal = xyes; then
  22125. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22126. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22127. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22128. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22129. fi
  22130. SUMMARY_video="${SUMMARY_video} metal"
  22131. else
  22132. enable_video_metal=no
  22133. enable_render_metal=no
  22134. fi
  22135. fi
  22136. }
  22137. CheckDirectFB()
  22138. {
  22139. # Check whether --enable-video-directfb was given.
  22140. if test ${enable_video_directfb+y}
  22141. then :
  22142. enableval=$enable_video_directfb;
  22143. else $as_nop
  22144. enable_video_directfb=no
  22145. fi
  22146. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22147. pkg_failed=no
  22148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22149. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22150. if test -n "$DIRECTFB_CFLAGS"; then
  22151. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22152. elif test -n "$PKG_CONFIG"; then
  22153. if test -n "$PKG_CONFIG" && \
  22154. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22155. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22156. ac_status=$?
  22157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22158. test $ac_status = 0; }; then
  22159. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22160. test "x$?" != "x0" && pkg_failed=yes
  22161. else
  22162. pkg_failed=yes
  22163. fi
  22164. else
  22165. pkg_failed=untried
  22166. fi
  22167. if test -n "$DIRECTFB_LIBS"; then
  22168. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22169. elif test -n "$PKG_CONFIG"; then
  22170. if test -n "$PKG_CONFIG" && \
  22171. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22172. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22173. ac_status=$?
  22174. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22175. test $ac_status = 0; }; then
  22176. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22177. test "x$?" != "x0" && pkg_failed=yes
  22178. else
  22179. pkg_failed=yes
  22180. fi
  22181. else
  22182. pkg_failed=untried
  22183. fi
  22184. if test $pkg_failed = yes; then
  22185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22186. printf "%s\n" "no" >&6; }
  22187. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22188. _pkg_short_errors_supported=yes
  22189. else
  22190. _pkg_short_errors_supported=no
  22191. fi
  22192. if test $_pkg_short_errors_supported = yes; then
  22193. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22194. else
  22195. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22196. fi
  22197. # Put the nasty error message in config.log where it belongs
  22198. echo "$DIRECTFB_PKG_ERRORS" >&5
  22199. video_directfb=no
  22200. elif test $pkg_failed = untried; then
  22201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22202. printf "%s\n" "no" >&6; }
  22203. video_directfb=no
  22204. else
  22205. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22206. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22208. printf "%s\n" "yes" >&6; }
  22209. video_directfb=yes
  22210. fi
  22211. if test x$video_directfb = xyes; then
  22212. # SuSE 11.1 installs directfb-config without directfb-devel
  22213. save_CPPFLAGS="$CPPFLAGS"
  22214. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22215. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22216. if test "x$ac_cv_header_directfb_h" = xyes
  22217. then :
  22218. have_directfb_hdr=yes
  22219. else $as_nop
  22220. have_directfb_hdr=no
  22221. fi
  22222. CPPFLAGS="$save_CPPFLAGS"
  22223. video_directfb=$have_directfb_hdr
  22224. fi
  22225. if test x$video_directfb = xyes; then
  22226. # Check whether --enable-directfb-shared was given.
  22227. if test ${enable_directfb_shared+y}
  22228. then :
  22229. enableval=$enable_directfb_shared;
  22230. else $as_nop
  22231. enable_directfb_shared=yes
  22232. fi
  22233. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22234. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22235. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22236. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22237. directfb_shared=no
  22238. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22239. if test x$have_loadso != xyes && \
  22240. test x$enable_directfb_shared = xyes; then
  22241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22242. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22243. fi
  22244. if test x$have_loadso = xyes && \
  22245. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22246. directfb_shared=yes
  22247. echo "-- dynamic libdirectfb -> $directfb_lib"
  22248. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22249. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22250. else
  22251. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22252. SUMMARY_video="${SUMMARY_video} directfb"
  22253. fi
  22254. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22255. have_video=yes
  22256. fi
  22257. fi
  22258. }
  22259. CheckKMSDRM()
  22260. {
  22261. # Check whether --enable-video-kmsdrm was given.
  22262. if test ${enable_video_kmsdrm+y}
  22263. then :
  22264. enableval=$enable_video_kmsdrm;
  22265. else $as_nop
  22266. enable_video_kmsdrm=yes
  22267. fi
  22268. if test x$enable_video = xyes && \
  22269. test x$enable_video_kmsdrm = xyes && \
  22270. test x$video_opengl_egl = xyes; then
  22271. video_kmsdrm=no
  22272. pkg_failed=no
  22273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22274. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22275. if test -n "$LIBDRM_CFLAGS"; then
  22276. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22277. elif test -n "$PKG_CONFIG"; then
  22278. if test -n "$PKG_CONFIG" && \
  22279. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22280. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22281. ac_status=$?
  22282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22283. test $ac_status = 0; }; then
  22284. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22285. test "x$?" != "x0" && pkg_failed=yes
  22286. else
  22287. pkg_failed=yes
  22288. fi
  22289. else
  22290. pkg_failed=untried
  22291. fi
  22292. if test -n "$LIBDRM_LIBS"; then
  22293. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22294. elif test -n "$PKG_CONFIG"; then
  22295. if test -n "$PKG_CONFIG" && \
  22296. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22297. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22298. ac_status=$?
  22299. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22300. test $ac_status = 0; }; then
  22301. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22302. test "x$?" != "x0" && pkg_failed=yes
  22303. else
  22304. pkg_failed=yes
  22305. fi
  22306. else
  22307. pkg_failed=untried
  22308. fi
  22309. if test $pkg_failed = yes; then
  22310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22311. printf "%s\n" "no" >&6; }
  22312. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22313. _pkg_short_errors_supported=yes
  22314. else
  22315. _pkg_short_errors_supported=no
  22316. fi
  22317. if test $_pkg_short_errors_supported = yes; then
  22318. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22319. else
  22320. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22321. fi
  22322. # Put the nasty error message in config.log where it belongs
  22323. echo "$LIBDRM_PKG_ERRORS" >&5
  22324. libdrm_avail=no
  22325. elif test $pkg_failed = untried; then
  22326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22327. printf "%s\n" "no" >&6; }
  22328. libdrm_avail=no
  22329. else
  22330. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22331. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22333. printf "%s\n" "yes" >&6; }
  22334. libdrm_avail=yes
  22335. fi
  22336. pkg_failed=no
  22337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22338. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22339. if test -n "$LIBGBM_CFLAGS"; then
  22340. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22341. elif test -n "$PKG_CONFIG"; then
  22342. if test -n "$PKG_CONFIG" && \
  22343. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22344. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22345. ac_status=$?
  22346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22347. test $ac_status = 0; }; then
  22348. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22349. test "x$?" != "x0" && pkg_failed=yes
  22350. else
  22351. pkg_failed=yes
  22352. fi
  22353. else
  22354. pkg_failed=untried
  22355. fi
  22356. if test -n "$LIBGBM_LIBS"; then
  22357. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22358. elif test -n "$PKG_CONFIG"; then
  22359. if test -n "$PKG_CONFIG" && \
  22360. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22361. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22362. ac_status=$?
  22363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22364. test $ac_status = 0; }; then
  22365. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22366. test "x$?" != "x0" && pkg_failed=yes
  22367. else
  22368. pkg_failed=yes
  22369. fi
  22370. else
  22371. pkg_failed=untried
  22372. fi
  22373. if test $pkg_failed = yes; then
  22374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22375. printf "%s\n" "no" >&6; }
  22376. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22377. _pkg_short_errors_supported=yes
  22378. else
  22379. _pkg_short_errors_supported=no
  22380. fi
  22381. if test $_pkg_short_errors_supported = yes; then
  22382. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22383. else
  22384. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22385. fi
  22386. # Put the nasty error message in config.log where it belongs
  22387. echo "$LIBGBM_PKG_ERRORS" >&5
  22388. libgbm_avail=no
  22389. elif test $pkg_failed = untried; then
  22390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22391. printf "%s\n" "no" >&6; }
  22392. libgbm_avail=no
  22393. else
  22394. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22395. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22397. printf "%s\n" "yes" >&6; }
  22398. libgbm_avail=yes
  22399. fi
  22400. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22401. video_kmsdrm=yes
  22402. fi
  22403. if test x$video_kmsdrm = xyes; then
  22404. # Check whether --enable-kmsdrm-shared was given.
  22405. if test ${enable_kmsdrm_shared+y}
  22406. then :
  22407. enableval=$enable_kmsdrm_shared;
  22408. else $as_nop
  22409. enable_kmsdrm_shared=yes
  22410. fi
  22411. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22412. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22413. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22415. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22416. kmsdrm_shared=no
  22417. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22418. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22419. if test x$have_loadso != xyes && \
  22420. test x$enable_kmsdrm_shared = xyes; then
  22421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22422. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22423. fi
  22424. if test x$have_loadso = xyes && \
  22425. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22426. kmsdrm_shared=yes
  22427. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22428. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22429. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22430. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22431. else
  22432. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22433. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22434. fi
  22435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22436. printf "%s\n" "$kmsdrm_shared" >&6; }
  22437. if test x$kmsdrm_shared = xyes; then
  22438. echo "-- dynamic libdrm -> $drm_lib"
  22439. echo "-- dynamic libgbm -> $gbm_lib"
  22440. fi
  22441. have_video=yes
  22442. fi
  22443. fi
  22444. }
  22445. CheckDummyVideo()
  22446. {
  22447. # Check whether --enable-video-dummy was given.
  22448. if test ${enable_video_dummy+y}
  22449. then :
  22450. enableval=$enable_video_dummy;
  22451. else $as_nop
  22452. enable_video_dummy=yes
  22453. fi
  22454. if test x$enable_video_dummy = xyes; then
  22455. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22456. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22457. have_video=yes
  22458. SUMMARY_video="${SUMMARY_video} dummy"
  22459. fi
  22460. }
  22461. CheckOffscreenVideo()
  22462. {
  22463. # Check whether --enable-video-offscreen was given.
  22464. if test ${enable_video_offscreen+y}
  22465. then :
  22466. enableval=$enable_video_offscreen;
  22467. else $as_nop
  22468. enable_video_offscreen=yes
  22469. fi
  22470. if test x$enable_video_offscreen = xyes; then
  22471. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22472. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22473. have_video=yes
  22474. SUMMARY_video="${SUMMARY_video} offscreen"
  22475. fi
  22476. }
  22477. CheckQNXVideo()
  22478. {
  22479. if test x$enable_video = xyes; then
  22480. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22481. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22482. have_video=yes
  22483. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22484. SUMMARY_video="${SUMMARY_video} qnx"
  22485. fi
  22486. }
  22487. CheckQNXAudio()
  22488. {
  22489. if test x$enable_audio = xyes; then
  22490. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22491. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22492. have_audio=yes
  22493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22494. SUMMARY_audio="${SUMMARY_audio} qsa"
  22495. fi
  22496. }
  22497. # Check whether --enable-video-opengl was given.
  22498. if test ${enable_video_opengl+y}
  22499. then :
  22500. enableval=$enable_video_opengl;
  22501. else $as_nop
  22502. enable_video_opengl=yes
  22503. fi
  22504. CheckGLX()
  22505. {
  22506. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22508. printf %s "checking for GLX support... " >&6; }
  22509. video_opengl_glx=no
  22510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22511. /* end confdefs.h. */
  22512. #include <GL/glx.h>
  22513. int
  22514. main (void)
  22515. {
  22516. ;
  22517. return 0;
  22518. }
  22519. _ACEOF
  22520. if ac_fn_c_try_compile "$LINENO"
  22521. then :
  22522. video_opengl_glx=yes
  22523. fi
  22524. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22526. printf "%s\n" "$video_opengl_glx" >&6; }
  22527. if test x$video_opengl_glx = xyes; then
  22528. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22529. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22530. fi
  22531. fi
  22532. }
  22533. # Check whether --enable-video-opengles was given.
  22534. if test ${enable_video_opengles+y}
  22535. then :
  22536. enableval=$enable_video_opengles;
  22537. else $as_nop
  22538. enable_video_opengles=yes
  22539. fi
  22540. # Check whether --enable-video-opengles1 was given.
  22541. if test ${enable_video_opengles1+y}
  22542. then :
  22543. enableval=$enable_video_opengles1;
  22544. else $as_nop
  22545. enable_video_opengles1=yes
  22546. fi
  22547. # Check whether --enable-video-opengles2 was given.
  22548. if test ${enable_video_opengles2+y}
  22549. then :
  22550. enableval=$enable_video_opengles2;
  22551. else $as_nop
  22552. enable_video_opengles2=yes
  22553. fi
  22554. CheckEGL()
  22555. {
  22556. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22558. printf %s "checking for EGL support... " >&6; }
  22559. video_opengl_egl=no
  22560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22561. /* end confdefs.h. */
  22562. #define LINUX
  22563. #define EGL_API_FB
  22564. #define MESA_EGL_NO_X11_HEADERS
  22565. #define EGL_NO_X11
  22566. #include <EGL/egl.h>
  22567. #include <EGL/eglext.h>
  22568. int
  22569. main (void)
  22570. {
  22571. ;
  22572. return 0;
  22573. }
  22574. _ACEOF
  22575. if ac_fn_c_try_compile "$LINENO"
  22576. then :
  22577. video_opengl_egl=yes
  22578. fi
  22579. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22581. printf "%s\n" "$video_opengl_egl" >&6; }
  22582. if test x$video_opengl_egl = xyes; then
  22583. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22584. fi
  22585. fi
  22586. }
  22587. CheckOpenGL()
  22588. {
  22589. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22591. printf %s "checking for OpenGL headers... " >&6; }
  22592. video_opengl=no
  22593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22594. /* end confdefs.h. */
  22595. #include <GL/gl.h>
  22596. #include <GL/glext.h>
  22597. int
  22598. main (void)
  22599. {
  22600. ;
  22601. return 0;
  22602. }
  22603. _ACEOF
  22604. if ac_fn_c_try_compile "$LINENO"
  22605. then :
  22606. video_opengl=yes
  22607. fi
  22608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22610. printf "%s\n" "$video_opengl" >&6; }
  22611. if test x$video_opengl = xyes; then
  22612. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22613. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22614. SUMMARY_video="${SUMMARY_video} opengl"
  22615. fi
  22616. fi
  22617. }
  22618. CheckOpenGLES()
  22619. {
  22620. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22621. if test x$enable_video_opengles1 = xyes; then
  22622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22623. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22624. video_opengles_v1=no
  22625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22626. /* end confdefs.h. */
  22627. #include <GLES/gl.h>
  22628. #include <GLES/glext.h>
  22629. int
  22630. main (void)
  22631. {
  22632. ;
  22633. return 0;
  22634. }
  22635. _ACEOF
  22636. if ac_fn_c_try_compile "$LINENO"
  22637. then :
  22638. video_opengles_v1=yes
  22639. fi
  22640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22642. printf "%s\n" "$video_opengles_v1" >&6; }
  22643. if test x$video_opengles_v1 = xyes; then
  22644. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22645. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22646. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22647. fi
  22648. fi
  22649. if test x$enable_video_opengles2 = xyes; then
  22650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22651. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22652. video_opengles_v2=no
  22653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22654. /* end confdefs.h. */
  22655. #include <GLES2/gl2.h>
  22656. #include <GLES2/gl2ext.h>
  22657. int
  22658. main (void)
  22659. {
  22660. ;
  22661. return 0;
  22662. }
  22663. _ACEOF
  22664. if ac_fn_c_try_compile "$LINENO"
  22665. then :
  22666. video_opengles_v2=yes
  22667. fi
  22668. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22670. printf "%s\n" "$video_opengles_v2" >&6; }
  22671. if test x$video_opengles_v2 = xyes; then
  22672. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22673. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22674. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22675. fi
  22676. fi
  22677. fi
  22678. }
  22679. CheckWINDOWSGL()
  22680. {
  22681. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22682. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22683. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22684. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22685. SUMMARY_video="${SUMMARY_video} opengl"
  22686. fi
  22687. }
  22688. CheckWINDOWSGLES()
  22689. {
  22690. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22692. printf %s "checking for EGL support... " >&6; }
  22693. video_opengl_egl=no
  22694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22695. /* end confdefs.h. */
  22696. #include <EGL/egl.h>
  22697. int
  22698. main (void)
  22699. {
  22700. ;
  22701. return 0;
  22702. }
  22703. _ACEOF
  22704. if ac_fn_c_try_compile "$LINENO"
  22705. then :
  22706. video_opengl_egl=yes
  22707. fi
  22708. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22710. printf "%s\n" "$video_opengl_egl" >&6; }
  22711. if test x$video_opengl_egl = xyes; then
  22712. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22713. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22714. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22715. fi
  22716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22717. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22718. video_opengles_v2=no
  22719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22720. /* end confdefs.h. */
  22721. #include <GLES2/gl2.h>
  22722. #include <GLES2/gl2ext.h>
  22723. int
  22724. main (void)
  22725. {
  22726. ;
  22727. return 0;
  22728. }
  22729. _ACEOF
  22730. if ac_fn_c_try_compile "$LINENO"
  22731. then :
  22732. video_opengles_v2=yes
  22733. fi
  22734. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22736. printf "%s\n" "$video_opengles_v2" >&6; }
  22737. if test x$video_opengles_v2 = xyes; then
  22738. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22739. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22740. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22741. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22742. fi
  22743. fi
  22744. }
  22745. CheckHaikuGL()
  22746. {
  22747. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22748. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22749. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22750. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22751. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22752. SUMMARY_video="${SUMMARY_video} opengl"
  22753. fi
  22754. }
  22755. CheckMacGL()
  22756. {
  22757. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22758. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22759. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22760. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22761. SUMMARY_video="${SUMMARY_video} opengl"
  22762. fi
  22763. }
  22764. CheckMacGLES()
  22765. {
  22766. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22767. video_opengl_egl=yes
  22768. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22769. video_opengles_v2=yes
  22770. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22771. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22772. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22773. fi
  22774. }
  22775. CheckEmscriptenGLES()
  22776. {
  22777. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22779. printf %s "checking for EGL support... " >&6; }
  22780. video_opengl_egl=no
  22781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22782. /* end confdefs.h. */
  22783. #include <EGL/egl.h>
  22784. int
  22785. main (void)
  22786. {
  22787. ;
  22788. return 0;
  22789. }
  22790. _ACEOF
  22791. if ac_fn_c_try_compile "$LINENO"
  22792. then :
  22793. video_opengl_egl=yes
  22794. fi
  22795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22797. printf "%s\n" "$video_opengl_egl" >&6; }
  22798. if test x$video_opengl_egl = xyes; then
  22799. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22800. fi
  22801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22802. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22803. video_opengles_v2=no
  22804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22805. /* end confdefs.h. */
  22806. #include <GLES2/gl2.h>
  22807. #include <GLES2/gl2ext.h>
  22808. int
  22809. main (void)
  22810. {
  22811. ;
  22812. return 0;
  22813. }
  22814. _ACEOF
  22815. if ac_fn_c_try_compile "$LINENO"
  22816. then :
  22817. video_opengles_v2=yes
  22818. fi
  22819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22821. printf "%s\n" "$video_opengles_v2" >&6; }
  22822. if test x$video_opengles_v2 = xyes; then
  22823. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22824. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22825. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22826. fi
  22827. fi
  22828. }
  22829. # Check whether --enable-video-vulkan was given.
  22830. if test ${enable_video_vulkan+y}
  22831. then :
  22832. enableval=$enable_video_vulkan;
  22833. else $as_nop
  22834. enable_video_vulkan=yes
  22835. fi
  22836. CheckVulkan()
  22837. {
  22838. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22839. case "$host" in
  22840. *-*-android*)
  22841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22842. /* end confdefs.h. */
  22843. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22844. #error Vulkan doesn't work on this configuration
  22845. #endif
  22846. int
  22847. main (void)
  22848. {
  22849. ;
  22850. return 0;
  22851. }
  22852. _ACEOF
  22853. if ac_fn_c_try_compile "$LINENO"
  22854. then :
  22855. else $as_nop
  22856. enable_video_vulkan=no
  22857. fi
  22858. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22859. ;;
  22860. *-*-darwin*)
  22861. save_CFLAGS="$CFLAGS"
  22862. CFLAGS="$CFLAGS -x objective-c"
  22863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22864. /* end confdefs.h. */
  22865. #include <Cocoa/Cocoa.h>
  22866. #include <Metal/Metal.h>
  22867. #include <QuartzCore/CAMetalLayer.h>
  22868. #if TARGET_CPU_X86
  22869. #error Vulkan doesn't work on this configuration
  22870. #endif
  22871. int
  22872. main (void)
  22873. {
  22874. ;
  22875. return 0;
  22876. }
  22877. _ACEOF
  22878. if ac_fn_c_try_compile "$LINENO"
  22879. then :
  22880. else $as_nop
  22881. enable_video_vulkan=no
  22882. fi
  22883. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22884. CFLAGS="$save_CFLAGS"
  22885. ;;
  22886. *)
  22887. ;;
  22888. esac
  22889. if test x$enable_video_vulkan = xno; then
  22890. # For reasons I am totally unable to see, I get an undefined macro error if
  22891. # I put this in the AC_TRY_COMPILE.
  22892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22893. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22894. fi
  22895. fi
  22896. if test x$have_loadso != xyes; then
  22897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22898. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22899. enable_video_vulkan=no
  22900. fi
  22901. if test x$enable_video_vulkan = xyes; then
  22902. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22903. SUMMARY_video="${SUMMARY_video} vulkan"
  22904. fi
  22905. }
  22906. CheckInputEvents()
  22907. {
  22908. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22909. if test "x$ac_cv_header_linux_input_h" = xyes
  22910. then :
  22911. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22912. fi
  22913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22914. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22915. use_input_events=no
  22916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22917. /* end confdefs.h. */
  22918. #include <linux/input.h>
  22919. int
  22920. main (void)
  22921. {
  22922. #ifndef EVIOCGNAME
  22923. #error EVIOCGNAME() ioctl not available
  22924. #endif
  22925. ;
  22926. return 0;
  22927. }
  22928. _ACEOF
  22929. if ac_fn_c_try_compile "$LINENO"
  22930. then :
  22931. use_input_events=yes
  22932. fi
  22933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22935. printf "%s\n" "$use_input_events" >&6; }
  22936. if test x$use_input_events = xyes; then
  22937. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22938. SUMMARY_input="${SUMMARY_input} linuxev"
  22939. fi
  22940. }
  22941. CheckInputKD()
  22942. {
  22943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22944. printf %s "checking for Linux kd.h... " >&6; }
  22945. use_input_kd=no
  22946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22947. /* end confdefs.h. */
  22948. #include <linux/kd.h>
  22949. #include <linux/keyboard.h>
  22950. #include <sys/ioctl.h>
  22951. int
  22952. main (void)
  22953. {
  22954. struct kbentry kbe;
  22955. kbe.kb_table = KG_CTRL;
  22956. ioctl(0, KDGKBENT, &kbe);
  22957. ;
  22958. return 0;
  22959. }
  22960. _ACEOF
  22961. if ac_fn_c_try_compile "$LINENO"
  22962. then :
  22963. use_input_kd=yes
  22964. fi
  22965. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22967. printf "%s\n" "$use_input_kd" >&6; }
  22968. if test x$use_input_kd = xyes; then
  22969. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22970. SUMMARY_input="${SUMMARY_input} linuxkd"
  22971. fi
  22972. }
  22973. CheckInputKBIO()
  22974. {
  22975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22976. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22977. use_input_kbio=no
  22978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22979. /* end confdefs.h. */
  22980. #include <sys/kbio.h>
  22981. #include <sys/ioctl.h>
  22982. int
  22983. main (void)
  22984. {
  22985. accentmap_t accTable;
  22986. ioctl(0, KDENABIO, 1);
  22987. ;
  22988. return 0;
  22989. }
  22990. _ACEOF
  22991. if ac_fn_c_try_compile "$LINENO"
  22992. then :
  22993. use_input_kbio=yes
  22994. fi
  22995. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22997. printf "%s\n" "$use_input_kbio" >&6; }
  22998. if test x$use_input_kbio = xyes; then
  22999. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  23000. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  23001. fi
  23002. }
  23003. CheckInputWSCONS()
  23004. {
  23005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  23006. printf %s "checking for OpenBSD wscons... " >&6; }
  23007. use_input_wscons=no
  23008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23009. /* end confdefs.h. */
  23010. #include <sys/time.h>
  23011. #include <dev/wscons/wsconsio.h>
  23012. #include <dev/wscons/wsksymdef.h>
  23013. #include <dev/wscons/wsksymvar.h>
  23014. #include <sys/ioctl.h>
  23015. int
  23016. main (void)
  23017. {
  23018. struct wskbd_map_data data;
  23019. ioctl(0, WSKBDIO_GETMAP, &data);
  23020. ;
  23021. return 0;
  23022. }
  23023. _ACEOF
  23024. if ac_fn_c_try_compile "$LINENO"
  23025. then :
  23026. use_input_wscons=yes
  23027. fi
  23028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  23030. printf "%s\n" "$use_input_wscons" >&6; }
  23031. if test x$use_input_wscons = xyes; then
  23032. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  23033. SUMMARY_input="${SUMMARY_input} wscons"
  23034. fi
  23035. }
  23036. CheckLibUDev()
  23037. {
  23038. # Check whether --enable-libudev was given.
  23039. if test ${enable_libudev+y}
  23040. then :
  23041. enableval=$enable_libudev;
  23042. else $as_nop
  23043. enable_libudev=yes
  23044. fi
  23045. if test x$enable_libudev = xyes; then
  23046. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  23047. if test "x$ac_cv_header_libudev_h" = xyes
  23048. then :
  23049. have_libudev_h_hdr=yes
  23050. else $as_nop
  23051. have_libudev_h_hdr=no
  23052. fi
  23053. if test x$have_libudev_h_hdr = xyes; then
  23054. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  23055. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23056. if test x$udev_lib != x; then
  23057. echo "-- dynamic udev -> $udev_lib"
  23058. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  23059. fi
  23060. fi
  23061. fi
  23062. }
  23063. CheckDBus()
  23064. {
  23065. # Check whether --enable-dbus was given.
  23066. if test ${enable_dbus+y}
  23067. then :
  23068. enableval=$enable_dbus;
  23069. else $as_nop
  23070. enable_dbus=yes
  23071. fi
  23072. if test x$enable_dbus = xyes; then
  23073. pkg_failed=no
  23074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  23075. printf %s "checking for dbus-1... " >&6; }
  23076. if test -n "$DBUS_CFLAGS"; then
  23077. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  23078. elif test -n "$PKG_CONFIG"; then
  23079. if test -n "$PKG_CONFIG" && \
  23080. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23081. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23082. ac_status=$?
  23083. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23084. test $ac_status = 0; }; then
  23085. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  23086. test "x$?" != "x0" && pkg_failed=yes
  23087. else
  23088. pkg_failed=yes
  23089. fi
  23090. else
  23091. pkg_failed=untried
  23092. fi
  23093. if test -n "$DBUS_LIBS"; then
  23094. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23095. elif test -n "$PKG_CONFIG"; then
  23096. if test -n "$PKG_CONFIG" && \
  23097. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23098. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23099. ac_status=$?
  23100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23101. test $ac_status = 0; }; then
  23102. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23103. test "x$?" != "x0" && pkg_failed=yes
  23104. else
  23105. pkg_failed=yes
  23106. fi
  23107. else
  23108. pkg_failed=untried
  23109. fi
  23110. if test $pkg_failed = yes; then
  23111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23112. printf "%s\n" "no" >&6; }
  23113. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23114. _pkg_short_errors_supported=yes
  23115. else
  23116. _pkg_short_errors_supported=no
  23117. fi
  23118. if test $_pkg_short_errors_supported = yes; then
  23119. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23120. else
  23121. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23122. fi
  23123. # Put the nasty error message in config.log where it belongs
  23124. echo "$DBUS_PKG_ERRORS" >&5
  23125. have_dbus=no
  23126. elif test $pkg_failed = untried; then
  23127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23128. printf "%s\n" "no" >&6; }
  23129. have_dbus=no
  23130. else
  23131. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23132. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23134. printf "%s\n" "yes" >&6; }
  23135. have_dbus=yes
  23136. fi
  23137. save_CPPFLAGS="$CPPFLAGS"
  23138. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23139. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23140. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23141. then :
  23142. have_dbus_dbus_h_hdr=yes
  23143. else $as_nop
  23144. have_dbus_dbus_h_hdr=no
  23145. fi
  23146. CPPFLAGS="$save_CPPFLAGS"
  23147. if test x$have_dbus_dbus_h_hdr = xyes; then
  23148. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23149. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23150. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23151. fi
  23152. fi
  23153. }
  23154. CheckIME()
  23155. {
  23156. # Check whether --enable-ime was given.
  23157. if test ${enable_ime+y}
  23158. then :
  23159. enableval=$enable_ime;
  23160. else $as_nop
  23161. enable_ime=yes
  23162. fi
  23163. if test x$enable_ime = xyes; then
  23164. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23165. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23166. fi
  23167. }
  23168. CheckInotify()
  23169. {
  23170. save_LIBS="$LIBS"
  23171. case "$host" in
  23172. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23173. ;;
  23174. esac
  23175. for ac_header in sys/inotify.h
  23176. do :
  23177. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23178. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23179. then :
  23180. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23181. have_inotify_inotify_h_hdr=yes
  23182. fi
  23183. done
  23184. for ac_func in inotify_init
  23185. do :
  23186. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23187. if test "x$ac_cv_func_inotify_init" = xyes
  23188. then :
  23189. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23190. have_inotify=yes
  23191. fi
  23192. done
  23193. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23194. if test "x$ac_cv_func_inotify_init1" = xyes
  23195. then :
  23196. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23197. fi
  23198. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23199. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23200. case "$host" in
  23201. *-*-freebsd*|*-*-dragonfly*)
  23202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23203. ;;
  23204. esac
  23205. fi
  23206. LIBS="$save_LIBS"
  23207. }
  23208. CheckIBus()
  23209. {
  23210. # Check whether --enable-ibus was given.
  23211. if test ${enable_ibus+y}
  23212. then :
  23213. enableval=$enable_ibus;
  23214. else $as_nop
  23215. enable_ibus=yes
  23216. fi
  23217. if test x$enable_ibus = xyes; then
  23218. pkg_failed=no
  23219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23220. printf %s "checking for ibus-1.0... " >&6; }
  23221. if test -n "$IBUS_CFLAGS"; then
  23222. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23223. elif test -n "$PKG_CONFIG"; then
  23224. if test -n "$PKG_CONFIG" && \
  23225. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23226. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23227. ac_status=$?
  23228. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23229. test $ac_status = 0; }; then
  23230. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23231. test "x$?" != "x0" && pkg_failed=yes
  23232. else
  23233. pkg_failed=yes
  23234. fi
  23235. else
  23236. pkg_failed=untried
  23237. fi
  23238. if test -n "$IBUS_LIBS"; then
  23239. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23240. elif test -n "$PKG_CONFIG"; then
  23241. if test -n "$PKG_CONFIG" && \
  23242. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23243. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23244. ac_status=$?
  23245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23246. test $ac_status = 0; }; then
  23247. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23248. test "x$?" != "x0" && pkg_failed=yes
  23249. else
  23250. pkg_failed=yes
  23251. fi
  23252. else
  23253. pkg_failed=untried
  23254. fi
  23255. if test $pkg_failed = yes; then
  23256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23257. printf "%s\n" "no" >&6; }
  23258. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23259. _pkg_short_errors_supported=yes
  23260. else
  23261. _pkg_short_errors_supported=no
  23262. fi
  23263. if test $_pkg_short_errors_supported = yes; then
  23264. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23265. else
  23266. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23267. fi
  23268. # Put the nasty error message in config.log where it belongs
  23269. echo "$IBUS_PKG_ERRORS" >&5
  23270. have_ibus=no
  23271. elif test $pkg_failed = untried; then
  23272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23273. printf "%s\n" "no" >&6; }
  23274. have_ibus=no
  23275. else
  23276. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23277. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23279. printf "%s\n" "yes" >&6; }
  23280. have_ibus=yes
  23281. fi
  23282. save_CPPFLAGS="$CPPFLAGS"
  23283. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23284. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23285. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23286. then :
  23287. have_ibus_ibus_h_hdr=yes
  23288. else $as_nop
  23289. have_ibus_ibus_h_hdr=no
  23290. fi
  23291. CPPFLAGS="$save_CPPFLAGS"
  23292. if test x$have_ibus_ibus_h_hdr = xyes; then
  23293. if test x$enable_ime != xyes; then
  23294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23295. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23296. have_ibus_ibus_h_hdr=no
  23297. elif test x$enable_dbus != xyes; then
  23298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23299. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23300. have_ibus_ibus_h_hdr=no
  23301. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23303. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23304. have_ibus_ibus_h_hdr=no
  23305. else
  23306. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23307. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23308. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23309. fi
  23310. fi
  23311. fi
  23312. }
  23313. CheckFcitx()
  23314. {
  23315. # Check whether --enable-fcitx was given.
  23316. if test ${enable_fcitx+y}
  23317. then :
  23318. enableval=$enable_fcitx;
  23319. else $as_nop
  23320. enable_fcitx=yes
  23321. fi
  23322. if test x$enable_fcitx = xyes; then
  23323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23324. printf %s "checking for fcitx support... " >&6; }
  23325. have_fcitx=no
  23326. if test x$enable_ime != xyes; then
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23328. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23329. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23331. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23332. else
  23333. have_fcitx=yes
  23334. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23335. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23336. fi
  23337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23338. printf "%s\n" "$have_fcitx" >&6; }
  23339. fi
  23340. }
  23341. CheckJoystickMFI()
  23342. {
  23343. # Check whether --enable-joystick-mfi was given.
  23344. if test ${enable_joystick_mfi+y}
  23345. then :
  23346. enableval=$enable_joystick_mfi;
  23347. else $as_nop
  23348. enable_joystick_mfi=yes
  23349. fi
  23350. if test x$enable_joystick_mfi = xyes; then
  23351. save_CFLAGS="$CFLAGS"
  23352. save_LDFLAGS="$LDFLAGS"
  23353. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23354. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23356. printf %s "checking for GameController framework... " >&6; }
  23357. enable_joystick_mfi=no
  23358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23359. /* end confdefs.h. */
  23360. #include <AvailabilityMacros.h>
  23361. #include <TargetConditionals.h>
  23362. #import <GameController/GameController.h>
  23363. int
  23364. main (void)
  23365. {
  23366. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23367. #error GameController framework doesn't work on this configuration
  23368. #endif
  23369. #if TARGET_CPU_X86
  23370. #error GameController framework doesn't work on this configuration
  23371. #endif
  23372. ;
  23373. return 0;
  23374. }
  23375. _ACEOF
  23376. if ac_fn_c_try_link "$LINENO"
  23377. then :
  23378. enable_joystick_mfi=yes
  23379. fi
  23380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23381. conftest$ac_exeext conftest.$ac_ext
  23382. CFLAGS="$save_CFLAGS"
  23383. LDFLAGS="$save_LDFLAGS"
  23384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23385. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23386. if test x$enable_joystick_mfi = xyes; then
  23387. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23388. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23390. fi
  23391. fi
  23392. }
  23393. CheckPTHREAD()
  23394. {
  23395. case "$host" in
  23396. *-*-emscripten*)
  23397. enable_pthreads_default=no
  23398. ;;
  23399. *)
  23400. enable_pthreads_default=yes
  23401. ;;
  23402. esac
  23403. # Check whether --enable-pthreads was given.
  23404. if test ${enable_pthreads+y}
  23405. then :
  23406. enableval=$enable_pthreads;
  23407. else $as_nop
  23408. enable_pthreads=maybe
  23409. fi
  23410. # Check whether --enable-pthread-sem was given.
  23411. if test ${enable_pthread_sem+y}
  23412. then :
  23413. enableval=$enable_pthread_sem;
  23414. else $as_nop
  23415. enable_pthread_sem=maybe
  23416. fi
  23417. if test x$enable_pthreads = xmaybe; then
  23418. enable_pthreads=$enable_pthreads_default
  23419. fi
  23420. if test x$enable_pthread_sem = xmaybe; then
  23421. enable_pthread_sem=$enable_pthreads
  23422. fi
  23423. case "$host" in
  23424. *-*-android*)
  23425. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23426. pthread_lib=""
  23427. ;;
  23428. *-*-linux*|*-*-uclinux*)
  23429. pthread_cflags="-D_REENTRANT"
  23430. pthread_lib="-lpthread"
  23431. ;;
  23432. *-*-bsdi*)
  23433. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23434. pthread_lib=""
  23435. ;;
  23436. *-*-darwin*)
  23437. pthread_cflags="-D_THREAD_SAFE"
  23438. # causes Carbon.p complaints?
  23439. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23440. ;;
  23441. *-*-freebsd*|*-*-dragonfly*)
  23442. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23443. pthread_lib="-pthread"
  23444. ;;
  23445. *-*-netbsd*)
  23446. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23447. pthread_lib="-lpthread"
  23448. ;;
  23449. *-*-openbsd*)
  23450. pthread_cflags="-D_REENTRANT"
  23451. pthread_lib="-lpthread"
  23452. ;;
  23453. *-*-solaris2.9)
  23454. # From Solaris 9+, posix4's preferred name is rt.
  23455. pthread_cflags="-D_REENTRANT"
  23456. pthread_lib="-lpthread -lrt"
  23457. ;;
  23458. *-*-solaris2.10)
  23459. # Solaris 10+ merged pthread into libc.
  23460. pthread_cflags="-D_REENTRANT"
  23461. pthread_lib="-lrt"
  23462. ;;
  23463. *-*-solaris*)
  23464. # Solaris 11+ merged rt into libc.
  23465. pthread_cflags="-D_REENTRANT"
  23466. pthread_lib=""
  23467. ;;
  23468. *-*-sysv5*)
  23469. pthread_cflags="-D_REENTRANT -Kthread"
  23470. pthread_lib=""
  23471. ;;
  23472. *-*-aix*)
  23473. pthread_cflags="-D_REENTRANT -mthreads"
  23474. pthread_lib="-lpthread"
  23475. ;;
  23476. *-*-hpux11*)
  23477. pthread_cflags="-D_REENTRANT"
  23478. pthread_lib="-L/usr/lib -lpthread"
  23479. ;;
  23480. *-*-haiku*)
  23481. pthread_cflags="-D_REENTRANT"
  23482. pthread_lib=""
  23483. ;;
  23484. *-*-nto*)
  23485. pthread_cflags="-D_REENTRANT"
  23486. pthread_lib=""
  23487. ;;
  23488. *-*-emscripten*)
  23489. pthread_cflags="-D_REENTRANT -pthread"
  23490. pthread_lib="-pthread"
  23491. ;;
  23492. *)
  23493. pthread_cflags="-D_REENTRANT"
  23494. pthread_lib="-lpthread"
  23495. ;;
  23496. esac
  23497. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23498. # Save the original compiler flags and libraries
  23499. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23500. # Add the pthread compiler flags and libraries
  23501. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23502. # Check to see if we have pthread support on this system
  23503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23504. printf %s "checking for pthreads... " >&6; }
  23505. use_pthreads=no
  23506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23507. /* end confdefs.h. */
  23508. #include <pthread.h>
  23509. int
  23510. main (void)
  23511. {
  23512. pthread_attr_t type;
  23513. pthread_attr_init(&type);
  23514. ;
  23515. return 0;
  23516. }
  23517. _ACEOF
  23518. if ac_fn_c_try_link "$LINENO"
  23519. then :
  23520. use_pthreads=yes
  23521. fi
  23522. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23523. conftest$ac_exeext conftest.$ac_ext
  23524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23525. printf "%s\n" "$use_pthreads" >&6; }
  23526. # Restore the compiler flags and libraries
  23527. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23528. # Do futher testing if we have pthread support...
  23529. if test x$use_pthreads = xyes; then
  23530. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23531. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23532. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23533. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23534. # Save the original compiler flags and libraries
  23535. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23536. # Add the pthread compiler flags and libraries
  23537. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23538. # Check to see if recursive mutexes are available
  23539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23540. printf %s "checking for recursive mutexes... " >&6; }
  23541. has_recursive_mutexes=no
  23542. if test x$has_recursive_mutexes = xno; then
  23543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23544. /* end confdefs.h. */
  23545. #define _GNU_SOURCE 1
  23546. #include <pthread.h>
  23547. int
  23548. main (void)
  23549. {
  23550. pthread_mutexattr_t attr;
  23551. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23552. ;
  23553. return 0;
  23554. }
  23555. _ACEOF
  23556. if ac_fn_c_try_link "$LINENO"
  23557. then :
  23558. has_recursive_mutexes=yes
  23559. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23560. fi
  23561. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23562. conftest$ac_exeext conftest.$ac_ext
  23563. fi
  23564. if test x$has_recursive_mutexes = xno; then
  23565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23566. /* end confdefs.h. */
  23567. #define _GNU_SOURCE 1
  23568. #include <pthread.h>
  23569. int
  23570. main (void)
  23571. {
  23572. pthread_mutexattr_t attr;
  23573. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23574. ;
  23575. return 0;
  23576. }
  23577. _ACEOF
  23578. if ac_fn_c_try_link "$LINENO"
  23579. then :
  23580. has_recursive_mutexes=yes
  23581. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23582. fi
  23583. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23584. conftest$ac_exeext conftest.$ac_ext
  23585. fi
  23586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23587. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23588. # Check to see if pthread semaphore support is missing
  23589. if test x$enable_pthread_sem = xyes; then
  23590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23591. printf %s "checking for pthread semaphores... " >&6; }
  23592. have_pthread_sem=no
  23593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23594. /* end confdefs.h. */
  23595. #include <pthread.h>
  23596. #include <semaphore.h>
  23597. int
  23598. main (void)
  23599. {
  23600. ;
  23601. return 0;
  23602. }
  23603. _ACEOF
  23604. if ac_fn_c_try_compile "$LINENO"
  23605. then :
  23606. have_pthread_sem=yes
  23607. fi
  23608. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23610. printf "%s\n" "$have_pthread_sem" >&6; }
  23611. fi
  23612. if test x$have_pthread_sem = xyes; then
  23613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23614. printf %s "checking for sem_timedwait... " >&6; }
  23615. have_sem_timedwait=no
  23616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23617. /* end confdefs.h. */
  23618. #include <pthread.h>
  23619. #include <semaphore.h>
  23620. int
  23621. main (void)
  23622. {
  23623. sem_timedwait(NULL, NULL);
  23624. ;
  23625. return 0;
  23626. }
  23627. _ACEOF
  23628. if ac_fn_c_try_link "$LINENO"
  23629. then :
  23630. have_sem_timedwait=yes
  23631. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23632. fi
  23633. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23634. conftest$ac_exeext conftest.$ac_ext
  23635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23636. printf "%s\n" "$have_sem_timedwait" >&6; }
  23637. fi
  23638. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23639. "
  23640. if test "x$ac_cv_header_pthread_np_h" = xyes
  23641. then :
  23642. have_pthread_np_h=yes
  23643. else $as_nop
  23644. have_pthread_np_h=no
  23645. fi
  23646. if test x$have_pthread_np_h = xyes; then
  23647. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23648. fi
  23649. # Check to see if pthread naming is available
  23650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23651. printf %s "checking for pthread_setname_np... " >&6; }
  23652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23653. /* end confdefs.h. */
  23654. /* Override any GCC internal prototype to avoid an error.
  23655. Use char because int might match the return type of a GCC
  23656. builtin and then its argument prototype would still apply. */
  23657. char pthread_setname_np ();
  23658. int
  23659. main (void)
  23660. {
  23661. return pthread_setname_np ();
  23662. ;
  23663. return 0;
  23664. }
  23665. _ACEOF
  23666. if ac_fn_c_try_link "$LINENO"
  23667. then :
  23668. has_pthread_setname_np=yes
  23669. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23670. else $as_nop
  23671. has_pthread_setname_np=no
  23672. fi
  23673. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23674. conftest$ac_exeext conftest.$ac_ext
  23675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23676. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23678. printf %s "checking for pthread_set_name_np... " >&6; }
  23679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23680. /* end confdefs.h. */
  23681. /* Override any GCC internal prototype to avoid an error.
  23682. Use char because int might match the return type of a GCC
  23683. builtin and then its argument prototype would still apply. */
  23684. char pthread_set_name_np ();
  23685. int
  23686. main (void)
  23687. {
  23688. return pthread_set_name_np ();
  23689. ;
  23690. return 0;
  23691. }
  23692. _ACEOF
  23693. if ac_fn_c_try_link "$LINENO"
  23694. then :
  23695. has_pthread_set_name_np=yes
  23696. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23697. else $as_nop
  23698. has_pthread_set_name_np=no
  23699. fi
  23700. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23701. conftest$ac_exeext conftest.$ac_ext
  23702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23703. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23704. # Restore the compiler flags and libraries
  23705. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23706. # Basic thread creation functions
  23707. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23708. # Semaphores
  23709. # We can fake these with mutexes and condition variables if necessary
  23710. if test x$have_pthread_sem = xyes; then
  23711. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23712. else
  23713. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23714. fi
  23715. # Mutexes
  23716. # We can fake these with semaphores if necessary
  23717. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23718. # Condition variables
  23719. # We can fake these with semaphores and mutexes if necessary
  23720. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23721. # Thread local storage
  23722. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23723. have_threads=yes
  23724. fi
  23725. fi
  23726. }
  23727. CheckWINDOWS()
  23728. {
  23729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23730. printf %s "checking Windows compiler... " >&6; }
  23731. have_win32_gcc=no
  23732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23733. /* end confdefs.h. */
  23734. #include <windows.h>
  23735. int
  23736. main (void)
  23737. {
  23738. ;
  23739. return 0;
  23740. }
  23741. _ACEOF
  23742. if ac_fn_c_try_compile "$LINENO"
  23743. then :
  23744. have_win32_gcc=yes
  23745. fi
  23746. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23748. printf "%s\n" "$have_win32_gcc" >&6; }
  23749. if test x$have_win32_gcc != xyes; then
  23750. as_fn_error $? "
  23751. *** Your compiler ($CC) does not produce Windows executables!
  23752. " "$LINENO" 5
  23753. fi
  23754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23755. printf %s "checking Windows CE... " >&6; }
  23756. have_wince=no
  23757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23758. /* end confdefs.h. */
  23759. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23760. #error This is not Windows CE
  23761. #endif
  23762. int
  23763. main (void)
  23764. {
  23765. ;
  23766. return 0;
  23767. }
  23768. _ACEOF
  23769. if ac_fn_c_try_compile "$LINENO"
  23770. then :
  23771. have_wince=yes
  23772. as_fn_error $? "
  23773. *** Sorry, Windows CE is no longer supported.
  23774. " "$LINENO" 5
  23775. fi
  23776. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23778. printf "%s\n" "$have_wince" >&6; }
  23779. # headers needed elsewhere
  23780. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23781. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23782. then :
  23783. have_tpcshrd_h=yes
  23784. fi
  23785. if test x$have_tpcshrd_h = xyes; then
  23786. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23787. fi
  23788. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23789. if test "x$ac_cv_header_roapi_h" = xyes
  23790. then :
  23791. have_roapi_h=yes
  23792. fi
  23793. if test x$have_roapi_h = xyes; then
  23794. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23795. fi
  23796. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23797. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23798. then :
  23799. have_shellscalingapi_h=yes
  23800. fi
  23801. if test x$shellscalingapi_h = xyes; then
  23802. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23803. fi
  23804. }
  23805. CheckOS2()
  23806. {
  23807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23808. printf %s "checking OS/2 compiler... " >&6; }
  23809. have_os2_gcc=no
  23810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23811. /* end confdefs.h. */
  23812. #include <os2.h>
  23813. int
  23814. main (void)
  23815. {
  23816. ;
  23817. return 0;
  23818. }
  23819. _ACEOF
  23820. if ac_fn_c_try_compile "$LINENO"
  23821. then :
  23822. have_os2_gcc=yes
  23823. fi
  23824. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23826. printf "%s\n" "$have_os2_gcc" >&6; }
  23827. if test x$have_os2_gcc != xyes; then
  23828. as_fn_error $? "
  23829. *** Your compiler ($CC) does not produce OS/2 executables!
  23830. " "$LINENO" 5
  23831. fi
  23832. }
  23833. CheckDIRECTX()
  23834. {
  23835. # Check whether --enable-directx was given.
  23836. if test ${enable_directx+y}
  23837. then :
  23838. enableval=$enable_directx;
  23839. else $as_nop
  23840. enable_directx=yes
  23841. fi
  23842. if test x$enable_directx = xyes; then
  23843. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23844. if test "x$ac_cv_header_d3d9_h" = xyes
  23845. then :
  23846. have_d3d=yes
  23847. fi
  23848. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23849. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23850. then :
  23851. have_d3d11=yes
  23852. fi
  23853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23854. printf %s "checking for compatible d3d12 headers... " >&6; }
  23855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23856. /* end confdefs.h. */
  23857. #include <d3d12.h>
  23858. #include <d3d12sdklayers.h>
  23859. ID3D12Device1 *device;
  23860. int
  23861. main (void)
  23862. {
  23863. ;
  23864. return 0;
  23865. }
  23866. _ACEOF
  23867. if ac_fn_c_try_compile "$LINENO"
  23868. then :
  23869. have_d3d12=yes
  23870. else $as_nop
  23871. have_d3d12=no
  23872. fi
  23873. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23875. printf "%s\n" "$have_d3d12" >&6; }
  23876. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23877. if test "x$ac_cv_header_ddraw_h" = xyes
  23878. then :
  23879. have_ddraw=yes
  23880. fi
  23881. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23882. if test "x$ac_cv_header_dsound_h" = xyes
  23883. then :
  23884. have_dsound=yes
  23885. fi
  23886. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23887. if test "x$ac_cv_header_dinput_h" = xyes
  23888. then :
  23889. have_dinput=yes
  23890. fi
  23891. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23892. if test "x$ac_cv_header_dxgi_h" = xyes
  23893. then :
  23894. have_dxgi=yes
  23895. fi
  23896. if test x$have_ddraw = xyes; then
  23897. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23898. fi
  23899. if test x$have_dinput = xyes; then
  23900. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23901. fi
  23902. if test x$have_dsound = xyes; then
  23903. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23904. fi
  23905. if test x$have_dxgi = xyes; then
  23906. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23907. fi
  23908. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23909. # FIXME: ...so force it off for now.
  23910. case "$host" in
  23911. *-*-cygwin*)
  23912. have_dinput=false
  23913. ;;
  23914. esac
  23915. fi
  23916. # Check whether --enable-xinput was given.
  23917. if test ${enable_xinput+y}
  23918. then :
  23919. enableval=$enable_xinput;
  23920. else $as_nop
  23921. enable_xinput=yes
  23922. fi
  23923. if test x$enable_xinput = xyes; then
  23924. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23925. if test "x$ac_cv_header_xinput_h" = xyes
  23926. then :
  23927. have_xinput=yes
  23928. fi
  23929. if test x$have_xinput = xyes; then
  23930. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23931. fi
  23932. fi
  23933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23934. printf %s "checking for windows.gaming.input.h... " >&6; }
  23935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23936. /* end confdefs.h. */
  23937. #define COBJMACROS
  23938. #include <windows.gaming.input.h>
  23939. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23940. int
  23941. main (void)
  23942. {
  23943. ;
  23944. return 0;
  23945. }
  23946. _ACEOF
  23947. if ac_fn_c_try_compile "$LINENO"
  23948. then :
  23949. have_wgi=yes
  23950. else $as_nop
  23951. have_wgi=no
  23952. fi
  23953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23955. printf "%s\n" "$have_wgi" >&6; }
  23956. if test x$have_wgi = xyes; then
  23957. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23958. fi
  23959. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23960. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23961. then :
  23962. have_wasapi=yes
  23963. fi
  23964. if test x$have_wasapi = xyes; then
  23965. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23966. fi
  23967. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23968. if test "x$ac_cv_header_audioclient_h" = xyes
  23969. then :
  23970. else $as_nop
  23971. have_wasapi=no
  23972. fi
  23973. if test x$have_wasapi = xyes; then
  23974. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23975. fi
  23976. # Check whether --enable-wasapi was given.
  23977. if test ${enable_wasapi+y}
  23978. then :
  23979. enableval=$enable_wasapi;
  23980. else $as_nop
  23981. enable_wasapi=yes
  23982. fi
  23983. }
  23984. CheckDLOPEN()
  23985. {
  23986. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23987. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23988. if test "x$ac_cv_header_dlfcn_h" = xyes
  23989. then :
  23990. have_dlfcn_h=yes
  23991. else $as_nop
  23992. have_dlfcn_h=no
  23993. fi
  23994. have_dlopen=no
  23995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23996. printf %s "checking for dlopen in -lc... " >&6; }
  23997. if test ${ac_cv_lib_c_dlopen+y}
  23998. then :
  23999. printf %s "(cached) " >&6
  24000. else $as_nop
  24001. ac_check_lib_save_LIBS=$LIBS
  24002. LIBS="-lc $LIBS"
  24003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24004. /* end confdefs.h. */
  24005. /* Override any GCC internal prototype to avoid an error.
  24006. Use char because int might match the return type of a GCC
  24007. builtin and then its argument prototype would still apply. */
  24008. char dlopen ();
  24009. int
  24010. main (void)
  24011. {
  24012. return dlopen ();
  24013. ;
  24014. return 0;
  24015. }
  24016. _ACEOF
  24017. if ac_fn_c_try_link "$LINENO"
  24018. then :
  24019. ac_cv_lib_c_dlopen=yes
  24020. else $as_nop
  24021. ac_cv_lib_c_dlopen=no
  24022. fi
  24023. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24024. conftest$ac_exeext conftest.$ac_ext
  24025. LIBS=$ac_check_lib_save_LIBS
  24026. fi
  24027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  24028. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  24029. if test "x$ac_cv_lib_c_dlopen" = xyes
  24030. then :
  24031. have_dlopen=yes
  24032. else $as_nop
  24033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  24034. printf %s "checking for dlopen in -ldl... " >&6; }
  24035. if test ${ac_cv_lib_dl_dlopen+y}
  24036. then :
  24037. printf %s "(cached) " >&6
  24038. else $as_nop
  24039. ac_check_lib_save_LIBS=$LIBS
  24040. LIBS="-ldl $LIBS"
  24041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24042. /* end confdefs.h. */
  24043. /* Override any GCC internal prototype to avoid an error.
  24044. Use char because int might match the return type of a GCC
  24045. builtin and then its argument prototype would still apply. */
  24046. char dlopen ();
  24047. int
  24048. main (void)
  24049. {
  24050. return dlopen ();
  24051. ;
  24052. return 0;
  24053. }
  24054. _ACEOF
  24055. if ac_fn_c_try_link "$LINENO"
  24056. then :
  24057. ac_cv_lib_dl_dlopen=yes
  24058. else $as_nop
  24059. ac_cv_lib_dl_dlopen=no
  24060. fi
  24061. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24062. conftest$ac_exeext conftest.$ac_ext
  24063. LIBS=$ac_check_lib_save_LIBS
  24064. fi
  24065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  24066. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  24067. if test "x$ac_cv_lib_dl_dlopen" = xyes
  24068. then :
  24069. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  24070. fi
  24071. fi
  24072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  24073. printf %s "checking for dlopen... " >&6; }
  24074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  24075. printf "%s\n" "$have_dlopen" >&6; }
  24076. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  24077. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  24078. if test x$enable_loadso = xyes; then
  24079. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  24080. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  24081. have_loadso=yes
  24082. fi
  24083. fi
  24084. }
  24085. CheckO_CLOEXEC()
  24086. {
  24087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24088. printf %s "checking for O_CLOEXEC... " >&6; }
  24089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24090. /* end confdefs.h. */
  24091. #include <fcntl.h>
  24092. int flag = O_CLOEXEC;
  24093. int
  24094. main (void)
  24095. {
  24096. ;
  24097. return 0;
  24098. }
  24099. _ACEOF
  24100. if ac_fn_c_try_compile "$LINENO"
  24101. then :
  24102. have_o_cloexec=yes
  24103. else $as_nop
  24104. have_o_cloexec=no
  24105. fi
  24106. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24108. printf "%s\n" "$have_o_cloexec" >&6; }
  24109. if test $have_o_cloexec = yes; then
  24110. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24111. fi
  24112. }
  24113. CheckUSBHID()
  24114. {
  24115. case "$host" in
  24116. *-*-*bsd*|*-*-dragonfly*)
  24117. if test x$enable_joystick = xyes; then
  24118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24119. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24120. if test ${ac_cv_lib_usbhid_hid_init+y}
  24121. then :
  24122. printf %s "(cached) " >&6
  24123. else $as_nop
  24124. ac_check_lib_save_LIBS=$LIBS
  24125. LIBS="-lusbhid $LIBS"
  24126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24127. /* end confdefs.h. */
  24128. /* Override any GCC internal prototype to avoid an error.
  24129. Use char because int might match the return type of a GCC
  24130. builtin and then its argument prototype would still apply. */
  24131. char hid_init ();
  24132. int
  24133. main (void)
  24134. {
  24135. return hid_init ();
  24136. ;
  24137. return 0;
  24138. }
  24139. _ACEOF
  24140. if ac_fn_c_try_link "$LINENO"
  24141. then :
  24142. ac_cv_lib_usbhid_hid_init=yes
  24143. else $as_nop
  24144. ac_cv_lib_usbhid_hid_init=no
  24145. fi
  24146. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24147. conftest$ac_exeext conftest.$ac_ext
  24148. LIBS=$ac_check_lib_save_LIBS
  24149. fi
  24150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24151. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24152. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24153. then :
  24154. have_libusbhid=yes
  24155. fi
  24156. if test x$have_libusbhid = xyes; then
  24157. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24158. if test "x$ac_cv_header_usbhid_h" = xyes
  24159. then :
  24160. USB_CFLAGS="-DHAVE_USBHID_H"
  24161. fi
  24162. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24163. if test "x$ac_cv_header_libusbhid_h" = xyes
  24164. then :
  24165. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24166. fi
  24167. USB_LIBS="$USB_LIBS -lusbhid"
  24168. else
  24169. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24170. if test "x$ac_cv_header_usb_h" = xyes
  24171. then :
  24172. USB_CFLAGS="-DHAVE_USB_H"
  24173. fi
  24174. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24175. if test "x$ac_cv_header_libusb_h" = xyes
  24176. then :
  24177. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24178. fi
  24179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24180. printf %s "checking for hid_init in -lusb... " >&6; }
  24181. if test ${ac_cv_lib_usb_hid_init+y}
  24182. then :
  24183. printf %s "(cached) " >&6
  24184. else $as_nop
  24185. ac_check_lib_save_LIBS=$LIBS
  24186. LIBS="-lusb $LIBS"
  24187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24188. /* end confdefs.h. */
  24189. /* Override any GCC internal prototype to avoid an error.
  24190. Use char because int might match the return type of a GCC
  24191. builtin and then its argument prototype would still apply. */
  24192. char hid_init ();
  24193. int
  24194. main (void)
  24195. {
  24196. return hid_init ();
  24197. ;
  24198. return 0;
  24199. }
  24200. _ACEOF
  24201. if ac_fn_c_try_link "$LINENO"
  24202. then :
  24203. ac_cv_lib_usb_hid_init=yes
  24204. else $as_nop
  24205. ac_cv_lib_usb_hid_init=no
  24206. fi
  24207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24208. conftest$ac_exeext conftest.$ac_ext
  24209. LIBS=$ac_check_lib_save_LIBS
  24210. fi
  24211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24212. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24213. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24214. then :
  24215. USB_LIBS="$USB_LIBS -lusb"
  24216. fi
  24217. fi
  24218. save_CFLAGS="$CFLAGS"
  24219. CFLAGS="$CFLAGS $USB_CFLAGS"
  24220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24221. printf %s "checking for usbhid... " >&6; }
  24222. have_usbhid=no
  24223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24224. /* end confdefs.h. */
  24225. #include <sys/types.h>
  24226. #if defined(HAVE_USB_H)
  24227. #include <usb.h>
  24228. #endif
  24229. #ifdef __DragonFly__
  24230. # include <bus/u4b/usb.h>
  24231. # include <bus/u4b/usbhid.h>
  24232. #else
  24233. # include <dev/usb/usb.h>
  24234. # include <dev/usb/usbhid.h>
  24235. #endif
  24236. #if defined(HAVE_USBHID_H)
  24237. #include <usbhid.h>
  24238. #elif defined(HAVE_LIBUSB_H)
  24239. #include <libusb.h>
  24240. #elif defined(HAVE_LIBUSBHID_H)
  24241. #include <libusbhid.h>
  24242. #endif
  24243. int
  24244. main (void)
  24245. {
  24246. struct report_desc *repdesc;
  24247. struct usb_ctl_report *repbuf;
  24248. hid_kind_t hidkind;
  24249. ;
  24250. return 0;
  24251. }
  24252. _ACEOF
  24253. if ac_fn_c_try_compile "$LINENO"
  24254. then :
  24255. have_usbhid=yes
  24256. fi
  24257. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24259. printf "%s\n" "$have_usbhid" >&6; }
  24260. if test x$have_usbhid = xyes; then
  24261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24262. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24263. have_usbhid_ucr_data=no
  24264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24265. /* end confdefs.h. */
  24266. #include <sys/types.h>
  24267. #if defined(HAVE_USB_H)
  24268. #include <usb.h>
  24269. #endif
  24270. #ifdef __DragonFly__
  24271. # include <bus/u4b/usb.h>
  24272. # include <bus/u4b/usbhid.h>
  24273. #else
  24274. # include <dev/usb/usb.h>
  24275. # include <dev/usb/usbhid.h>
  24276. #endif
  24277. #if defined(HAVE_USBHID_H)
  24278. #include <usbhid.h>
  24279. #elif defined(HAVE_LIBUSB_H)
  24280. #include <libusb.h>
  24281. #elif defined(HAVE_LIBUSBHID_H)
  24282. #include <libusbhid.h>
  24283. #endif
  24284. int
  24285. main (void)
  24286. {
  24287. struct usb_ctl_report buf;
  24288. if (buf.ucr_data) { }
  24289. ;
  24290. return 0;
  24291. }
  24292. _ACEOF
  24293. if ac_fn_c_try_compile "$LINENO"
  24294. then :
  24295. have_usbhid_ucr_data=yes
  24296. fi
  24297. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24298. if test x$have_usbhid_ucr_data = xyes; then
  24299. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24300. fi
  24301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24302. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24304. printf %s "checking for new usbhid API... " >&6; }
  24305. have_usbhid_new=no
  24306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24307. /* end confdefs.h. */
  24308. #include <sys/types.h>
  24309. #if defined(HAVE_USB_H)
  24310. #include <usb.h>
  24311. #endif
  24312. #ifdef __DragonFly__
  24313. #include <bus/u4b/usb.h>
  24314. #include <bus/u4b/usbhid.h>
  24315. #else
  24316. #include <dev/usb/usb.h>
  24317. #include <dev/usb/usbhid.h>
  24318. #endif
  24319. #if defined(HAVE_USBHID_H)
  24320. #include <usbhid.h>
  24321. #elif defined(HAVE_LIBUSB_H)
  24322. #include <libusb.h>
  24323. #elif defined(HAVE_LIBUSBHID_H)
  24324. #include <libusbhid.h>
  24325. #endif
  24326. int
  24327. main (void)
  24328. {
  24329. report_desc_t d;
  24330. hid_start_parse(d, 1, 1);
  24331. ;
  24332. return 0;
  24333. }
  24334. _ACEOF
  24335. if ac_fn_c_try_compile "$LINENO"
  24336. then :
  24337. have_usbhid_new=yes
  24338. fi
  24339. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24340. if test x$have_usbhid_new = xyes; then
  24341. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24342. fi
  24343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24344. printf "%s\n" "$have_usbhid_new" >&6; }
  24345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24346. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24347. have_machine_joystick=no
  24348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24349. /* end confdefs.h. */
  24350. #include <machine/joystick.h>
  24351. int
  24352. main (void)
  24353. {
  24354. struct joystick t;
  24355. ;
  24356. return 0;
  24357. }
  24358. _ACEOF
  24359. if ac_fn_c_try_compile "$LINENO"
  24360. then :
  24361. have_machine_joystick=yes
  24362. fi
  24363. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24364. if test x$have_machine_joystick = xyes; then
  24365. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24366. fi
  24367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24368. printf "%s\n" "$have_machine_joystick" >&6; }
  24369. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24370. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24371. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24372. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24373. have_joystick=yes
  24374. fi
  24375. CFLAGS="$save_CFLAGS"
  24376. fi
  24377. ;;
  24378. esac
  24379. }
  24380. CheckHIDAPI()
  24381. {
  24382. # Check whether --enable-hidapi-joystick was given.
  24383. if test ${enable_hidapi_joystick+y}
  24384. then :
  24385. enableval=$enable_hidapi_joystick;
  24386. else $as_nop
  24387. enable_hidapi_joystick=yes
  24388. fi
  24389. # Check whether --enable-hidapi-libusb was given.
  24390. if test ${enable_hidapi_libusb+y}
  24391. then :
  24392. enableval=$enable_hidapi_libusb;
  24393. else $as_nop
  24394. enable_hidapi_libusb=maybe
  24395. fi
  24396. if test x$enable_hidapi = xyes; then
  24397. case "$host" in
  24398. # libusb does not support iOS
  24399. *-ios-* )
  24400. enable_hidapi_libusb=no
  24401. ;;
  24402. # On the other hand, *BSD specifically uses libusb only
  24403. *-*-*bsd* )
  24404. enable_hidapi_libusb=yes
  24405. require_hidapi_libusb=yes
  24406. ;;
  24407. *-*-os2* )
  24408. enable_hidapi_libusb=yes
  24409. ;;
  24410. esac
  24411. hidapi_support=yes
  24412. if test x$enable_hidapi_libusb = xyes; then
  24413. pkg_failed=no
  24414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24415. printf %s "checking for libusb-1.0... " >&6; }
  24416. if test -n "$LIBUSB_CFLAGS"; then
  24417. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24418. elif test -n "$PKG_CONFIG"; then
  24419. if test -n "$PKG_CONFIG" && \
  24420. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24421. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24422. ac_status=$?
  24423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24424. test $ac_status = 0; }; then
  24425. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24426. test "x$?" != "x0" && pkg_failed=yes
  24427. else
  24428. pkg_failed=yes
  24429. fi
  24430. else
  24431. pkg_failed=untried
  24432. fi
  24433. if test -n "$LIBUSB_LIBS"; then
  24434. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24435. elif test -n "$PKG_CONFIG"; then
  24436. if test -n "$PKG_CONFIG" && \
  24437. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24438. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24439. ac_status=$?
  24440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24441. test $ac_status = 0; }; then
  24442. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24443. test "x$?" != "x0" && pkg_failed=yes
  24444. else
  24445. pkg_failed=yes
  24446. fi
  24447. else
  24448. pkg_failed=untried
  24449. fi
  24450. if test $pkg_failed = yes; then
  24451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24452. printf "%s\n" "no" >&6; }
  24453. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24454. _pkg_short_errors_supported=yes
  24455. else
  24456. _pkg_short_errors_supported=no
  24457. fi
  24458. if test $_pkg_short_errors_supported = yes; then
  24459. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24460. else
  24461. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24462. fi
  24463. # Put the nasty error message in config.log where it belongs
  24464. echo "$LIBUSB_PKG_ERRORS" >&5
  24465. have_libusb=no
  24466. elif test $pkg_failed = untried; then
  24467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24468. printf "%s\n" "no" >&6; }
  24469. have_libusb=no
  24470. else
  24471. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24472. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24474. printf "%s\n" "yes" >&6; }
  24475. have_libusb=yes
  24476. fi
  24477. save_CPPFLAGS="$CPPFLAGS"
  24478. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24479. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24480. if test "x$ac_cv_header_libusb_h" = xyes
  24481. then :
  24482. have_libusb_h=yes
  24483. else $as_nop
  24484. have_libusb_h=no
  24485. fi
  24486. CPPFLAGS="$save_CPPFLAGS"
  24487. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24488. hidapi_support=no
  24489. fi
  24490. fi
  24491. if test x$hidapi_support = xyes; then
  24492. if test x$have_libusb_h = xyes; then
  24493. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24494. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24495. if test x$require_hidapi_libusb = xyes; then
  24496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24497. else
  24498. if test x$have_loadso != xyes; then
  24499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24500. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24501. fi
  24502. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24503. libusb_lib=""
  24504. case "$host" in
  24505. *-*-darwin* )
  24506. libusb_lib="libusb-1.0.0.dylib"
  24507. ;;
  24508. *-*-cygwin* | *-*-mingw* )
  24509. libusb_lib="libusb-1.0.dll"
  24510. ;;
  24511. *-*-os2* )
  24512. libusb_lib="usb100.dll"
  24513. ;;
  24514. esac
  24515. if test x$libusb_lib = x; then
  24516. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24517. fi
  24518. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24519. fi
  24520. fi
  24521. fi
  24522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24523. printf %s "checking for hidapi joystick support... " >&6; }
  24524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24525. printf "%s\n" "$hidapi_support" >&6; }
  24526. fi
  24527. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24528. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24529. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24530. fi
  24531. }
  24532. CheckClockGettime()
  24533. {
  24534. # Check whether --enable-clock_gettime was given.
  24535. if test ${enable_clock_gettime+y}
  24536. then :
  24537. enableval=$enable_clock_gettime;
  24538. else $as_nop
  24539. enable_clock_gettime=yes
  24540. fi
  24541. if test x$enable_clock_gettime = xyes; then
  24542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24543. printf %s "checking for clock_gettime in -lc... " >&6; }
  24544. if test ${ac_cv_lib_c_clock_gettime+y}
  24545. then :
  24546. printf %s "(cached) " >&6
  24547. else $as_nop
  24548. ac_check_lib_save_LIBS=$LIBS
  24549. LIBS="-lc $LIBS"
  24550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24551. /* end confdefs.h. */
  24552. /* Override any GCC internal prototype to avoid an error.
  24553. Use char because int might match the return type of a GCC
  24554. builtin and then its argument prototype would still apply. */
  24555. char clock_gettime ();
  24556. int
  24557. main (void)
  24558. {
  24559. return clock_gettime ();
  24560. ;
  24561. return 0;
  24562. }
  24563. _ACEOF
  24564. if ac_fn_c_try_link "$LINENO"
  24565. then :
  24566. ac_cv_lib_c_clock_gettime=yes
  24567. else $as_nop
  24568. ac_cv_lib_c_clock_gettime=no
  24569. fi
  24570. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24571. conftest$ac_exeext conftest.$ac_ext
  24572. LIBS=$ac_check_lib_save_LIBS
  24573. fi
  24574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24575. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24576. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24577. then :
  24578. have_clock_gettime=yes
  24579. fi
  24580. if test x$have_clock_gettime = xyes; then
  24581. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24582. else
  24583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24584. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24585. if test ${ac_cv_lib_rt_clock_gettime+y}
  24586. then :
  24587. printf %s "(cached) " >&6
  24588. else $as_nop
  24589. ac_check_lib_save_LIBS=$LIBS
  24590. LIBS="-lrt $LIBS"
  24591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24592. /* end confdefs.h. */
  24593. /* Override any GCC internal prototype to avoid an error.
  24594. Use char because int might match the return type of a GCC
  24595. builtin and then its argument prototype would still apply. */
  24596. char clock_gettime ();
  24597. int
  24598. main (void)
  24599. {
  24600. return clock_gettime ();
  24601. ;
  24602. return 0;
  24603. }
  24604. _ACEOF
  24605. if ac_fn_c_try_link "$LINENO"
  24606. then :
  24607. ac_cv_lib_rt_clock_gettime=yes
  24608. else $as_nop
  24609. ac_cv_lib_rt_clock_gettime=no
  24610. fi
  24611. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24612. conftest$ac_exeext conftest.$ac_ext
  24613. LIBS=$ac_check_lib_save_LIBS
  24614. fi
  24615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24616. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24617. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24618. then :
  24619. have_clock_gettime=yes
  24620. fi
  24621. if test x$have_clock_gettime = xyes; then
  24622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24623. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24624. fi
  24625. fi
  24626. fi
  24627. }
  24628. CheckLinuxVersion()
  24629. {
  24630. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24631. if test "x$ac_cv_header_linux_version_h" = xyes
  24632. then :
  24633. have_linux_version_h=yes
  24634. fi
  24635. if test x$have_linux_version_h = xyes; then
  24636. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24637. fi
  24638. }
  24639. CheckRPATH()
  24640. {
  24641. # Check whether --enable-rpath was given.
  24642. if test ${enable_rpath+y}
  24643. then :
  24644. enableval=$enable_rpath;
  24645. else $as_nop
  24646. enable_rpath=yes
  24647. fi
  24648. }
  24649. CheckEventSignals()
  24650. {
  24651. # Check whether --enable-backgrounding-signal was given.
  24652. if test ${enable_backgrounding_signal+y}
  24653. then :
  24654. enableval=$enable_backgrounding_signal;
  24655. else $as_nop
  24656. enable_backgrounding_signal=no
  24657. fi
  24658. if test x$enable_backgrounding_signal != xno; then
  24659. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24660. fi
  24661. # Check whether --enable-foregrounding-signal was given.
  24662. if test ${enable_foregrounding_signal+y}
  24663. then :
  24664. enableval=$enable_foregrounding_signal;
  24665. else $as_nop
  24666. enable_foregrounding_signal=no
  24667. fi
  24668. if test x$enable_foregrounding_signal != xno; then
  24669. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24670. fi
  24671. }
  24672. CheckVirtualJoystick()
  24673. {
  24674. # Check whether --enable-joystick-virtual was given.
  24675. if test ${enable_joystick_virtual+y}
  24676. then :
  24677. enableval=$enable_joystick_virtual;
  24678. else $as_nop
  24679. enable_joystick_virtual=yes
  24680. fi
  24681. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24682. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24683. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24684. have_joystick_virtual=yes
  24685. fi
  24686. }
  24687. CheckWarnAll
  24688. CheckUnusedLocalTypedefs
  24689. CheckNoStrictAliasing
  24690. CheckEventSignals
  24691. have_locale=no
  24692. case "$host" in
  24693. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24694. case "$host" in
  24695. *-*-android*)
  24696. # Android
  24697. ARCH=android
  24698. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24699. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24700. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24701. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24702. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24703. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24704. if test x$enable_video = xyes; then
  24705. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24706. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24707. SUMMARY_video="${SUMMARY_video} android"
  24708. have_video=yes
  24709. fi
  24710. ;;
  24711. *-*-linux*) ARCH=linux ;;
  24712. *-*-uclinux*) ARCH=linux ;;
  24713. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24714. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24715. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24716. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24717. *-*-bsdi*) ARCH=bsdi ;;
  24718. *-*-freebsd*) ARCH=freebsd ;;
  24719. *-*-dragonfly*) ARCH=freebsd ;;
  24720. *-*-netbsd*) ARCH=netbsd ;;
  24721. *-*-openbsd*) ARCH=openbsd ;;
  24722. *-*-sysv5*) ARCH=sysv5 ;;
  24723. *-*-solaris*) ARCH=solaris ;;
  24724. *-*-hpux*) ARCH=hpux ;;
  24725. *-*-aix*) ARCH=aix ;;
  24726. *-*-minix*) ARCH=minix ;;
  24727. *-*-nto*) ARCH=nto
  24728. CheckQNXVideo
  24729. ;;
  24730. esac
  24731. CheckVisibilityHidden
  24732. CheckWerror
  24733. CheckDeclarationAfterStatement
  24734. CheckDummyVideo
  24735. CheckOffscreenVideo
  24736. CheckDiskAudio
  24737. CheckDummyAudio
  24738. CheckDLOPEN
  24739. CheckARM
  24740. CheckNEON
  24741. CheckO_CLOEXEC
  24742. CheckOSS
  24743. CheckALSA
  24744. CheckPipewire
  24745. CheckPulseAudio
  24746. CheckJACK
  24747. CheckARTSC
  24748. CheckESD
  24749. CheckNAS
  24750. CheckSNDIO
  24751. CheckFusionSound
  24752. CheckLibSampleRate
  24753. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24754. CheckRPI
  24755. CheckX11
  24756. CheckDirectFB
  24757. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24758. CheckEGL
  24759. CheckKMSDRM
  24760. CheckGLX
  24761. CheckOpenGL
  24762. CheckOpenGLES
  24763. CheckVulkan
  24764. CheckWayland
  24765. CheckInputEvents
  24766. CheckLibUDev
  24767. CheckDBus
  24768. CheckIME
  24769. CheckInotify
  24770. CheckIBus
  24771. CheckFcitx
  24772. case $ARCH in
  24773. linux)
  24774. CheckInputKD
  24775. ;;
  24776. freebsd)
  24777. CheckInputKBIO
  24778. ;;
  24779. openbsd|netbsd)
  24780. CheckInputWSCONS
  24781. ;;
  24782. esac
  24783. CheckUSBHID
  24784. CheckHIDAPI
  24785. CheckPTHREAD
  24786. CheckClockGettime
  24787. CheckLinuxVersion
  24788. CheckRPATH
  24789. CheckVivanteVideo
  24790. # Set up files for the misc library
  24791. if test x$enable_misc = xyes; then
  24792. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24793. have_misc=yes
  24794. fi
  24795. # Set up files for the locale library
  24796. if test x$enable_locale = xyes; then
  24797. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24798. have_locale=yes
  24799. fi
  24800. # Set up files for the audio library
  24801. if test x$enable_audio = xyes; then
  24802. case $ARCH in
  24803. sysv5|solaris|hpux)
  24804. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24805. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24806. SUMMARY_audio="${SUMMARY_audio} sun"
  24807. have_audio=yes
  24808. ;;
  24809. netbsd) # Don't use this on OpenBSD, it's busted.
  24810. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24811. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24812. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24813. have_audio=yes
  24814. ;;
  24815. aix)
  24816. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24817. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24818. SUMMARY_audio="${SUMMARY_audio} paudio"
  24819. have_audio=yes
  24820. ;;
  24821. android)
  24822. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24823. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24824. SUMMARY_audio="${SUMMARY_audio} android"
  24825. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24826. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24827. SUMMARY_audio="${SUMMARY_audio} openslES"
  24828. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24829. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24830. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24831. have_audio=yes
  24832. ;;
  24833. nto)
  24834. CheckQNXAudio
  24835. ;;
  24836. esac
  24837. fi
  24838. # Set up files for the joystick library
  24839. if test x$enable_joystick = xyes; then
  24840. case $ARCH in
  24841. linux)
  24842. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24843. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24844. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24845. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24846. have_joystick=yes
  24847. fi
  24848. ;;
  24849. freebsd)
  24850. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24851. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24852. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24853. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24854. have_joystick=yes
  24855. fi
  24856. ;;
  24857. android)
  24858. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24859. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24860. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24861. have_joystick=yes
  24862. ;;
  24863. esac
  24864. fi
  24865. # Set up files for the haptic library
  24866. if test x$enable_haptic = xyes; then
  24867. case $ARCH in
  24868. linux|freebsd)
  24869. if test x$use_input_events = xyes; then
  24870. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24871. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24872. have_haptic=yes
  24873. fi
  24874. ;;
  24875. android)
  24876. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24877. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24878. have_haptic=yes
  24879. ;;
  24880. esac
  24881. fi
  24882. # Set up files for the sensor library
  24883. if test x$enable_sensor = xyes; then
  24884. case $ARCH in
  24885. android)
  24886. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24887. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24888. have_sensor=yes
  24889. ;;
  24890. esac
  24891. fi
  24892. # Set up files for the power library
  24893. if test x$enable_power = xyes; then
  24894. case $ARCH in
  24895. linux)
  24896. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24897. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24898. have_power=yes
  24899. ;;
  24900. android)
  24901. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24902. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24903. have_power=yes
  24904. ;;
  24905. esac
  24906. fi
  24907. # Set up files for the filesystem library
  24908. if test x$enable_filesystem = xyes; then
  24909. case $ARCH in
  24910. android)
  24911. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24912. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24913. have_filesystem=yes
  24914. ;;
  24915. *)
  24916. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24917. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24918. have_filesystem=yes
  24919. ;;
  24920. esac
  24921. fi
  24922. # Set up files for the timer library
  24923. if test x$enable_timers = xyes; then
  24924. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24925. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24926. have_timers=yes
  24927. fi
  24928. # Set up files for udev hotplugging support
  24929. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24930. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24931. fi
  24932. # Set up files for evdev input
  24933. if test x$use_input_events = xyes; then
  24934. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24935. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24936. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24937. fi
  24938. # Set up files for wscons input
  24939. if test x$use_input_wscons = xyes; then
  24940. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24941. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24942. fi
  24943. # Set up other core UNIX files
  24944. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24945. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24946. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24947. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24948. ;;
  24949. *-*-cygwin* | *-*-mingw*)
  24950. ARCH=win32
  24951. if test "$build" != "$host"; then # cross-compiling
  24952. # Default cross-compile location
  24953. ac_default_prefix=/usr/local/cross-tools/$host
  24954. else
  24955. # Look for the location of the tools and install there
  24956. if test "$BUILD_PREFIX" != ""; then
  24957. ac_default_prefix=$BUILD_PREFIX
  24958. fi
  24959. fi
  24960. if test x$enable_loadso = xyes; then
  24961. have_loadso=yes
  24962. fi
  24963. CheckGDwarf4
  24964. CheckWerror
  24965. CheckDeclarationAfterStatement
  24966. CheckDummyVideo
  24967. CheckOffscreenVideo
  24968. CheckDiskAudio
  24969. CheckDummyAudio
  24970. CheckWINDOWS
  24971. CheckWINDOWSGL
  24972. CheckWINDOWSGLES
  24973. CheckVulkan
  24974. CheckDIRECTX
  24975. CheckHIDAPI
  24976. # Set up the core platform files
  24977. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24978. # Set up files for the misc library
  24979. if test x$enable_misc = xyes; then
  24980. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24981. have_misc=yes
  24982. fi
  24983. # Use the Windows locale APIs.
  24984. if test x$enable_locale = xyes; then
  24985. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24986. have_locale=yes
  24987. fi
  24988. # Set up files for the video library
  24989. if test x$enable_video = xyes; then
  24990. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24991. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24992. have_video=yes
  24993. # Check whether --enable-render-d3d was given.
  24994. if test ${enable_render_d3d+y}
  24995. then :
  24996. enableval=$enable_render_d3d;
  24997. else $as_nop
  24998. enable_render_d3d=yes
  24999. fi
  25000. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  25001. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  25002. SUMMARY_video="${SUMMARY_video} d3d9"
  25003. fi
  25004. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  25005. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  25006. SUMMARY_video="${SUMMARY_video} d3d11"
  25007. fi
  25008. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  25009. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  25010. SUMMARY_video="${SUMMARY_video} d3d12"
  25011. fi
  25012. fi
  25013. # Set up files for the audio library
  25014. if test x$enable_audio = xyes; then
  25015. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  25016. SUMMARY_audio="${SUMMARY_audio} winmm"
  25017. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  25018. if test x$have_dsound = xyes; then
  25019. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  25020. SUMMARY_audio="${SUMMARY_audio} directsound"
  25021. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  25022. fi
  25023. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  25024. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  25025. SUMMARY_audio="${SUMMARY_audio} wasapi"
  25026. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  25027. fi
  25028. have_audio=yes
  25029. fi
  25030. # Set up files for the joystick library
  25031. if test x$enable_joystick = xyes; then
  25032. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  25033. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  25034. if test x$have_xinput = xyes; then
  25035. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  25036. fi
  25037. if test x$have_wgi = xyes; then
  25038. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  25039. fi
  25040. if test x$have_dinput = xyes; then
  25041. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  25042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  25043. fi
  25044. fi
  25045. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  25046. have_joystick=yes
  25047. fi
  25048. if test x$enable_haptic = xyes; then
  25049. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  25050. if test x$have_xinput = xyes; then
  25051. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  25052. fi
  25053. if test x$have_dinput = xyes; then
  25054. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  25055. fi
  25056. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  25057. have_haptic=yes
  25058. fi
  25059. fi
  25060. # Set up files for the sensor library
  25061. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  25062. if test "x$ac_cv_header_sensorsapi_h" = xyes
  25063. then :
  25064. have_winsensors=yes
  25065. else $as_nop
  25066. have_winsensors=no
  25067. fi
  25068. if test x$have_winsensors = xyes; then
  25069. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  25070. fi
  25071. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  25072. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  25073. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  25074. have_sensor=yes
  25075. fi
  25076. # Set up files for the power library
  25077. if test x$enable_power = xyes; then
  25078. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  25079. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  25080. have_power=yes
  25081. fi
  25082. # Set up files for the filesystem library
  25083. if test x$enable_filesystem = xyes; then
  25084. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  25085. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  25086. have_filesystem=yes
  25087. fi
  25088. # Set up files for the thread library
  25089. if test x$enable_threads = xyes; then
  25090. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25091. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25092. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25093. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25094. have_threads=yes
  25095. fi
  25096. # Set up files for the timer library
  25097. if test x$enable_timers = xyes; then
  25098. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25099. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25100. have_timers=yes
  25101. fi
  25102. # Set up files for the shared object loading library
  25103. if test x$enable_loadso = xyes; then
  25104. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25105. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25106. fi
  25107. # Set up the system libraries we need
  25108. if test -f /lib/w32api/libuuid.a; then
  25109. LIBUUID=/lib/w32api/libuuid.a
  25110. else
  25111. LIBUUID=-luuid
  25112. fi
  25113. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25114. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25115. # The Windows platform requires special setup
  25116. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25117. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25118. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25119. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25120. # Check to see if this is a mingw or cygwin build
  25121. have_mingw32=
  25122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25123. printf %s "checking for main in -lmingw32... " >&6; }
  25124. if test ${ac_cv_lib_mingw32_main+y}
  25125. then :
  25126. printf %s "(cached) " >&6
  25127. else $as_nop
  25128. ac_check_lib_save_LIBS=$LIBS
  25129. LIBS="-lmingw32 $LIBS"
  25130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25131. /* end confdefs.h. */
  25132. int
  25133. main (void)
  25134. {
  25135. return main ();
  25136. ;
  25137. return 0;
  25138. }
  25139. _ACEOF
  25140. if ac_fn_c_try_link "$LINENO"
  25141. then :
  25142. ac_cv_lib_mingw32_main=yes
  25143. else $as_nop
  25144. ac_cv_lib_mingw32_main=no
  25145. fi
  25146. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25147. conftest$ac_exeext conftest.$ac_ext
  25148. LIBS=$ac_check_lib_save_LIBS
  25149. fi
  25150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25151. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25152. if test "x$ac_cv_lib_mingw32_main" = xyes
  25153. then :
  25154. have_mingw32=yes
  25155. fi
  25156. if test x$have_mingw32 = xyes; then
  25157. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25158. else
  25159. SDL_LIBS="-lcygwin $SDL_LIBS"
  25160. fi
  25161. ;;
  25162. *-*-beos*)
  25163. as_fn_error $? "
  25164. *** BeOS support has been removed as of SDL 2.0.2.
  25165. " "$LINENO" 5
  25166. ;;
  25167. *-*-haiku*)
  25168. ARCH=haiku
  25169. ac_default_prefix=/boot/system
  25170. CheckDummyVideo
  25171. CheckOffscreenVideo
  25172. CheckDiskAudio
  25173. CheckDummyAudio
  25174. CheckDLOPEN
  25175. CheckO_CLOEXEC
  25176. CheckHaikuVideo
  25177. CheckHaikuGL
  25178. CheckPTHREAD
  25179. # Set up files for the audio library
  25180. if test x$enable_audio = xyes; then
  25181. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25182. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25183. SUMMARY_audio="${SUMMARY_audio} haiku"
  25184. have_audio=yes
  25185. fi
  25186. # Set up files for the joystick library
  25187. if test x$enable_joystick = xyes; then
  25188. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25189. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25190. have_joystick=yes
  25191. fi
  25192. # Set up files for the timer library
  25193. if test x$enable_timers = xyes; then
  25194. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25195. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25196. have_timers=yes
  25197. fi
  25198. # Set up files for the system power library
  25199. if test x$enable_power = xyes; then
  25200. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25201. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25202. have_power=yes
  25203. fi
  25204. # Set up files for the system filesystem library
  25205. if test x$enable_filesystem = xyes; then
  25206. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25207. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25208. have_filesystem=yes
  25209. fi
  25210. # Set up files for the misc library
  25211. if test x$enable_misc = xyes; then
  25212. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25213. have_misc=yes
  25214. fi
  25215. # Set up files for the locale library
  25216. if test x$enable_locale = xyes; then
  25217. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25218. have_locale=yes
  25219. fi
  25220. # The Haiku platform requires special setup.
  25221. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25223. ;;
  25224. *-ios-*)
  25225. ARCH=ios
  25226. CheckVisibilityHidden
  25227. CheckWerror
  25228. CheckNoErrorDeprecatedDeclarationsWerror
  25229. CheckDeclarationAfterStatement
  25230. CheckDummyVideo
  25231. CheckOffscreenVideo
  25232. CheckDiskAudio
  25233. CheckDummyAudio
  25234. CheckDLOPEN
  25235. CheckO_CLOEXEC
  25236. CheckMETAL
  25237. CheckVulkan
  25238. CheckPTHREAD
  25239. # Set up files for the misc library
  25240. if test x$enable_misc = xyes; then
  25241. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25242. have_misc=yes
  25243. fi
  25244. # Set up files for the locale library
  25245. if test x$enable_locale = xyes; then
  25246. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25247. have_locale=yes
  25248. fi
  25249. # Set up files for the audio library
  25250. if test x$enable_audio = xyes; then
  25251. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25252. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25253. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25254. have_audio=yes
  25255. fi
  25256. # Set up files for the joystick library
  25257. if test x$enable_joystick = xyes; then
  25258. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25259. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25260. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25261. have_joystick=yes
  25262. else
  25263. # Need this code for accelerometer as joystick support
  25264. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25265. fi
  25266. # Set up files for the haptic library
  25267. #if test x$enable_haptic = xyes; then
  25268. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25269. # have_haptic=yes
  25270. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25271. #fi
  25272. # Set up files for the sensor library
  25273. if test x$enable_sensor = xyes; then
  25274. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25275. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25276. have_sensor=yes
  25277. fi
  25278. # Set up files for the power library
  25279. if test x$enable_power = xyes; then
  25280. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25281. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25282. have_power=yes
  25283. fi
  25284. # Set up files for the filesystem library
  25285. if test x$enable_filesystem = xyes; then
  25286. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25287. have_filesystem=yes
  25288. fi
  25289. # Set up additional files for the file library
  25290. if test x$enable_file = xyes; then
  25291. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25293. fi
  25294. # Set up files for the timer library
  25295. if test x$enable_timers = xyes; then
  25296. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25297. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25298. have_timers=yes
  25299. fi
  25300. # Set up other core UNIX files
  25301. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25302. # The iOS platform requires special setup.
  25303. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25304. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25305. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25306. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25307. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25308. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25309. SUMMARY_video="${SUMMARY_video} uikit"
  25310. have_video=yes
  25311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25312. if test x$enable_system_iconv = xyes; then
  25313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25314. fi
  25315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25317. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25318. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25320. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25322. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25323. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25324. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25325. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25326. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25327. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25328. fi
  25329. ;;
  25330. *-*-darwin* )
  25331. # This could be either full "Mac OS X", or plain "Darwin" which is
  25332. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25333. # Next line is broken, and a few files below require Mac OS X (full)
  25334. ARCH=macosx
  25335. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25336. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25337. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25338. CheckObjectiveCARC
  25339. CheckVisibilityHidden
  25340. CheckWerror
  25341. CheckNoErrorDeprecatedDeclarationsWerror
  25342. CheckDeclarationAfterStatement
  25343. CheckDummyVideo
  25344. CheckOffscreenVideo
  25345. CheckDiskAudio
  25346. CheckDummyAudio
  25347. CheckDLOPEN
  25348. CheckO_CLOEXEC
  25349. CheckCOCOA
  25350. CheckMETAL
  25351. CheckX11
  25352. CheckMacGL
  25353. CheckMacGLES
  25354. CheckGLX
  25355. CheckOpenGL
  25356. CheckVulkan
  25357. CheckPTHREAD
  25358. CheckHIDAPI
  25359. # Set up files for the misc library
  25360. if test x$enable_misc = xyes; then
  25361. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25362. have_misc=yes
  25363. fi
  25364. # Set up files for the locale library
  25365. if test x$enable_locale = xyes; then
  25366. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25367. have_locale=yes
  25368. fi
  25369. # Set up files for the audio library
  25370. if test x$enable_audio = xyes; then
  25371. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25372. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25374. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25375. have_audio=yes
  25376. fi
  25377. # Set up files for the joystick library
  25378. if test x$enable_joystick = xyes; then
  25379. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25380. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25381. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25382. CheckJoystickMFI
  25383. have_joystick=yes
  25384. fi
  25385. # Set up files for the haptic library
  25386. if test x$enable_haptic = xyes; then
  25387. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25388. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25390. have_haptic=yes
  25391. fi
  25392. # Set up files for the power library
  25393. if test x$enable_power = xyes; then
  25394. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25395. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25396. have_power=yes
  25397. fi
  25398. # Set up files for the filesystem library
  25399. if test x$enable_filesystem = xyes; then
  25400. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25401. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25402. have_filesystem=yes
  25403. fi
  25404. # Set up files for the timer library
  25405. if test x$enable_timers = xyes; then
  25406. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25407. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25408. have_timers=yes
  25409. fi
  25410. # Set up additional files for the file library
  25411. if test x$enable_file = xyes; then
  25412. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25413. fi
  25414. # Set up other core UNIX files
  25415. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25416. # The Mac OS X platform requires special setup.
  25417. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25419. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25421. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25422. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25423. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25424. fi
  25425. ;;
  25426. *-nacl|*-pnacl)
  25427. ARCH=nacl
  25428. CheckNativeClient
  25429. CheckDummyAudio
  25430. CheckDummyVideo
  25431. CheckOffscreenVideo
  25432. CheckInputEvents
  25433. CheckPTHREAD
  25434. CheckO_CLOEXEC
  25435. # Set up files for the timer library
  25436. if test x$enable_timers = xyes; then
  25437. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25438. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25439. have_timers=yes
  25440. fi
  25441. if test x$enable_filesystem = xyes; then
  25442. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25443. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25444. have_filesystem=yes
  25445. fi
  25446. ;;
  25447. *-*-emscripten* )
  25448. if test x$enable_video = xyes; then
  25449. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25450. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25451. have_video=yes
  25452. SUMMARY_video="${SUMMARY_video} emscripten"
  25453. fi
  25454. if test x$enable_audio = xyes; then
  25455. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25456. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25457. have_audio=yes
  25458. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25459. fi
  25460. CheckVisibilityHidden
  25461. CheckWerror
  25462. CheckDeclarationAfterStatement
  25463. CheckDummyVideo
  25464. CheckOffscreenVideo
  25465. CheckDiskAudio
  25466. CheckDummyAudio
  25467. CheckPTHREAD
  25468. CheckDLOPEN
  25469. CheckClockGettime
  25470. CheckEmscriptenGLES
  25471. # Set up files for the misc library
  25472. if test x$enable_misc = xyes; then
  25473. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25474. have_misc=yes
  25475. fi
  25476. # Set up files for the power library
  25477. if test x$enable_power = xyes; then
  25478. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25479. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25480. have_power=yes
  25481. fi
  25482. # Set up files for the joystick library
  25483. if test x$enable_joystick = xyes; then
  25484. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25485. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25486. have_joystick=yes
  25487. fi
  25488. # Set up files for the filesystem library
  25489. if test x$enable_filesystem = xyes; then
  25490. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25491. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25492. have_filesystem=yes
  25493. fi
  25494. # Set up files for the timer library
  25495. if test x$enable_timers = xyes; then
  25496. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25497. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25498. have_timers=yes
  25499. fi
  25500. # Set up files for the locale library
  25501. if test x$enable_locale = xyes; then
  25502. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25503. have_locale=yes
  25504. fi
  25505. ;;
  25506. *-*-riscos*)
  25507. ARCH=riscos
  25508. CheckVisibilityHidden
  25509. CheckWerror
  25510. CheckDeclarationAfterStatement
  25511. CheckDummyVideo
  25512. CheckOffscreenVideo
  25513. CheckDiskAudio
  25514. CheckDummyAudio
  25515. CheckDLOPEN
  25516. CheckO_CLOEXEC
  25517. CheckOSS
  25518. CheckPTHREAD
  25519. CheckClockGettime
  25520. # Set up files for the misc library
  25521. if test x$enable_misc = xyes; then
  25522. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25523. have_misc=yes
  25524. fi
  25525. # Set up files for the video library
  25526. if test x$enable_video = xyes; then
  25527. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25528. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25529. have_video=yes
  25530. SUMMARY_video="${SUMMARY_video} riscos"
  25531. fi
  25532. # Set up files for the filesystem library
  25533. if test x$enable_filesystem = xyes; then
  25534. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25535. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25536. have_filesystem=yes
  25537. fi
  25538. # Set up files for the timer library
  25539. if test x$enable_timers = xyes; then
  25540. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25541. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25542. have_timers=yes
  25543. fi
  25544. ;;
  25545. *-*-os2*)
  25546. ARCH=os2
  25547. if test "$build" != "$host"; then # cross-compiling
  25548. # Default cross-compile location
  25549. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25550. else
  25551. # Look for the location of the tools and install there
  25552. if test "$BUILD_PREFIX" != ""; then
  25553. ac_default_prefix=$BUILD_PREFIX
  25554. fi
  25555. fi
  25556. enable_static=no # disable static builds
  25557. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25558. CheckOS2
  25559. CheckWerror
  25560. CheckDeclarationAfterStatement
  25561. CheckDummyVideo
  25562. CheckDiskAudio
  25563. CheckDummyAudio
  25564. CheckHIDAPI
  25565. # Set up the core platform files
  25566. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25567. if test x$enable_system_iconv = xyes; then
  25568. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25569. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25570. fi
  25571. fi
  25572. # Use the Unix locale APIs.
  25573. if test x$enable_locale = xyes; then
  25574. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25575. have_locale=yes
  25576. fi
  25577. # Set up files for the video library
  25578. if test x$enable_video = xyes; then
  25579. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25580. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25581. have_video=yes
  25582. SUMMARY_video="${SUMMARY_video} OS/2"
  25583. fi
  25584. # Set up files for the audio library
  25585. if test x$enable_audio = xyes; then
  25586. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25587. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25588. have_audio=yes
  25589. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25590. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25591. fi
  25592. # Set up files for the thread library
  25593. if test x$enable_threads = xyes; then
  25594. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25595. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25596. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25597. have_threads=yes
  25598. fi
  25599. # Set up files for the timer library
  25600. if test x$enable_timers = xyes; then
  25601. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25602. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25603. have_timers=yes
  25604. fi
  25605. # Set up files for the shared object loading library
  25606. if test x$enable_loadso = xyes; then
  25607. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25608. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25609. have_loadso=yes
  25610. fi
  25611. # Set up files for the filesystem library
  25612. if test x$enable_filesystem = xyes; then
  25613. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25614. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25615. have_filesystem=yes
  25616. fi
  25617. # Set up files for the joystick library
  25618. if test x$enable_joystick = xyes; then
  25619. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25620. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25621. have_joystick=yes
  25622. fi
  25623. ;;
  25624. *)
  25625. as_fn_error $? "
  25626. *** Unsupported host: Please add to configure.ac
  25627. " "$LINENO" 5
  25628. ;;
  25629. esac
  25630. CheckVirtualJoystick
  25631. # Check whether to install sdl2-config
  25632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25633. printf %s "checking whether to install sdl2-config... " >&6; }
  25634. # Check whether --enable-sdl2-config was given.
  25635. if test ${enable_sdl2_config+y}
  25636. then :
  25637. enableval=$enable_sdl2_config; case "${enableval}" in
  25638. yes) enable_sdl2_config="TRUE" ;;
  25639. no) enable_sdl2_config="FALSE" ;;
  25640. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25641. esac
  25642. else $as_nop
  25643. enable_sdl2_config="TRUE"
  25644. fi
  25645. if test "$enable_sdl2_config" = "TRUE"; then
  25646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25647. printf "%s\n" "yes" >&6; }
  25648. else
  25649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25650. printf "%s\n" "no" >&6; }
  25651. fi
  25652. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25653. # Check whether --enable-vendor-info was given.
  25654. if test ${enable_vendor_info+y}
  25655. then :
  25656. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25657. else $as_nop
  25658. enable_vendor_info=
  25659. fi
  25660. if test "$enable_vendor_info" = no
  25661. then :
  25662. enable_vendor_info=
  25663. fi
  25664. SDL_VENDOR_INFO=$enable_vendor_info
  25665. # Verify that we have all the platform specific files we need
  25666. if test x$have_audio != xyes; then
  25667. if test x$enable_audio = xyes; then
  25668. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25669. fi
  25670. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25671. fi
  25672. if test x$have_video != xyes; then
  25673. if test x$enable_video = xyes; then
  25674. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25675. fi
  25676. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25677. fi
  25678. if test x$have_misc != xyes; then
  25679. if test x$enable_misc = xyes; then
  25680. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25681. fi
  25682. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25683. fi
  25684. if test x$have_locale != xyes; then
  25685. if test x$enable_locale = xyes; then
  25686. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25687. fi
  25688. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25689. fi
  25690. if test x$have_joystick != xyes; then
  25691. if test x$enable_joystick = xyes; then
  25692. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25693. fi
  25694. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25695. fi
  25696. if test x$have_haptic != xyes; then
  25697. if test x$enable_haptic = xyes; then
  25698. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25699. fi
  25700. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25701. fi
  25702. if test x$have_sensor != xyes; then
  25703. if test x$enable_sensor = xyes; then
  25704. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25705. fi
  25706. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25707. fi
  25708. if test x$have_threads != xyes; then
  25709. if test x$enable_threads = xyes; then
  25710. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25711. fi
  25712. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25713. fi
  25714. if test x$have_timers != xyes; then
  25715. if test x$enable_timers = xyes; then
  25716. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25717. fi
  25718. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25719. fi
  25720. if test x$have_filesystem != xyes; then
  25721. if test x$enable_filesystem = xyes; then
  25722. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25723. fi
  25724. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25725. fi
  25726. if test x$have_loadso != xyes; then
  25727. if test x$enable_loadso = xyes; then
  25728. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25729. fi
  25730. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25731. fi
  25732. if test x$SDLMAIN_SOURCES = x; then
  25733. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25734. fi
  25735. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25736. if test x$video_wayland = xyes; then
  25737. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25738. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25739. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25740. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25741. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25742. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25743. echo ;\
  25744. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25745. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25746. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25747. echo ;\
  25748. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25749. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25750. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25751. echo ;\
  25752. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25753. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25754. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25755. done ;\
  25756. echo ;\
  25757. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25758. fi
  25759. OBJECTS=`echo $SOURCES`
  25760. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25761. for EXT in asm cc m c S; do
  25762. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25763. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25764. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25765. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25766. done
  25767. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25768. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25769. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25770. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25771. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25772. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25773. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25774. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25775. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25776. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25777. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25778. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25779. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25780. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25781. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25782. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25783. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25784. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25785. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25786. # Set runtime shared library paths as needed
  25787. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25788. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25789. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25791. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25792. have_enable_new_dtags=no
  25793. save_LDFLAGS="$LDFLAGS"
  25794. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25796. /* end confdefs.h. */
  25797. int
  25798. main (void)
  25799. {
  25800. ;
  25801. return 0;
  25802. }
  25803. _ACEOF
  25804. if ac_fn_c_try_link "$LINENO"
  25805. then :
  25806. have_enable_new_dtags=yes
  25807. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25808. fi
  25809. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25810. conftest$ac_exeext conftest.$ac_ext
  25811. LDFLAGS="$save_LDFLAGS"
  25812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25813. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25814. fi
  25815. if test $ARCH = solaris; then
  25816. SDL_RLD_FLAGS="-R\${libdir}"
  25817. fi
  25818. else
  25819. SDL_RLD_FLAGS=""
  25820. fi
  25821. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25822. pkg_cmakedir='$libdir/cmake/SDL2'
  25823. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25824. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25825. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25826. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25827. _lcl_receval="$_lcl_from"
  25828. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25829. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25830. _lcl_receval_old=''
  25831. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25832. _lcl_receval_old="$_lcl_receval"
  25833. eval _lcl_receval="\"$_lcl_receval\""
  25834. done
  25835. echo "$_lcl_receval")`
  25836. _lcl_receval="$_lcl_to"
  25837. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25838. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25839. _lcl_receval_old=''
  25840. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25841. _lcl_receval_old="$_lcl_receval"
  25842. eval _lcl_receval="\"$_lcl_receval\""
  25843. done
  25844. echo "$_lcl_receval")`
  25845. _lcl_notation="$_lcl_from$_lcl_to"
  25846. case ":$_lcl_from:" in
  25847. # change empty paths to '.'
  25848. ::) _lcl_from='.' ;;
  25849. # strip trailing slashes
  25850. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25851. :*:) ;;
  25852. esac
  25853. # squeeze repeated slashes
  25854. case '/' in
  25855. # if the path contains any backslashes, turn slashes into backslashes
  25856. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25857. # if the path contains slashes, also turn backslashes into slashes
  25858. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25859. esac
  25860. case ":$_lcl_to:" in
  25861. # change empty paths to '.'
  25862. ::) _lcl_to='.' ;;
  25863. # strip trailing slashes
  25864. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25865. :*:) ;;
  25866. esac
  25867. # squeeze repeated slashes
  25868. case '/' in
  25869. # if the path contains any backslashes, turn slashes into backslashes
  25870. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25871. # if the path contains slashes, also turn backslashes into slashes
  25872. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25873. esac
  25874. _lcl_common_prefix=''
  25875. _lcl_second_prefix_match=''
  25876. while test "$_lcl_second_prefix_match" != 0; do
  25877. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25878. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25879. if test "$_lcl_second_prefix_match" != 0; then
  25880. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25881. _lcl_common_prefix="$_lcl_first_prefix"
  25882. else
  25883. _lcl_second_prefix_match=0
  25884. fi
  25885. fi
  25886. done
  25887. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25888. _lcl_first_rel=''
  25889. _lcl_tmp='xxx'
  25890. while test "$_lcl_tmp" != ''; do
  25891. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25892. if test "$_lcl_first_suffix" != ''; then
  25893. _lcl_first_suffix="$_lcl_tmp"
  25894. _lcl_first_rel="../$_lcl_first_rel"
  25895. fi
  25896. done
  25897. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25898. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25899. case ":$_lcl_result_tmp:" in
  25900. # change empty paths to '.'
  25901. ::) _lcl_result_tmp='.' ;;
  25902. # strip trailing slashes
  25903. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25904. :*:) ;;
  25905. esac
  25906. # squeeze repeated slashes
  25907. case "$_lcl_notation" in
  25908. # if the path contains any backslashes, turn slashes into backslashes
  25909. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25910. # if the path contains slashes, also turn backslashes into slashes
  25911. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25912. esac
  25913. eval $_lcl_result_var='$_lcl_result_tmp'
  25914. done
  25915. PKGCONFIG_DEPENDS=""
  25916. if test x$enable_shared = xyes; then
  25917. PKGCONFIG_LIBS_PRIV="
  25918. Libs.private:"
  25919. ENABLE_SHARED_TRUE=
  25920. ENABLE_SHARED_FALSE="#"
  25921. else
  25922. PKGCONFIG_LIBS_PRIV=
  25923. ENABLE_SHARED_TRUE="#"
  25924. ENABLE_SHARED_FALSE=
  25925. fi
  25926. if test x$enable_static = xyes; then
  25927. ENABLE_STATIC_TRUE=
  25928. ENABLE_STATIC_FALSE="#"
  25929. else
  25930. ENABLE_STATIC_TRUE="#"
  25931. ENABLE_STATIC_FALSE=
  25932. fi
  25933. cat >Makefile.rules <<__EOF__
  25934. # Build rules for objects
  25935. -include \$(OBJECTS:.lo=.d)
  25936. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25937. $srcdir/src/SDL.c: update-revision
  25938. $DEPENDS
  25939. $VERSION_DEPENDS
  25940. $SDLMAIN_DEPENDS
  25941. $SDLTEST_DEPENDS
  25942. $WAYLAND_PROTOCOLS_DEPENDS
  25943. __EOF__
  25944. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25945. ac_config_commands="$ac_config_commands sdl2_config"
  25946. SUMMARY="SDL2 Configure Summary:\n"
  25947. if test x$enable_shared = xyes; then
  25948. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25949. fi
  25950. if test x$enable_static = xyes; then
  25951. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25952. fi
  25953. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25954. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25955. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25956. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25957. if test x$have_x = xyes; then
  25958. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25959. fi
  25960. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25961. if test x$have_joystick_virtual = xyes; then
  25962. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25963. else
  25964. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25965. fi
  25966. if test x$have_samplerate_h_hdr = xyes; then
  25967. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25968. else
  25969. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25970. fi
  25971. if test x$have_libudev_h_hdr = xyes; then
  25972. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25973. else
  25974. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25975. fi
  25976. if test x$have_dbus_dbus_h_hdr = xyes; then
  25977. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25978. else
  25979. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25980. fi
  25981. if test x$enable_ime = xyes; then
  25982. SUMMARY="${SUMMARY}Using ime : YES\n"
  25983. else
  25984. SUMMARY="${SUMMARY}Using ime : NO\n"
  25985. fi
  25986. if test x$have_ibus_ibus_h_hdr = xyes; then
  25987. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25988. else
  25989. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25990. fi
  25991. if test x$have_fcitx = xyes; then
  25992. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25993. else
  25994. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25995. fi
  25996. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25997. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25998. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25999. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26000. SUMMARY="${SUMMARY}configure script with:\n"
  26001. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  26002. fi
  26003. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  26004. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  26005. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  26006. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  26007. SUMMARY="${SUMMARY}configure script with:\n"
  26008. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  26009. fi
  26010. ac_config_commands="$ac_config_commands summary"
  26011. cat >confcache <<\_ACEOF
  26012. # This file is a shell script that caches the results of configure
  26013. # tests run on this system so they can be shared between configure
  26014. # scripts and configure runs, see configure's option --config-cache.
  26015. # It is not useful on other systems. If it contains results you don't
  26016. # want to keep, you may remove or edit it.
  26017. #
  26018. # config.status only pays attention to the cache file if you give it
  26019. # the --recheck option to rerun configure.
  26020. #
  26021. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26022. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26023. # following values.
  26024. _ACEOF
  26025. # The following way of writing the cache mishandles newlines in values,
  26026. # but we know of no workaround that is simple, portable, and efficient.
  26027. # So, we kill variables containing newlines.
  26028. # Ultrix sh set writes to stderr and can't be redirected directly,
  26029. # and sets the high bit in the cache file unless we assign to the vars.
  26030. (
  26031. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26032. eval ac_val=\$$ac_var
  26033. case $ac_val in #(
  26034. *${as_nl}*)
  26035. case $ac_var in #(
  26036. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26037. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26038. esac
  26039. case $ac_var in #(
  26040. _ | IFS | as_nl) ;; #(
  26041. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26042. *) { eval $ac_var=; unset $ac_var;} ;;
  26043. esac ;;
  26044. esac
  26045. done
  26046. (set) 2>&1 |
  26047. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26048. *${as_nl}ac_space=\ *)
  26049. # `set' does not quote correctly, so add quotes: double-quote
  26050. # substitution turns \\\\ into \\, and sed turns \\ into \.
  26051. sed -n \
  26052. "s/'/'\\\\''/g;
  26053. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26054. ;; #(
  26055. *)
  26056. # `set' quotes correctly as required by POSIX, so do not add quotes.
  26057. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26058. ;;
  26059. esac |
  26060. sort
  26061. ) |
  26062. sed '
  26063. /^ac_cv_env_/b end
  26064. t clear
  26065. :clear
  26066. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  26067. t end
  26068. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26069. :end' >>confcache
  26070. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26071. if test -w "$cache_file"; then
  26072. if test "x$cache_file" != "x/dev/null"; then
  26073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26074. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  26075. if test ! -f "$cache_file" || test -h "$cache_file"; then
  26076. cat confcache >"$cache_file"
  26077. else
  26078. case $cache_file in #(
  26079. */* | ?:*)
  26080. mv -f confcache "$cache_file"$$ &&
  26081. mv -f "$cache_file"$$ "$cache_file" ;; #(
  26082. *)
  26083. mv -f confcache "$cache_file" ;;
  26084. esac
  26085. fi
  26086. fi
  26087. else
  26088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26089. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26090. fi
  26091. fi
  26092. rm -f confcache
  26093. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26094. # Let make expand exec_prefix.
  26095. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26096. DEFS=-DHAVE_CONFIG_H
  26097. ac_libobjs=
  26098. ac_ltlibobjs=
  26099. U=
  26100. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26101. # 1. Remove the extension, and $U if already installed.
  26102. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26103. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26104. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26105. # will be set to the directory where LIBOBJS objects are built.
  26106. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26107. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26108. done
  26109. LIBOBJS=$ac_libobjs
  26110. LTLIBOBJS=$ac_ltlibobjs
  26111. : "${CONFIG_STATUS=./config.status}"
  26112. ac_write_fail=0
  26113. ac_clean_files_save=$ac_clean_files
  26114. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26116. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26117. as_write_fail=0
  26118. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26119. #! $SHELL
  26120. # Generated by $as_me.
  26121. # Run this file to recreate the current configuration.
  26122. # Compiler output produced by configure, useful for debugging
  26123. # configure, is in config.log if it exists.
  26124. debug=false
  26125. ac_cs_recheck=false
  26126. ac_cs_silent=false
  26127. SHELL=\${CONFIG_SHELL-$SHELL}
  26128. export SHELL
  26129. _ASEOF
  26130. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26131. ## -------------------- ##
  26132. ## M4sh Initialization. ##
  26133. ## -------------------- ##
  26134. # Be more Bourne compatible
  26135. DUALCASE=1; export DUALCASE # for MKS sh
  26136. as_nop=:
  26137. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26138. then :
  26139. emulate sh
  26140. NULLCMD=:
  26141. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26142. # is contrary to our usage. Disable this feature.
  26143. alias -g '${1+"$@"}'='"$@"'
  26144. setopt NO_GLOB_SUBST
  26145. else $as_nop
  26146. case `(set -o) 2>/dev/null` in #(
  26147. *posix*) :
  26148. set -o posix ;; #(
  26149. *) :
  26150. ;;
  26151. esac
  26152. fi
  26153. # Reset variables that may have inherited troublesome values from
  26154. # the environment.
  26155. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26156. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26157. # side effect of setting IFS to empty, thus disabling word splitting.)
  26158. # Quoting is to prevent editors from complaining about space-tab.
  26159. as_nl='
  26160. '
  26161. export as_nl
  26162. IFS=" "" $as_nl"
  26163. PS1='$ '
  26164. PS2='> '
  26165. PS4='+ '
  26166. # Ensure predictable behavior from utilities with locale-dependent output.
  26167. LC_ALL=C
  26168. export LC_ALL
  26169. LANGUAGE=C
  26170. export LANGUAGE
  26171. # We cannot yet rely on "unset" to work, but we need these variables
  26172. # to be unset--not just set to an empty or harmless value--now, to
  26173. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26174. # also avoids known problems related to "unset" and subshell syntax
  26175. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26176. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26177. do eval test \${$as_var+y} \
  26178. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26179. done
  26180. # Ensure that fds 0, 1, and 2 are open.
  26181. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26182. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26183. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26184. # The user is always right.
  26185. if ${PATH_SEPARATOR+false} :; then
  26186. PATH_SEPARATOR=:
  26187. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26188. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26189. PATH_SEPARATOR=';'
  26190. }
  26191. fi
  26192. # Find who we are. Look in the path if we contain no directory separator.
  26193. as_myself=
  26194. case $0 in #((
  26195. *[\\/]* ) as_myself=$0 ;;
  26196. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26197. for as_dir in $PATH
  26198. do
  26199. IFS=$as_save_IFS
  26200. case $as_dir in #(((
  26201. '') as_dir=./ ;;
  26202. */) ;;
  26203. *) as_dir=$as_dir/ ;;
  26204. esac
  26205. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26206. done
  26207. IFS=$as_save_IFS
  26208. ;;
  26209. esac
  26210. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26211. # in which case we are not to be found in the path.
  26212. if test "x$as_myself" = x; then
  26213. as_myself=$0
  26214. fi
  26215. if test ! -f "$as_myself"; then
  26216. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26217. exit 1
  26218. fi
  26219. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26220. # ----------------------------------------
  26221. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26222. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26223. # script with STATUS, using 1 if that was 0.
  26224. as_fn_error ()
  26225. {
  26226. as_status=$1; test $as_status -eq 0 && as_status=1
  26227. if test "$4"; then
  26228. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26229. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26230. fi
  26231. printf "%s\n" "$as_me: error: $2" >&2
  26232. as_fn_exit $as_status
  26233. } # as_fn_error
  26234. # as_fn_set_status STATUS
  26235. # -----------------------
  26236. # Set $? to STATUS, without forking.
  26237. as_fn_set_status ()
  26238. {
  26239. return $1
  26240. } # as_fn_set_status
  26241. # as_fn_exit STATUS
  26242. # -----------------
  26243. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26244. as_fn_exit ()
  26245. {
  26246. set +e
  26247. as_fn_set_status $1
  26248. exit $1
  26249. } # as_fn_exit
  26250. # as_fn_unset VAR
  26251. # ---------------
  26252. # Portably unset VAR.
  26253. as_fn_unset ()
  26254. {
  26255. { eval $1=; unset $1;}
  26256. }
  26257. as_unset=as_fn_unset
  26258. # as_fn_append VAR VALUE
  26259. # ----------------------
  26260. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26261. # advantage of any shell optimizations that allow amortized linear growth over
  26262. # repeated appends, instead of the typical quadratic growth present in naive
  26263. # implementations.
  26264. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26265. then :
  26266. eval 'as_fn_append ()
  26267. {
  26268. eval $1+=\$2
  26269. }'
  26270. else $as_nop
  26271. as_fn_append ()
  26272. {
  26273. eval $1=\$$1\$2
  26274. }
  26275. fi # as_fn_append
  26276. # as_fn_arith ARG...
  26277. # ------------------
  26278. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26279. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26280. # must be portable across $(()) and expr.
  26281. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26282. then :
  26283. eval 'as_fn_arith ()
  26284. {
  26285. as_val=$(( $* ))
  26286. }'
  26287. else $as_nop
  26288. as_fn_arith ()
  26289. {
  26290. as_val=`expr "$@" || test $? -eq 1`
  26291. }
  26292. fi # as_fn_arith
  26293. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26294. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26295. as_expr=expr
  26296. else
  26297. as_expr=false
  26298. fi
  26299. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26300. as_basename=basename
  26301. else
  26302. as_basename=false
  26303. fi
  26304. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26305. as_dirname=dirname
  26306. else
  26307. as_dirname=false
  26308. fi
  26309. as_me=`$as_basename -- "$0" ||
  26310. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26311. X"$0" : 'X\(//\)$' \| \
  26312. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26313. printf "%s\n" X/"$0" |
  26314. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26315. s//\1/
  26316. q
  26317. }
  26318. /^X\/\(\/\/\)$/{
  26319. s//\1/
  26320. q
  26321. }
  26322. /^X\/\(\/\).*/{
  26323. s//\1/
  26324. q
  26325. }
  26326. s/.*/./; q'`
  26327. # Avoid depending upon Character Ranges.
  26328. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26329. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26330. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26331. as_cr_digits='0123456789'
  26332. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26333. # Determine whether it's possible to make 'echo' print without a newline.
  26334. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26335. # for compatibility with existing Makefiles.
  26336. ECHO_C= ECHO_N= ECHO_T=
  26337. case `echo -n x` in #(((((
  26338. -n*)
  26339. case `echo 'xy\c'` in
  26340. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26341. xy) ECHO_C='\c';;
  26342. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26343. ECHO_T=' ';;
  26344. esac;;
  26345. *)
  26346. ECHO_N='-n';;
  26347. esac
  26348. # For backward compatibility with old third-party macros, we provide
  26349. # the shell variables $as_echo and $as_echo_n. New code should use
  26350. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26351. as_echo='printf %s\n'
  26352. as_echo_n='printf %s'
  26353. rm -f conf$$ conf$$.exe conf$$.file
  26354. if test -d conf$$.dir; then
  26355. rm -f conf$$.dir/conf$$.file
  26356. else
  26357. rm -f conf$$.dir
  26358. mkdir conf$$.dir 2>/dev/null
  26359. fi
  26360. if (echo >conf$$.file) 2>/dev/null; then
  26361. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26362. as_ln_s='ln -s'
  26363. # ... but there are two gotchas:
  26364. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26365. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26366. # In both cases, we have to default to `cp -pR'.
  26367. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26368. as_ln_s='cp -pR'
  26369. elif ln conf$$.file conf$$ 2>/dev/null; then
  26370. as_ln_s=ln
  26371. else
  26372. as_ln_s='cp -pR'
  26373. fi
  26374. else
  26375. as_ln_s='cp -pR'
  26376. fi
  26377. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26378. rmdir conf$$.dir 2>/dev/null
  26379. # as_fn_mkdir_p
  26380. # -------------
  26381. # Create "$as_dir" as a directory, including parents if necessary.
  26382. as_fn_mkdir_p ()
  26383. {
  26384. case $as_dir in #(
  26385. -*) as_dir=./$as_dir;;
  26386. esac
  26387. test -d "$as_dir" || eval $as_mkdir_p || {
  26388. as_dirs=
  26389. while :; do
  26390. case $as_dir in #(
  26391. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26392. *) as_qdir=$as_dir;;
  26393. esac
  26394. as_dirs="'$as_qdir' $as_dirs"
  26395. as_dir=`$as_dirname -- "$as_dir" ||
  26396. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26397. X"$as_dir" : 'X\(//\)[^/]' \| \
  26398. X"$as_dir" : 'X\(//\)$' \| \
  26399. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26400. printf "%s\n" X"$as_dir" |
  26401. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26402. s//\1/
  26403. q
  26404. }
  26405. /^X\(\/\/\)[^/].*/{
  26406. s//\1/
  26407. q
  26408. }
  26409. /^X\(\/\/\)$/{
  26410. s//\1/
  26411. q
  26412. }
  26413. /^X\(\/\).*/{
  26414. s//\1/
  26415. q
  26416. }
  26417. s/.*/./; q'`
  26418. test -d "$as_dir" && break
  26419. done
  26420. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26421. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26422. } # as_fn_mkdir_p
  26423. if mkdir -p . 2>/dev/null; then
  26424. as_mkdir_p='mkdir -p "$as_dir"'
  26425. else
  26426. test -d ./-p && rmdir ./-p
  26427. as_mkdir_p=false
  26428. fi
  26429. # as_fn_executable_p FILE
  26430. # -----------------------
  26431. # Test if FILE is an executable regular file.
  26432. as_fn_executable_p ()
  26433. {
  26434. test -f "$1" && test -x "$1"
  26435. } # as_fn_executable_p
  26436. as_test_x='test -x'
  26437. as_executable_p=as_fn_executable_p
  26438. # Sed expression to map a string onto a valid CPP name.
  26439. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26440. # Sed expression to map a string onto a valid variable name.
  26441. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26442. exec 6>&1
  26443. ## ----------------------------------- ##
  26444. ## Main body of $CONFIG_STATUS script. ##
  26445. ## ----------------------------------- ##
  26446. _ASEOF
  26447. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26448. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26449. # Save the log message, to keep $0 and so on meaningful, and to
  26450. # report actual input values of CONFIG_FILES etc. instead of their
  26451. # values after options handling.
  26452. ac_log="
  26453. This file was extended by $as_me, which was
  26454. generated by GNU Autoconf 2.71. Invocation command line was
  26455. CONFIG_FILES = $CONFIG_FILES
  26456. CONFIG_HEADERS = $CONFIG_HEADERS
  26457. CONFIG_LINKS = $CONFIG_LINKS
  26458. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26459. $ $0 $@
  26460. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26461. "
  26462. _ACEOF
  26463. case $ac_config_files in *"
  26464. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26465. esac
  26466. case $ac_config_headers in *"
  26467. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26468. esac
  26469. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26470. # Files that config.status was made for.
  26471. config_files="$ac_config_files"
  26472. config_headers="$ac_config_headers"
  26473. config_commands="$ac_config_commands"
  26474. _ACEOF
  26475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26476. ac_cs_usage="\
  26477. \`$as_me' instantiates files and other configuration actions
  26478. from templates according to the current configuration. Unless the files
  26479. and actions are specified as TAGs, all are instantiated by default.
  26480. Usage: $0 [OPTION]... [TAG]...
  26481. -h, --help print this help, then exit
  26482. -V, --version print version number and configuration settings, then exit
  26483. --config print configuration, then exit
  26484. -q, --quiet, --silent
  26485. do not print progress messages
  26486. -d, --debug don't remove temporary files
  26487. --recheck update $as_me by reconfiguring in the same conditions
  26488. --file=FILE[:TEMPLATE]
  26489. instantiate the configuration file FILE
  26490. --header=FILE[:TEMPLATE]
  26491. instantiate the configuration header FILE
  26492. Configuration files:
  26493. $config_files
  26494. Configuration headers:
  26495. $config_headers
  26496. Configuration commands:
  26497. $config_commands
  26498. Report bugs to the package provider."
  26499. _ACEOF
  26500. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26501. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26502. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26503. ac_cs_config='$ac_cs_config_escaped'
  26504. ac_cs_version="\\
  26505. config.status
  26506. configured by $0, generated by GNU Autoconf 2.71,
  26507. with options \\"\$ac_cs_config\\"
  26508. Copyright (C) 2021 Free Software Foundation, Inc.
  26509. This config.status script is free software; the Free Software Foundation
  26510. gives unlimited permission to copy, distribute and modify it."
  26511. ac_pwd='$ac_pwd'
  26512. srcdir='$srcdir'
  26513. INSTALL='$INSTALL'
  26514. AWK='$AWK'
  26515. test -n "\$AWK" || AWK=awk
  26516. _ACEOF
  26517. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26518. # The default lists apply if the user does not specify any file.
  26519. ac_need_defaults=:
  26520. while test $# != 0
  26521. do
  26522. case $1 in
  26523. --*=?*)
  26524. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26525. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26526. ac_shift=:
  26527. ;;
  26528. --*=)
  26529. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26530. ac_optarg=
  26531. ac_shift=:
  26532. ;;
  26533. *)
  26534. ac_option=$1
  26535. ac_optarg=$2
  26536. ac_shift=shift
  26537. ;;
  26538. esac
  26539. case $ac_option in
  26540. # Handling of the options.
  26541. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26542. ac_cs_recheck=: ;;
  26543. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26544. printf "%s\n" "$ac_cs_version"; exit ;;
  26545. --config | --confi | --conf | --con | --co | --c )
  26546. printf "%s\n" "$ac_cs_config"; exit ;;
  26547. --debug | --debu | --deb | --de | --d | -d )
  26548. debug=: ;;
  26549. --file | --fil | --fi | --f )
  26550. $ac_shift
  26551. case $ac_optarg in
  26552. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26553. '') as_fn_error $? "missing file argument" ;;
  26554. esac
  26555. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26556. ac_need_defaults=false;;
  26557. --header | --heade | --head | --hea )
  26558. $ac_shift
  26559. case $ac_optarg in
  26560. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26561. esac
  26562. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26563. ac_need_defaults=false;;
  26564. --he | --h)
  26565. # Conflict between --help and --header
  26566. as_fn_error $? "ambiguous option: \`$1'
  26567. Try \`$0 --help' for more information.";;
  26568. --help | --hel | -h )
  26569. printf "%s\n" "$ac_cs_usage"; exit ;;
  26570. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26571. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26572. ac_cs_silent=: ;;
  26573. # This is an error.
  26574. -*) as_fn_error $? "unrecognized option: \`$1'
  26575. Try \`$0 --help' for more information." ;;
  26576. *) as_fn_append ac_config_targets " $1"
  26577. ac_need_defaults=false ;;
  26578. esac
  26579. shift
  26580. done
  26581. ac_configure_extra_args=
  26582. if $ac_cs_silent; then
  26583. exec 6>/dev/null
  26584. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26585. fi
  26586. _ACEOF
  26587. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26588. if \$ac_cs_recheck; then
  26589. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26590. shift
  26591. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26592. CONFIG_SHELL='$SHELL'
  26593. export CONFIG_SHELL
  26594. exec "\$@"
  26595. fi
  26596. _ACEOF
  26597. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26598. exec 5>>config.log
  26599. {
  26600. echo
  26601. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26602. ## Running $as_me. ##
  26603. _ASBOX
  26604. printf "%s\n" "$ac_log"
  26605. } >&5
  26606. _ACEOF
  26607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26608. #
  26609. # INIT-COMMANDS
  26610. #
  26611. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26612. # if CDPATH is set.
  26613. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26614. sed_quote_subst='$sed_quote_subst'
  26615. double_quote_subst='$double_quote_subst'
  26616. delay_variable_subst='$delay_variable_subst'
  26617. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26618. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26619. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26620. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26621. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26622. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26623. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26624. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26625. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26626. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26627. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26628. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26629. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26630. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26631. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26632. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26633. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26634. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26635. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26636. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26637. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26638. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26639. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26640. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26641. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26642. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26643. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26644. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26645. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26646. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26647. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26648. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26649. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26650. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26651. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26652. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26653. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26654. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26655. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26656. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26657. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26658. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26659. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26660. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26661. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26662. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26663. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26664. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26665. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26666. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26667. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26668. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26669. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26670. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26671. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26672. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26673. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26674. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26675. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26676. 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"`'
  26677. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26678. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26679. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26680. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26681. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26682. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26683. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26684. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26685. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26686. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26687. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26688. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26689. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26690. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26691. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26692. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26693. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26694. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26695. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26696. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26697. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26698. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26699. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26700. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26701. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26702. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26703. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26704. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26705. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26706. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26707. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26708. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26709. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26710. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26711. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26712. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26713. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26714. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26715. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26716. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26717. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26718. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26719. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26720. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26721. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26722. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26723. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26724. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26725. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26726. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26727. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26728. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26729. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26730. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26731. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26732. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26733. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26734. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26735. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26736. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26737. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26738. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26739. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26740. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26741. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26742. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26743. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26744. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26745. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26746. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26747. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26748. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26749. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26750. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26751. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26752. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26753. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26754. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26755. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26756. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26757. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26758. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26759. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26760. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26761. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26762. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26763. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26764. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26765. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26766. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26767. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26768. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26769. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26770. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26771. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26772. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26773. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26774. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26775. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26776. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26777. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26778. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26779. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26780. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26781. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26782. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26783. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26784. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26785. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26786. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26787. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26788. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26789. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26790. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26791. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26792. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26793. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26794. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26795. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26796. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26797. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26798. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26799. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26800. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26801. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26802. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26803. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26804. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26805. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26806. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26807. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26808. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26809. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26810. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26811. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26812. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26813. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26814. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26815. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26816. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26817. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26818. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26819. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26820. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26821. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26822. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26823. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26824. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26825. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26826. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26827. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26828. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26829. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26830. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26831. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26832. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26833. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26834. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26835. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26836. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26837. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26838. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26839. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26840. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26841. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26842. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26843. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26844. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26845. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26846. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26847. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26848. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26849. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26850. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26851. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26852. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26853. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26854. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26855. LTCC='$LTCC'
  26856. LTCFLAGS='$LTCFLAGS'
  26857. compiler='$compiler_DEFAULT'
  26858. # A function that is used when there is no print builtin or printf.
  26859. func_fallback_echo ()
  26860. {
  26861. eval 'cat <<_LTECHO_EOF
  26862. \$1
  26863. _LTECHO_EOF'
  26864. }
  26865. # Quote evaled strings.
  26866. for var in AS \
  26867. DLLTOOL \
  26868. OBJDUMP \
  26869. SHELL \
  26870. ECHO \
  26871. PATH_SEPARATOR \
  26872. SED \
  26873. GREP \
  26874. EGREP \
  26875. FGREP \
  26876. LD \
  26877. NM \
  26878. LN_S \
  26879. lt_SP2NL \
  26880. lt_NL2SP \
  26881. reload_flag \
  26882. deplibs_check_method \
  26883. file_magic_cmd \
  26884. file_magic_glob \
  26885. want_nocaseglob \
  26886. sharedlib_from_linklib_cmd \
  26887. AR \
  26888. AR_FLAGS \
  26889. archiver_list_spec \
  26890. STRIP \
  26891. RANLIB \
  26892. CC \
  26893. CFLAGS \
  26894. compiler \
  26895. lt_cv_sys_global_symbol_pipe \
  26896. lt_cv_sys_global_symbol_to_cdecl \
  26897. lt_cv_sys_global_symbol_to_import \
  26898. lt_cv_sys_global_symbol_to_c_name_address \
  26899. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26900. lt_cv_nm_interface \
  26901. nm_file_list_spec \
  26902. lt_cv_truncate_bin \
  26903. lt_prog_compiler_no_builtin_flag \
  26904. lt_prog_compiler_pic \
  26905. lt_prog_compiler_wl \
  26906. lt_prog_compiler_static \
  26907. lt_cv_prog_compiler_c_o \
  26908. need_locks \
  26909. MANIFEST_TOOL \
  26910. DSYMUTIL \
  26911. NMEDIT \
  26912. LIPO \
  26913. OTOOL \
  26914. OTOOL64 \
  26915. shrext_cmds \
  26916. export_dynamic_flag_spec \
  26917. whole_archive_flag_spec \
  26918. compiler_needs_object \
  26919. with_gnu_ld \
  26920. allow_undefined_flag \
  26921. no_undefined_flag \
  26922. hardcode_libdir_flag_spec \
  26923. hardcode_libdir_separator \
  26924. exclude_expsyms \
  26925. include_expsyms \
  26926. file_list_spec \
  26927. variables_saved_for_relink \
  26928. libname_spec \
  26929. library_names_spec \
  26930. soname_spec \
  26931. install_override_mode \
  26932. finish_eval \
  26933. old_striplib \
  26934. striplib \
  26935. compiler_lib_search_dirs \
  26936. predep_objects \
  26937. postdep_objects \
  26938. predeps \
  26939. postdeps \
  26940. compiler_lib_search_path \
  26941. LD_RC \
  26942. LD_CXX \
  26943. reload_flag_RC \
  26944. reload_flag_CXX \
  26945. compiler_RC \
  26946. compiler_CXX \
  26947. lt_prog_compiler_no_builtin_flag_RC \
  26948. lt_prog_compiler_no_builtin_flag_CXX \
  26949. lt_prog_compiler_pic_RC \
  26950. lt_prog_compiler_pic_CXX \
  26951. lt_prog_compiler_wl_RC \
  26952. lt_prog_compiler_wl_CXX \
  26953. lt_prog_compiler_static_RC \
  26954. lt_prog_compiler_static_CXX \
  26955. lt_cv_prog_compiler_c_o_RC \
  26956. lt_cv_prog_compiler_c_o_CXX \
  26957. export_dynamic_flag_spec_RC \
  26958. export_dynamic_flag_spec_CXX \
  26959. whole_archive_flag_spec_RC \
  26960. whole_archive_flag_spec_CXX \
  26961. compiler_needs_object_RC \
  26962. compiler_needs_object_CXX \
  26963. with_gnu_ld_RC \
  26964. with_gnu_ld_CXX \
  26965. allow_undefined_flag_RC \
  26966. allow_undefined_flag_CXX \
  26967. no_undefined_flag_RC \
  26968. no_undefined_flag_CXX \
  26969. hardcode_libdir_flag_spec_RC \
  26970. hardcode_libdir_flag_spec_CXX \
  26971. hardcode_libdir_separator_RC \
  26972. hardcode_libdir_separator_CXX \
  26973. exclude_expsyms_RC \
  26974. exclude_expsyms_CXX \
  26975. include_expsyms_RC \
  26976. include_expsyms_CXX \
  26977. file_list_spec_RC \
  26978. file_list_spec_CXX \
  26979. compiler_lib_search_dirs_RC \
  26980. compiler_lib_search_dirs_CXX \
  26981. predep_objects_RC \
  26982. predep_objects_CXX \
  26983. postdep_objects_RC \
  26984. postdep_objects_CXX \
  26985. predeps_RC \
  26986. predeps_CXX \
  26987. postdeps_RC \
  26988. postdeps_CXX \
  26989. compiler_lib_search_path_RC \
  26990. compiler_lib_search_path_CXX; do
  26991. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26992. *[\\\\\\\`\\"\\\$]*)
  26993. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26994. ;;
  26995. *)
  26996. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26997. ;;
  26998. esac
  26999. done
  27000. # Double-quote double-evaled strings.
  27001. for var in reload_cmds \
  27002. old_postinstall_cmds \
  27003. old_postuninstall_cmds \
  27004. old_archive_cmds \
  27005. extract_expsyms_cmds \
  27006. old_archive_from_new_cmds \
  27007. old_archive_from_expsyms_cmds \
  27008. archive_cmds \
  27009. archive_expsym_cmds \
  27010. module_cmds \
  27011. module_expsym_cmds \
  27012. export_symbols_cmds \
  27013. prelink_cmds \
  27014. postlink_cmds \
  27015. postinstall_cmds \
  27016. postuninstall_cmds \
  27017. finish_cmds \
  27018. sys_lib_search_path_spec \
  27019. configure_time_dlsearch_path \
  27020. configure_time_lt_sys_library_path \
  27021. reload_cmds_RC \
  27022. reload_cmds_CXX \
  27023. old_archive_cmds_RC \
  27024. old_archive_cmds_CXX \
  27025. old_archive_from_new_cmds_RC \
  27026. old_archive_from_new_cmds_CXX \
  27027. old_archive_from_expsyms_cmds_RC \
  27028. old_archive_from_expsyms_cmds_CXX \
  27029. archive_cmds_RC \
  27030. archive_cmds_CXX \
  27031. archive_expsym_cmds_RC \
  27032. archive_expsym_cmds_CXX \
  27033. module_cmds_RC \
  27034. module_cmds_CXX \
  27035. module_expsym_cmds_RC \
  27036. module_expsym_cmds_CXX \
  27037. export_symbols_cmds_RC \
  27038. export_symbols_cmds_CXX \
  27039. prelink_cmds_RC \
  27040. prelink_cmds_CXX \
  27041. postlink_cmds_RC \
  27042. postlink_cmds_CXX; do
  27043. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27044. *[\\\\\\\`\\"\\\$]*)
  27045. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27046. ;;
  27047. *)
  27048. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27049. ;;
  27050. esac
  27051. done
  27052. ac_aux_dir='$ac_aux_dir'
  27053. # See if we are running on zsh, and set the options that allow our
  27054. # commands through without removal of \ escapes INIT.
  27055. if test -n "\${ZSH_VERSION+set}"; then
  27056. setopt NO_GLOB_SUBST
  27057. fi
  27058. PACKAGE='$PACKAGE'
  27059. VERSION='$VERSION'
  27060. RM='$RM'
  27061. ofile='$ofile'
  27062. SUMMARY="$SUMMARY"
  27063. _ACEOF
  27064. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27065. # Handling of arguments.
  27066. for ac_config_target in $ac_config_targets
  27067. do
  27068. case $ac_config_target in
  27069. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  27070. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27071. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  27072. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  27073. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  27074. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  27075. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  27076. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  27077. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  27078. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  27079. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27080. esac
  27081. done
  27082. # If the user did not use the arguments to specify the items to instantiate,
  27083. # then the envvar interface is used. Set only those that are not.
  27084. # We use the long form for the default assignment because of an extremely
  27085. # bizarre bug on SunOS 4.1.3.
  27086. if $ac_need_defaults; then
  27087. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27088. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27089. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27090. fi
  27091. # Have a temporary directory for convenience. Make it in the build tree
  27092. # simply because there is no reason against having it here, and in addition,
  27093. # creating and moving files from /tmp can sometimes cause problems.
  27094. # Hook for its removal unless debugging.
  27095. # Note that there is a small window in which the directory will not be cleaned:
  27096. # after its creation but before its name has been assigned to `$tmp'.
  27097. $debug ||
  27098. {
  27099. tmp= ac_tmp=
  27100. trap 'exit_status=$?
  27101. : "${ac_tmp:=$tmp}"
  27102. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27103. ' 0
  27104. trap 'as_fn_exit 1' 1 2 13 15
  27105. }
  27106. # Create a (secure) tmp directory for tmp files.
  27107. {
  27108. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27109. test -d "$tmp"
  27110. } ||
  27111. {
  27112. tmp=./conf$$-$RANDOM
  27113. (umask 077 && mkdir "$tmp")
  27114. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27115. ac_tmp=$tmp
  27116. # Set up the scripts for CONFIG_FILES section.
  27117. # No need to generate them if there are no CONFIG_FILES.
  27118. # This happens for instance with `./config.status config.h'.
  27119. if test -n "$CONFIG_FILES"; then
  27120. ac_cr=`echo X | tr X '\015'`
  27121. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27122. # But we know of no other shell where ac_cr would be empty at this
  27123. # point, so we can use a bashism as a fallback.
  27124. if test "x$ac_cr" = x; then
  27125. eval ac_cr=\$\'\\r\'
  27126. fi
  27127. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27128. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27129. ac_cs_awk_cr='\\r'
  27130. else
  27131. ac_cs_awk_cr=$ac_cr
  27132. fi
  27133. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27134. _ACEOF
  27135. {
  27136. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27137. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27138. echo "_ACEOF"
  27139. } >conf$$subs.sh ||
  27140. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27141. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27142. ac_delim='%!_!# '
  27143. for ac_last_try in false false false false false :; do
  27144. . ./conf$$subs.sh ||
  27145. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27146. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27147. if test $ac_delim_n = $ac_delim_num; then
  27148. break
  27149. elif $ac_last_try; then
  27150. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27151. else
  27152. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27153. fi
  27154. done
  27155. rm -f conf$$subs.sh
  27156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27157. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27158. _ACEOF
  27159. sed -n '
  27160. h
  27161. s/^/S["/; s/!.*/"]=/
  27162. p
  27163. g
  27164. s/^[^!]*!//
  27165. :repl
  27166. t repl
  27167. s/'"$ac_delim"'$//
  27168. t delim
  27169. :nl
  27170. h
  27171. s/\(.\{148\}\)..*/\1/
  27172. t more1
  27173. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27174. p
  27175. n
  27176. b repl
  27177. :more1
  27178. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27179. p
  27180. g
  27181. s/.\{148\}//
  27182. t nl
  27183. :delim
  27184. h
  27185. s/\(.\{148\}\)..*/\1/
  27186. t more2
  27187. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27188. p
  27189. b
  27190. :more2
  27191. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27192. p
  27193. g
  27194. s/.\{148\}//
  27195. t delim
  27196. ' <conf$$subs.awk | sed '
  27197. /^[^""]/{
  27198. N
  27199. s/\n//
  27200. }
  27201. ' >>$CONFIG_STATUS || ac_write_fail=1
  27202. rm -f conf$$subs.awk
  27203. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27204. _ACAWK
  27205. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27206. for (key in S) S_is_set[key] = 1
  27207. FS = ""
  27208. }
  27209. {
  27210. line = $ 0
  27211. nfields = split(line, field, "@")
  27212. substed = 0
  27213. len = length(field[1])
  27214. for (i = 2; i < nfields; i++) {
  27215. key = field[i]
  27216. keylen = length(key)
  27217. if (S_is_set[key]) {
  27218. value = S[key]
  27219. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27220. len += length(value) + length(field[++i])
  27221. substed = 1
  27222. } else
  27223. len += 1 + keylen
  27224. }
  27225. print line
  27226. }
  27227. _ACAWK
  27228. _ACEOF
  27229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27230. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27231. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27232. else
  27233. cat
  27234. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27235. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27236. _ACEOF
  27237. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27238. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27239. # trailing colons and then remove the whole line if VPATH becomes empty
  27240. # (actually we leave an empty line to preserve line numbers).
  27241. if test "x$srcdir" = x.; then
  27242. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27243. h
  27244. s///
  27245. s/^/:/
  27246. s/[ ]*$/:/
  27247. s/:\$(srcdir):/:/g
  27248. s/:\${srcdir}:/:/g
  27249. s/:@srcdir@:/:/g
  27250. s/^:*//
  27251. s/:*$//
  27252. x
  27253. s/\(=[ ]*\).*/\1/
  27254. G
  27255. s/\n//
  27256. s/^[^=]*=[ ]*$//
  27257. }'
  27258. fi
  27259. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27260. fi # test -n "$CONFIG_FILES"
  27261. # Set up the scripts for CONFIG_HEADERS section.
  27262. # No need to generate them if there are no CONFIG_HEADERS.
  27263. # This happens for instance with `./config.status Makefile'.
  27264. if test -n "$CONFIG_HEADERS"; then
  27265. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27266. BEGIN {
  27267. _ACEOF
  27268. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27269. # here-document in config.status, that substitutes the proper values into
  27270. # config.h.in to produce config.h.
  27271. # Create a delimiter string that does not exist in confdefs.h, to ease
  27272. # handling of long lines.
  27273. ac_delim='%!_!# '
  27274. for ac_last_try in false false :; do
  27275. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27276. if test -z "$ac_tt"; then
  27277. break
  27278. elif $ac_last_try; then
  27279. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27280. else
  27281. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27282. fi
  27283. done
  27284. # For the awk script, D is an array of macro values keyed by name,
  27285. # likewise P contains macro parameters if any. Preserve backslash
  27286. # newline sequences.
  27287. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27288. sed -n '
  27289. s/.\{148\}/&'"$ac_delim"'/g
  27290. t rset
  27291. :rset
  27292. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27293. t def
  27294. d
  27295. :def
  27296. s/\\$//
  27297. t bsnl
  27298. s/["\\]/\\&/g
  27299. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27300. D["\1"]=" \3"/p
  27301. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27302. d
  27303. :bsnl
  27304. s/["\\]/\\&/g
  27305. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27306. D["\1"]=" \3\\\\\\n"\\/p
  27307. t cont
  27308. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27309. t cont
  27310. d
  27311. :cont
  27312. n
  27313. s/.\{148\}/&'"$ac_delim"'/g
  27314. t clear
  27315. :clear
  27316. s/\\$//
  27317. t bsnlc
  27318. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27319. d
  27320. :bsnlc
  27321. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27322. b cont
  27323. ' <confdefs.h | sed '
  27324. s/'"$ac_delim"'/"\\\
  27325. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27326. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27327. for (key in D) D_is_set[key] = 1
  27328. FS = ""
  27329. }
  27330. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27331. line = \$ 0
  27332. split(line, arg, " ")
  27333. if (arg[1] == "#") {
  27334. defundef = arg[2]
  27335. mac1 = arg[3]
  27336. } else {
  27337. defundef = substr(arg[1], 2)
  27338. mac1 = arg[2]
  27339. }
  27340. split(mac1, mac2, "(") #)
  27341. macro = mac2[1]
  27342. prefix = substr(line, 1, index(line, defundef) - 1)
  27343. if (D_is_set[macro]) {
  27344. # Preserve the white space surrounding the "#".
  27345. print prefix "define", macro P[macro] D[macro]
  27346. next
  27347. } else {
  27348. # Replace #undef with comments. This is necessary, for example,
  27349. # in the case of _POSIX_SOURCE, which is predefined and required
  27350. # on some systems where configure will not decide to define it.
  27351. if (defundef == "undef") {
  27352. print "/*", prefix defundef, macro, "*/"
  27353. next
  27354. }
  27355. }
  27356. }
  27357. { print }
  27358. _ACAWK
  27359. _ACEOF
  27360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27361. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27362. fi # test -n "$CONFIG_HEADERS"
  27363. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27364. shift
  27365. for ac_tag
  27366. do
  27367. case $ac_tag in
  27368. :[FHLC]) ac_mode=$ac_tag; continue;;
  27369. esac
  27370. case $ac_mode$ac_tag in
  27371. :[FHL]*:*);;
  27372. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27373. :[FH]-) ac_tag=-:-;;
  27374. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27375. esac
  27376. ac_save_IFS=$IFS
  27377. IFS=:
  27378. set x $ac_tag
  27379. IFS=$ac_save_IFS
  27380. shift
  27381. ac_file=$1
  27382. shift
  27383. case $ac_mode in
  27384. :L) ac_source=$1;;
  27385. :[FH])
  27386. ac_file_inputs=
  27387. for ac_f
  27388. do
  27389. case $ac_f in
  27390. -) ac_f="$ac_tmp/stdin";;
  27391. *) # Look for the file first in the build tree, then in the source tree
  27392. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27393. # because $ac_f cannot contain `:'.
  27394. test -f "$ac_f" ||
  27395. case $ac_f in
  27396. [\\/$]*) false;;
  27397. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27398. esac ||
  27399. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27400. esac
  27401. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27402. as_fn_append ac_file_inputs " '$ac_f'"
  27403. done
  27404. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27405. # use $as_me), people would be surprised to read:
  27406. # /* config.h. Generated by config.status. */
  27407. configure_input='Generated from '`
  27408. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27409. `' by configure.'
  27410. if test x"$ac_file" != x-; then
  27411. configure_input="$ac_file. $configure_input"
  27412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27413. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27414. fi
  27415. # Neutralize special characters interpreted by sed in replacement strings.
  27416. case $configure_input in #(
  27417. *\&* | *\|* | *\\* )
  27418. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27419. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27420. *) ac_sed_conf_input=$configure_input;;
  27421. esac
  27422. case $ac_tag in
  27423. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27424. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27425. esac
  27426. ;;
  27427. esac
  27428. ac_dir=`$as_dirname -- "$ac_file" ||
  27429. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27430. X"$ac_file" : 'X\(//\)[^/]' \| \
  27431. X"$ac_file" : 'X\(//\)$' \| \
  27432. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27433. printf "%s\n" X"$ac_file" |
  27434. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27435. s//\1/
  27436. q
  27437. }
  27438. /^X\(\/\/\)[^/].*/{
  27439. s//\1/
  27440. q
  27441. }
  27442. /^X\(\/\/\)$/{
  27443. s//\1/
  27444. q
  27445. }
  27446. /^X\(\/\).*/{
  27447. s//\1/
  27448. q
  27449. }
  27450. s/.*/./; q'`
  27451. as_dir="$ac_dir"; as_fn_mkdir_p
  27452. ac_builddir=.
  27453. case "$ac_dir" in
  27454. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27455. *)
  27456. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27457. # A ".." for each directory in $ac_dir_suffix.
  27458. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27459. case $ac_top_builddir_sub in
  27460. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27461. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27462. esac ;;
  27463. esac
  27464. ac_abs_top_builddir=$ac_pwd
  27465. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27466. # for backward compatibility:
  27467. ac_top_builddir=$ac_top_build_prefix
  27468. case $srcdir in
  27469. .) # We are building in place.
  27470. ac_srcdir=.
  27471. ac_top_srcdir=$ac_top_builddir_sub
  27472. ac_abs_top_srcdir=$ac_pwd ;;
  27473. [\\/]* | ?:[\\/]* ) # Absolute name.
  27474. ac_srcdir=$srcdir$ac_dir_suffix;
  27475. ac_top_srcdir=$srcdir
  27476. ac_abs_top_srcdir=$srcdir ;;
  27477. *) # Relative name.
  27478. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27479. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27480. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27481. esac
  27482. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27483. case $ac_mode in
  27484. :F)
  27485. #
  27486. # CONFIG_FILE
  27487. #
  27488. case $INSTALL in
  27489. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27490. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27491. esac
  27492. _ACEOF
  27493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27494. # If the template does not know about datarootdir, expand it.
  27495. # FIXME: This hack should be removed a few years after 2.60.
  27496. ac_datarootdir_hack=; ac_datarootdir_seen=
  27497. ac_sed_dataroot='
  27498. /datarootdir/ {
  27499. p
  27500. q
  27501. }
  27502. /@datadir@/p
  27503. /@docdir@/p
  27504. /@infodir@/p
  27505. /@localedir@/p
  27506. /@mandir@/p'
  27507. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27508. *datarootdir*) ac_datarootdir_seen=yes;;
  27509. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27511. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27512. _ACEOF
  27513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27514. ac_datarootdir_hack='
  27515. s&@datadir@&$datadir&g
  27516. s&@docdir@&$docdir&g
  27517. s&@infodir@&$infodir&g
  27518. s&@localedir@&$localedir&g
  27519. s&@mandir@&$mandir&g
  27520. s&\\\${datarootdir}&$datarootdir&g' ;;
  27521. esac
  27522. _ACEOF
  27523. # Neutralize VPATH when `$srcdir' = `.'.
  27524. # Shell code in configure.ac might set extrasub.
  27525. # FIXME: do we really want to maintain this feature?
  27526. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27527. ac_sed_extra="$ac_vpsub
  27528. $extrasub
  27529. _ACEOF
  27530. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27531. :t
  27532. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27533. s|@configure_input@|$ac_sed_conf_input|;t t
  27534. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27535. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27536. s&@srcdir@&$ac_srcdir&;t t
  27537. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27538. s&@top_srcdir@&$ac_top_srcdir&;t t
  27539. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27540. s&@builddir@&$ac_builddir&;t t
  27541. s&@abs_builddir@&$ac_abs_builddir&;t t
  27542. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27543. s&@INSTALL@&$ac_INSTALL&;t t
  27544. $ac_datarootdir_hack
  27545. "
  27546. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27547. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27548. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27549. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27550. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27551. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27553. which seems to be undefined. Please make sure it is defined" >&5
  27554. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27555. which seems to be undefined. Please make sure it is defined" >&2;}
  27556. rm -f "$ac_tmp/stdin"
  27557. case $ac_file in
  27558. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27559. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27560. esac \
  27561. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27562. ;;
  27563. :H)
  27564. #
  27565. # CONFIG_HEADER
  27566. #
  27567. if test x"$ac_file" != x-; then
  27568. {
  27569. printf "%s\n" "/* $configure_input */" >&1 \
  27570. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27571. } >"$ac_tmp/config.h" \
  27572. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27573. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27575. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27576. else
  27577. rm -f "$ac_file"
  27578. mv "$ac_tmp/config.h" "$ac_file" \
  27579. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27580. fi
  27581. else
  27582. printf "%s\n" "/* $configure_input */" >&1 \
  27583. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27584. || as_fn_error $? "could not create -" "$LINENO" 5
  27585. fi
  27586. ;;
  27587. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27588. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27589. ;;
  27590. esac
  27591. case $ac_file$ac_mode in
  27592. "libtool":C)
  27593. # See if we are running on zsh, and set the options that allow our
  27594. # commands through without removal of \ escapes.
  27595. if test -n "${ZSH_VERSION+set}"; then
  27596. setopt NO_GLOB_SUBST
  27597. fi
  27598. cfgfile=${ofile}T
  27599. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27600. $RM "$cfgfile"
  27601. cat <<_LT_EOF >> "$cfgfile"
  27602. #! $SHELL
  27603. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27604. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27605. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27606. # Provide generalized library-building support services.
  27607. # Written by Gordon Matzigkeit, 1996
  27608. # Copyright (C) 2014 Free Software Foundation, Inc.
  27609. # This is free software; see the source for copying conditions. There is NO
  27610. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27611. # GNU Libtool is free software; you can redistribute it and/or modify
  27612. # it under the terms of the GNU General Public License as published by
  27613. # the Free Software Foundation; either version 2 of of the License, or
  27614. # (at your option) any later version.
  27615. #
  27616. # As a special exception to the GNU General Public License, if you
  27617. # distribute this file as part of a program or library that is built
  27618. # using GNU Libtool, you may include this file under the same
  27619. # distribution terms that you use for the rest of that program.
  27620. #
  27621. # GNU Libtool is distributed in the hope that it will be useful, but
  27622. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27623. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27624. # GNU General Public License for more details.
  27625. #
  27626. # You should have received a copy of the GNU General Public License
  27627. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27628. # The names of the tagged configurations supported by this script.
  27629. available_tags='RC CXX '
  27630. # Configured defaults for sys_lib_dlsearch_path munging.
  27631. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27632. # ### BEGIN LIBTOOL CONFIG
  27633. # Which release of libtool.m4 was used?
  27634. macro_version=$macro_version
  27635. macro_revision=$macro_revision
  27636. # Assembler program.
  27637. AS=$lt_AS
  27638. # DLL creation program.
  27639. DLLTOOL=$lt_DLLTOOL
  27640. # Object dumper program.
  27641. OBJDUMP=$lt_OBJDUMP
  27642. # Whether or not to build shared libraries.
  27643. build_libtool_libs=$enable_shared
  27644. # Whether or not to build static libraries.
  27645. build_old_libs=$enable_static
  27646. # What type of objects to build.
  27647. pic_mode=$pic_mode
  27648. # Whether or not to optimize for fast installation.
  27649. fast_install=$enable_fast_install
  27650. # Shared archive member basename,for filename based shared library versioning on AIX.
  27651. shared_archive_member_spec=$shared_archive_member_spec
  27652. # Shell to use when invoking shell scripts.
  27653. SHELL=$lt_SHELL
  27654. # An echo program that protects backslashes.
  27655. ECHO=$lt_ECHO
  27656. # The PATH separator for the build system.
  27657. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27658. # The host system.
  27659. host_alias=$host_alias
  27660. host=$host
  27661. host_os=$host_os
  27662. # The build system.
  27663. build_alias=$build_alias
  27664. build=$build
  27665. build_os=$build_os
  27666. # A sed program that does not truncate output.
  27667. SED=$lt_SED
  27668. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27669. Xsed="\$SED -e 1s/^X//"
  27670. # A grep program that handles long lines.
  27671. GREP=$lt_GREP
  27672. # An ERE matcher.
  27673. EGREP=$lt_EGREP
  27674. # A literal string matcher.
  27675. FGREP=$lt_FGREP
  27676. # A BSD- or MS-compatible name lister.
  27677. NM=$lt_NM
  27678. # Whether we need soft or hard links.
  27679. LN_S=$lt_LN_S
  27680. # What is the maximum length of a command?
  27681. max_cmd_len=$max_cmd_len
  27682. # Object file suffix (normally "o").
  27683. objext=$ac_objext
  27684. # Executable file suffix (normally "").
  27685. exeext=$exeext
  27686. # whether the shell understands "unset".
  27687. lt_unset=$lt_unset
  27688. # turn spaces into newlines.
  27689. SP2NL=$lt_lt_SP2NL
  27690. # turn newlines into spaces.
  27691. NL2SP=$lt_lt_NL2SP
  27692. # convert \$build file names to \$host format.
  27693. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27694. # convert \$build files to toolchain format.
  27695. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27696. # Method to check whether dependent libraries are shared objects.
  27697. deplibs_check_method=$lt_deplibs_check_method
  27698. # Command to use when deplibs_check_method = "file_magic".
  27699. file_magic_cmd=$lt_file_magic_cmd
  27700. # How to find potential files when deplibs_check_method = "file_magic".
  27701. file_magic_glob=$lt_file_magic_glob
  27702. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27703. want_nocaseglob=$lt_want_nocaseglob
  27704. # Command to associate shared and link libraries.
  27705. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27706. # The archiver.
  27707. AR=$lt_AR
  27708. # Flags to create an archive.
  27709. AR_FLAGS=$lt_AR_FLAGS
  27710. # How to feed a file listing to the archiver.
  27711. archiver_list_spec=$lt_archiver_list_spec
  27712. # A symbol stripping program.
  27713. STRIP=$lt_STRIP
  27714. # Commands used to install an old-style archive.
  27715. RANLIB=$lt_RANLIB
  27716. old_postinstall_cmds=$lt_old_postinstall_cmds
  27717. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27718. # Whether to use a lock for old archive extraction.
  27719. lock_old_archive_extraction=$lock_old_archive_extraction
  27720. # A C compiler.
  27721. LTCC=$lt_CC
  27722. # LTCC compiler flags.
  27723. LTCFLAGS=$lt_CFLAGS
  27724. # Take the output of nm and produce a listing of raw symbols and C names.
  27725. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27726. # Transform the output of nm in a proper C declaration.
  27727. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27728. # Transform the output of nm into a list of symbols to manually relocate.
  27729. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27730. # Transform the output of nm in a C name address pair.
  27731. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27732. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27733. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27734. # The name lister interface.
  27735. nm_interface=$lt_lt_cv_nm_interface
  27736. # Specify filename containing input files for \$NM.
  27737. nm_file_list_spec=$lt_nm_file_list_spec
  27738. # The root where to search for dependent libraries,and where our libraries should be installed.
  27739. lt_sysroot=$lt_sysroot
  27740. # Command to truncate a binary pipe.
  27741. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27742. # The name of the directory that contains temporary libtool files.
  27743. objdir=$objdir
  27744. # Used to examine libraries when file_magic_cmd begins with "file".
  27745. MAGIC_CMD=$MAGIC_CMD
  27746. # Must we lock files when doing compilation?
  27747. need_locks=$lt_need_locks
  27748. # Manifest tool.
  27749. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27750. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27751. DSYMUTIL=$lt_DSYMUTIL
  27752. # Tool to change global to local symbols on Mac OS X.
  27753. NMEDIT=$lt_NMEDIT
  27754. # Tool to manipulate fat objects and archives on Mac OS X.
  27755. LIPO=$lt_LIPO
  27756. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27757. OTOOL=$lt_OTOOL
  27758. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27759. OTOOL64=$lt_OTOOL64
  27760. # Old archive suffix (normally "a").
  27761. libext=$libext
  27762. # Shared library suffix (normally ".so").
  27763. shrext_cmds=$lt_shrext_cmds
  27764. # The commands to extract the exported symbol list from a shared archive.
  27765. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27766. # Variables whose values should be saved in libtool wrapper scripts and
  27767. # restored at link time.
  27768. variables_saved_for_relink=$lt_variables_saved_for_relink
  27769. # Do we need the "lib" prefix for modules?
  27770. need_lib_prefix=$need_lib_prefix
  27771. # Do we need a version for libraries?
  27772. need_version=$need_version
  27773. # Library versioning type.
  27774. version_type=$version_type
  27775. # Shared library runtime path variable.
  27776. runpath_var=$runpath_var
  27777. # Shared library path variable.
  27778. shlibpath_var=$shlibpath_var
  27779. # Is shlibpath searched before the hard-coded library search path?
  27780. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27781. # Format of library name prefix.
  27782. libname_spec=$lt_libname_spec
  27783. # List of archive names. First name is the real one, the rest are links.
  27784. # The last name is the one that the linker finds with -lNAME
  27785. library_names_spec=$lt_library_names_spec
  27786. # The coded name of the library, if different from the real name.
  27787. soname_spec=$lt_soname_spec
  27788. # Permission mode override for installation of shared libraries.
  27789. install_override_mode=$lt_install_override_mode
  27790. # Command to use after installation of a shared archive.
  27791. postinstall_cmds=$lt_postinstall_cmds
  27792. # Command to use after uninstallation of a shared archive.
  27793. postuninstall_cmds=$lt_postuninstall_cmds
  27794. # Commands used to finish a libtool library installation in a directory.
  27795. finish_cmds=$lt_finish_cmds
  27796. # As "finish_cmds", except a single script fragment to be evaled but
  27797. # not shown.
  27798. finish_eval=$lt_finish_eval
  27799. # Whether we should hardcode library paths into libraries.
  27800. hardcode_into_libs=$hardcode_into_libs
  27801. # Compile-time system search path for libraries.
  27802. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27803. # Detected run-time system search path for libraries.
  27804. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27805. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27806. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27807. # Whether dlopen is supported.
  27808. dlopen_support=$enable_dlopen
  27809. # Whether dlopen of programs is supported.
  27810. dlopen_self=$enable_dlopen_self
  27811. # Whether dlopen of statically linked programs is supported.
  27812. dlopen_self_static=$enable_dlopen_self_static
  27813. # Commands to strip libraries.
  27814. old_striplib=$lt_old_striplib
  27815. striplib=$lt_striplib
  27816. # The linker used to build libraries.
  27817. LD=$lt_LD
  27818. # How to create reloadable object files.
  27819. reload_flag=$lt_reload_flag
  27820. reload_cmds=$lt_reload_cmds
  27821. # Commands used to build an old-style archive.
  27822. old_archive_cmds=$lt_old_archive_cmds
  27823. # A language specific compiler.
  27824. CC=$lt_compiler
  27825. # Is the compiler the GNU compiler?
  27826. with_gcc=$GCC
  27827. # Compiler flag to turn off builtin functions.
  27828. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27829. # Additional compiler flags for building library objects.
  27830. pic_flag=$lt_lt_prog_compiler_pic
  27831. # How to pass a linker flag through the compiler.
  27832. wl=$lt_lt_prog_compiler_wl
  27833. # Compiler flag to prevent dynamic linking.
  27834. link_static_flag=$lt_lt_prog_compiler_static
  27835. # Does compiler simultaneously support -c and -o options?
  27836. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27837. # Whether or not to add -lc for building shared libraries.
  27838. build_libtool_need_lc=$archive_cmds_need_lc
  27839. # Whether or not to disallow shared libs when runtime libs are static.
  27840. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27841. # Compiler flag to allow reflexive dlopens.
  27842. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27843. # Compiler flag to generate shared objects directly from archives.
  27844. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27845. # Whether the compiler copes with passing no objects directly.
  27846. compiler_needs_object=$lt_compiler_needs_object
  27847. # Create an old-style archive from a shared archive.
  27848. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27849. # Create a temporary old-style archive to link instead of a shared archive.
  27850. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27851. # Commands used to build a shared archive.
  27852. archive_cmds=$lt_archive_cmds
  27853. archive_expsym_cmds=$lt_archive_expsym_cmds
  27854. # Commands used to build a loadable module if different from building
  27855. # a shared archive.
  27856. module_cmds=$lt_module_cmds
  27857. module_expsym_cmds=$lt_module_expsym_cmds
  27858. # Whether we are building with GNU ld or not.
  27859. with_gnu_ld=$lt_with_gnu_ld
  27860. # Flag that allows shared libraries with undefined symbols to be built.
  27861. allow_undefined_flag=$lt_allow_undefined_flag
  27862. # Flag that enforces no undefined symbols.
  27863. no_undefined_flag=$lt_no_undefined_flag
  27864. # Flag to hardcode \$libdir into a binary during linking.
  27865. # This must work even if \$libdir does not exist
  27866. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27867. # Whether we need a single "-rpath" flag with a separated argument.
  27868. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27869. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27870. # DIR into the resulting binary.
  27871. hardcode_direct=$hardcode_direct
  27872. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27873. # DIR into the resulting binary and the resulting library dependency is
  27874. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27875. # library is relocated.
  27876. hardcode_direct_absolute=$hardcode_direct_absolute
  27877. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27878. # into the resulting binary.
  27879. hardcode_minus_L=$hardcode_minus_L
  27880. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27881. # into the resulting binary.
  27882. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27883. # Set to "yes" if building a shared library automatically hardcodes DIR
  27884. # into the library and all subsequent libraries and executables linked
  27885. # against it.
  27886. hardcode_automatic=$hardcode_automatic
  27887. # Set to yes if linker adds runtime paths of dependent libraries
  27888. # to runtime path list.
  27889. inherit_rpath=$inherit_rpath
  27890. # Whether libtool must link a program against all its dependency libraries.
  27891. link_all_deplibs=$link_all_deplibs
  27892. # Set to "yes" if exported symbols are required.
  27893. always_export_symbols=$always_export_symbols
  27894. # The commands to list exported symbols.
  27895. export_symbols_cmds=$lt_export_symbols_cmds
  27896. # Symbols that should not be listed in the preloaded symbols.
  27897. exclude_expsyms=$lt_exclude_expsyms
  27898. # Symbols that must always be exported.
  27899. include_expsyms=$lt_include_expsyms
  27900. # Commands necessary for linking programs (against libraries) with templates.
  27901. prelink_cmds=$lt_prelink_cmds
  27902. # Commands necessary for finishing linking programs.
  27903. postlink_cmds=$lt_postlink_cmds
  27904. # Specify filename containing input files.
  27905. file_list_spec=$lt_file_list_spec
  27906. # How to hardcode a shared library path into an executable.
  27907. hardcode_action=$hardcode_action
  27908. # The directories searched by this compiler when creating a shared library.
  27909. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27910. # Dependencies to place before and after the objects being linked to
  27911. # create a shared library.
  27912. predep_objects=$lt_predep_objects
  27913. postdep_objects=$lt_postdep_objects
  27914. predeps=$lt_predeps
  27915. postdeps=$lt_postdeps
  27916. # The library search path used internally by the compiler when linking
  27917. # a shared library.
  27918. compiler_lib_search_path=$lt_compiler_lib_search_path
  27919. # ### END LIBTOOL CONFIG
  27920. _LT_EOF
  27921. cat <<'_LT_EOF' >> "$cfgfile"
  27922. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27923. # func_munge_path_list VARIABLE PATH
  27924. # -----------------------------------
  27925. # VARIABLE is name of variable containing _space_ separated list of
  27926. # directories to be munged by the contents of PATH, which is string
  27927. # having a format:
  27928. # "DIR[:DIR]:"
  27929. # string "DIR[ DIR]" will be prepended to VARIABLE
  27930. # ":DIR[:DIR]"
  27931. # string "DIR[ DIR]" will be appended to VARIABLE
  27932. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27933. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27934. # "DIRA[ DIRA]" will be appended to VARIABLE
  27935. # "DIR[:DIR]"
  27936. # VARIABLE will be replaced by "DIR[ DIR]"
  27937. func_munge_path_list ()
  27938. {
  27939. case x$2 in
  27940. x)
  27941. ;;
  27942. *:)
  27943. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27944. ;;
  27945. x:*)
  27946. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27947. ;;
  27948. *::*)
  27949. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27950. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27951. ;;
  27952. *)
  27953. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27954. ;;
  27955. esac
  27956. }
  27957. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27958. func_cc_basename ()
  27959. {
  27960. for cc_temp in $*""; do
  27961. case $cc_temp in
  27962. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27963. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27964. \-*) ;;
  27965. *) break;;
  27966. esac
  27967. done
  27968. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27969. }
  27970. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27971. _LT_EOF
  27972. case $host_os in
  27973. aix3*)
  27974. cat <<\_LT_EOF >> "$cfgfile"
  27975. # AIX sometimes has problems with the GCC collect2 program. For some
  27976. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27977. # vanish in a puff of smoke.
  27978. if test set != "${COLLECT_NAMES+set}"; then
  27979. COLLECT_NAMES=
  27980. export COLLECT_NAMES
  27981. fi
  27982. _LT_EOF
  27983. ;;
  27984. esac
  27985. ltmain=$ac_aux_dir/ltmain.sh
  27986. # We use sed instead of cat because bash on DJGPP gets confused if
  27987. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27988. # text mode, it properly converts lines to CR/LF. This bash problem
  27989. # is reportedly fixed, but why not run on old versions too?
  27990. sed '$q' "$ltmain" >> "$cfgfile" \
  27991. || (rm -f "$cfgfile"; exit 1)
  27992. mv -f "$cfgfile" "$ofile" ||
  27993. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27994. chmod +x "$ofile"
  27995. cat <<_LT_EOF >> "$ofile"
  27996. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27997. # The linker used to build libraries.
  27998. LD=$lt_LD_RC
  27999. # How to create reloadable object files.
  28000. reload_flag=$lt_reload_flag_RC
  28001. reload_cmds=$lt_reload_cmds_RC
  28002. # Commands used to build an old-style archive.
  28003. old_archive_cmds=$lt_old_archive_cmds_RC
  28004. # A language specific compiler.
  28005. CC=$lt_compiler_RC
  28006. # Is the compiler the GNU compiler?
  28007. with_gcc=$GCC_RC
  28008. # Compiler flag to turn off builtin functions.
  28009. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  28010. # Additional compiler flags for building library objects.
  28011. pic_flag=$lt_lt_prog_compiler_pic_RC
  28012. # How to pass a linker flag through the compiler.
  28013. wl=$lt_lt_prog_compiler_wl_RC
  28014. # Compiler flag to prevent dynamic linking.
  28015. link_static_flag=$lt_lt_prog_compiler_static_RC
  28016. # Does compiler simultaneously support -c and -o options?
  28017. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  28018. # Whether or not to add -lc for building shared libraries.
  28019. build_libtool_need_lc=$archive_cmds_need_lc_RC
  28020. # Whether or not to disallow shared libs when runtime libs are static.
  28021. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  28022. # Compiler flag to allow reflexive dlopens.
  28023. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  28024. # Compiler flag to generate shared objects directly from archives.
  28025. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  28026. # Whether the compiler copes with passing no objects directly.
  28027. compiler_needs_object=$lt_compiler_needs_object_RC
  28028. # Create an old-style archive from a shared archive.
  28029. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  28030. # Create a temporary old-style archive to link instead of a shared archive.
  28031. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  28032. # Commands used to build a shared archive.
  28033. archive_cmds=$lt_archive_cmds_RC
  28034. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  28035. # Commands used to build a loadable module if different from building
  28036. # a shared archive.
  28037. module_cmds=$lt_module_cmds_RC
  28038. module_expsym_cmds=$lt_module_expsym_cmds_RC
  28039. # Whether we are building with GNU ld or not.
  28040. with_gnu_ld=$lt_with_gnu_ld_RC
  28041. # Flag that allows shared libraries with undefined symbols to be built.
  28042. allow_undefined_flag=$lt_allow_undefined_flag_RC
  28043. # Flag that enforces no undefined symbols.
  28044. no_undefined_flag=$lt_no_undefined_flag_RC
  28045. # Flag to hardcode \$libdir into a binary during linking.
  28046. # This must work even if \$libdir does not exist
  28047. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  28048. # Whether we need a single "-rpath" flag with a separated argument.
  28049. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  28050. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28051. # DIR into the resulting binary.
  28052. hardcode_direct=$hardcode_direct_RC
  28053. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28054. # DIR into the resulting binary and the resulting library dependency is
  28055. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28056. # library is relocated.
  28057. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  28058. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28059. # into the resulting binary.
  28060. hardcode_minus_L=$hardcode_minus_L_RC
  28061. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28062. # into the resulting binary.
  28063. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  28064. # Set to "yes" if building a shared library automatically hardcodes DIR
  28065. # into the library and all subsequent libraries and executables linked
  28066. # against it.
  28067. hardcode_automatic=$hardcode_automatic_RC
  28068. # Set to yes if linker adds runtime paths of dependent libraries
  28069. # to runtime path list.
  28070. inherit_rpath=$inherit_rpath_RC
  28071. # Whether libtool must link a program against all its dependency libraries.
  28072. link_all_deplibs=$link_all_deplibs_RC
  28073. # Set to "yes" if exported symbols are required.
  28074. always_export_symbols=$always_export_symbols_RC
  28075. # The commands to list exported symbols.
  28076. export_symbols_cmds=$lt_export_symbols_cmds_RC
  28077. # Symbols that should not be listed in the preloaded symbols.
  28078. exclude_expsyms=$lt_exclude_expsyms_RC
  28079. # Symbols that must always be exported.
  28080. include_expsyms=$lt_include_expsyms_RC
  28081. # Commands necessary for linking programs (against libraries) with templates.
  28082. prelink_cmds=$lt_prelink_cmds_RC
  28083. # Commands necessary for finishing linking programs.
  28084. postlink_cmds=$lt_postlink_cmds_RC
  28085. # Specify filename containing input files.
  28086. file_list_spec=$lt_file_list_spec_RC
  28087. # How to hardcode a shared library path into an executable.
  28088. hardcode_action=$hardcode_action_RC
  28089. # The directories searched by this compiler when creating a shared library.
  28090. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28091. # Dependencies to place before and after the objects being linked to
  28092. # create a shared library.
  28093. predep_objects=$lt_predep_objects_RC
  28094. postdep_objects=$lt_postdep_objects_RC
  28095. predeps=$lt_predeps_RC
  28096. postdeps=$lt_postdeps_RC
  28097. # The library search path used internally by the compiler when linking
  28098. # a shared library.
  28099. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28100. # ### END LIBTOOL TAG CONFIG: RC
  28101. _LT_EOF
  28102. cat <<_LT_EOF >> "$ofile"
  28103. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28104. # The linker used to build libraries.
  28105. LD=$lt_LD_CXX
  28106. # How to create reloadable object files.
  28107. reload_flag=$lt_reload_flag_CXX
  28108. reload_cmds=$lt_reload_cmds_CXX
  28109. # Commands used to build an old-style archive.
  28110. old_archive_cmds=$lt_old_archive_cmds_CXX
  28111. # A language specific compiler.
  28112. CC=$lt_compiler_CXX
  28113. # Is the compiler the GNU compiler?
  28114. with_gcc=$GCC_CXX
  28115. # Compiler flag to turn off builtin functions.
  28116. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28117. # Additional compiler flags for building library objects.
  28118. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28119. # How to pass a linker flag through the compiler.
  28120. wl=$lt_lt_prog_compiler_wl_CXX
  28121. # Compiler flag to prevent dynamic linking.
  28122. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28123. # Does compiler simultaneously support -c and -o options?
  28124. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28125. # Whether or not to add -lc for building shared libraries.
  28126. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28127. # Whether or not to disallow shared libs when runtime libs are static.
  28128. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28129. # Compiler flag to allow reflexive dlopens.
  28130. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28131. # Compiler flag to generate shared objects directly from archives.
  28132. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28133. # Whether the compiler copes with passing no objects directly.
  28134. compiler_needs_object=$lt_compiler_needs_object_CXX
  28135. # Create an old-style archive from a shared archive.
  28136. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28137. # Create a temporary old-style archive to link instead of a shared archive.
  28138. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28139. # Commands used to build a shared archive.
  28140. archive_cmds=$lt_archive_cmds_CXX
  28141. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28142. # Commands used to build a loadable module if different from building
  28143. # a shared archive.
  28144. module_cmds=$lt_module_cmds_CXX
  28145. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28146. # Whether we are building with GNU ld or not.
  28147. with_gnu_ld=$lt_with_gnu_ld_CXX
  28148. # Flag that allows shared libraries with undefined symbols to be built.
  28149. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28150. # Flag that enforces no undefined symbols.
  28151. no_undefined_flag=$lt_no_undefined_flag_CXX
  28152. # Flag to hardcode \$libdir into a binary during linking.
  28153. # This must work even if \$libdir does not exist
  28154. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28155. # Whether we need a single "-rpath" flag with a separated argument.
  28156. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28157. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28158. # DIR into the resulting binary.
  28159. hardcode_direct=$hardcode_direct_CXX
  28160. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28161. # DIR into the resulting binary and the resulting library dependency is
  28162. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28163. # library is relocated.
  28164. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28165. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28166. # into the resulting binary.
  28167. hardcode_minus_L=$hardcode_minus_L_CXX
  28168. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28169. # into the resulting binary.
  28170. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28171. # Set to "yes" if building a shared library automatically hardcodes DIR
  28172. # into the library and all subsequent libraries and executables linked
  28173. # against it.
  28174. hardcode_automatic=$hardcode_automatic_CXX
  28175. # Set to yes if linker adds runtime paths of dependent libraries
  28176. # to runtime path list.
  28177. inherit_rpath=$inherit_rpath_CXX
  28178. # Whether libtool must link a program against all its dependency libraries.
  28179. link_all_deplibs=$link_all_deplibs_CXX
  28180. # Set to "yes" if exported symbols are required.
  28181. always_export_symbols=$always_export_symbols_CXX
  28182. # The commands to list exported symbols.
  28183. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28184. # Symbols that should not be listed in the preloaded symbols.
  28185. exclude_expsyms=$lt_exclude_expsyms_CXX
  28186. # Symbols that must always be exported.
  28187. include_expsyms=$lt_include_expsyms_CXX
  28188. # Commands necessary for linking programs (against libraries) with templates.
  28189. prelink_cmds=$lt_prelink_cmds_CXX
  28190. # Commands necessary for finishing linking programs.
  28191. postlink_cmds=$lt_postlink_cmds_CXX
  28192. # Specify filename containing input files.
  28193. file_list_spec=$lt_file_list_spec_CXX
  28194. # How to hardcode a shared library path into an executable.
  28195. hardcode_action=$hardcode_action_CXX
  28196. # The directories searched by this compiler when creating a shared library.
  28197. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28198. # Dependencies to place before and after the objects being linked to
  28199. # create a shared library.
  28200. predep_objects=$lt_predep_objects_CXX
  28201. postdep_objects=$lt_postdep_objects_CXX
  28202. predeps=$lt_predeps_CXX
  28203. postdeps=$lt_postdeps_CXX
  28204. # The library search path used internally by the compiler when linking
  28205. # a shared library.
  28206. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28207. # ### END LIBTOOL TAG CONFIG: CXX
  28208. _LT_EOF
  28209. ;;
  28210. "sdl2_config":C) chmod a+x sdl2-config ;;
  28211. "summary":C) printf "$SUMMARY" ;;
  28212. esac
  28213. done # for ac_tag
  28214. as_fn_exit 0
  28215. _ACEOF
  28216. ac_clean_files=$ac_clean_files_save
  28217. test $ac_write_fail = 0 ||
  28218. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28219. # configure is writing to config.log, and then calls config.status.
  28220. # config.status does its own redirection, appending to config.log.
  28221. # Unfortunately, on DOS this fails, as config.log is still kept open
  28222. # by configure, so config.status won't be able to write to it; its
  28223. # output is simply discarded. So we exec the FD to /dev/null,
  28224. # effectively closing config.log, so it can be properly (re)opened and
  28225. # appended to by config.status. When coming back to configure, we
  28226. # need to make the FD available again.
  28227. if test "$no_create" != yes; then
  28228. ac_cs_success=:
  28229. ac_config_status_args=
  28230. test "$silent" = yes &&
  28231. ac_config_status_args="$ac_config_status_args --quiet"
  28232. exec 5>/dev/null
  28233. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28234. exec 5>>config.log
  28235. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28236. # would make configure fail if this is the last instruction.
  28237. $ac_cs_success || as_fn_exit 1
  28238. fi
  28239. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28241. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28242. fi