configure 961 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727
  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_LIBS
  647. RPI_CFLAGS
  648. DECOR_LIBS
  649. DECOR_CFLAGS
  650. FUSIONSOUND_LIBS
  651. FUSIONSOUND_CFLAGS
  652. SNDIO_LIBS
  653. SNDIO_CFLAGS
  654. ARTSCONFIG
  655. PULSEAUDIO_LIBS
  656. PULSEAUDIO_CFLAGS
  657. PIPEWIRE_LIBS
  658. PIPEWIRE_CFLAGS
  659. ESD_CONFIG
  660. ESD_LIBS
  661. ESD_CFLAGS
  662. JACK_LIBS
  663. JACK_CFLAGS
  664. ALSA_LIBS
  665. ALSA_CFLAGS
  666. ALLOCA
  667. CPP
  668. LIBTOOLLINKERTAG
  669. LINKER
  670. SORT
  671. PKG_CONFIG_LIBDIR
  672. PKG_CONFIG_PATH
  673. PKG_CONFIG
  674. SET_MAKE
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. CXXCPP
  679. ac_ct_CXX
  680. CXXFLAGS
  681. CXX
  682. LT_AGE
  683. LT_REVISION
  684. LT_CURRENT
  685. LT_RELEASE
  686. RC
  687. LT_SYS_LIBRARY_PATH
  688. OTOOL64
  689. OTOOL
  690. LIPO
  691. NMEDIT
  692. DSYMUTIL
  693. MANIFEST_TOOL
  694. AWK
  695. RANLIB
  696. STRIP
  697. ac_ct_AR
  698. AR
  699. LN_S
  700. NM
  701. ac_ct_DUMPBIN
  702. DUMPBIN
  703. LD
  704. FGREP
  705. EGREP
  706. GREP
  707. SED
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. OBJDUMP
  725. DLLTOOL
  726. AS
  727. SDL_VERSION
  728. SDL_BINARY_AGE
  729. SDL_INTERFACE_AGE
  730. SDL_MICRO_VERSION
  731. SDL_MINOR_VERSION
  732. SDL_MAJOR_VERSION
  733. target_alias
  734. host_alias
  735. build_alias
  736. LIBS
  737. ECHO_T
  738. ECHO_N
  739. ECHO_C
  740. DEFS
  741. mandir
  742. localedir
  743. libdir
  744. psdir
  745. pdfdir
  746. dvidir
  747. htmldir
  748. infodir
  749. docdir
  750. oldincludedir
  751. includedir
  752. runstatedir
  753. localstatedir
  754. sharedstatedir
  755. sysconfdir
  756. datadir
  757. datarootdir
  758. libexecdir
  759. sbindir
  760. bindir
  761. program_transform_name
  762. prefix
  763. exec_prefix
  764. PACKAGE_URL
  765. PACKAGE_BUGREPORT
  766. PACKAGE_STRING
  767. PACKAGE_VERSION
  768. PACKAGE_TARNAME
  769. PACKAGE_NAME
  770. PATH_SEPARATOR
  771. SHELL'
  772. ac_subst_files=''
  773. ac_user_opts='
  774. enable_option_checking
  775. enable_shared
  776. enable_static
  777. with_pic
  778. enable_fast_install
  779. with_aix_soname
  780. with_gnu_ld
  781. with_sysroot
  782. enable_libtool_lock
  783. enable_largefile
  784. enable_assertions
  785. enable_dependency_tracking
  786. enable_libc
  787. enable_system_iconv
  788. enable_libiconv
  789. enable_gcc_atomics
  790. enable_atomic
  791. enable_audio
  792. enable_video
  793. enable_render
  794. enable_events
  795. enable_joystick
  796. enable_haptic
  797. enable_hidapi
  798. enable_sensor
  799. enable_power
  800. enable_filesystem
  801. enable_timers
  802. enable_file
  803. enable_misc
  804. enable_locale
  805. enable_loadso
  806. enable_cpuinfo
  807. enable_assembly
  808. enable_ssemath
  809. enable_mmx
  810. enable_3dnow
  811. enable_sse
  812. enable_sse2
  813. enable_sse3
  814. enable_altivec
  815. enable_lsx
  816. enable_oss
  817. enable_alsa
  818. with_alsa_prefix
  819. with_alsa_inc_prefix
  820. enable_alsatest
  821. enable_alsa_shared
  822. enable_jack
  823. enable_jack_shared
  824. enable_esd
  825. with_esd_prefix
  826. with_esd_exec_prefix
  827. enable_esdtest
  828. enable_esd_shared
  829. enable_pipewire
  830. enable_pipewire_shared
  831. enable_pulseaudio
  832. enable_pulseaudio_shared
  833. enable_arts
  834. enable_arts_shared
  835. enable_nas
  836. enable_nas_shared
  837. enable_sndio
  838. enable_sndio_shared
  839. enable_fusionsound
  840. enable_fusionsound_shared
  841. enable_diskaudio
  842. enable_dummyaudio
  843. enable_libsamplerate
  844. enable_libsamplerate_shared
  845. enable_arm_simd
  846. enable_arm_neon
  847. enable_werror
  848. enable_video_wayland
  849. enable_video_wayland_qt_touch
  850. enable_wayland_shared
  851. enable_libdecor
  852. enable_libdecor_shared
  853. enable_video_rpi
  854. enable_video_x11
  855. with_x
  856. enable_x11_shared
  857. enable_video_x11_xcursor
  858. enable_video_x11_xdbe
  859. enable_video_x11_xinput
  860. enable_video_x11_xfixes
  861. enable_video_x11_xrandr
  862. enable_video_x11_scrnsaver
  863. enable_video_x11_xshape
  864. enable_video_vivante
  865. enable_video_cocoa
  866. enable_video_metal
  867. enable_render_metal
  868. enable_video_directfb
  869. enable_directfb_shared
  870. enable_video_kmsdrm
  871. enable_kmsdrm_shared
  872. enable_video_dummy
  873. enable_video_offscreen
  874. enable_video_opengl
  875. enable_video_opengles
  876. enable_video_opengles1
  877. enable_video_opengles2
  878. enable_video_vulkan
  879. enable_libudev
  880. enable_dbus
  881. enable_ime
  882. enable_ibus
  883. enable_fcitx
  884. enable_joystick_mfi
  885. enable_pthreads
  886. enable_pthread_sem
  887. enable_directx
  888. enable_xinput
  889. enable_wasapi
  890. enable_hidapi_joystick
  891. enable_hidapi_libusb
  892. enable_clock_gettime
  893. enable_rpath
  894. enable_backgrounding_signal
  895. enable_foregrounding_signal
  896. enable_joystick_virtual
  897. enable_render_d3d
  898. enable_sdl2_config
  899. enable_vendor_info
  900. '
  901. ac_precious_vars='build_alias
  902. host_alias
  903. target_alias
  904. CC
  905. CFLAGS
  906. LDFLAGS
  907. LIBS
  908. CPPFLAGS
  909. LT_SYS_LIBRARY_PATH
  910. CXX
  911. CXXFLAGS
  912. CCC
  913. CXXCPP
  914. PKG_CONFIG
  915. PKG_CONFIG_PATH
  916. PKG_CONFIG_LIBDIR
  917. CPP
  918. JACK_CFLAGS
  919. JACK_LIBS
  920. ESD_CFLAGS
  921. ESD_LIBS
  922. PIPEWIRE_CFLAGS
  923. PIPEWIRE_LIBS
  924. PULSEAUDIO_CFLAGS
  925. PULSEAUDIO_LIBS
  926. SNDIO_CFLAGS
  927. SNDIO_LIBS
  928. FUSIONSOUND_CFLAGS
  929. FUSIONSOUND_LIBS
  930. DECOR_CFLAGS
  931. DECOR_LIBS
  932. RPI_CFLAGS
  933. RPI_LIBS
  934. XMKMF
  935. DIRECTFB_CFLAGS
  936. DIRECTFB_LIBS
  937. LIBDRM_CFLAGS
  938. LIBDRM_LIBS
  939. LIBGBM_CFLAGS
  940. LIBGBM_LIBS
  941. DBUS_CFLAGS
  942. DBUS_LIBS
  943. IBUS_CFLAGS
  944. IBUS_LIBS
  945. LIBUSB_CFLAGS
  946. LIBUSB_LIBS'
  947. # Initialize some variables set by options.
  948. ac_init_help=
  949. ac_init_version=false
  950. ac_unrecognized_opts=
  951. ac_unrecognized_sep=
  952. # The variables have the same names as the options, with
  953. # dashes changed to underlines.
  954. cache_file=/dev/null
  955. exec_prefix=NONE
  956. no_create=
  957. no_recursion=
  958. prefix=NONE
  959. program_prefix=NONE
  960. program_suffix=NONE
  961. program_transform_name=s,x,x,
  962. silent=
  963. site=
  964. srcdir=
  965. verbose=
  966. x_includes=NONE
  967. x_libraries=NONE
  968. # Installation directory options.
  969. # These are left unexpanded so users can "make install exec_prefix=/foo"
  970. # and all the variables that are supposed to be based on exec_prefix
  971. # by default will actually change.
  972. # Use braces instead of parens because sh, perl, etc. also accept them.
  973. # (The list follows the same order as the GNU Coding Standards.)
  974. bindir='${exec_prefix}/bin'
  975. sbindir='${exec_prefix}/sbin'
  976. libexecdir='${exec_prefix}/libexec'
  977. datarootdir='${prefix}/share'
  978. datadir='${datarootdir}'
  979. sysconfdir='${prefix}/etc'
  980. sharedstatedir='${prefix}/com'
  981. localstatedir='${prefix}/var'
  982. runstatedir='${localstatedir}/run'
  983. includedir='${prefix}/include'
  984. oldincludedir='/usr/include'
  985. docdir='${datarootdir}/doc/${PACKAGE}'
  986. infodir='${datarootdir}/info'
  987. htmldir='${docdir}'
  988. dvidir='${docdir}'
  989. pdfdir='${docdir}'
  990. psdir='${docdir}'
  991. libdir='${exec_prefix}/lib'
  992. localedir='${datarootdir}/locale'
  993. mandir='${datarootdir}/man'
  994. ac_prev=
  995. ac_dashdash=
  996. for ac_option
  997. do
  998. # If the previous option needs an argument, assign it.
  999. if test -n "$ac_prev"; then
  1000. eval $ac_prev=\$ac_option
  1001. ac_prev=
  1002. continue
  1003. fi
  1004. case $ac_option in
  1005. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1006. *=) ac_optarg= ;;
  1007. *) ac_optarg=yes ;;
  1008. esac
  1009. case $ac_dashdash$ac_option in
  1010. --)
  1011. ac_dashdash=yes ;;
  1012. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1013. ac_prev=bindir ;;
  1014. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1015. bindir=$ac_optarg ;;
  1016. -build | --build | --buil | --bui | --bu)
  1017. ac_prev=build_alias ;;
  1018. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1019. build_alias=$ac_optarg ;;
  1020. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1021. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1022. ac_prev=cache_file ;;
  1023. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1024. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1025. cache_file=$ac_optarg ;;
  1026. --config-cache | -C)
  1027. cache_file=config.cache ;;
  1028. -datadir | --datadir | --datadi | --datad)
  1029. ac_prev=datadir ;;
  1030. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1031. datadir=$ac_optarg ;;
  1032. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1033. | --dataroo | --dataro | --datar)
  1034. ac_prev=datarootdir ;;
  1035. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1036. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1037. datarootdir=$ac_optarg ;;
  1038. -disable-* | --disable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "enable_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=no ;;
  1053. -docdir | --docdir | --docdi | --doc | --do)
  1054. ac_prev=docdir ;;
  1055. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1056. docdir=$ac_optarg ;;
  1057. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1058. ac_prev=dvidir ;;
  1059. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1060. dvidir=$ac_optarg ;;
  1061. -enable-* | --enable-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "enable_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval enable_$ac_useropt=\$ac_optarg ;;
  1076. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1077. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1078. | --exec | --exe | --ex)
  1079. ac_prev=exec_prefix ;;
  1080. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1081. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1082. | --exec=* | --exe=* | --ex=*)
  1083. exec_prefix=$ac_optarg ;;
  1084. -gas | --gas | --ga | --g)
  1085. # Obsolete; use --with-gas.
  1086. with_gas=yes ;;
  1087. -help | --help | --hel | --he | -h)
  1088. ac_init_help=long ;;
  1089. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1090. ac_init_help=recursive ;;
  1091. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1092. ac_init_help=short ;;
  1093. -host | --host | --hos | --ho)
  1094. ac_prev=host_alias ;;
  1095. -host=* | --host=* | --hos=* | --ho=*)
  1096. host_alias=$ac_optarg ;;
  1097. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1098. ac_prev=htmldir ;;
  1099. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1100. | --ht=*)
  1101. htmldir=$ac_optarg ;;
  1102. -includedir | --includedir | --includedi | --included | --include \
  1103. | --includ | --inclu | --incl | --inc)
  1104. ac_prev=includedir ;;
  1105. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1106. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1107. includedir=$ac_optarg ;;
  1108. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1109. ac_prev=infodir ;;
  1110. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1111. infodir=$ac_optarg ;;
  1112. -libdir | --libdir | --libdi | --libd)
  1113. ac_prev=libdir ;;
  1114. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1115. libdir=$ac_optarg ;;
  1116. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1117. | --libexe | --libex | --libe)
  1118. ac_prev=libexecdir ;;
  1119. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1120. | --libexe=* | --libex=* | --libe=*)
  1121. libexecdir=$ac_optarg ;;
  1122. -localedir | --localedir | --localedi | --localed | --locale)
  1123. ac_prev=localedir ;;
  1124. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1125. localedir=$ac_optarg ;;
  1126. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1127. | --localstate | --localstat | --localsta | --localst | --locals)
  1128. ac_prev=localstatedir ;;
  1129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1130. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1131. localstatedir=$ac_optarg ;;
  1132. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1133. ac_prev=mandir ;;
  1134. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1135. mandir=$ac_optarg ;;
  1136. -nfp | --nfp | --nf)
  1137. # Obsolete; use --without-fp.
  1138. with_fp=no ;;
  1139. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1140. | --no-cr | --no-c | -n)
  1141. no_create=yes ;;
  1142. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1143. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1144. no_recursion=yes ;;
  1145. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1146. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1147. | --oldin | --oldi | --old | --ol | --o)
  1148. ac_prev=oldincludedir ;;
  1149. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1150. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1151. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1152. oldincludedir=$ac_optarg ;;
  1153. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1154. ac_prev=prefix ;;
  1155. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1156. prefix=$ac_optarg ;;
  1157. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1158. | --program-pre | --program-pr | --program-p)
  1159. ac_prev=program_prefix ;;
  1160. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1161. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1162. program_prefix=$ac_optarg ;;
  1163. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1164. | --program-suf | --program-su | --program-s)
  1165. ac_prev=program_suffix ;;
  1166. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1167. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1168. program_suffix=$ac_optarg ;;
  1169. -program-transform-name | --program-transform-name \
  1170. | --program-transform-nam | --program-transform-na \
  1171. | --program-transform-n | --program-transform- \
  1172. | --program-transform | --program-transfor \
  1173. | --program-transfo | --program-transf \
  1174. | --program-trans | --program-tran \
  1175. | --progr-tra | --program-tr | --program-t)
  1176. ac_prev=program_transform_name ;;
  1177. -program-transform-name=* | --program-transform-name=* \
  1178. | --program-transform-nam=* | --program-transform-na=* \
  1179. | --program-transform-n=* | --program-transform-=* \
  1180. | --program-transform=* | --program-transfor=* \
  1181. | --program-transfo=* | --program-transf=* \
  1182. | --program-trans=* | --program-tran=* \
  1183. | --progr-tra=* | --program-tr=* | --program-t=*)
  1184. program_transform_name=$ac_optarg ;;
  1185. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1186. ac_prev=pdfdir ;;
  1187. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1188. pdfdir=$ac_optarg ;;
  1189. -psdir | --psdir | --psdi | --psd | --ps)
  1190. ac_prev=psdir ;;
  1191. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1192. psdir=$ac_optarg ;;
  1193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. | -silent | --silent | --silen | --sile | --sil)
  1195. silent=yes ;;
  1196. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1197. | --runstate | --runstat | --runsta | --runst | --runs \
  1198. | --run | --ru | --r)
  1199. ac_prev=runstatedir ;;
  1200. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1201. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1202. | --run=* | --ru=* | --r=*)
  1203. runstatedir=$ac_optarg ;;
  1204. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1205. ac_prev=sbindir ;;
  1206. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1207. | --sbi=* | --sb=*)
  1208. sbindir=$ac_optarg ;;
  1209. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1210. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1211. | --sharedst | --shareds | --shared | --share | --shar \
  1212. | --sha | --sh)
  1213. ac_prev=sharedstatedir ;;
  1214. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1215. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1216. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1217. | --sha=* | --sh=*)
  1218. sharedstatedir=$ac_optarg ;;
  1219. -site | --site | --sit)
  1220. ac_prev=site ;;
  1221. -site=* | --site=* | --sit=*)
  1222. site=$ac_optarg ;;
  1223. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1224. ac_prev=srcdir ;;
  1225. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1226. srcdir=$ac_optarg ;;
  1227. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1228. | --syscon | --sysco | --sysc | --sys | --sy)
  1229. ac_prev=sysconfdir ;;
  1230. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1231. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1232. sysconfdir=$ac_optarg ;;
  1233. -target | --target | --targe | --targ | --tar | --ta | --t)
  1234. ac_prev=target_alias ;;
  1235. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1236. target_alias=$ac_optarg ;;
  1237. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1238. verbose=yes ;;
  1239. -version | --version | --versio | --versi | --vers | -V)
  1240. ac_init_version=: ;;
  1241. -with-* | --with-*)
  1242. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1243. # Reject names that are not valid shell variable names.
  1244. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1245. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1246. ac_useropt_orig=$ac_useropt
  1247. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1248. case $ac_user_opts in
  1249. *"
  1250. "with_$ac_useropt"
  1251. "*) ;;
  1252. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1253. ac_unrecognized_sep=', ';;
  1254. esac
  1255. eval with_$ac_useropt=\$ac_optarg ;;
  1256. -without-* | --without-*)
  1257. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1258. # Reject names that are not valid shell variable names.
  1259. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1260. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1261. ac_useropt_orig=$ac_useropt
  1262. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1263. case $ac_user_opts in
  1264. *"
  1265. "with_$ac_useropt"
  1266. "*) ;;
  1267. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1268. ac_unrecognized_sep=', ';;
  1269. esac
  1270. eval with_$ac_useropt=no ;;
  1271. --x)
  1272. # Obsolete; use --with-x.
  1273. with_x=yes ;;
  1274. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1275. | --x-incl | --x-inc | --x-in | --x-i)
  1276. ac_prev=x_includes ;;
  1277. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1278. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1279. x_includes=$ac_optarg ;;
  1280. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1281. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1282. ac_prev=x_libraries ;;
  1283. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1284. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1285. x_libraries=$ac_optarg ;;
  1286. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1287. Try \`$0 --help' for more information"
  1288. ;;
  1289. *=*)
  1290. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1291. # Reject names that are not valid shell variable names.
  1292. case $ac_envvar in #(
  1293. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1294. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1295. esac
  1296. eval $ac_envvar=\$ac_optarg
  1297. export $ac_envvar ;;
  1298. *)
  1299. # FIXME: should be removed in autoconf 3.0.
  1300. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1301. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1302. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1303. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1304. ;;
  1305. esac
  1306. done
  1307. if test -n "$ac_prev"; then
  1308. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1309. as_fn_error $? "missing argument to $ac_option"
  1310. fi
  1311. if test -n "$ac_unrecognized_opts"; then
  1312. case $enable_option_checking in
  1313. no) ;;
  1314. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1315. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1316. esac
  1317. fi
  1318. # Check all directory arguments for consistency.
  1319. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1320. datadir sysconfdir sharedstatedir localstatedir includedir \
  1321. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1322. libdir localedir mandir runstatedir
  1323. do
  1324. eval ac_val=\$$ac_var
  1325. # Remove trailing slashes.
  1326. case $ac_val in
  1327. */ )
  1328. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1329. eval $ac_var=\$ac_val;;
  1330. esac
  1331. # Be sure to have absolute directory names.
  1332. case $ac_val in
  1333. [\\/$]* | ?:[\\/]* ) continue;;
  1334. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1335. esac
  1336. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1337. done
  1338. # There might be people who depend on the old broken behavior: `$host'
  1339. # used to hold the argument of --host etc.
  1340. # FIXME: To remove some day.
  1341. build=$build_alias
  1342. host=$host_alias
  1343. target=$target_alias
  1344. # FIXME: To remove some day.
  1345. if test "x$host_alias" != x; then
  1346. if test "x$build_alias" = x; then
  1347. cross_compiling=maybe
  1348. elif test "x$build_alias" != "x$host_alias"; then
  1349. cross_compiling=yes
  1350. fi
  1351. fi
  1352. ac_tool_prefix=
  1353. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1354. test "$silent" = yes && exec 6>/dev/null
  1355. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1356. ac_ls_di=`ls -di .` &&
  1357. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1358. as_fn_error $? "working directory cannot be determined"
  1359. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1360. as_fn_error $? "pwd does not report name of working directory"
  1361. # Find the source files, if location was not specified.
  1362. if test -z "$srcdir"; then
  1363. ac_srcdir_defaulted=yes
  1364. # Try the directory containing this script, then the parent directory.
  1365. ac_confdir=`$as_dirname -- "$as_myself" ||
  1366. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1367. X"$as_myself" : 'X\(//\)[^/]' \| \
  1368. X"$as_myself" : 'X\(//\)$' \| \
  1369. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1370. printf "%s\n" X"$as_myself" |
  1371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\/\)[^/].*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\/\)$/{
  1380. s//\1/
  1381. q
  1382. }
  1383. /^X\(\/\).*/{
  1384. s//\1/
  1385. q
  1386. }
  1387. s/.*/./; q'`
  1388. srcdir=$ac_confdir
  1389. if test ! -r "$srcdir/$ac_unique_file"; then
  1390. srcdir=..
  1391. fi
  1392. else
  1393. ac_srcdir_defaulted=no
  1394. fi
  1395. if test ! -r "$srcdir/$ac_unique_file"; then
  1396. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1397. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1398. fi
  1399. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1400. ac_abs_confdir=`(
  1401. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1402. pwd)`
  1403. # When building in place, set srcdir=.
  1404. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1405. srcdir=.
  1406. fi
  1407. # Remove unnecessary trailing slashes from srcdir.
  1408. # Double slashes in file names in object file debugging info
  1409. # mess up M-x gdb in Emacs.
  1410. case $srcdir in
  1411. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1412. esac
  1413. for ac_var in $ac_precious_vars; do
  1414. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1415. eval ac_env_${ac_var}_value=\$${ac_var}
  1416. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1417. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1418. done
  1419. #
  1420. # Report the --help message.
  1421. #
  1422. if test "$ac_init_help" = "long"; then
  1423. # Omit some internal or obsolete options to make the list less imposing.
  1424. # This message is too long to be a string in the A/UX 3.1 sh.
  1425. cat <<_ACEOF
  1426. \`configure' configures this package to adapt to many kinds of systems.
  1427. Usage: $0 [OPTION]... [VAR=VALUE]...
  1428. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1429. VAR=VALUE. See below for descriptions of some of the useful variables.
  1430. Defaults for the options are specified in brackets.
  1431. Configuration:
  1432. -h, --help display this help and exit
  1433. --help=short display options specific to this package
  1434. --help=recursive display the short help of all the included packages
  1435. -V, --version display version information and exit
  1436. -q, --quiet, --silent do not print \`checking ...' messages
  1437. --cache-file=FILE cache test results in FILE [disabled]
  1438. -C, --config-cache alias for \`--cache-file=config.cache'
  1439. -n, --no-create do not create output files
  1440. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1441. Installation directories:
  1442. --prefix=PREFIX install architecture-independent files in PREFIX
  1443. [$ac_default_prefix]
  1444. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1445. [PREFIX]
  1446. By default, \`make install' will install all the files in
  1447. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1448. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1449. for instance \`--prefix=\$HOME'.
  1450. For better control, use the options below.
  1451. Fine tuning of the installation directories:
  1452. --bindir=DIR user executables [EPREFIX/bin]
  1453. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1454. --libexecdir=DIR program executables [EPREFIX/libexec]
  1455. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1456. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1457. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1458. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1459. --libdir=DIR object code libraries [EPREFIX/lib]
  1460. --includedir=DIR C header files [PREFIX/include]
  1461. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1462. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1463. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1464. --infodir=DIR info documentation [DATAROOTDIR/info]
  1465. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1466. --mandir=DIR man documentation [DATAROOTDIR/man]
  1467. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1468. --htmldir=DIR html documentation [DOCDIR]
  1469. --dvidir=DIR dvi documentation [DOCDIR]
  1470. --pdfdir=DIR pdf documentation [DOCDIR]
  1471. --psdir=DIR ps documentation [DOCDIR]
  1472. _ACEOF
  1473. cat <<\_ACEOF
  1474. X features:
  1475. --x-includes=DIR X include files are in DIR
  1476. --x-libraries=DIR X library files are in DIR
  1477. System types:
  1478. --build=BUILD configure for building on BUILD [guessed]
  1479. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1480. _ACEOF
  1481. fi
  1482. if test -n "$ac_init_help"; then
  1483. cat <<\_ACEOF
  1484. Optional Features:
  1485. --disable-option-checking ignore unrecognized --enable/--with options
  1486. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1487. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1488. --enable-shared[=PKGS] build shared libraries [default=yes]
  1489. --enable-static[=PKGS] build static libraries [default=yes]
  1490. --enable-fast-install[=PKGS]
  1491. optimize for fast installation [default=yes]
  1492. --disable-libtool-lock avoid locking (might break parallel builds)
  1493. --disable-largefile omit support for large files
  1494. --enable-assertions Enable internal sanity checks
  1495. (auto/disabled/release/enabled/paranoid)
  1496. [default=auto]
  1497. --enable-dependency-tracking
  1498. Use gcc -MMD -MT dependency tracking [default=yes]
  1499. --enable-libc Use the system C library [default=yes]
  1500. --enable-system-iconv Use iconv() from system-installed libraries
  1501. [default=no for windows, yes for others]
  1502. --enable-libiconv Prefer iconv() from libiconv, if available, over
  1503. libc version [default=no]
  1504. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1505. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1506. --enable-audio Enable the audio subsystem [default=yes]
  1507. --enable-video Enable the video subsystem [default=yes]
  1508. --enable-render Enable the render subsystem [default=yes]
  1509. --enable-events Enable the events subsystem [default=yes]
  1510. --enable-joystick Enable the joystick subsystem [default=yes]
  1511. --enable-haptic Enable the haptic (force feedback) subsystem
  1512. [default=yes]
  1513. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1514. --enable-sensor Enable the sensor subsystem [default=yes]
  1515. --enable-power Enable the power subsystem [default=yes]
  1516. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1517. --enable-timers Enable the timer subsystem [default=yes]
  1518. --enable-file Enable the file subsystem [default=yes]
  1519. --enable-misc Enable the misc subsystem [default=yes]
  1520. --enable-locale Enable the locale subsystem [default=yes]
  1521. --enable-loadso Enable the shared object loading subsystem
  1522. [default=yes]
  1523. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1524. --enable-assembly Enable assembly routines [default=yes]
  1525. --enable-ssemath Allow GCC to use SSE floating point math
  1526. [default=maybe]
  1527. --enable-mmx use MMX assembly routines [default=yes]
  1528. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1529. --enable-sse use SSE assembly routines [default=yes]
  1530. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1531. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1532. --enable-altivec use Altivec assembly routines [default=yes]
  1533. --enable-lsx use LSX assembly routines [default=yes]
  1534. --enable-oss support the OSS audio API [default=maybe]
  1535. --enable-alsa support the ALSA audio API [default=yes]
  1536. --disable-alsatest Do not try to compile and run a test Alsa program
  1537. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1538. --enable-jack use JACK audio [default=yes]
  1539. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1540. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1541. --disable-esdtest Do not try to compile and run a test ESD program
  1542. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1543. --enable-pipewire use Pipewire audio [default=yes]
  1544. --enable-pipewire-shared
  1545. dynamically load Pipewire support [default=yes]
  1546. --enable-pulseaudio use PulseAudio [default=yes]
  1547. --enable-pulseaudio-shared
  1548. dynamically load PulseAudio support [default=yes]
  1549. --enable-arts support the Analog Real Time Synthesizer
  1550. [default=yes]
  1551. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1552. --enable-nas support the NAS audio API [default=yes]
  1553. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1554. --enable-sndio support the sndio audio API [default=yes]
  1555. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1556. --enable-fusionsound use FusionSound audio driver [default=no]
  1557. --enable-fusionsound-shared
  1558. dynamically load fusionsound audio support
  1559. [default=yes]
  1560. --enable-diskaudio support the disk writer audio driver [default=yes]
  1561. --enable-dummyaudio support the dummy audio driver [default=yes]
  1562. --enable-libsamplerate use libsamplerate for audio rate conversion
  1563. [default=yes]
  1564. --enable-libsamplerate-shared
  1565. dynamically load libsamplerate [default=yes]
  1566. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1567. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1568. --enable-werror treat warnings as errors [default=no]
  1569. --enable-video-wayland use Wayland video driver [default=yes]
  1570. --enable-video-wayland-qt-touch
  1571. QtWayland server support for Wayland video driver
  1572. [default=yes]
  1573. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1574. --enable-libdecor use libdecor for Wayland client-side decorations
  1575. [default=yes]
  1576. --enable-libdecor-shared
  1577. dynamically load libdecor [default=yes]
  1578. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1579. --enable-video-x11 use X11 video driver [default=maybe]
  1580. --enable-x11-shared dynamically load X11 support [default=maybe]
  1581. --enable-video-x11-xcursor
  1582. enable X11 Xcursor support [default=yes]
  1583. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1584. --enable-video-x11-xinput
  1585. enable X11 XInput extension for manymouse, tablets,
  1586. etc [default=yes]
  1587. --enable-video-x11-xfixes
  1588. enable X11 Xfixes support [default=yes]
  1589. --enable-video-x11-xrandr
  1590. enable X11 Xrandr extension for fullscreen
  1591. [default=yes]
  1592. --enable-video-x11-scrnsaver
  1593. enable X11 screensaver extension [default=yes]
  1594. --enable-video-x11-xshape
  1595. enable X11 XShape support [default=yes]
  1596. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1597. --enable-video-cocoa use Cocoa video driver [default=yes]
  1598. --enable-video-metal include Metal support [default=yes]
  1599. --enable-render-metal enable the Metal render driver [default=yes]
  1600. --enable-video-directfb use DirectFB video driver [default=no]
  1601. --enable-directfb-shared
  1602. dynamically load directfb support [default=yes]
  1603. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1604. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1605. --enable-video-dummy use dummy video driver [default=yes]
  1606. --enable-video-offscreen
  1607. use offscreen video driver [default=yes]
  1608. --enable-video-opengl include OpenGL support [default=yes]
  1609. --enable-video-opengles include OpenGL ES support [default=yes]
  1610. --enable-video-opengles1
  1611. include OpenGL ES 1.1 support [default=yes]
  1612. --enable-video-opengles2
  1613. include OpenGL ES 2.0 support [default=yes]
  1614. --enable-video-vulkan include Vulkan support [default=yes]
  1615. --enable-libudev enable libudev support [default=yes]
  1616. --enable-dbus enable D-Bus support [default=yes]
  1617. --enable-ime enable IME support [default=yes]
  1618. --enable-ibus enable IBus support [default=yes]
  1619. --enable-fcitx enable fcitx support [default=yes]
  1620. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1621. --enable-pthreads use POSIX threads for multi-threading
  1622. [default=maybe]
  1623. --enable-pthread-sem use pthread semaphores [default=maybe]
  1624. --enable-directx use DirectX for Windows audio/video [default=yes]
  1625. --enable-xinput use Xinput for Windows [default=yes]
  1626. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1627. --enable-hidapi-joystick
  1628. use HIDAPI for low level joystick drivers
  1629. [default=yes]
  1630. --enable-hidapi-libusb use libusb for low level joystick drivers
  1631. [default=maybe]
  1632. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1633. UNIX [default=yes]
  1634. --enable-rpath use an rpath when linking SDL [default=yes]
  1635. --enable-backgrounding-signal
  1636. number to use for magic backgrounding signal or 'no'
  1637. [default=no]
  1638. --enable-foregrounding-signal
  1639. number to use for magic foregrounding signal or 'no'
  1640. [default=no]
  1641. --enable-joystick-virtual
  1642. enable virtual joystick APIs [default=yes]
  1643. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1644. --enable-sdl2-config Install sdl2-config [default=yes]
  1645. --enable-vendor-info=STRING
  1646. Add vendor info to SDL_REVISION
  1647. Optional Packages:
  1648. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1649. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1650. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1651. both]
  1652. --with-aix-soname=aix|svr4|both
  1653. shared library versioning (aka "SONAME") variant to
  1654. provide on AIX, [default=aix].
  1655. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1656. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1657. compiler's sysroot if not specified).
  1658. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1659. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1660. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1661. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1662. --with-x use the X Window System
  1663. Some influential environment variables:
  1664. CC C compiler command
  1665. CFLAGS C compiler flags
  1666. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1667. nonstandard directory <lib dir>
  1668. LIBS libraries to pass to the linker, e.g. -l<library>
  1669. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1670. you have headers in a nonstandard directory <include dir>
  1671. LT_SYS_LIBRARY_PATH
  1672. User-defined run-time library search path.
  1673. CXX C++ compiler command
  1674. CXXFLAGS C++ compiler flags
  1675. CXXCPP C++ preprocessor
  1676. PKG_CONFIG path to pkg-config utility
  1677. PKG_CONFIG_PATH
  1678. directories to add to pkg-config's search path
  1679. PKG_CONFIG_LIBDIR
  1680. path overriding pkg-config's built-in search path
  1681. CPP C preprocessor
  1682. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1683. JACK_LIBS linker flags for JACK, overriding pkg-config
  1684. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1685. ESD_LIBS linker flags for ESD, overriding pkg-config
  1686. PIPEWIRE_CFLAGS
  1687. C compiler flags for PIPEWIRE, overriding pkg-config
  1688. PIPEWIRE_LIBS
  1689. linker flags for PIPEWIRE, overriding pkg-config
  1690. PULSEAUDIO_CFLAGS
  1691. C compiler flags for PULSEAUDIO, overriding pkg-config
  1692. PULSEAUDIO_LIBS
  1693. linker flags for PULSEAUDIO, overriding pkg-config
  1694. SNDIO_CFLAGS
  1695. C compiler flags for SNDIO, overriding pkg-config
  1696. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1697. FUSIONSOUND_CFLAGS
  1698. C compiler flags for FUSIONSOUND, overriding pkg-config
  1699. FUSIONSOUND_LIBS
  1700. linker flags for FUSIONSOUND, overriding pkg-config
  1701. DECOR_CFLAGS
  1702. C compiler flags for DECOR, overriding pkg-config
  1703. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1704. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1705. RPI_LIBS linker flags for RPI, overriding pkg-config
  1706. XMKMF Path to xmkmf, Makefile generator for X Window System
  1707. DIRECTFB_CFLAGS
  1708. C compiler flags for DIRECTFB, overriding pkg-config
  1709. DIRECTFB_LIBS
  1710. linker flags for DIRECTFB, overriding pkg-config
  1711. LIBDRM_CFLAGS
  1712. C compiler flags for LIBDRM, overriding pkg-config
  1713. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1714. LIBGBM_CFLAGS
  1715. C compiler flags for LIBGBM, overriding pkg-config
  1716. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1717. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1718. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1719. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1720. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1721. LIBUSB_CFLAGS
  1722. C compiler flags for LIBUSB, overriding pkg-config
  1723. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1724. Use these variables to override the choices made by `configure' or to help
  1725. it to find libraries and programs with nonstandard names/locations.
  1726. Report bugs to the package provider.
  1727. _ACEOF
  1728. ac_status=$?
  1729. fi
  1730. if test "$ac_init_help" = "recursive"; then
  1731. # If there are subdirs, report their specific --help.
  1732. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1733. test -d "$ac_dir" ||
  1734. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1735. continue
  1736. ac_builddir=.
  1737. case "$ac_dir" in
  1738. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1739. *)
  1740. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1741. # A ".." for each directory in $ac_dir_suffix.
  1742. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1743. case $ac_top_builddir_sub in
  1744. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1745. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1746. esac ;;
  1747. esac
  1748. ac_abs_top_builddir=$ac_pwd
  1749. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1750. # for backward compatibility:
  1751. ac_top_builddir=$ac_top_build_prefix
  1752. case $srcdir in
  1753. .) # We are building in place.
  1754. ac_srcdir=.
  1755. ac_top_srcdir=$ac_top_builddir_sub
  1756. ac_abs_top_srcdir=$ac_pwd ;;
  1757. [\\/]* | ?:[\\/]* ) # Absolute name.
  1758. ac_srcdir=$srcdir$ac_dir_suffix;
  1759. ac_top_srcdir=$srcdir
  1760. ac_abs_top_srcdir=$srcdir ;;
  1761. *) # Relative name.
  1762. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1763. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1764. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1765. esac
  1766. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1767. cd "$ac_dir" || { ac_status=$?; continue; }
  1768. # Check for configure.gnu first; this name is used for a wrapper for
  1769. # Metaconfig's "Configure" on case-insensitive file systems.
  1770. if test -f "$ac_srcdir/configure.gnu"; then
  1771. echo &&
  1772. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1773. elif test -f "$ac_srcdir/configure"; then
  1774. echo &&
  1775. $SHELL "$ac_srcdir/configure" --help=recursive
  1776. else
  1777. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1778. fi || ac_status=$?
  1779. cd "$ac_pwd" || { ac_status=$?; break; }
  1780. done
  1781. fi
  1782. test -n "$ac_init_help" && exit $ac_status
  1783. if $ac_init_version; then
  1784. cat <<\_ACEOF
  1785. configure
  1786. generated by GNU Autoconf 2.71
  1787. Copyright (C) 2021 Free Software Foundation, Inc.
  1788. This configure script is free software; the Free Software Foundation
  1789. gives unlimited permission to copy, distribute and modify it.
  1790. _ACEOF
  1791. exit
  1792. fi
  1793. ## ------------------------ ##
  1794. ## Autoconf initialization. ##
  1795. ## ------------------------ ##
  1796. # ac_fn_c_try_compile LINENO
  1797. # --------------------------
  1798. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1799. ac_fn_c_try_compile ()
  1800. {
  1801. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1802. rm -f conftest.$ac_objext conftest.beam
  1803. if { { ac_try="$ac_compile"
  1804. case "(($ac_try" in
  1805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1806. *) ac_try_echo=$ac_try;;
  1807. esac
  1808. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1809. printf "%s\n" "$ac_try_echo"; } >&5
  1810. (eval "$ac_compile") 2>conftest.err
  1811. ac_status=$?
  1812. if test -s conftest.err; then
  1813. grep -v '^ *+' conftest.err >conftest.er1
  1814. cat conftest.er1 >&5
  1815. mv -f conftest.er1 conftest.err
  1816. fi
  1817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1818. test $ac_status = 0; } && {
  1819. test -z "$ac_c_werror_flag" ||
  1820. test ! -s conftest.err
  1821. } && test -s conftest.$ac_objext
  1822. then :
  1823. ac_retval=0
  1824. else $as_nop
  1825. printf "%s\n" "$as_me: failed program was:" >&5
  1826. sed 's/^/| /' conftest.$ac_ext >&5
  1827. ac_retval=1
  1828. fi
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. as_fn_set_status $ac_retval
  1831. } # ac_fn_c_try_compile
  1832. # ac_fn_c_try_link LINENO
  1833. # -----------------------
  1834. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1835. ac_fn_c_try_link ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1839. if { { ac_try="$ac_link"
  1840. case "(($ac_try" in
  1841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1842. *) ac_try_echo=$ac_try;;
  1843. esac
  1844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1845. printf "%s\n" "$ac_try_echo"; } >&5
  1846. (eval "$ac_link") 2>conftest.err
  1847. ac_status=$?
  1848. if test -s conftest.err; then
  1849. grep -v '^ *+' conftest.err >conftest.er1
  1850. cat conftest.er1 >&5
  1851. mv -f conftest.er1 conftest.err
  1852. fi
  1853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1854. test $ac_status = 0; } && {
  1855. test -z "$ac_c_werror_flag" ||
  1856. test ! -s conftest.err
  1857. } && test -s conftest$ac_exeext && {
  1858. test "$cross_compiling" = yes ||
  1859. test -x conftest$ac_exeext
  1860. }
  1861. then :
  1862. ac_retval=0
  1863. else $as_nop
  1864. printf "%s\n" "$as_me: failed program was:" >&5
  1865. sed 's/^/| /' conftest.$ac_ext >&5
  1866. ac_retval=1
  1867. fi
  1868. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1869. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1870. # interfere with the next link command; also delete a directory that is
  1871. # left behind by Apple's compiler. We do this before executing the actions.
  1872. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1873. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1874. as_fn_set_status $ac_retval
  1875. } # ac_fn_c_try_link
  1876. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1877. # -------------------------------------------------------
  1878. # Tests whether HEADER exists and can be compiled using the include files in
  1879. # INCLUDES, setting the cache variable VAR accordingly.
  1880. ac_fn_c_check_header_compile ()
  1881. {
  1882. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1884. printf %s "checking for $2... " >&6; }
  1885. if eval test \${$3+y}
  1886. then :
  1887. printf %s "(cached) " >&6
  1888. else $as_nop
  1889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1890. /* end confdefs.h. */
  1891. $4
  1892. #include <$2>
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"
  1895. then :
  1896. eval "$3=yes"
  1897. else $as_nop
  1898. eval "$3=no"
  1899. fi
  1900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1901. fi
  1902. eval ac_res=\$$3
  1903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. printf "%s\n" "$ac_res" >&6; }
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. } # ac_fn_c_check_header_compile
  1907. # ac_fn_c_check_func LINENO FUNC VAR
  1908. # ----------------------------------
  1909. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1910. ac_fn_c_check_func ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1914. printf %s "checking for $2... " >&6; }
  1915. if eval test \${$3+y}
  1916. then :
  1917. printf %s "(cached) " >&6
  1918. else $as_nop
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1922. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1923. #define $2 innocuous_$2
  1924. /* System header to define __stub macros and hopefully few prototypes,
  1925. which can conflict with char $2 (); below. */
  1926. #include <limits.h>
  1927. #undef $2
  1928. /* Override any GCC internal prototype to avoid an error.
  1929. Use char because int might match the return type of a GCC
  1930. builtin and then its argument prototype would still apply. */
  1931. #ifdef __cplusplus
  1932. extern "C"
  1933. #endif
  1934. char $2 ();
  1935. /* The GNU C library defines this for functions which it implements
  1936. to always fail with ENOSYS. Some functions are actually named
  1937. something starting with __ and the normal name is an alias. */
  1938. #if defined __stub_$2 || defined __stub___$2
  1939. choke me
  1940. #endif
  1941. int
  1942. main (void)
  1943. {
  1944. return $2 ();
  1945. ;
  1946. return 0;
  1947. }
  1948. _ACEOF
  1949. if ac_fn_c_try_link "$LINENO"
  1950. then :
  1951. eval "$3=yes"
  1952. else $as_nop
  1953. eval "$3=no"
  1954. fi
  1955. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1956. conftest$ac_exeext conftest.$ac_ext
  1957. fi
  1958. eval ac_res=\$$3
  1959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1960. printf "%s\n" "$ac_res" >&6; }
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. } # ac_fn_c_check_func
  1963. # ac_fn_cxx_try_compile LINENO
  1964. # ----------------------------
  1965. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1966. ac_fn_cxx_try_compile ()
  1967. {
  1968. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1969. rm -f conftest.$ac_objext conftest.beam
  1970. if { { ac_try="$ac_compile"
  1971. case "(($ac_try" in
  1972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1973. *) ac_try_echo=$ac_try;;
  1974. esac
  1975. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1976. printf "%s\n" "$ac_try_echo"; } >&5
  1977. (eval "$ac_compile") 2>conftest.err
  1978. ac_status=$?
  1979. if test -s conftest.err; then
  1980. grep -v '^ *+' conftest.err >conftest.er1
  1981. cat conftest.er1 >&5
  1982. mv -f conftest.er1 conftest.err
  1983. fi
  1984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1985. test $ac_status = 0; } && {
  1986. test -z "$ac_cxx_werror_flag" ||
  1987. test ! -s conftest.err
  1988. } && test -s conftest.$ac_objext
  1989. then :
  1990. ac_retval=0
  1991. else $as_nop
  1992. printf "%s\n" "$as_me: failed program was:" >&5
  1993. sed 's/^/| /' conftest.$ac_ext >&5
  1994. ac_retval=1
  1995. fi
  1996. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1997. as_fn_set_status $ac_retval
  1998. } # ac_fn_cxx_try_compile
  1999. # ac_fn_cxx_try_cpp LINENO
  2000. # ------------------------
  2001. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2002. ac_fn_cxx_try_cpp ()
  2003. {
  2004. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2005. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2006. case "(($ac_try" in
  2007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2008. *) ac_try_echo=$ac_try;;
  2009. esac
  2010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2011. printf "%s\n" "$ac_try_echo"; } >&5
  2012. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2013. ac_status=$?
  2014. if test -s conftest.err; then
  2015. grep -v '^ *+' conftest.err >conftest.er1
  2016. cat conftest.er1 >&5
  2017. mv -f conftest.er1 conftest.err
  2018. fi
  2019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2020. test $ac_status = 0; } > conftest.i && {
  2021. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2022. test ! -s conftest.err
  2023. }
  2024. then :
  2025. ac_retval=0
  2026. else $as_nop
  2027. printf "%s\n" "$as_me: failed program was:" >&5
  2028. sed 's/^/| /' conftest.$ac_ext >&5
  2029. ac_retval=1
  2030. fi
  2031. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2032. as_fn_set_status $ac_retval
  2033. } # ac_fn_cxx_try_cpp
  2034. # ac_fn_cxx_try_link LINENO
  2035. # -------------------------
  2036. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2037. ac_fn_cxx_try_link ()
  2038. {
  2039. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2040. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2041. if { { ac_try="$ac_link"
  2042. case "(($ac_try" in
  2043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2044. *) ac_try_echo=$ac_try;;
  2045. esac
  2046. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2047. printf "%s\n" "$ac_try_echo"; } >&5
  2048. (eval "$ac_link") 2>conftest.err
  2049. ac_status=$?
  2050. if test -s conftest.err; then
  2051. grep -v '^ *+' conftest.err >conftest.er1
  2052. cat conftest.er1 >&5
  2053. mv -f conftest.er1 conftest.err
  2054. fi
  2055. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2056. test $ac_status = 0; } && {
  2057. test -z "$ac_cxx_werror_flag" ||
  2058. test ! -s conftest.err
  2059. } && test -s conftest$ac_exeext && {
  2060. test "$cross_compiling" = yes ||
  2061. test -x conftest$ac_exeext
  2062. }
  2063. then :
  2064. ac_retval=0
  2065. else $as_nop
  2066. printf "%s\n" "$as_me: failed program was:" >&5
  2067. sed 's/^/| /' conftest.$ac_ext >&5
  2068. ac_retval=1
  2069. fi
  2070. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2071. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2072. # interfere with the next link command; also delete a directory that is
  2073. # left behind by Apple's compiler. We do this before executing the actions.
  2074. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2075. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2076. as_fn_set_status $ac_retval
  2077. } # ac_fn_cxx_try_link
  2078. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2079. # -------------------------------------------
  2080. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2081. # variable VAR accordingly.
  2082. ac_fn_c_check_type ()
  2083. {
  2084. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2086. printf %s "checking for $2... " >&6; }
  2087. if eval test \${$3+y}
  2088. then :
  2089. printf %s "(cached) " >&6
  2090. else $as_nop
  2091. eval "$3=no"
  2092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093. /* end confdefs.h. */
  2094. $4
  2095. int
  2096. main (void)
  2097. {
  2098. if (sizeof ($2))
  2099. return 0;
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. if ac_fn_c_try_compile "$LINENO"
  2105. then :
  2106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2107. /* end confdefs.h. */
  2108. $4
  2109. int
  2110. main (void)
  2111. {
  2112. if (sizeof (($2)))
  2113. return 0;
  2114. ;
  2115. return 0;
  2116. }
  2117. _ACEOF
  2118. if ac_fn_c_try_compile "$LINENO"
  2119. then :
  2120. else $as_nop
  2121. eval "$3=yes"
  2122. fi
  2123. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2126. fi
  2127. eval ac_res=\$$3
  2128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2129. printf "%s\n" "$ac_res" >&6; }
  2130. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2131. } # ac_fn_c_check_type
  2132. # ac_fn_c_try_cpp LINENO
  2133. # ----------------------
  2134. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2135. ac_fn_c_try_cpp ()
  2136. {
  2137. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2138. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2139. case "(($ac_try" in
  2140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2141. *) ac_try_echo=$ac_try;;
  2142. esac
  2143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2144. printf "%s\n" "$ac_try_echo"; } >&5
  2145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2146. ac_status=$?
  2147. if test -s conftest.err; then
  2148. grep -v '^ *+' conftest.err >conftest.er1
  2149. cat conftest.er1 >&5
  2150. mv -f conftest.er1 conftest.err
  2151. fi
  2152. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2153. test $ac_status = 0; } > conftest.i && {
  2154. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2155. test ! -s conftest.err
  2156. }
  2157. then :
  2158. ac_retval=0
  2159. else $as_nop
  2160. printf "%s\n" "$as_me: failed program was:" >&5
  2161. sed 's/^/| /' conftest.$ac_ext >&5
  2162. ac_retval=1
  2163. fi
  2164. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2165. as_fn_set_status $ac_retval
  2166. } # ac_fn_c_try_cpp
  2167. # ac_fn_c_try_run LINENO
  2168. # ----------------------
  2169. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2170. # executables *can* be run.
  2171. ac_fn_c_try_run ()
  2172. {
  2173. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2174. if { { ac_try="$ac_link"
  2175. case "(($ac_try" in
  2176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2177. *) ac_try_echo=$ac_try;;
  2178. esac
  2179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2180. printf "%s\n" "$ac_try_echo"; } >&5
  2181. (eval "$ac_link") 2>&5
  2182. ac_status=$?
  2183. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2184. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2185. { { case "(($ac_try" in
  2186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2187. *) ac_try_echo=$ac_try;;
  2188. esac
  2189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2190. printf "%s\n" "$ac_try_echo"; } >&5
  2191. (eval "$ac_try") 2>&5
  2192. ac_status=$?
  2193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2194. test $ac_status = 0; }; }
  2195. then :
  2196. ac_retval=0
  2197. else $as_nop
  2198. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2199. printf "%s\n" "$as_me: failed program was:" >&5
  2200. sed 's/^/| /' conftest.$ac_ext >&5
  2201. ac_retval=$ac_status
  2202. fi
  2203. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2204. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2205. as_fn_set_status $ac_retval
  2206. } # ac_fn_c_try_run
  2207. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2208. # ----------------------------------------------------
  2209. # Tries to find if the field MEMBER exists in type AGGR, after including
  2210. # INCLUDES, setting cache variable VAR accordingly.
  2211. ac_fn_c_check_member ()
  2212. {
  2213. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2215. printf %s "checking for $2.$3... " >&6; }
  2216. if eval test \${$4+y}
  2217. then :
  2218. printf %s "(cached) " >&6
  2219. else $as_nop
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main (void)
  2225. {
  2226. static $2 ac_aggr;
  2227. if (ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_c_try_compile "$LINENO"
  2234. then :
  2235. eval "$4=yes"
  2236. else $as_nop
  2237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2238. /* end confdefs.h. */
  2239. $5
  2240. int
  2241. main (void)
  2242. {
  2243. static $2 ac_aggr;
  2244. if (sizeof ac_aggr.$3)
  2245. return 0;
  2246. ;
  2247. return 0;
  2248. }
  2249. _ACEOF
  2250. if ac_fn_c_try_compile "$LINENO"
  2251. then :
  2252. eval "$4=yes"
  2253. else $as_nop
  2254. eval "$4=no"
  2255. fi
  2256. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2257. fi
  2258. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2259. fi
  2260. eval ac_res=\$$4
  2261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2262. printf "%s\n" "$ac_res" >&6; }
  2263. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2264. } # ac_fn_c_check_member
  2265. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2266. # ------------------------------------------------------------------
  2267. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2268. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2269. ac_fn_check_decl ()
  2270. {
  2271. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2272. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2274. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2275. if eval test \${$3+y}
  2276. then :
  2277. printf %s "(cached) " >&6
  2278. else $as_nop
  2279. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2280. eval ac_save_FLAGS=\$$6
  2281. as_fn_append $6 " $5"
  2282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2283. /* end confdefs.h. */
  2284. $4
  2285. int
  2286. main (void)
  2287. {
  2288. #ifndef $as_decl_name
  2289. #ifdef __cplusplus
  2290. (void) $as_decl_use;
  2291. #else
  2292. (void) $as_decl_name;
  2293. #endif
  2294. #endif
  2295. ;
  2296. return 0;
  2297. }
  2298. _ACEOF
  2299. if ac_fn_c_try_compile "$LINENO"
  2300. then :
  2301. eval "$3=yes"
  2302. else $as_nop
  2303. eval "$3=no"
  2304. fi
  2305. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2306. eval $6=\$ac_save_FLAGS
  2307. fi
  2308. eval ac_res=\$$3
  2309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2310. printf "%s\n" "$ac_res" >&6; }
  2311. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2312. } # ac_fn_check_decl
  2313. ac_configure_args_raw=
  2314. for ac_arg
  2315. do
  2316. case $ac_arg in
  2317. *\'*)
  2318. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2319. esac
  2320. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2321. done
  2322. case $ac_configure_args_raw in
  2323. *$as_nl*)
  2324. ac_safe_unquote= ;;
  2325. *)
  2326. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2327. ac_unsafe_a="$ac_unsafe_z#~"
  2328. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2329. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2330. esac
  2331. cat >config.log <<_ACEOF
  2332. This file contains any messages produced by compilers while
  2333. running configure, to aid debugging if configure makes a mistake.
  2334. It was created by $as_me, which was
  2335. generated by GNU Autoconf 2.71. Invocation command line was
  2336. $ $0$ac_configure_args_raw
  2337. _ACEOF
  2338. exec 5>>config.log
  2339. {
  2340. cat <<_ASUNAME
  2341. ## --------- ##
  2342. ## Platform. ##
  2343. ## --------- ##
  2344. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2345. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2346. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2347. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2348. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2349. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2350. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2351. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2352. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2353. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2354. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2355. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2356. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2357. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2358. _ASUNAME
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. case $as_dir in #(((
  2364. '') as_dir=./ ;;
  2365. */) ;;
  2366. *) as_dir=$as_dir/ ;;
  2367. esac
  2368. printf "%s\n" "PATH: $as_dir"
  2369. done
  2370. IFS=$as_save_IFS
  2371. } >&5
  2372. cat >&5 <<_ACEOF
  2373. ## ----------- ##
  2374. ## Core tests. ##
  2375. ## ----------- ##
  2376. _ACEOF
  2377. # Keep a trace of the command line.
  2378. # Strip out --no-create and --no-recursion so they do not pile up.
  2379. # Strip out --silent because we don't want to record it for future runs.
  2380. # Also quote any args containing shell meta-characters.
  2381. # Make two passes to allow for proper duplicate-argument suppression.
  2382. ac_configure_args=
  2383. ac_configure_args0=
  2384. ac_configure_args1=
  2385. ac_must_keep_next=false
  2386. for ac_pass in 1 2
  2387. do
  2388. for ac_arg
  2389. do
  2390. case $ac_arg in
  2391. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2392. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2393. | -silent | --silent | --silen | --sile | --sil)
  2394. continue ;;
  2395. *\'*)
  2396. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2397. esac
  2398. case $ac_pass in
  2399. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2400. 2)
  2401. as_fn_append ac_configure_args1 " '$ac_arg'"
  2402. if test $ac_must_keep_next = true; then
  2403. ac_must_keep_next=false # Got value, back to normal.
  2404. else
  2405. case $ac_arg in
  2406. *=* | --config-cache | -C | -disable-* | --disable-* \
  2407. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2408. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2409. | -with-* | --with-* | -without-* | --without-* | --x)
  2410. case "$ac_configure_args0 " in
  2411. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2412. esac
  2413. ;;
  2414. -* ) ac_must_keep_next=true ;;
  2415. esac
  2416. fi
  2417. as_fn_append ac_configure_args " '$ac_arg'"
  2418. ;;
  2419. esac
  2420. done
  2421. done
  2422. { ac_configure_args0=; unset ac_configure_args0;}
  2423. { ac_configure_args1=; unset ac_configure_args1;}
  2424. # When interrupted or exit'd, cleanup temporary files, and complete
  2425. # config.log. We remove comments because anyway the quotes in there
  2426. # would cause problems or look ugly.
  2427. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2428. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2429. trap 'exit_status=$?
  2430. # Sanitize IFS.
  2431. IFS=" "" $as_nl"
  2432. # Save into config.log some information that might help in debugging.
  2433. {
  2434. echo
  2435. printf "%s\n" "## ---------------- ##
  2436. ## Cache variables. ##
  2437. ## ---------------- ##"
  2438. echo
  2439. # The following way of writing the cache mishandles newlines in values,
  2440. (
  2441. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2442. eval ac_val=\$$ac_var
  2443. case $ac_val in #(
  2444. *${as_nl}*)
  2445. case $ac_var in #(
  2446. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2447. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2448. esac
  2449. case $ac_var in #(
  2450. _ | IFS | as_nl) ;; #(
  2451. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2452. *) { eval $ac_var=; unset $ac_var;} ;;
  2453. esac ;;
  2454. esac
  2455. done
  2456. (set) 2>&1 |
  2457. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2458. *${as_nl}ac_space=\ *)
  2459. sed -n \
  2460. "s/'\''/'\''\\\\'\'''\''/g;
  2461. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2462. ;; #(
  2463. *)
  2464. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2465. ;;
  2466. esac |
  2467. sort
  2468. )
  2469. echo
  2470. printf "%s\n" "## ----------------- ##
  2471. ## Output variables. ##
  2472. ## ----------------- ##"
  2473. echo
  2474. for ac_var in $ac_subst_vars
  2475. do
  2476. eval ac_val=\$$ac_var
  2477. case $ac_val in
  2478. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2479. esac
  2480. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2481. done | sort
  2482. echo
  2483. if test -n "$ac_subst_files"; then
  2484. printf "%s\n" "## ------------------- ##
  2485. ## File substitutions. ##
  2486. ## ------------------- ##"
  2487. echo
  2488. for ac_var in $ac_subst_files
  2489. do
  2490. eval ac_val=\$$ac_var
  2491. case $ac_val in
  2492. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2493. esac
  2494. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2495. done | sort
  2496. echo
  2497. fi
  2498. if test -s confdefs.h; then
  2499. printf "%s\n" "## ----------- ##
  2500. ## confdefs.h. ##
  2501. ## ----------- ##"
  2502. echo
  2503. cat confdefs.h
  2504. echo
  2505. fi
  2506. test "$ac_signal" != 0 &&
  2507. printf "%s\n" "$as_me: caught signal $ac_signal"
  2508. printf "%s\n" "$as_me: exit $exit_status"
  2509. } >&5
  2510. rm -f core *.core core.conftest.* &&
  2511. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2512. exit $exit_status
  2513. ' 0
  2514. for ac_signal in 1 2 13 15; do
  2515. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2516. done
  2517. ac_signal=0
  2518. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2519. rm -f -r conftest* confdefs.h
  2520. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2521. # Predefined preprocessor variables.
  2522. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2523. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2524. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2525. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2526. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2527. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2528. # Let the site file select an alternate cache file if it wants to.
  2529. # Prefer an explicitly selected file to automatically selected ones.
  2530. if test -n "$CONFIG_SITE"; then
  2531. ac_site_files="$CONFIG_SITE"
  2532. elif test "x$prefix" != xNONE; then
  2533. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2534. else
  2535. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2536. fi
  2537. for ac_site_file in $ac_site_files
  2538. do
  2539. case $ac_site_file in #(
  2540. */*) :
  2541. ;; #(
  2542. *) :
  2543. ac_site_file=./$ac_site_file ;;
  2544. esac
  2545. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2547. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2548. sed 's/^/| /' "$ac_site_file" >&5
  2549. . "$ac_site_file" \
  2550. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2551. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2552. as_fn_error $? "failed to load site script $ac_site_file
  2553. See \`config.log' for more details" "$LINENO" 5; }
  2554. fi
  2555. done
  2556. if test -r "$cache_file"; then
  2557. # Some versions of bash will fail to source /dev/null (special files
  2558. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2559. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2561. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2562. case $cache_file in
  2563. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2564. *) . "./$cache_file";;
  2565. esac
  2566. fi
  2567. else
  2568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2569. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2570. >$cache_file
  2571. fi
  2572. # Test code for whether the C compiler supports C89 (global declarations)
  2573. ac_c_conftest_c89_globals='
  2574. /* Does the compiler advertise C89 conformance?
  2575. Do not test the value of __STDC__, because some compilers set it to 0
  2576. while being otherwise adequately conformant. */
  2577. #if !defined __STDC__
  2578. # error "Compiler does not advertise C89 conformance"
  2579. #endif
  2580. #include <stddef.h>
  2581. #include <stdarg.h>
  2582. struct stat;
  2583. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2584. struct buf { int x; };
  2585. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2586. static char *e (p, i)
  2587. char **p;
  2588. int i;
  2589. {
  2590. return p[i];
  2591. }
  2592. static char *f (char * (*g) (char **, int), char **p, ...)
  2593. {
  2594. char *s;
  2595. va_list v;
  2596. va_start (v,p);
  2597. s = g (p, va_arg (v,int));
  2598. va_end (v);
  2599. return s;
  2600. }
  2601. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2602. function prototypes and stuff, but not \xHH hex character constants.
  2603. These do not provoke an error unfortunately, instead are silently treated
  2604. as an "x". The following induces an error, until -std is added to get
  2605. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2606. array size at least. It is necessary to write \x00 == 0 to get something
  2607. that is true only with -std. */
  2608. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2609. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2610. inside strings and character constants. */
  2611. #define FOO(x) '\''x'\''
  2612. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2613. int test (int i, double x);
  2614. struct s1 {int (*f) (int a);};
  2615. struct s2 {int (*f) (double a);};
  2616. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2617. int, int);'
  2618. # Test code for whether the C compiler supports C89 (body of main).
  2619. ac_c_conftest_c89_main='
  2620. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2621. '
  2622. # Test code for whether the C compiler supports C99 (global declarations)
  2623. ac_c_conftest_c99_globals='
  2624. // Does the compiler advertise C99 conformance?
  2625. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2626. # error "Compiler does not advertise C99 conformance"
  2627. #endif
  2628. #include <stdbool.h>
  2629. extern int puts (const char *);
  2630. extern int printf (const char *, ...);
  2631. extern int dprintf (int, const char *, ...);
  2632. extern void *malloc (size_t);
  2633. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2634. // dprintf is used instead of fprintf to avoid needing to declare
  2635. // FILE and stderr.
  2636. #define debug(...) dprintf (2, __VA_ARGS__)
  2637. #define showlist(...) puts (#__VA_ARGS__)
  2638. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2639. static void
  2640. test_varargs_macros (void)
  2641. {
  2642. int x = 1234;
  2643. int y = 5678;
  2644. debug ("Flag");
  2645. debug ("X = %d\n", x);
  2646. showlist (The first, second, and third items.);
  2647. report (x>y, "x is %d but y is %d", x, y);
  2648. }
  2649. // Check long long types.
  2650. #define BIG64 18446744073709551615ull
  2651. #define BIG32 4294967295ul
  2652. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2653. #if !BIG_OK
  2654. #error "your preprocessor is broken"
  2655. #endif
  2656. #if BIG_OK
  2657. #else
  2658. #error "your preprocessor is broken"
  2659. #endif
  2660. static long long int bignum = -9223372036854775807LL;
  2661. static unsigned long long int ubignum = BIG64;
  2662. struct incomplete_array
  2663. {
  2664. int datasize;
  2665. double data[];
  2666. };
  2667. struct named_init {
  2668. int number;
  2669. const wchar_t *name;
  2670. double average;
  2671. };
  2672. typedef const char *ccp;
  2673. static inline int
  2674. test_restrict (ccp restrict text)
  2675. {
  2676. // See if C++-style comments work.
  2677. // Iterate through items via the restricted pointer.
  2678. // Also check for declarations in for loops.
  2679. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2680. continue;
  2681. return 0;
  2682. }
  2683. // Check varargs and va_copy.
  2684. static bool
  2685. test_varargs (const char *format, ...)
  2686. {
  2687. va_list args;
  2688. va_start (args, format);
  2689. va_list args_copy;
  2690. va_copy (args_copy, args);
  2691. const char *str = "";
  2692. int number = 0;
  2693. float fnumber = 0;
  2694. while (*format)
  2695. {
  2696. switch (*format++)
  2697. {
  2698. case '\''s'\'': // string
  2699. str = va_arg (args_copy, const char *);
  2700. break;
  2701. case '\''d'\'': // int
  2702. number = va_arg (args_copy, int);
  2703. break;
  2704. case '\''f'\'': // float
  2705. fnumber = va_arg (args_copy, double);
  2706. break;
  2707. default:
  2708. break;
  2709. }
  2710. }
  2711. va_end (args_copy);
  2712. va_end (args);
  2713. return *str && number && fnumber;
  2714. }
  2715. '
  2716. # Test code for whether the C compiler supports C99 (body of main).
  2717. ac_c_conftest_c99_main='
  2718. // Check bool.
  2719. _Bool success = false;
  2720. success |= (argc != 0);
  2721. // Check restrict.
  2722. if (test_restrict ("String literal") == 0)
  2723. success = true;
  2724. char *restrict newvar = "Another string";
  2725. // Check varargs.
  2726. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2727. test_varargs_macros ();
  2728. // Check flexible array members.
  2729. struct incomplete_array *ia =
  2730. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2731. ia->datasize = 10;
  2732. for (int i = 0; i < ia->datasize; ++i)
  2733. ia->data[i] = i * 1.234;
  2734. // Check named initializers.
  2735. struct named_init ni = {
  2736. .number = 34,
  2737. .name = L"Test wide string",
  2738. .average = 543.34343,
  2739. };
  2740. ni.number = 58;
  2741. int dynamic_array[ni.number];
  2742. dynamic_array[0] = argv[0][0];
  2743. dynamic_array[ni.number - 1] = 543;
  2744. // work around unused variable warnings
  2745. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2746. || dynamic_array[ni.number - 1] != 543);
  2747. '
  2748. # Test code for whether the C compiler supports C11 (global declarations)
  2749. ac_c_conftest_c11_globals='
  2750. // Does the compiler advertise C11 conformance?
  2751. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2752. # error "Compiler does not advertise C11 conformance"
  2753. #endif
  2754. // Check _Alignas.
  2755. char _Alignas (double) aligned_as_double;
  2756. char _Alignas (0) no_special_alignment;
  2757. extern char aligned_as_int;
  2758. char _Alignas (0) _Alignas (int) aligned_as_int;
  2759. // Check _Alignof.
  2760. enum
  2761. {
  2762. int_alignment = _Alignof (int),
  2763. int_array_alignment = _Alignof (int[100]),
  2764. char_alignment = _Alignof (char)
  2765. };
  2766. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2767. // Check _Noreturn.
  2768. int _Noreturn does_not_return (void) { for (;;) continue; }
  2769. // Check _Static_assert.
  2770. struct test_static_assert
  2771. {
  2772. int x;
  2773. _Static_assert (sizeof (int) <= sizeof (long int),
  2774. "_Static_assert does not work in struct");
  2775. long int y;
  2776. };
  2777. // Check UTF-8 literals.
  2778. #define u8 syntax error!
  2779. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2780. // Check duplicate typedefs.
  2781. typedef long *long_ptr;
  2782. typedef long int *long_ptr;
  2783. typedef long_ptr long_ptr;
  2784. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2785. struct anonymous
  2786. {
  2787. union {
  2788. struct { int i; int j; };
  2789. struct { int k; long int l; } w;
  2790. };
  2791. int m;
  2792. } v1;
  2793. '
  2794. # Test code for whether the C compiler supports C11 (body of main).
  2795. ac_c_conftest_c11_main='
  2796. _Static_assert ((offsetof (struct anonymous, i)
  2797. == offsetof (struct anonymous, w.k)),
  2798. "Anonymous union alignment botch");
  2799. v1.i = 2;
  2800. v1.w.k = 5;
  2801. ok |= v1.i != 5;
  2802. '
  2803. # Test code for whether the C compiler supports C11 (complete).
  2804. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2805. ${ac_c_conftest_c99_globals}
  2806. ${ac_c_conftest_c11_globals}
  2807. int
  2808. main (int argc, char **argv)
  2809. {
  2810. int ok = 0;
  2811. ${ac_c_conftest_c89_main}
  2812. ${ac_c_conftest_c99_main}
  2813. ${ac_c_conftest_c11_main}
  2814. return ok;
  2815. }
  2816. "
  2817. # Test code for whether the C compiler supports C99 (complete).
  2818. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2819. ${ac_c_conftest_c99_globals}
  2820. int
  2821. main (int argc, char **argv)
  2822. {
  2823. int ok = 0;
  2824. ${ac_c_conftest_c89_main}
  2825. ${ac_c_conftest_c99_main}
  2826. return ok;
  2827. }
  2828. "
  2829. # Test code for whether the C compiler supports C89 (complete).
  2830. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2831. int
  2832. main (int argc, char **argv)
  2833. {
  2834. int ok = 0;
  2835. ${ac_c_conftest_c89_main}
  2836. return ok;
  2837. }
  2838. "
  2839. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2840. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2841. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2842. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2843. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2844. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2845. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2846. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2847. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2848. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2849. ac_cxx_conftest_cxx98_globals='
  2850. // Does the compiler advertise C++98 conformance?
  2851. #if !defined __cplusplus || __cplusplus < 199711L
  2852. # error "Compiler does not advertise C++98 conformance"
  2853. #endif
  2854. // These inclusions are to reject old compilers that
  2855. // lack the unsuffixed header files.
  2856. #include <cstdlib>
  2857. #include <exception>
  2858. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2859. extern void assert (int);
  2860. namespace std {
  2861. extern int strcmp (const char *, const char *);
  2862. }
  2863. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2864. using std::exception;
  2865. using std::strcmp;
  2866. namespace {
  2867. void test_exception_syntax()
  2868. {
  2869. try {
  2870. throw "test";
  2871. } catch (const char *s) {
  2872. // Extra parentheses suppress a warning when building autoconf itself,
  2873. // due to lint rules shared with more typical C programs.
  2874. assert (!(strcmp) (s, "test"));
  2875. }
  2876. }
  2877. template <typename T> struct test_template
  2878. {
  2879. T const val;
  2880. explicit test_template(T t) : val(t) {}
  2881. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2882. };
  2883. } // anonymous namespace
  2884. '
  2885. # Test code for whether the C++ compiler supports C++98 (body of main)
  2886. ac_cxx_conftest_cxx98_main='
  2887. assert (argc);
  2888. assert (! argv[0]);
  2889. {
  2890. test_exception_syntax ();
  2891. test_template<double> tt (2.0);
  2892. assert (tt.add (4) == 6.0);
  2893. assert (true && !false);
  2894. }
  2895. '
  2896. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2897. ac_cxx_conftest_cxx11_globals='
  2898. // Does the compiler advertise C++ 2011 conformance?
  2899. #if !defined __cplusplus || __cplusplus < 201103L
  2900. # error "Compiler does not advertise C++11 conformance"
  2901. #endif
  2902. namespace cxx11test
  2903. {
  2904. constexpr int get_val() { return 20; }
  2905. struct testinit
  2906. {
  2907. int i;
  2908. double d;
  2909. };
  2910. class delegate
  2911. {
  2912. public:
  2913. delegate(int n) : n(n) {}
  2914. delegate(): delegate(2354) {}
  2915. virtual int getval() { return this->n; };
  2916. protected:
  2917. int n;
  2918. };
  2919. class overridden : public delegate
  2920. {
  2921. public:
  2922. overridden(int n): delegate(n) {}
  2923. virtual int getval() override final { return this->n * 2; }
  2924. };
  2925. class nocopy
  2926. {
  2927. public:
  2928. nocopy(int i): i(i) {}
  2929. nocopy() = default;
  2930. nocopy(const nocopy&) = delete;
  2931. nocopy & operator=(const nocopy&) = delete;
  2932. private:
  2933. int i;
  2934. };
  2935. // for testing lambda expressions
  2936. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2937. {
  2938. return f(v);
  2939. }
  2940. // for testing variadic templates and trailing return types
  2941. template <typename V> auto sum(V first) -> V
  2942. {
  2943. return first;
  2944. }
  2945. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2946. {
  2947. return first + sum(rest...);
  2948. }
  2949. }
  2950. '
  2951. # Test code for whether the C++ compiler supports C++11 (body of main)
  2952. ac_cxx_conftest_cxx11_main='
  2953. {
  2954. // Test auto and decltype
  2955. auto a1 = 6538;
  2956. auto a2 = 48573953.4;
  2957. auto a3 = "String literal";
  2958. int total = 0;
  2959. for (auto i = a3; *i; ++i) { total += *i; }
  2960. decltype(a2) a4 = 34895.034;
  2961. }
  2962. {
  2963. // Test constexpr
  2964. short sa[cxx11test::get_val()] = { 0 };
  2965. }
  2966. {
  2967. // Test initializer lists
  2968. cxx11test::testinit il = { 4323, 435234.23544 };
  2969. }
  2970. {
  2971. // Test range-based for
  2972. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2973. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2974. for (auto &x : array) { x += 23; }
  2975. }
  2976. {
  2977. // Test lambda expressions
  2978. using cxx11test::eval;
  2979. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2980. double d = 2.0;
  2981. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2982. assert (d == 5.0);
  2983. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2984. assert (d == 5.0);
  2985. }
  2986. {
  2987. // Test use of variadic templates
  2988. using cxx11test::sum;
  2989. auto a = sum(1);
  2990. auto b = sum(1, 2);
  2991. auto c = sum(1.0, 2.0, 3.0);
  2992. }
  2993. {
  2994. // Test constructor delegation
  2995. cxx11test::delegate d1;
  2996. cxx11test::delegate d2();
  2997. cxx11test::delegate d3(45);
  2998. }
  2999. {
  3000. // Test override and final
  3001. cxx11test::overridden o1(55464);
  3002. }
  3003. {
  3004. // Test nullptr
  3005. char *c = nullptr;
  3006. }
  3007. {
  3008. // Test template brackets
  3009. test_template<::test_template<int>> v(test_template<int>(12));
  3010. }
  3011. {
  3012. // Unicode literals
  3013. char const *utf8 = u8"UTF-8 string \u2500";
  3014. char16_t const *utf16 = u"UTF-8 string \u2500";
  3015. char32_t const *utf32 = U"UTF-32 string \u2500";
  3016. }
  3017. '
  3018. # Test code for whether the C compiler supports C++11 (complete).
  3019. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3020. ${ac_cxx_conftest_cxx11_globals}
  3021. int
  3022. main (int argc, char **argv)
  3023. {
  3024. int ok = 0;
  3025. ${ac_cxx_conftest_cxx98_main}
  3026. ${ac_cxx_conftest_cxx11_main}
  3027. return ok;
  3028. }
  3029. "
  3030. # Test code for whether the C compiler supports C++98 (complete).
  3031. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3032. int
  3033. main (int argc, char **argv)
  3034. {
  3035. int ok = 0;
  3036. ${ac_cxx_conftest_cxx98_main}
  3037. return ok;
  3038. }
  3039. "
  3040. # Auxiliary files required by this configure script.
  3041. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  3042. # Locations in which to look for auxiliary files.
  3043. ac_aux_dir_candidates="${srcdir}/build-scripts"
  3044. # Search for a directory containing all of the required auxiliary files,
  3045. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3046. # If we don't find one directory that contains all the files we need,
  3047. # we report the set of missing files from the *first* directory in
  3048. # $ac_aux_dir_candidates and give up.
  3049. ac_missing_aux_files=""
  3050. ac_first_candidate=:
  3051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3053. as_found=false
  3054. for as_dir in $ac_aux_dir_candidates
  3055. do
  3056. IFS=$as_save_IFS
  3057. case $as_dir in #(((
  3058. '') as_dir=./ ;;
  3059. */) ;;
  3060. *) as_dir=$as_dir/ ;;
  3061. esac
  3062. as_found=:
  3063. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3064. ac_aux_dir_found=yes
  3065. ac_install_sh=
  3066. for ac_aux in $ac_aux_files
  3067. do
  3068. # As a special case, if "install-sh" is required, that requirement
  3069. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3070. # and $ac_install_sh is set appropriately for whichever one is found.
  3071. if test x"$ac_aux" = x"install-sh"
  3072. then
  3073. if test -f "${as_dir}install-sh"; then
  3074. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3075. ac_install_sh="${as_dir}install-sh -c"
  3076. elif test -f "${as_dir}install.sh"; then
  3077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3078. ac_install_sh="${as_dir}install.sh -c"
  3079. elif test -f "${as_dir}shtool"; then
  3080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3081. ac_install_sh="${as_dir}shtool install -c"
  3082. else
  3083. ac_aux_dir_found=no
  3084. if $ac_first_candidate; then
  3085. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3086. else
  3087. break
  3088. fi
  3089. fi
  3090. else
  3091. if test -f "${as_dir}${ac_aux}"; then
  3092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3093. else
  3094. ac_aux_dir_found=no
  3095. if $ac_first_candidate; then
  3096. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3097. else
  3098. break
  3099. fi
  3100. fi
  3101. fi
  3102. done
  3103. if test "$ac_aux_dir_found" = yes; then
  3104. ac_aux_dir="$as_dir"
  3105. break
  3106. fi
  3107. ac_first_candidate=false
  3108. as_found=false
  3109. done
  3110. IFS=$as_save_IFS
  3111. if $as_found
  3112. then :
  3113. else $as_nop
  3114. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3115. fi
  3116. # These three variables are undocumented and unsupported,
  3117. # and are intended to be withdrawn in a future Autoconf release.
  3118. # They can cause serious problems if a builder's source tree is in a directory
  3119. # whose full name contains unusual characters.
  3120. if test -f "${ac_aux_dir}config.guess"; then
  3121. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3122. fi
  3123. if test -f "${ac_aux_dir}config.sub"; then
  3124. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3125. fi
  3126. if test -f "$ac_aux_dir/configure"; then
  3127. ac_configure="$SHELL ${ac_aux_dir}configure"
  3128. fi
  3129. # Check that the precious variables saved in the cache have kept the same
  3130. # value.
  3131. ac_cache_corrupted=false
  3132. for ac_var in $ac_precious_vars; do
  3133. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3134. eval ac_new_set=\$ac_env_${ac_var}_set
  3135. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3136. eval ac_new_val=\$ac_env_${ac_var}_value
  3137. case $ac_old_set,$ac_new_set in
  3138. set,)
  3139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3140. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3141. ac_cache_corrupted=: ;;
  3142. ,set)
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3144. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3145. ac_cache_corrupted=: ;;
  3146. ,);;
  3147. *)
  3148. if test "x$ac_old_val" != "x$ac_new_val"; then
  3149. # differences in whitespace do not lead to failure.
  3150. ac_old_val_w=`echo x $ac_old_val`
  3151. ac_new_val_w=`echo x $ac_new_val`
  3152. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3154. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3155. ac_cache_corrupted=:
  3156. else
  3157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3158. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3159. eval $ac_var=\$ac_old_val
  3160. fi
  3161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3162. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3164. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3165. fi;;
  3166. esac
  3167. # Pass precious variables to config.status.
  3168. if test "$ac_new_set" = set; then
  3169. case $ac_new_val in
  3170. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3171. *) ac_arg=$ac_var=$ac_new_val ;;
  3172. esac
  3173. case " $ac_configure_args " in
  3174. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3175. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3176. esac
  3177. fi
  3178. done
  3179. if $ac_cache_corrupted; then
  3180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3181. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3183. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3184. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3185. and start over" "$LINENO" 5
  3186. fi
  3187. ## -------------------- ##
  3188. ## Main body of script. ##
  3189. ## -------------------- ##
  3190. ac_ext=c
  3191. ac_cpp='$CPP $CPPFLAGS'
  3192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3195. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3196. orig_CFLAGS="$CFLAGS"
  3197. # See docs/release_checklist.md
  3198. SDL_MAJOR_VERSION=2
  3199. SDL_MINOR_VERSION=30
  3200. SDL_MICRO_VERSION=8
  3201. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3202. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3203. case "$SDL_MINOR_VERSION" in #(
  3204. *[02468]) :
  3205. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3206. *) :
  3207. SDL_INTERFACE_AGE=0 ;; #(
  3208. *) :
  3209. ;;
  3210. esac
  3211. # libtool versioning
  3212. case `pwd` in
  3213. *\ * | *\ *)
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3215. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3216. esac
  3217. macro_version='2.4.6'
  3218. macro_revision='2.4.6'
  3219. ltmain=$ac_aux_dir/ltmain.sh
  3220. # Make sure we can run config.sub.
  3221. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3222. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3224. printf %s "checking build system type... " >&6; }
  3225. if test ${ac_cv_build+y}
  3226. then :
  3227. printf %s "(cached) " >&6
  3228. else $as_nop
  3229. ac_build_alias=$build_alias
  3230. test "x$ac_build_alias" = x &&
  3231. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3232. test "x$ac_build_alias" = x &&
  3233. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3234. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3235. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3236. fi
  3237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3238. printf "%s\n" "$ac_cv_build" >&6; }
  3239. case $ac_cv_build in
  3240. *-*-*) ;;
  3241. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3242. esac
  3243. build=$ac_cv_build
  3244. ac_save_IFS=$IFS; IFS='-'
  3245. set x $ac_cv_build
  3246. shift
  3247. build_cpu=$1
  3248. build_vendor=$2
  3249. shift; shift
  3250. # Remember, the first character of IFS is used to create $*,
  3251. # except with old shells:
  3252. build_os=$*
  3253. IFS=$ac_save_IFS
  3254. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3256. printf %s "checking host system type... " >&6; }
  3257. if test ${ac_cv_host+y}
  3258. then :
  3259. printf %s "(cached) " >&6
  3260. else $as_nop
  3261. if test "x$host_alias" = x; then
  3262. ac_cv_host=$ac_cv_build
  3263. else
  3264. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3265. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3266. fi
  3267. fi
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3269. printf "%s\n" "$ac_cv_host" >&6; }
  3270. case $ac_cv_host in
  3271. *-*-*) ;;
  3272. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3273. esac
  3274. host=$ac_cv_host
  3275. ac_save_IFS=$IFS; IFS='-'
  3276. set x $ac_cv_host
  3277. shift
  3278. host_cpu=$1
  3279. host_vendor=$2
  3280. shift; shift
  3281. # Remember, the first character of IFS is used to create $*,
  3282. # except with old shells:
  3283. host_os=$*
  3284. IFS=$ac_save_IFS
  3285. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3286. # Backslashify metacharacters that are still active within
  3287. # double-quoted strings.
  3288. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3289. # Same as above, but do not quote variable references.
  3290. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3291. # Sed substitution to delay expansion of an escaped shell variable in a
  3292. # double_quote_subst'ed string.
  3293. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3294. # Sed substitution to delay expansion of an escaped single quote.
  3295. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3296. # Sed substitution to avoid accidental globbing in evaled expressions
  3297. no_glob_subst='s/\*/\\\*/g'
  3298. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3299. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3300. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3302. printf %s "checking how to print strings... " >&6; }
  3303. # Test print first, because it will be a builtin if present.
  3304. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3305. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3306. ECHO='print -r --'
  3307. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3308. ECHO='printf %s\n'
  3309. else
  3310. # Use this function as a fallback that always works.
  3311. func_fallback_echo ()
  3312. {
  3313. eval 'cat <<_LTECHO_EOF
  3314. $1
  3315. _LTECHO_EOF'
  3316. }
  3317. ECHO='func_fallback_echo'
  3318. fi
  3319. # func_echo_all arg...
  3320. # Invoke $ECHO with all args, space-separated.
  3321. func_echo_all ()
  3322. {
  3323. $ECHO ""
  3324. }
  3325. case $ECHO in
  3326. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3327. printf "%s\n" "printf" >&6; } ;;
  3328. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3329. printf "%s\n" "print -r" >&6; } ;;
  3330. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3331. printf "%s\n" "cat" >&6; } ;;
  3332. esac
  3333. ac_ext=c
  3334. ac_cpp='$CPP $CPPFLAGS'
  3335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3338. if test -n "$ac_tool_prefix"; then
  3339. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3340. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. printf %s "checking for $ac_word... " >&6; }
  3343. if test ${ac_cv_prog_CC+y}
  3344. then :
  3345. printf %s "(cached) " >&6
  3346. else $as_nop
  3347. if test -n "$CC"; then
  3348. ac_cv_prog_CC="$CC" # Let the user override the test.
  3349. else
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH
  3352. do
  3353. IFS=$as_save_IFS
  3354. case $as_dir in #(((
  3355. '') as_dir=./ ;;
  3356. */) ;;
  3357. *) as_dir=$as_dir/ ;;
  3358. esac
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3361. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3362. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3363. break 2
  3364. fi
  3365. done
  3366. done
  3367. IFS=$as_save_IFS
  3368. fi
  3369. fi
  3370. CC=$ac_cv_prog_CC
  3371. if test -n "$CC"; then
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3373. printf "%s\n" "$CC" >&6; }
  3374. else
  3375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3376. printf "%s\n" "no" >&6; }
  3377. fi
  3378. fi
  3379. if test -z "$ac_cv_prog_CC"; then
  3380. ac_ct_CC=$CC
  3381. # Extract the first word of "gcc", so it can be a program name with args.
  3382. set dummy gcc; ac_word=$2
  3383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3384. printf %s "checking for $ac_word... " >&6; }
  3385. if test ${ac_cv_prog_ac_ct_CC+y}
  3386. then :
  3387. printf %s "(cached) " >&6
  3388. else $as_nop
  3389. if test -n "$ac_ct_CC"; then
  3390. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3391. else
  3392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3393. for as_dir in $PATH
  3394. do
  3395. IFS=$as_save_IFS
  3396. case $as_dir in #(((
  3397. '') as_dir=./ ;;
  3398. */) ;;
  3399. *) as_dir=$as_dir/ ;;
  3400. esac
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3403. ac_cv_prog_ac_ct_CC="gcc"
  3404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3405. break 2
  3406. fi
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410. fi
  3411. fi
  3412. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3413. if test -n "$ac_ct_CC"; then
  3414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3415. printf "%s\n" "$ac_ct_CC" >&6; }
  3416. else
  3417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3418. printf "%s\n" "no" >&6; }
  3419. fi
  3420. if test "x$ac_ct_CC" = x; then
  3421. CC=""
  3422. else
  3423. case $cross_compiling:$ac_tool_warned in
  3424. yes:)
  3425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3426. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3427. ac_tool_warned=yes ;;
  3428. esac
  3429. CC=$ac_ct_CC
  3430. fi
  3431. else
  3432. CC="$ac_cv_prog_CC"
  3433. fi
  3434. if test -z "$CC"; then
  3435. if test -n "$ac_tool_prefix"; then
  3436. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3437. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3439. printf %s "checking for $ac_word... " >&6; }
  3440. if test ${ac_cv_prog_CC+y}
  3441. then :
  3442. printf %s "(cached) " >&6
  3443. else $as_nop
  3444. if test -n "$CC"; then
  3445. ac_cv_prog_CC="$CC" # Let the user override the test.
  3446. else
  3447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3448. for as_dir in $PATH
  3449. do
  3450. IFS=$as_save_IFS
  3451. case $as_dir in #(((
  3452. '') as_dir=./ ;;
  3453. */) ;;
  3454. *) as_dir=$as_dir/ ;;
  3455. esac
  3456. for ac_exec_ext in '' $ac_executable_extensions; do
  3457. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3458. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3459. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3460. break 2
  3461. fi
  3462. done
  3463. done
  3464. IFS=$as_save_IFS
  3465. fi
  3466. fi
  3467. CC=$ac_cv_prog_CC
  3468. if test -n "$CC"; then
  3469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3470. printf "%s\n" "$CC" >&6; }
  3471. else
  3472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3473. printf "%s\n" "no" >&6; }
  3474. fi
  3475. fi
  3476. fi
  3477. if test -z "$CC"; then
  3478. # Extract the first word of "cc", so it can be a program name with args.
  3479. set dummy cc; ac_word=$2
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3481. printf %s "checking for $ac_word... " >&6; }
  3482. if test ${ac_cv_prog_CC+y}
  3483. then :
  3484. printf %s "(cached) " >&6
  3485. else $as_nop
  3486. if test -n "$CC"; then
  3487. ac_cv_prog_CC="$CC" # Let the user override the test.
  3488. else
  3489. ac_prog_rejected=no
  3490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3491. for as_dir in $PATH
  3492. do
  3493. IFS=$as_save_IFS
  3494. case $as_dir in #(((
  3495. '') as_dir=./ ;;
  3496. */) ;;
  3497. *) as_dir=$as_dir/ ;;
  3498. esac
  3499. for ac_exec_ext in '' $ac_executable_extensions; do
  3500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3501. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3502. ac_prog_rejected=yes
  3503. continue
  3504. fi
  3505. ac_cv_prog_CC="cc"
  3506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3507. break 2
  3508. fi
  3509. done
  3510. done
  3511. IFS=$as_save_IFS
  3512. if test $ac_prog_rejected = yes; then
  3513. # We found a bogon in the path, so make sure we never use it.
  3514. set dummy $ac_cv_prog_CC
  3515. shift
  3516. if test $# != 0; then
  3517. # We chose a different compiler from the bogus one.
  3518. # However, it has the same basename, so the bogon will be chosen
  3519. # first if we set CC to just the basename; use the full file name.
  3520. shift
  3521. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3522. fi
  3523. fi
  3524. fi
  3525. fi
  3526. CC=$ac_cv_prog_CC
  3527. if test -n "$CC"; then
  3528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3529. printf "%s\n" "$CC" >&6; }
  3530. else
  3531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3532. printf "%s\n" "no" >&6; }
  3533. fi
  3534. fi
  3535. if test -z "$CC"; then
  3536. if test -n "$ac_tool_prefix"; then
  3537. for ac_prog in cl.exe
  3538. do
  3539. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3540. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3542. printf %s "checking for $ac_word... " >&6; }
  3543. if test ${ac_cv_prog_CC+y}
  3544. then :
  3545. printf %s "(cached) " >&6
  3546. else $as_nop
  3547. if test -n "$CC"; then
  3548. ac_cv_prog_CC="$CC" # Let the user override the test.
  3549. else
  3550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551. for as_dir in $PATH
  3552. do
  3553. IFS=$as_save_IFS
  3554. case $as_dir in #(((
  3555. '') as_dir=./ ;;
  3556. */) ;;
  3557. *) as_dir=$as_dir/ ;;
  3558. esac
  3559. for ac_exec_ext in '' $ac_executable_extensions; do
  3560. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3561. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3563. break 2
  3564. fi
  3565. done
  3566. done
  3567. IFS=$as_save_IFS
  3568. fi
  3569. fi
  3570. CC=$ac_cv_prog_CC
  3571. if test -n "$CC"; then
  3572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3573. printf "%s\n" "$CC" >&6; }
  3574. else
  3575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3576. printf "%s\n" "no" >&6; }
  3577. fi
  3578. test -n "$CC" && break
  3579. done
  3580. fi
  3581. if test -z "$CC"; then
  3582. ac_ct_CC=$CC
  3583. for ac_prog in cl.exe
  3584. do
  3585. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3586. set dummy $ac_prog; ac_word=$2
  3587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3588. printf %s "checking for $ac_word... " >&6; }
  3589. if test ${ac_cv_prog_ac_ct_CC+y}
  3590. then :
  3591. printf %s "(cached) " >&6
  3592. else $as_nop
  3593. if test -n "$ac_ct_CC"; then
  3594. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3595. else
  3596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3597. for as_dir in $PATH
  3598. do
  3599. IFS=$as_save_IFS
  3600. case $as_dir in #(((
  3601. '') as_dir=./ ;;
  3602. */) ;;
  3603. *) as_dir=$as_dir/ ;;
  3604. esac
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3607. ac_cv_prog_ac_ct_CC="$ac_prog"
  3608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3609. break 2
  3610. fi
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. fi
  3615. fi
  3616. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3617. if test -n "$ac_ct_CC"; then
  3618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3619. printf "%s\n" "$ac_ct_CC" >&6; }
  3620. else
  3621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3622. printf "%s\n" "no" >&6; }
  3623. fi
  3624. test -n "$ac_ct_CC" && break
  3625. done
  3626. if test "x$ac_ct_CC" = x; then
  3627. CC=""
  3628. else
  3629. case $cross_compiling:$ac_tool_warned in
  3630. yes:)
  3631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3632. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3633. ac_tool_warned=yes ;;
  3634. esac
  3635. CC=$ac_ct_CC
  3636. fi
  3637. fi
  3638. fi
  3639. if test -z "$CC"; then
  3640. if test -n "$ac_tool_prefix"; then
  3641. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3642. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3644. printf %s "checking for $ac_word... " >&6; }
  3645. if test ${ac_cv_prog_CC+y}
  3646. then :
  3647. printf %s "(cached) " >&6
  3648. else $as_nop
  3649. if test -n "$CC"; then
  3650. ac_cv_prog_CC="$CC" # Let the user override the test.
  3651. else
  3652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3653. for as_dir in $PATH
  3654. do
  3655. IFS=$as_save_IFS
  3656. case $as_dir in #(((
  3657. '') as_dir=./ ;;
  3658. */) ;;
  3659. *) as_dir=$as_dir/ ;;
  3660. esac
  3661. for ac_exec_ext in '' $ac_executable_extensions; do
  3662. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3663. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3665. break 2
  3666. fi
  3667. done
  3668. done
  3669. IFS=$as_save_IFS
  3670. fi
  3671. fi
  3672. CC=$ac_cv_prog_CC
  3673. if test -n "$CC"; then
  3674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3675. printf "%s\n" "$CC" >&6; }
  3676. else
  3677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3678. printf "%s\n" "no" >&6; }
  3679. fi
  3680. fi
  3681. if test -z "$ac_cv_prog_CC"; then
  3682. ac_ct_CC=$CC
  3683. # Extract the first word of "clang", so it can be a program name with args.
  3684. set dummy clang; ac_word=$2
  3685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3686. printf %s "checking for $ac_word... " >&6; }
  3687. if test ${ac_cv_prog_ac_ct_CC+y}
  3688. then :
  3689. printf %s "(cached) " >&6
  3690. else $as_nop
  3691. if test -n "$ac_ct_CC"; then
  3692. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3693. else
  3694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3695. for as_dir in $PATH
  3696. do
  3697. IFS=$as_save_IFS
  3698. case $as_dir in #(((
  3699. '') as_dir=./ ;;
  3700. */) ;;
  3701. *) as_dir=$as_dir/ ;;
  3702. esac
  3703. for ac_exec_ext in '' $ac_executable_extensions; do
  3704. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3705. ac_cv_prog_ac_ct_CC="clang"
  3706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3707. break 2
  3708. fi
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. fi
  3713. fi
  3714. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3715. if test -n "$ac_ct_CC"; then
  3716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3717. printf "%s\n" "$ac_ct_CC" >&6; }
  3718. else
  3719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3720. printf "%s\n" "no" >&6; }
  3721. fi
  3722. if test "x$ac_ct_CC" = x; then
  3723. CC=""
  3724. else
  3725. case $cross_compiling:$ac_tool_warned in
  3726. yes:)
  3727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3728. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3729. ac_tool_warned=yes ;;
  3730. esac
  3731. CC=$ac_ct_CC
  3732. fi
  3733. else
  3734. CC="$ac_cv_prog_CC"
  3735. fi
  3736. fi
  3737. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3738. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3739. as_fn_error $? "no acceptable C compiler found in \$PATH
  3740. See \`config.log' for more details" "$LINENO" 5; }
  3741. # Provide some information about the compiler.
  3742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3743. set X $ac_compile
  3744. ac_compiler=$2
  3745. for ac_option in --version -v -V -qversion -version; do
  3746. { { ac_try="$ac_compiler $ac_option >&5"
  3747. case "(($ac_try" in
  3748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3749. *) ac_try_echo=$ac_try;;
  3750. esac
  3751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3752. printf "%s\n" "$ac_try_echo"; } >&5
  3753. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3754. ac_status=$?
  3755. if test -s conftest.err; then
  3756. sed '10a\
  3757. ... rest of stderr output deleted ...
  3758. 10q' conftest.err >conftest.er1
  3759. cat conftest.er1 >&5
  3760. fi
  3761. rm -f conftest.er1 conftest.err
  3762. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3763. test $ac_status = 0; }
  3764. done
  3765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3766. /* end confdefs.h. */
  3767. int
  3768. main (void)
  3769. {
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. ac_clean_files_save=$ac_clean_files
  3775. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3776. # Try to create an executable without -o first, disregard a.out.
  3777. # It will help us diagnose broken compilers, and finding out an intuition
  3778. # of exeext.
  3779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3780. printf %s "checking whether the C compiler works... " >&6; }
  3781. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3782. # The possible output files:
  3783. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3784. ac_rmfiles=
  3785. for ac_file in $ac_files
  3786. do
  3787. case $ac_file in
  3788. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3789. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3790. esac
  3791. done
  3792. rm -f $ac_rmfiles
  3793. if { { ac_try="$ac_link_default"
  3794. case "(($ac_try" in
  3795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3796. *) ac_try_echo=$ac_try;;
  3797. esac
  3798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3799. printf "%s\n" "$ac_try_echo"; } >&5
  3800. (eval "$ac_link_default") 2>&5
  3801. ac_status=$?
  3802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3803. test $ac_status = 0; }
  3804. then :
  3805. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3806. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3807. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3808. # so that the user can short-circuit this test for compilers unknown to
  3809. # Autoconf.
  3810. for ac_file in $ac_files ''
  3811. do
  3812. test -f "$ac_file" || continue
  3813. case $ac_file in
  3814. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3815. ;;
  3816. [ab].out )
  3817. # We found the default executable, but exeext='' is most
  3818. # certainly right.
  3819. break;;
  3820. *.* )
  3821. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3822. then :; else
  3823. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3824. fi
  3825. # We set ac_cv_exeext here because the later test for it is not
  3826. # safe: cross compilers may not add the suffix if given an `-o'
  3827. # argument, so we may need to know it at that point already.
  3828. # Even if this section looks crufty: it has the advantage of
  3829. # actually working.
  3830. break;;
  3831. * )
  3832. break;;
  3833. esac
  3834. done
  3835. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3836. else $as_nop
  3837. ac_file=''
  3838. fi
  3839. if test -z "$ac_file"
  3840. then :
  3841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. printf "%s\n" "no" >&6; }
  3843. printf "%s\n" "$as_me: failed program was:" >&5
  3844. sed 's/^/| /' conftest.$ac_ext >&5
  3845. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3846. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3847. as_fn_error 77 "C compiler cannot create executables
  3848. See \`config.log' for more details" "$LINENO" 5; }
  3849. else $as_nop
  3850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3851. printf "%s\n" "yes" >&6; }
  3852. fi
  3853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3854. printf %s "checking for C compiler default output file name... " >&6; }
  3855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3856. printf "%s\n" "$ac_file" >&6; }
  3857. ac_exeext=$ac_cv_exeext
  3858. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3859. ac_clean_files=$ac_clean_files_save
  3860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3861. printf %s "checking for suffix of executables... " >&6; }
  3862. if { { ac_try="$ac_link"
  3863. case "(($ac_try" in
  3864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3865. *) ac_try_echo=$ac_try;;
  3866. esac
  3867. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3868. printf "%s\n" "$ac_try_echo"; } >&5
  3869. (eval "$ac_link") 2>&5
  3870. ac_status=$?
  3871. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3872. test $ac_status = 0; }
  3873. then :
  3874. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3875. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3876. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3877. # `rm'.
  3878. for ac_file in conftest.exe conftest conftest.*; do
  3879. test -f "$ac_file" || continue
  3880. case $ac_file in
  3881. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3882. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3883. break;;
  3884. * ) break;;
  3885. esac
  3886. done
  3887. else $as_nop
  3888. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3889. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3890. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3891. See \`config.log' for more details" "$LINENO" 5; }
  3892. fi
  3893. rm -f conftest conftest$ac_cv_exeext
  3894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3895. printf "%s\n" "$ac_cv_exeext" >&6; }
  3896. rm -f conftest.$ac_ext
  3897. EXEEXT=$ac_cv_exeext
  3898. ac_exeext=$EXEEXT
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. #include <stdio.h>
  3902. int
  3903. main (void)
  3904. {
  3905. FILE *f = fopen ("conftest.out", "w");
  3906. return ferror (f) || fclose (f) != 0;
  3907. ;
  3908. return 0;
  3909. }
  3910. _ACEOF
  3911. ac_clean_files="$ac_clean_files conftest.out"
  3912. # Check that the compiler produces executables we can run. If not, either
  3913. # the compiler is broken, or we cross compile.
  3914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3915. printf %s "checking whether we are cross compiling... " >&6; }
  3916. if test "$cross_compiling" != yes; then
  3917. { { ac_try="$ac_link"
  3918. case "(($ac_try" in
  3919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3920. *) ac_try_echo=$ac_try;;
  3921. esac
  3922. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3923. printf "%s\n" "$ac_try_echo"; } >&5
  3924. (eval "$ac_link") 2>&5
  3925. ac_status=$?
  3926. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3927. test $ac_status = 0; }
  3928. if { ac_try='./conftest$ac_cv_exeext'
  3929. { { case "(($ac_try" in
  3930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3931. *) ac_try_echo=$ac_try;;
  3932. esac
  3933. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3934. printf "%s\n" "$ac_try_echo"; } >&5
  3935. (eval "$ac_try") 2>&5
  3936. ac_status=$?
  3937. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3938. test $ac_status = 0; }; }; then
  3939. cross_compiling=no
  3940. else
  3941. if test "$cross_compiling" = maybe; then
  3942. cross_compiling=yes
  3943. else
  3944. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3945. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3946. as_fn_error 77 "cannot run C compiled programs.
  3947. If you meant to cross compile, use \`--host'.
  3948. See \`config.log' for more details" "$LINENO" 5; }
  3949. fi
  3950. fi
  3951. fi
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3953. printf "%s\n" "$cross_compiling" >&6; }
  3954. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3955. ac_clean_files=$ac_clean_files_save
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3957. printf %s "checking for suffix of object files... " >&6; }
  3958. if test ${ac_cv_objext+y}
  3959. then :
  3960. printf %s "(cached) " >&6
  3961. else $as_nop
  3962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3963. /* end confdefs.h. */
  3964. int
  3965. main (void)
  3966. {
  3967. ;
  3968. return 0;
  3969. }
  3970. _ACEOF
  3971. rm -f conftest.o conftest.obj
  3972. if { { ac_try="$ac_compile"
  3973. case "(($ac_try" in
  3974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3975. *) ac_try_echo=$ac_try;;
  3976. esac
  3977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3978. printf "%s\n" "$ac_try_echo"; } >&5
  3979. (eval "$ac_compile") 2>&5
  3980. ac_status=$?
  3981. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3982. test $ac_status = 0; }
  3983. then :
  3984. for ac_file in conftest.o conftest.obj conftest.*; do
  3985. test -f "$ac_file" || continue;
  3986. case $ac_file in
  3987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3988. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3989. break;;
  3990. esac
  3991. done
  3992. else $as_nop
  3993. printf "%s\n" "$as_me: failed program was:" >&5
  3994. sed 's/^/| /' conftest.$ac_ext >&5
  3995. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3996. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3997. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3998. See \`config.log' for more details" "$LINENO" 5; }
  3999. fi
  4000. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4001. fi
  4002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4003. printf "%s\n" "$ac_cv_objext" >&6; }
  4004. OBJEXT=$ac_cv_objext
  4005. ac_objext=$OBJEXT
  4006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4007. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4008. if test ${ac_cv_c_compiler_gnu+y}
  4009. then :
  4010. printf %s "(cached) " >&6
  4011. else $as_nop
  4012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4013. /* end confdefs.h. */
  4014. int
  4015. main (void)
  4016. {
  4017. #ifndef __GNUC__
  4018. choke me
  4019. #endif
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. if ac_fn_c_try_compile "$LINENO"
  4025. then :
  4026. ac_compiler_gnu=yes
  4027. else $as_nop
  4028. ac_compiler_gnu=no
  4029. fi
  4030. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4031. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4032. fi
  4033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4034. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4036. if test $ac_compiler_gnu = yes; then
  4037. GCC=yes
  4038. else
  4039. GCC=
  4040. fi
  4041. ac_test_CFLAGS=${CFLAGS+y}
  4042. ac_save_CFLAGS=$CFLAGS
  4043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4044. printf %s "checking whether $CC accepts -g... " >&6; }
  4045. if test ${ac_cv_prog_cc_g+y}
  4046. then :
  4047. printf %s "(cached) " >&6
  4048. else $as_nop
  4049. ac_save_c_werror_flag=$ac_c_werror_flag
  4050. ac_c_werror_flag=yes
  4051. ac_cv_prog_cc_g=no
  4052. CFLAGS="-g"
  4053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4054. /* end confdefs.h. */
  4055. int
  4056. main (void)
  4057. {
  4058. ;
  4059. return 0;
  4060. }
  4061. _ACEOF
  4062. if ac_fn_c_try_compile "$LINENO"
  4063. then :
  4064. ac_cv_prog_cc_g=yes
  4065. else $as_nop
  4066. CFLAGS=""
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. int
  4070. main (void)
  4071. {
  4072. ;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_c_try_compile "$LINENO"
  4077. then :
  4078. else $as_nop
  4079. ac_c_werror_flag=$ac_save_c_werror_flag
  4080. CFLAGS="-g"
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. int
  4084. main (void)
  4085. {
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. if ac_fn_c_try_compile "$LINENO"
  4091. then :
  4092. ac_cv_prog_cc_g=yes
  4093. fi
  4094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4095. fi
  4096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4099. ac_c_werror_flag=$ac_save_c_werror_flag
  4100. fi
  4101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4102. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4103. if test $ac_test_CFLAGS; then
  4104. CFLAGS=$ac_save_CFLAGS
  4105. elif test $ac_cv_prog_cc_g = yes; then
  4106. if test "$GCC" = yes; then
  4107. CFLAGS="-g -O2"
  4108. else
  4109. CFLAGS="-g"
  4110. fi
  4111. else
  4112. if test "$GCC" = yes; then
  4113. CFLAGS="-O2"
  4114. else
  4115. CFLAGS=
  4116. fi
  4117. fi
  4118. ac_prog_cc_stdc=no
  4119. if test x$ac_prog_cc_stdc = xno
  4120. then :
  4121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4122. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4123. if test ${ac_cv_prog_cc_c11+y}
  4124. then :
  4125. printf %s "(cached) " >&6
  4126. else $as_nop
  4127. ac_cv_prog_cc_c11=no
  4128. ac_save_CC=$CC
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. $ac_c_conftest_c11_program
  4132. _ACEOF
  4133. for ac_arg in '' -std=gnu11
  4134. do
  4135. CC="$ac_save_CC $ac_arg"
  4136. if ac_fn_c_try_compile "$LINENO"
  4137. then :
  4138. ac_cv_prog_cc_c11=$ac_arg
  4139. fi
  4140. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4141. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4142. done
  4143. rm -f conftest.$ac_ext
  4144. CC=$ac_save_CC
  4145. fi
  4146. if test "x$ac_cv_prog_cc_c11" = xno
  4147. then :
  4148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4149. printf "%s\n" "unsupported" >&6; }
  4150. else $as_nop
  4151. if test "x$ac_cv_prog_cc_c11" = x
  4152. then :
  4153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4154. printf "%s\n" "none needed" >&6; }
  4155. else $as_nop
  4156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4157. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4158. CC="$CC $ac_cv_prog_cc_c11"
  4159. fi
  4160. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4161. ac_prog_cc_stdc=c11
  4162. fi
  4163. fi
  4164. if test x$ac_prog_cc_stdc = xno
  4165. then :
  4166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4167. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4168. if test ${ac_cv_prog_cc_c99+y}
  4169. then :
  4170. printf %s "(cached) " >&6
  4171. else $as_nop
  4172. ac_cv_prog_cc_c99=no
  4173. ac_save_CC=$CC
  4174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4175. /* end confdefs.h. */
  4176. $ac_c_conftest_c99_program
  4177. _ACEOF
  4178. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4179. do
  4180. CC="$ac_save_CC $ac_arg"
  4181. if ac_fn_c_try_compile "$LINENO"
  4182. then :
  4183. ac_cv_prog_cc_c99=$ac_arg
  4184. fi
  4185. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4186. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4187. done
  4188. rm -f conftest.$ac_ext
  4189. CC=$ac_save_CC
  4190. fi
  4191. if test "x$ac_cv_prog_cc_c99" = xno
  4192. then :
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4194. printf "%s\n" "unsupported" >&6; }
  4195. else $as_nop
  4196. if test "x$ac_cv_prog_cc_c99" = x
  4197. then :
  4198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4199. printf "%s\n" "none needed" >&6; }
  4200. else $as_nop
  4201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4202. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4203. CC="$CC $ac_cv_prog_cc_c99"
  4204. fi
  4205. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4206. ac_prog_cc_stdc=c99
  4207. fi
  4208. fi
  4209. if test x$ac_prog_cc_stdc = xno
  4210. then :
  4211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4212. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4213. if test ${ac_cv_prog_cc_c89+y}
  4214. then :
  4215. printf %s "(cached) " >&6
  4216. else $as_nop
  4217. ac_cv_prog_cc_c89=no
  4218. ac_save_CC=$CC
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. $ac_c_conftest_c89_program
  4222. _ACEOF
  4223. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4224. do
  4225. CC="$ac_save_CC $ac_arg"
  4226. if ac_fn_c_try_compile "$LINENO"
  4227. then :
  4228. ac_cv_prog_cc_c89=$ac_arg
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4231. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4232. done
  4233. rm -f conftest.$ac_ext
  4234. CC=$ac_save_CC
  4235. fi
  4236. if test "x$ac_cv_prog_cc_c89" = xno
  4237. then :
  4238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4239. printf "%s\n" "unsupported" >&6; }
  4240. else $as_nop
  4241. if test "x$ac_cv_prog_cc_c89" = x
  4242. then :
  4243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4244. printf "%s\n" "none needed" >&6; }
  4245. else $as_nop
  4246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4247. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4248. CC="$CC $ac_cv_prog_cc_c89"
  4249. fi
  4250. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4251. ac_prog_cc_stdc=c89
  4252. fi
  4253. fi
  4254. ac_ext=c
  4255. ac_cpp='$CPP $CPPFLAGS'
  4256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4260. printf %s "checking for a sed that does not truncate output... " >&6; }
  4261. if test ${ac_cv_path_SED+y}
  4262. then :
  4263. printf %s "(cached) " >&6
  4264. else $as_nop
  4265. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4266. for ac_i in 1 2 3 4 5 6 7; do
  4267. ac_script="$ac_script$as_nl$ac_script"
  4268. done
  4269. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4270. { ac_script=; unset ac_script;}
  4271. if test -z "$SED"; then
  4272. ac_path_SED_found=false
  4273. # Loop through the user's path and test for each of PROGNAME-LIST
  4274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4275. for as_dir in $PATH
  4276. do
  4277. IFS=$as_save_IFS
  4278. case $as_dir in #(((
  4279. '') as_dir=./ ;;
  4280. */) ;;
  4281. *) as_dir=$as_dir/ ;;
  4282. esac
  4283. for ac_prog in sed gsed
  4284. do
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4287. as_fn_executable_p "$ac_path_SED" || continue
  4288. # Check for GNU ac_path_SED and select it if it is found.
  4289. # Check for GNU $ac_path_SED
  4290. case `"$ac_path_SED" --version 2>&1` in
  4291. *GNU*)
  4292. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4293. *)
  4294. ac_count=0
  4295. printf %s 0123456789 >"conftest.in"
  4296. while :
  4297. do
  4298. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4299. mv "conftest.tmp" "conftest.in"
  4300. cp "conftest.in" "conftest.nl"
  4301. printf "%s\n" '' >> "conftest.nl"
  4302. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4303. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4304. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4305. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4306. # Best one so far, save it but keep looking for a better one
  4307. ac_cv_path_SED="$ac_path_SED"
  4308. ac_path_SED_max=$ac_count
  4309. fi
  4310. # 10*(2^10) chars as input seems more than enough
  4311. test $ac_count -gt 10 && break
  4312. done
  4313. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4314. esac
  4315. $ac_path_SED_found && break 3
  4316. done
  4317. done
  4318. done
  4319. IFS=$as_save_IFS
  4320. if test -z "$ac_cv_path_SED"; then
  4321. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4322. fi
  4323. else
  4324. ac_cv_path_SED=$SED
  4325. fi
  4326. fi
  4327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4328. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4329. SED="$ac_cv_path_SED"
  4330. rm -f conftest.sed
  4331. test -z "$SED" && SED=sed
  4332. Xsed="$SED -e 1s/^X//"
  4333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4334. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4335. if test ${ac_cv_path_GREP+y}
  4336. then :
  4337. printf %s "(cached) " >&6
  4338. else $as_nop
  4339. if test -z "$GREP"; then
  4340. ac_path_GREP_found=false
  4341. # Loop through the user's path and test for each of PROGNAME-LIST
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4344. do
  4345. IFS=$as_save_IFS
  4346. case $as_dir in #(((
  4347. '') as_dir=./ ;;
  4348. */) ;;
  4349. *) as_dir=$as_dir/ ;;
  4350. esac
  4351. for ac_prog in grep ggrep
  4352. do
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4355. as_fn_executable_p "$ac_path_GREP" || continue
  4356. # Check for GNU ac_path_GREP and select it if it is found.
  4357. # Check for GNU $ac_path_GREP
  4358. case `"$ac_path_GREP" --version 2>&1` in
  4359. *GNU*)
  4360. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4361. *)
  4362. ac_count=0
  4363. printf %s 0123456789 >"conftest.in"
  4364. while :
  4365. do
  4366. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4367. mv "conftest.tmp" "conftest.in"
  4368. cp "conftest.in" "conftest.nl"
  4369. printf "%s\n" 'GREP' >> "conftest.nl"
  4370. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4371. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4372. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4373. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4374. # Best one so far, save it but keep looking for a better one
  4375. ac_cv_path_GREP="$ac_path_GREP"
  4376. ac_path_GREP_max=$ac_count
  4377. fi
  4378. # 10*(2^10) chars as input seems more than enough
  4379. test $ac_count -gt 10 && break
  4380. done
  4381. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4382. esac
  4383. $ac_path_GREP_found && break 3
  4384. done
  4385. done
  4386. done
  4387. IFS=$as_save_IFS
  4388. if test -z "$ac_cv_path_GREP"; then
  4389. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4390. fi
  4391. else
  4392. ac_cv_path_GREP=$GREP
  4393. fi
  4394. fi
  4395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4396. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4397. GREP="$ac_cv_path_GREP"
  4398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4399. printf %s "checking for egrep... " >&6; }
  4400. if test ${ac_cv_path_EGREP+y}
  4401. then :
  4402. printf %s "(cached) " >&6
  4403. else $as_nop
  4404. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4405. then ac_cv_path_EGREP="$GREP -E"
  4406. else
  4407. if test -z "$EGREP"; then
  4408. ac_path_EGREP_found=false
  4409. # Loop through the user's path and test for each of PROGNAME-LIST
  4410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4411. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4412. do
  4413. IFS=$as_save_IFS
  4414. case $as_dir in #(((
  4415. '') as_dir=./ ;;
  4416. */) ;;
  4417. *) as_dir=$as_dir/ ;;
  4418. esac
  4419. for ac_prog in egrep
  4420. do
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4423. as_fn_executable_p "$ac_path_EGREP" || continue
  4424. # Check for GNU ac_path_EGREP and select it if it is found.
  4425. # Check for GNU $ac_path_EGREP
  4426. case `"$ac_path_EGREP" --version 2>&1` in
  4427. *GNU*)
  4428. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4429. *)
  4430. ac_count=0
  4431. printf %s 0123456789 >"conftest.in"
  4432. while :
  4433. do
  4434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4435. mv "conftest.tmp" "conftest.in"
  4436. cp "conftest.in" "conftest.nl"
  4437. printf "%s\n" 'EGREP' >> "conftest.nl"
  4438. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4440. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4441. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4442. # Best one so far, save it but keep looking for a better one
  4443. ac_cv_path_EGREP="$ac_path_EGREP"
  4444. ac_path_EGREP_max=$ac_count
  4445. fi
  4446. # 10*(2^10) chars as input seems more than enough
  4447. test $ac_count -gt 10 && break
  4448. done
  4449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4450. esac
  4451. $ac_path_EGREP_found && break 3
  4452. done
  4453. done
  4454. done
  4455. IFS=$as_save_IFS
  4456. if test -z "$ac_cv_path_EGREP"; then
  4457. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4458. fi
  4459. else
  4460. ac_cv_path_EGREP=$EGREP
  4461. fi
  4462. fi
  4463. fi
  4464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4465. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4466. EGREP="$ac_cv_path_EGREP"
  4467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4468. printf %s "checking for fgrep... " >&6; }
  4469. if test ${ac_cv_path_FGREP+y}
  4470. then :
  4471. printf %s "(cached) " >&6
  4472. else $as_nop
  4473. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4474. then ac_cv_path_FGREP="$GREP -F"
  4475. else
  4476. if test -z "$FGREP"; then
  4477. ac_path_FGREP_found=false
  4478. # Loop through the user's path and test for each of PROGNAME-LIST
  4479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4480. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4481. do
  4482. IFS=$as_save_IFS
  4483. case $as_dir in #(((
  4484. '') as_dir=./ ;;
  4485. */) ;;
  4486. *) as_dir=$as_dir/ ;;
  4487. esac
  4488. for ac_prog in fgrep
  4489. do
  4490. for ac_exec_ext in '' $ac_executable_extensions; do
  4491. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4492. as_fn_executable_p "$ac_path_FGREP" || continue
  4493. # Check for GNU ac_path_FGREP and select it if it is found.
  4494. # Check for GNU $ac_path_FGREP
  4495. case `"$ac_path_FGREP" --version 2>&1` in
  4496. *GNU*)
  4497. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4498. *)
  4499. ac_count=0
  4500. printf %s 0123456789 >"conftest.in"
  4501. while :
  4502. do
  4503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4504. mv "conftest.tmp" "conftest.in"
  4505. cp "conftest.in" "conftest.nl"
  4506. printf "%s\n" 'FGREP' >> "conftest.nl"
  4507. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4509. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4510. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4511. # Best one so far, save it but keep looking for a better one
  4512. ac_cv_path_FGREP="$ac_path_FGREP"
  4513. ac_path_FGREP_max=$ac_count
  4514. fi
  4515. # 10*(2^10) chars as input seems more than enough
  4516. test $ac_count -gt 10 && break
  4517. done
  4518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4519. esac
  4520. $ac_path_FGREP_found && break 3
  4521. done
  4522. done
  4523. done
  4524. IFS=$as_save_IFS
  4525. if test -z "$ac_cv_path_FGREP"; then
  4526. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4527. fi
  4528. else
  4529. ac_cv_path_FGREP=$FGREP
  4530. fi
  4531. fi
  4532. fi
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4534. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4535. FGREP="$ac_cv_path_FGREP"
  4536. test -z "$GREP" && GREP=grep
  4537. # Check whether --with-gnu-ld was given.
  4538. if test ${with_gnu_ld+y}
  4539. then :
  4540. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4541. else $as_nop
  4542. with_gnu_ld=no
  4543. fi
  4544. ac_prog=ld
  4545. if test yes = "$GCC"; then
  4546. # Check if gcc -print-prog-name=ld gives a path.
  4547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4548. printf %s "checking for ld used by $CC... " >&6; }
  4549. case $host in
  4550. *-*-mingw* | *-*-windows*)
  4551. # gcc leaves a trailing carriage return, which upsets mingw
  4552. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4553. *)
  4554. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4555. esac
  4556. case $ac_prog in
  4557. # Accept absolute paths.
  4558. [\\/]* | ?:[\\/]*)
  4559. re_direlt='/[^/][^/]*/\.\./'
  4560. # Canonicalize the pathname of ld
  4561. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4562. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4563. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4564. done
  4565. test -z "$LD" && LD=$ac_prog
  4566. ;;
  4567. "")
  4568. # If it fails, then pretend we aren't using GCC.
  4569. ac_prog=ld
  4570. ;;
  4571. *)
  4572. # If it is relative, then search for the first ld in PATH.
  4573. with_gnu_ld=unknown
  4574. ;;
  4575. esac
  4576. elif test yes = "$with_gnu_ld"; then
  4577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4578. printf %s "checking for GNU ld... " >&6; }
  4579. else
  4580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4581. printf %s "checking for non-GNU ld... " >&6; }
  4582. fi
  4583. if test ${lt_cv_path_LD+y}
  4584. then :
  4585. printf %s "(cached) " >&6
  4586. else $as_nop
  4587. if test -z "$LD"; then
  4588. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4589. for ac_dir in $PATH; do
  4590. IFS=$lt_save_ifs
  4591. test -z "$ac_dir" && ac_dir=.
  4592. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4593. lt_cv_path_LD=$ac_dir/$ac_prog
  4594. # Check to see if the program is GNU ld. I'd rather use --version,
  4595. # but apparently some variants of GNU ld only accept -v.
  4596. # Break only if it was the GNU/non-GNU ld that we prefer.
  4597. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4598. *GNU* | *'with BFD'*)
  4599. test no != "$with_gnu_ld" && break
  4600. ;;
  4601. *)
  4602. test yes != "$with_gnu_ld" && break
  4603. ;;
  4604. esac
  4605. fi
  4606. done
  4607. IFS=$lt_save_ifs
  4608. else
  4609. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4610. fi
  4611. fi
  4612. LD=$lt_cv_path_LD
  4613. if test -n "$LD"; then
  4614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4615. printf "%s\n" "$LD" >&6; }
  4616. else
  4617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4618. printf "%s\n" "no" >&6; }
  4619. fi
  4620. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4622. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4623. if test ${lt_cv_prog_gnu_ld+y}
  4624. then :
  4625. printf %s "(cached) " >&6
  4626. else $as_nop
  4627. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4628. case `$LD -v 2>&1 </dev/null` in
  4629. *GNU* | *'with BFD'*)
  4630. lt_cv_prog_gnu_ld=yes
  4631. ;;
  4632. *)
  4633. lt_cv_prog_gnu_ld=no
  4634. ;;
  4635. esac
  4636. fi
  4637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4638. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4639. with_gnu_ld=$lt_cv_prog_gnu_ld
  4640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4641. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4642. if test ${lt_cv_path_NM+y}
  4643. then :
  4644. printf %s "(cached) " >&6
  4645. else $as_nop
  4646. if test -n "$NM"; then
  4647. # Let the user override the test.
  4648. lt_cv_path_NM=$NM
  4649. else
  4650. lt_nm_to_check=${ac_tool_prefix}nm
  4651. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4652. lt_nm_to_check="$lt_nm_to_check nm"
  4653. fi
  4654. for lt_tmp_nm in $lt_nm_to_check; do
  4655. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4656. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4657. IFS=$lt_save_ifs
  4658. test -z "$ac_dir" && ac_dir=.
  4659. tmp_nm=$ac_dir/$lt_tmp_nm
  4660. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4661. # Check to see if the nm accepts a BSD-compat flag.
  4662. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4663. # nm: unknown option "B" ignored
  4664. # Tru64's nm complains that /dev/null is an invalid object file
  4665. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4666. case $build_os in
  4667. mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
  4668. *) lt_bad_file=/dev/null ;;
  4669. esac
  4670. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4671. *$lt_bad_file* | *'Invalid file or object type'*)
  4672. lt_cv_path_NM="$tmp_nm -B"
  4673. break 2
  4674. ;;
  4675. *)
  4676. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4677. */dev/null*)
  4678. lt_cv_path_NM="$tmp_nm -p"
  4679. break 2
  4680. ;;
  4681. *)
  4682. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4683. continue # so that we can try to find one that supports BSD flags
  4684. ;;
  4685. esac
  4686. ;;
  4687. esac
  4688. fi
  4689. done
  4690. IFS=$lt_save_ifs
  4691. done
  4692. : ${lt_cv_path_NM=no}
  4693. fi
  4694. fi
  4695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4696. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4697. if test no != "$lt_cv_path_NM"; then
  4698. NM=$lt_cv_path_NM
  4699. else
  4700. # Didn't find any BSD compatible name lister, look for dumpbin.
  4701. if test -n "$DUMPBIN"; then :
  4702. # Let the user override the test.
  4703. else
  4704. if test -n "$ac_tool_prefix"; then
  4705. for ac_prog in dumpbin "link -dump"
  4706. do
  4707. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4708. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4710. printf %s "checking for $ac_word... " >&6; }
  4711. if test ${ac_cv_prog_DUMPBIN+y}
  4712. then :
  4713. printf %s "(cached) " >&6
  4714. else $as_nop
  4715. if test -n "$DUMPBIN"; then
  4716. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. case $as_dir in #(((
  4723. '') as_dir=./ ;;
  4724. */) ;;
  4725. *) as_dir=$as_dir/ ;;
  4726. esac
  4727. for ac_exec_ext in '' $ac_executable_extensions; do
  4728. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4729. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4731. break 2
  4732. fi
  4733. done
  4734. done
  4735. IFS=$as_save_IFS
  4736. fi
  4737. fi
  4738. DUMPBIN=$ac_cv_prog_DUMPBIN
  4739. if test -n "$DUMPBIN"; then
  4740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4741. printf "%s\n" "$DUMPBIN" >&6; }
  4742. else
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4744. printf "%s\n" "no" >&6; }
  4745. fi
  4746. test -n "$DUMPBIN" && break
  4747. done
  4748. fi
  4749. if test -z "$DUMPBIN"; then
  4750. ac_ct_DUMPBIN=$DUMPBIN
  4751. for ac_prog in dumpbin "link -dump"
  4752. do
  4753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4754. set dummy $ac_prog; ac_word=$2
  4755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4756. printf %s "checking for $ac_word... " >&6; }
  4757. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4758. then :
  4759. printf %s "(cached) " >&6
  4760. else $as_nop
  4761. if test -n "$ac_ct_DUMPBIN"; then
  4762. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4763. else
  4764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4765. for as_dir in $PATH
  4766. do
  4767. IFS=$as_save_IFS
  4768. case $as_dir in #(((
  4769. '') as_dir=./ ;;
  4770. */) ;;
  4771. *) as_dir=$as_dir/ ;;
  4772. esac
  4773. for ac_exec_ext in '' $ac_executable_extensions; do
  4774. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4775. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4777. break 2
  4778. fi
  4779. done
  4780. done
  4781. IFS=$as_save_IFS
  4782. fi
  4783. fi
  4784. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4785. if test -n "$ac_ct_DUMPBIN"; then
  4786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4787. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4788. else
  4789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4790. printf "%s\n" "no" >&6; }
  4791. fi
  4792. test -n "$ac_ct_DUMPBIN" && break
  4793. done
  4794. if test "x$ac_ct_DUMPBIN" = x; then
  4795. DUMPBIN=":"
  4796. else
  4797. case $cross_compiling:$ac_tool_warned in
  4798. yes:)
  4799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4800. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4801. ac_tool_warned=yes ;;
  4802. esac
  4803. DUMPBIN=$ac_ct_DUMPBIN
  4804. fi
  4805. fi
  4806. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4807. *COFF*)
  4808. DUMPBIN="$DUMPBIN -symbols -headers"
  4809. ;;
  4810. *)
  4811. DUMPBIN=:
  4812. ;;
  4813. esac
  4814. fi
  4815. if test : != "$DUMPBIN"; then
  4816. NM=$DUMPBIN
  4817. fi
  4818. fi
  4819. test -z "$NM" && NM=nm
  4820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4821. printf %s "checking the name lister ($NM) interface... " >&6; }
  4822. if test ${lt_cv_nm_interface+y}
  4823. then :
  4824. printf %s "(cached) " >&6
  4825. else $as_nop
  4826. lt_cv_nm_interface="BSD nm"
  4827. echo "int some_variable = 0;" > conftest.$ac_ext
  4828. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4829. (eval "$ac_compile" 2>conftest.err)
  4830. cat conftest.err >&5
  4831. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4832. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4833. cat conftest.err >&5
  4834. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4835. cat conftest.out >&5
  4836. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4837. lt_cv_nm_interface="MS dumpbin"
  4838. fi
  4839. rm -f conftest*
  4840. fi
  4841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4842. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4844. printf %s "checking whether ln -s works... " >&6; }
  4845. LN_S=$as_ln_s
  4846. if test "$LN_S" = "ln -s"; then
  4847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4848. printf "%s\n" "yes" >&6; }
  4849. else
  4850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4851. printf "%s\n" "no, using $LN_S" >&6; }
  4852. fi
  4853. # find the maximum length of command line arguments
  4854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4855. printf %s "checking the maximum length of command line arguments... " >&6; }
  4856. if test ${lt_cv_sys_max_cmd_len+y}
  4857. then :
  4858. printf %s "(cached) " >&6
  4859. else $as_nop
  4860. i=0
  4861. teststring=ABCD
  4862. case $build_os in
  4863. msdosdjgpp*)
  4864. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4865. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4866. # during glob expansion). Even if it were fixed, the result of this
  4867. # check would be larger than it should be.
  4868. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4869. ;;
  4870. gnu*)
  4871. # Under GNU Hurd, this test is not required because there is
  4872. # no limit to the length of command line arguments.
  4873. # Libtool will interpret -1 as no limit whatsoever
  4874. lt_cv_sys_max_cmd_len=-1;
  4875. ;;
  4876. cygwin* | mingw* | windows* | cegcc*)
  4877. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4878. # about 5 minutes as the teststring grows exponentially.
  4879. # Worse, since 9x/ME are not pre-emptively multitasking,
  4880. # you end up with a "frozen" computer, even though with patience
  4881. # the test eventually succeeds (with a max line length of 256k).
  4882. # Instead, let's just punt: use the minimum linelength reported by
  4883. # all of the supported platforms: 8192 (on NT/2K/XP).
  4884. lt_cv_sys_max_cmd_len=8192;
  4885. ;;
  4886. mint*)
  4887. # On MiNT this can take a long time and run out of memory.
  4888. lt_cv_sys_max_cmd_len=8192;
  4889. ;;
  4890. amigaos*)
  4891. # On AmigaOS with pdksh, this test takes hours, literally.
  4892. # So we just punt and use a minimum line length of 8192.
  4893. lt_cv_sys_max_cmd_len=8192;
  4894. ;;
  4895. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4896. # This has been around since 386BSD, at least. Likely further.
  4897. if test -x /sbin/sysctl; then
  4898. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4899. elif test -x /usr/sbin/sysctl; then
  4900. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4901. else
  4902. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4903. fi
  4904. # And add a safety zone
  4905. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4906. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4907. ;;
  4908. interix*)
  4909. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4910. lt_cv_sys_max_cmd_len=196608
  4911. ;;
  4912. os2*)
  4913. # The test takes a long time on OS/2.
  4914. lt_cv_sys_max_cmd_len=8192
  4915. ;;
  4916. osf*)
  4917. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4918. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4919. # nice to cause kernel panics so lets avoid the loop below.
  4920. # First set a reasonable default.
  4921. lt_cv_sys_max_cmd_len=16384
  4922. #
  4923. if test -x /sbin/sysconfig; then
  4924. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4925. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4926. esac
  4927. fi
  4928. ;;
  4929. sco3.2v5*)
  4930. lt_cv_sys_max_cmd_len=102400
  4931. ;;
  4932. sysv5* | sco5v6* | sysv4.2uw2*)
  4933. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4934. if test -n "$kargmax"; then
  4935. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4936. else
  4937. lt_cv_sys_max_cmd_len=32768
  4938. fi
  4939. ;;
  4940. *)
  4941. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4942. if test -n "$lt_cv_sys_max_cmd_len" && \
  4943. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4944. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4945. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4946. else
  4947. # Make teststring a little bigger before we do anything with it.
  4948. # a 1K string should be a reasonable start.
  4949. for i in 1 2 3 4 5 6 7 8; do
  4950. teststring=$teststring$teststring
  4951. done
  4952. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4953. # If test is not a shell built-in, we'll probably end up computing a
  4954. # maximum length that is only half of the actual maximum length, but
  4955. # we can't tell.
  4956. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4957. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4958. test 17 != "$i" # 1/2 MB should be enough
  4959. do
  4960. i=`expr $i + 1`
  4961. teststring=$teststring$teststring
  4962. done
  4963. # Only check the string length outside the loop.
  4964. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4965. teststring=
  4966. # Add a significant safety factor because C++ compilers can tack on
  4967. # massive amounts of additional arguments before passing them to the
  4968. # linker. It appears as though 1/2 is a usable value.
  4969. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4970. fi
  4971. ;;
  4972. esac
  4973. fi
  4974. if test -n "$lt_cv_sys_max_cmd_len"; then
  4975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4976. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4977. else
  4978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4979. printf "%s\n" "none" >&6; }
  4980. fi
  4981. max_cmd_len=$lt_cv_sys_max_cmd_len
  4982. : ${CP="cp -f"}
  4983. : ${MV="mv -f"}
  4984. : ${RM="rm -f"}
  4985. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4986. lt_unset=unset
  4987. else
  4988. lt_unset=false
  4989. fi
  4990. # test EBCDIC or ASCII
  4991. case `echo X|tr X '\101'` in
  4992. A) # ASCII based system
  4993. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4994. lt_SP2NL='tr \040 \012'
  4995. lt_NL2SP='tr \015\012 \040\040'
  4996. ;;
  4997. *) # EBCDIC based system
  4998. lt_SP2NL='tr \100 \n'
  4999. lt_NL2SP='tr \r\n \100\100'
  5000. ;;
  5001. esac
  5002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5003. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5004. if test ${lt_cv_to_host_file_cmd+y}
  5005. then :
  5006. printf %s "(cached) " >&6
  5007. else $as_nop
  5008. case $host in
  5009. *-*-mingw* )
  5010. case $build in
  5011. *-*-mingw* | *-*-windows* ) # actually msys
  5012. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5013. ;;
  5014. *-*-cygwin* )
  5015. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5016. ;;
  5017. * ) # otherwise, assume *nix
  5018. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5019. ;;
  5020. esac
  5021. ;;
  5022. *-*-cygwin* )
  5023. case $build in
  5024. *-*-mingw* | *-*-windows* ) # actually msys
  5025. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5026. ;;
  5027. *-*-cygwin* )
  5028. lt_cv_to_host_file_cmd=func_convert_file_noop
  5029. ;;
  5030. * ) # otherwise, assume *nix
  5031. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5032. ;;
  5033. esac
  5034. ;;
  5035. * ) # unhandled hosts (and "normal" native builds)
  5036. lt_cv_to_host_file_cmd=func_convert_file_noop
  5037. ;;
  5038. esac
  5039. fi
  5040. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5042. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5044. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5045. if test ${lt_cv_to_tool_file_cmd+y}
  5046. then :
  5047. printf %s "(cached) " >&6
  5048. else $as_nop
  5049. #assume ordinary cross tools, or native build.
  5050. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5051. case $host in
  5052. *-*-mingw* | *-*-windows* )
  5053. case $build in
  5054. *-*-mingw* | *-*-windows* ) # actually msys
  5055. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5056. ;;
  5057. esac
  5058. ;;
  5059. esac
  5060. fi
  5061. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5063. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5065. printf %s "checking for $LD option to reload object files... " >&6; }
  5066. if test ${lt_cv_ld_reload_flag+y}
  5067. then :
  5068. printf %s "(cached) " >&6
  5069. else $as_nop
  5070. lt_cv_ld_reload_flag='-r'
  5071. fi
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5073. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5074. reload_flag=$lt_cv_ld_reload_flag
  5075. case $reload_flag in
  5076. "" | " "*) ;;
  5077. *) reload_flag=" $reload_flag" ;;
  5078. esac
  5079. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5080. case $host_os in
  5081. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5082. if test yes != "$GCC"; then
  5083. reload_cmds=false
  5084. fi
  5085. ;;
  5086. darwin*)
  5087. if test yes = "$GCC"; then
  5088. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5089. else
  5090. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5091. fi
  5092. ;;
  5093. esac
  5094. if test -n "$ac_tool_prefix"; then
  5095. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5096. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5098. printf %s "checking for $ac_word... " >&6; }
  5099. if test ${ac_cv_prog_OBJDUMP+y}
  5100. then :
  5101. printf %s "(cached) " >&6
  5102. else $as_nop
  5103. if test -n "$OBJDUMP"; then
  5104. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5105. else
  5106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5107. for as_dir in $PATH
  5108. do
  5109. IFS=$as_save_IFS
  5110. case $as_dir in #(((
  5111. '') as_dir=./ ;;
  5112. */) ;;
  5113. *) as_dir=$as_dir/ ;;
  5114. esac
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5117. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5118. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5119. break 2
  5120. fi
  5121. done
  5122. done
  5123. IFS=$as_save_IFS
  5124. fi
  5125. fi
  5126. OBJDUMP=$ac_cv_prog_OBJDUMP
  5127. if test -n "$OBJDUMP"; then
  5128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5129. printf "%s\n" "$OBJDUMP" >&6; }
  5130. else
  5131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5132. printf "%s\n" "no" >&6; }
  5133. fi
  5134. fi
  5135. if test -z "$ac_cv_prog_OBJDUMP"; then
  5136. ac_ct_OBJDUMP=$OBJDUMP
  5137. # Extract the first word of "objdump", so it can be a program name with args.
  5138. set dummy objdump; ac_word=$2
  5139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5140. printf %s "checking for $ac_word... " >&6; }
  5141. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5142. then :
  5143. printf %s "(cached) " >&6
  5144. else $as_nop
  5145. if test -n "$ac_ct_OBJDUMP"; then
  5146. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5147. else
  5148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5149. for as_dir in $PATH
  5150. do
  5151. IFS=$as_save_IFS
  5152. case $as_dir in #(((
  5153. '') as_dir=./ ;;
  5154. */) ;;
  5155. *) as_dir=$as_dir/ ;;
  5156. esac
  5157. for ac_exec_ext in '' $ac_executable_extensions; do
  5158. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5159. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5160. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5161. break 2
  5162. fi
  5163. done
  5164. done
  5165. IFS=$as_save_IFS
  5166. fi
  5167. fi
  5168. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5169. if test -n "$ac_ct_OBJDUMP"; then
  5170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5171. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5172. else
  5173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5174. printf "%s\n" "no" >&6; }
  5175. fi
  5176. if test "x$ac_ct_OBJDUMP" = x; then
  5177. OBJDUMP="false"
  5178. else
  5179. case $cross_compiling:$ac_tool_warned in
  5180. yes:)
  5181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5182. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5183. ac_tool_warned=yes ;;
  5184. esac
  5185. OBJDUMP=$ac_ct_OBJDUMP
  5186. fi
  5187. else
  5188. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5189. fi
  5190. test -z "$OBJDUMP" && OBJDUMP=objdump
  5191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5192. printf %s "checking how to recognize dependent libraries... " >&6; }
  5193. if test ${lt_cv_deplibs_check_method+y}
  5194. then :
  5195. printf %s "(cached) " >&6
  5196. else $as_nop
  5197. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5198. lt_cv_file_magic_test_file=
  5199. lt_cv_deplibs_check_method='unknown'
  5200. # Need to set the preceding variable on all platforms that support
  5201. # interlibrary dependencies.
  5202. # 'none' -- dependencies not supported.
  5203. # 'unknown' -- same as none, but documents that we really don't know.
  5204. # 'pass_all' -- all dependencies passed with no checks.
  5205. # 'test_compile' -- check by making test program.
  5206. # 'file_magic [[regex]]' -- check by looking for files in library path
  5207. # that responds to the $file_magic_cmd with a given extended regex.
  5208. # If you have 'file' or equivalent on your system and you're not sure
  5209. # whether 'pass_all' will *always* work, you probably want this one.
  5210. case $host_os in
  5211. aix[4-9]*)
  5212. lt_cv_deplibs_check_method=pass_all
  5213. ;;
  5214. beos*)
  5215. lt_cv_deplibs_check_method=pass_all
  5216. ;;
  5217. bsdi[45]*)
  5218. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5219. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5220. lt_cv_file_magic_test_file=/shlib/libc.so
  5221. ;;
  5222. cygwin*)
  5223. # func_win32_libid is a shell function defined in ltmain.sh
  5224. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5225. lt_cv_file_magic_cmd='func_win32_libid'
  5226. lt_cv_deplibs_check_method=pass_all # SDL customization
  5227. ;;
  5228. mingw* | windows* | pw32*)
  5229. # Base MSYS/MinGW do not provide the 'file' command needed by
  5230. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5231. # unless we find 'file', for example because we are cross-compiling.
  5232. if ( file / ) >/dev/null 2>&1; then
  5233. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5234. lt_cv_file_magic_cmd='func_win32_libid'
  5235. else
  5236. # Keep this pattern in sync with the one in func_win32_libid.
  5237. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5238. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5239. fi
  5240. lt_cv_deplibs_check_method=pass_all # SDL customization
  5241. ;;
  5242. cegcc*)
  5243. # use the weaker test based on 'objdump'. See mingw*.
  5244. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5245. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5246. ;;
  5247. darwin* | rhapsody*)
  5248. lt_cv_deplibs_check_method=pass_all
  5249. ;;
  5250. freebsd* | dragonfly* | midnightbsd*)
  5251. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5252. case $host_cpu in
  5253. i*86 )
  5254. # Not sure whether the presence of OpenBSD here was a mistake.
  5255. # Let's accept both of them until this is cleared up.
  5256. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5259. ;;
  5260. esac
  5261. else
  5262. lt_cv_deplibs_check_method=pass_all
  5263. fi
  5264. ;;
  5265. haiku*)
  5266. lt_cv_deplibs_check_method=pass_all
  5267. ;;
  5268. hpux10.20* | hpux11*)
  5269. lt_cv_file_magic_cmd=/usr/bin/file
  5270. case $host_cpu in
  5271. ia64*)
  5272. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5273. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5274. ;;
  5275. hppa*64*)
  5276. 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]'
  5277. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5278. ;;
  5279. *)
  5280. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5281. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5282. ;;
  5283. esac
  5284. ;;
  5285. interix[3-9]*)
  5286. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5287. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5288. ;;
  5289. irix5* | irix6* | nonstopux*)
  5290. case $LD in
  5291. *-32|*"-32 ") libmagic=32-bit;;
  5292. *-n32|*"-n32 ") libmagic=N32;;
  5293. *-64|*"-64 ") libmagic=64-bit;;
  5294. *) libmagic=never-match;;
  5295. esac
  5296. lt_cv_deplibs_check_method=pass_all
  5297. ;;
  5298. # This must be glibc/ELF.
  5299. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5300. lt_cv_deplibs_check_method=pass_all
  5301. ;;
  5302. netbsd*)
  5303. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5304. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5305. else
  5306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5307. fi
  5308. ;;
  5309. newos6*)
  5310. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5311. lt_cv_file_magic_cmd=/usr/bin/file
  5312. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5313. ;;
  5314. *nto* | *qnx*)
  5315. lt_cv_deplibs_check_method=pass_all
  5316. ;;
  5317. openbsd* | bitrig*)
  5318. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5319. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5320. else
  5321. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5322. fi
  5323. ;;
  5324. osf3* | osf4* | osf5*)
  5325. lt_cv_deplibs_check_method=pass_all
  5326. ;;
  5327. rdos*)
  5328. lt_cv_deplibs_check_method=pass_all
  5329. ;;
  5330. solaris*)
  5331. lt_cv_deplibs_check_method=pass_all
  5332. ;;
  5333. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. sysv4 | sysv4.3*)
  5337. case $host_vendor in
  5338. motorola)
  5339. 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]'
  5340. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5341. ;;
  5342. ncr)
  5343. lt_cv_deplibs_check_method=pass_all
  5344. ;;
  5345. sequent)
  5346. lt_cv_file_magic_cmd='/bin/file'
  5347. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5348. ;;
  5349. sni)
  5350. lt_cv_file_magic_cmd='/bin/file'
  5351. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5352. lt_cv_file_magic_test_file=/lib/libc.so
  5353. ;;
  5354. siemens)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. pc)
  5358. lt_cv_deplibs_check_method=pass_all
  5359. ;;
  5360. esac
  5361. ;;
  5362. tpf*)
  5363. lt_cv_deplibs_check_method=pass_all
  5364. ;;
  5365. os2*)
  5366. lt_cv_deplibs_check_method=pass_all
  5367. ;;
  5368. esac
  5369. fi
  5370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5371. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5372. file_magic_glob=
  5373. want_nocaseglob=no
  5374. if test "$build" = "$host"; then
  5375. case $host_os in
  5376. mingw* | windows* | pw32*)
  5377. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5378. want_nocaseglob=yes
  5379. else
  5380. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5381. fi
  5382. ;;
  5383. esac
  5384. fi
  5385. file_magic_cmd=$lt_cv_file_magic_cmd
  5386. deplibs_check_method=$lt_cv_deplibs_check_method
  5387. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5388. if test -n "$ac_tool_prefix"; then
  5389. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5390. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. printf %s "checking for $ac_word... " >&6; }
  5393. if test ${ac_cv_prog_DLLTOOL+y}
  5394. then :
  5395. printf %s "(cached) " >&6
  5396. else $as_nop
  5397. if test -n "$DLLTOOL"; then
  5398. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5399. else
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH
  5402. do
  5403. IFS=$as_save_IFS
  5404. case $as_dir in #(((
  5405. '') as_dir=./ ;;
  5406. */) ;;
  5407. *) as_dir=$as_dir/ ;;
  5408. esac
  5409. for ac_exec_ext in '' $ac_executable_extensions; do
  5410. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5411. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5413. break 2
  5414. fi
  5415. done
  5416. done
  5417. IFS=$as_save_IFS
  5418. fi
  5419. fi
  5420. DLLTOOL=$ac_cv_prog_DLLTOOL
  5421. if test -n "$DLLTOOL"; then
  5422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5423. printf "%s\n" "$DLLTOOL" >&6; }
  5424. else
  5425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5426. printf "%s\n" "no" >&6; }
  5427. fi
  5428. fi
  5429. if test -z "$ac_cv_prog_DLLTOOL"; then
  5430. ac_ct_DLLTOOL=$DLLTOOL
  5431. # Extract the first word of "dlltool", so it can be a program name with args.
  5432. set dummy dlltool; ac_word=$2
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5434. printf %s "checking for $ac_word... " >&6; }
  5435. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5436. then :
  5437. printf %s "(cached) " >&6
  5438. else $as_nop
  5439. if test -n "$ac_ct_DLLTOOL"; then
  5440. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5441. else
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. case $as_dir in #(((
  5447. '') as_dir=./ ;;
  5448. */) ;;
  5449. *) as_dir=$as_dir/ ;;
  5450. esac
  5451. for ac_exec_ext in '' $ac_executable_extensions; do
  5452. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5453. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5454. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5455. break 2
  5456. fi
  5457. done
  5458. done
  5459. IFS=$as_save_IFS
  5460. fi
  5461. fi
  5462. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5463. if test -n "$ac_ct_DLLTOOL"; then
  5464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5465. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5466. else
  5467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5468. printf "%s\n" "no" >&6; }
  5469. fi
  5470. if test "x$ac_ct_DLLTOOL" = x; then
  5471. DLLTOOL="false"
  5472. else
  5473. case $cross_compiling:$ac_tool_warned in
  5474. yes:)
  5475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5476. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5477. ac_tool_warned=yes ;;
  5478. esac
  5479. DLLTOOL=$ac_ct_DLLTOOL
  5480. fi
  5481. else
  5482. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5483. fi
  5484. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5486. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5487. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5488. then :
  5489. printf %s "(cached) " >&6
  5490. else $as_nop
  5491. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5492. case $host_os in
  5493. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5494. # two different shell functions defined in ltmain.sh;
  5495. # decide which one to use based on capabilities of $DLLTOOL
  5496. case `$DLLTOOL --help 2>&1` in
  5497. *--identify-strict*)
  5498. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5499. ;;
  5500. *)
  5501. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5502. ;;
  5503. esac
  5504. ;;
  5505. *)
  5506. # fallback: assume linklib IS sharedlib
  5507. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5508. ;;
  5509. esac
  5510. fi
  5511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5512. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5513. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5514. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5515. if test -n "$ac_tool_prefix"; then
  5516. for ac_prog in ar
  5517. do
  5518. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5519. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5521. printf %s "checking for $ac_word... " >&6; }
  5522. if test ${ac_cv_prog_AR+y}
  5523. then :
  5524. printf %s "(cached) " >&6
  5525. else $as_nop
  5526. if test -n "$AR"; then
  5527. ac_cv_prog_AR="$AR" # Let the user override the test.
  5528. else
  5529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5530. for as_dir in $PATH
  5531. do
  5532. IFS=$as_save_IFS
  5533. case $as_dir in #(((
  5534. '') as_dir=./ ;;
  5535. */) ;;
  5536. *) as_dir=$as_dir/ ;;
  5537. esac
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5540. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. IFS=$as_save_IFS
  5547. fi
  5548. fi
  5549. AR=$ac_cv_prog_AR
  5550. if test -n "$AR"; then
  5551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5552. printf "%s\n" "$AR" >&6; }
  5553. else
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5555. printf "%s\n" "no" >&6; }
  5556. fi
  5557. test -n "$AR" && break
  5558. done
  5559. fi
  5560. if test -z "$AR"; then
  5561. ac_ct_AR=$AR
  5562. for ac_prog in ar
  5563. do
  5564. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5565. set dummy $ac_prog; ac_word=$2
  5566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. printf %s "checking for $ac_word... " >&6; }
  5568. if test ${ac_cv_prog_ac_ct_AR+y}
  5569. then :
  5570. printf %s "(cached) " >&6
  5571. else $as_nop
  5572. if test -n "$ac_ct_AR"; then
  5573. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. case $as_dir in #(((
  5580. '') as_dir=./ ;;
  5581. */) ;;
  5582. *) as_dir=$as_dir/ ;;
  5583. esac
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_ac_ct_AR="$ac_prog"
  5587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5596. if test -n "$ac_ct_AR"; then
  5597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5598. printf "%s\n" "$ac_ct_AR" >&6; }
  5599. else
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. printf "%s\n" "no" >&6; }
  5602. fi
  5603. test -n "$ac_ct_AR" && break
  5604. done
  5605. if test "x$ac_ct_AR" = x; then
  5606. AR="false"
  5607. else
  5608. case $cross_compiling:$ac_tool_warned in
  5609. yes:)
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5611. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5612. ac_tool_warned=yes ;;
  5613. esac
  5614. AR=$ac_ct_AR
  5615. fi
  5616. fi
  5617. : ${AR=ar}
  5618. : ${AR_FLAGS=cru}
  5619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5620. printf %s "checking for archiver @FILE support... " >&6; }
  5621. if test ${lt_cv_ar_at_file+y}
  5622. then :
  5623. printf %s "(cached) " >&6
  5624. else $as_nop
  5625. lt_cv_ar_at_file=no
  5626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5627. /* end confdefs.h. */
  5628. int
  5629. main (void)
  5630. {
  5631. ;
  5632. return 0;
  5633. }
  5634. _ACEOF
  5635. if ac_fn_c_try_compile "$LINENO"
  5636. then :
  5637. echo conftest.$ac_objext > conftest.lst
  5638. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5639. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5640. (eval $lt_ar_try) 2>&5
  5641. ac_status=$?
  5642. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5643. test $ac_status = 0; }
  5644. if test 0 -eq "$ac_status"; then
  5645. # Ensure the archiver fails upon bogus file names.
  5646. rm -f conftest.$ac_objext libconftest.a
  5647. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5648. (eval $lt_ar_try) 2>&5
  5649. ac_status=$?
  5650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5651. test $ac_status = 0; }
  5652. if test 0 -ne "$ac_status"; then
  5653. lt_cv_ar_at_file=@
  5654. fi
  5655. fi
  5656. rm -f conftest.* libconftest.a
  5657. fi
  5658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5659. fi
  5660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5661. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5662. if test no = "$lt_cv_ar_at_file"; then
  5663. archiver_list_spec=
  5664. else
  5665. archiver_list_spec=$lt_cv_ar_at_file
  5666. fi
  5667. if test -n "$ac_tool_prefix"; then
  5668. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5669. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. printf %s "checking for $ac_word... " >&6; }
  5672. if test ${ac_cv_prog_STRIP+y}
  5673. then :
  5674. printf %s "(cached) " >&6
  5675. else $as_nop
  5676. if test -n "$STRIP"; then
  5677. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5678. else
  5679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5680. for as_dir in $PATH
  5681. do
  5682. IFS=$as_save_IFS
  5683. case $as_dir in #(((
  5684. '') as_dir=./ ;;
  5685. */) ;;
  5686. *) as_dir=$as_dir/ ;;
  5687. esac
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5690. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5691. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. STRIP=$ac_cv_prog_STRIP
  5700. if test -n "$STRIP"; then
  5701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5702. printf "%s\n" "$STRIP" >&6; }
  5703. else
  5704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. printf "%s\n" "no" >&6; }
  5706. fi
  5707. fi
  5708. if test -z "$ac_cv_prog_STRIP"; then
  5709. ac_ct_STRIP=$STRIP
  5710. # Extract the first word of "strip", so it can be a program name with args.
  5711. set dummy strip; ac_word=$2
  5712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5713. printf %s "checking for $ac_word... " >&6; }
  5714. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5715. then :
  5716. printf %s "(cached) " >&6
  5717. else $as_nop
  5718. if test -n "$ac_ct_STRIP"; then
  5719. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724. IFS=$as_save_IFS
  5725. case $as_dir in #(((
  5726. '') as_dir=./ ;;
  5727. */) ;;
  5728. *) as_dir=$as_dir/ ;;
  5729. esac
  5730. for ac_exec_ext in '' $ac_executable_extensions; do
  5731. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5732. ac_cv_prog_ac_ct_STRIP="strip"
  5733. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5734. break 2
  5735. fi
  5736. done
  5737. done
  5738. IFS=$as_save_IFS
  5739. fi
  5740. fi
  5741. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5742. if test -n "$ac_ct_STRIP"; then
  5743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5744. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5745. else
  5746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5747. printf "%s\n" "no" >&6; }
  5748. fi
  5749. if test "x$ac_ct_STRIP" = x; then
  5750. STRIP=":"
  5751. else
  5752. case $cross_compiling:$ac_tool_warned in
  5753. yes:)
  5754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5755. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5756. ac_tool_warned=yes ;;
  5757. esac
  5758. STRIP=$ac_ct_STRIP
  5759. fi
  5760. else
  5761. STRIP="$ac_cv_prog_STRIP"
  5762. fi
  5763. test -z "$STRIP" && STRIP=:
  5764. if test -n "$ac_tool_prefix"; then
  5765. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5766. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5768. printf %s "checking for $ac_word... " >&6; }
  5769. if test ${ac_cv_prog_RANLIB+y}
  5770. then :
  5771. printf %s "(cached) " >&6
  5772. else $as_nop
  5773. if test -n "$RANLIB"; then
  5774. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5775. else
  5776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5777. for as_dir in $PATH
  5778. do
  5779. IFS=$as_save_IFS
  5780. case $as_dir in #(((
  5781. '') as_dir=./ ;;
  5782. */) ;;
  5783. *) as_dir=$as_dir/ ;;
  5784. esac
  5785. for ac_exec_ext in '' $ac_executable_extensions; do
  5786. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5787. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5789. break 2
  5790. fi
  5791. done
  5792. done
  5793. IFS=$as_save_IFS
  5794. fi
  5795. fi
  5796. RANLIB=$ac_cv_prog_RANLIB
  5797. if test -n "$RANLIB"; then
  5798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5799. printf "%s\n" "$RANLIB" >&6; }
  5800. else
  5801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. printf "%s\n" "no" >&6; }
  5803. fi
  5804. fi
  5805. if test -z "$ac_cv_prog_RANLIB"; then
  5806. ac_ct_RANLIB=$RANLIB
  5807. # Extract the first word of "ranlib", so it can be a program name with args.
  5808. set dummy ranlib; ac_word=$2
  5809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5810. printf %s "checking for $ac_word... " >&6; }
  5811. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5812. then :
  5813. printf %s "(cached) " >&6
  5814. else $as_nop
  5815. if test -n "$ac_ct_RANLIB"; then
  5816. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5817. else
  5818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5819. for as_dir in $PATH
  5820. do
  5821. IFS=$as_save_IFS
  5822. case $as_dir in #(((
  5823. '') as_dir=./ ;;
  5824. */) ;;
  5825. *) as_dir=$as_dir/ ;;
  5826. esac
  5827. for ac_exec_ext in '' $ac_executable_extensions; do
  5828. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5829. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5831. break 2
  5832. fi
  5833. done
  5834. done
  5835. IFS=$as_save_IFS
  5836. fi
  5837. fi
  5838. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5839. if test -n "$ac_ct_RANLIB"; then
  5840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5841. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5842. else
  5843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5844. printf "%s\n" "no" >&6; }
  5845. fi
  5846. if test "x$ac_ct_RANLIB" = x; then
  5847. RANLIB=":"
  5848. else
  5849. case $cross_compiling:$ac_tool_warned in
  5850. yes:)
  5851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5852. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5853. ac_tool_warned=yes ;;
  5854. esac
  5855. RANLIB=$ac_ct_RANLIB
  5856. fi
  5857. else
  5858. RANLIB="$ac_cv_prog_RANLIB"
  5859. fi
  5860. test -z "$RANLIB" && RANLIB=:
  5861. # Determine commands to create old-style static archives.
  5862. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5863. old_postinstall_cmds='chmod 644 $oldlib'
  5864. old_postuninstall_cmds=
  5865. if test -n "$RANLIB"; then
  5866. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5867. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5868. fi
  5869. case $host_os in
  5870. darwin*)
  5871. lock_old_archive_extraction=yes ;;
  5872. *)
  5873. lock_old_archive_extraction=no ;;
  5874. esac
  5875. for ac_prog in gawk mawk nawk awk
  5876. do
  5877. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5878. set dummy $ac_prog; ac_word=$2
  5879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5880. printf %s "checking for $ac_word... " >&6; }
  5881. if test ${ac_cv_prog_AWK+y}
  5882. then :
  5883. printf %s "(cached) " >&6
  5884. else $as_nop
  5885. if test -n "$AWK"; then
  5886. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5887. else
  5888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5889. for as_dir in $PATH
  5890. do
  5891. IFS=$as_save_IFS
  5892. case $as_dir in #(((
  5893. '') as_dir=./ ;;
  5894. */) ;;
  5895. *) as_dir=$as_dir/ ;;
  5896. esac
  5897. for ac_exec_ext in '' $ac_executable_extensions; do
  5898. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5899. ac_cv_prog_AWK="$ac_prog"
  5900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5901. break 2
  5902. fi
  5903. done
  5904. done
  5905. IFS=$as_save_IFS
  5906. fi
  5907. fi
  5908. AWK=$ac_cv_prog_AWK
  5909. if test -n "$AWK"; then
  5910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5911. printf "%s\n" "$AWK" >&6; }
  5912. else
  5913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5914. printf "%s\n" "no" >&6; }
  5915. fi
  5916. test -n "$AWK" && break
  5917. done
  5918. # If no C compiler was specified, use CC.
  5919. LTCC=${LTCC-"$CC"}
  5920. # If no C compiler flags were specified, use CFLAGS.
  5921. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5922. # Allow CC to be a program name with arguments.
  5923. compiler=$CC
  5924. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5926. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5927. if test ${lt_cv_sys_global_symbol_pipe+y}
  5928. then :
  5929. printf %s "(cached) " >&6
  5930. else $as_nop
  5931. # These are sane defaults that work on at least a few old systems.
  5932. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5933. # Character class describing NM global symbol codes.
  5934. symcode='[BCDEGRST]'
  5935. # Regexp to match symbols that can be accessed directly from C.
  5936. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5937. # Define system-specific variables.
  5938. case $host_os in
  5939. aix*)
  5940. symcode='[BCDT]'
  5941. ;;
  5942. cygwin* | mingw* | windows* | pw32* | cegcc*)
  5943. symcode='[ABCDGISTW]'
  5944. ;;
  5945. hpux*)
  5946. if test ia64 = "$host_cpu"; then
  5947. symcode='[ABCDEGRST]'
  5948. fi
  5949. ;;
  5950. irix* | nonstopux*)
  5951. symcode='[BCDEGRST]'
  5952. ;;
  5953. osf*)
  5954. symcode='[BCDEGQRST]'
  5955. ;;
  5956. solaris*)
  5957. symcode='[BCDRT]'
  5958. ;;
  5959. sco3.2v5*)
  5960. symcode='[DT]'
  5961. ;;
  5962. sysv4.2uw2*)
  5963. symcode='[DT]'
  5964. ;;
  5965. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5966. symcode='[ABDT]'
  5967. ;;
  5968. sysv4)
  5969. symcode='[DFNSTU]'
  5970. ;;
  5971. esac
  5972. # If we're using GNU nm, then use its standard symbol codes.
  5973. case `$NM -V 2>&1` in
  5974. *GNU* | *'with BFD'*)
  5975. symcode='[ABCDGIRSTW]' ;;
  5976. esac
  5977. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5978. # Gets list of data symbols to import.
  5979. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5980. # Adjust the below global symbol transforms to fixup imported variables.
  5981. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5982. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5983. lt_c_name_lib_hook="\
  5984. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5985. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5986. else
  5987. # Disable hooks by default.
  5988. lt_cv_sys_global_symbol_to_import=
  5989. lt_cdecl_hook=
  5990. lt_c_name_hook=
  5991. lt_c_name_lib_hook=
  5992. fi
  5993. # Transform an extracted symbol line into a proper C declaration.
  5994. # Some systems (esp. on ia64) link data and code symbols differently,
  5995. # so use this general approach.
  5996. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5997. $lt_cdecl_hook\
  5998. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5999. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6000. # Transform an extracted symbol line into symbol name and symbol address
  6001. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6002. $lt_c_name_hook\
  6003. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6004. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6005. # Transform an extracted symbol line into symbol name with lib prefix and
  6006. # symbol address.
  6007. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6008. $lt_c_name_lib_hook\
  6009. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6010. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6011. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6012. # Handle CRLF in mingw tool chain
  6013. opt_cr=
  6014. case $build_os in
  6015. mingw* | windows*)
  6016. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6017. ;;
  6018. esac
  6019. # Try without a prefix underscore, then with it.
  6020. for ac_symprfx in "" "_"; do
  6021. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6022. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6023. # Write the raw and C identifiers.
  6024. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6025. # Fake it for dumpbin and say T for any non-static function,
  6026. # D for any global variable and I for any imported variable.
  6027. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6028. # which start with @ or ?.
  6029. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6030. " {last_section=section; section=\$ 3};"\
  6031. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6032. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6033. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6034. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6035. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6036. " \$ 0!~/External *\|/{next};"\
  6037. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6038. " {if(hide[section]) next};"\
  6039. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6040. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6041. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6042. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6043. " ' prfx=^$ac_symprfx"
  6044. else
  6045. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6046. fi
  6047. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6048. # Check to see that the pipe works correctly.
  6049. pipe_works=no
  6050. rm -f conftest*
  6051. cat > conftest.$ac_ext <<_LT_EOF
  6052. #ifdef __cplusplus
  6053. extern "C" {
  6054. #endif
  6055. char nm_test_var;
  6056. void nm_test_func(void);
  6057. void nm_test_func(void){}
  6058. #ifdef __cplusplus
  6059. }
  6060. #endif
  6061. int main(){nm_test_var='a';nm_test_func();return(0);}
  6062. _LT_EOF
  6063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6064. (eval $ac_compile) 2>&5
  6065. ac_status=$?
  6066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6067. test $ac_status = 0; }; then
  6068. # Now try to grab the symbols.
  6069. nlist=conftest.nm
  6070. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6071. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6072. ac_status=$?
  6073. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6074. test $ac_status = 0; } && test -s "$nlist"; then
  6075. # Try sorting and uniquifying the output.
  6076. if sort "$nlist" | uniq > "$nlist"T; then
  6077. mv -f "$nlist"T "$nlist"
  6078. else
  6079. rm -f "$nlist"T
  6080. fi
  6081. # Make sure that we snagged all the symbols we need.
  6082. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6083. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6084. cat <<_LT_EOF > conftest.$ac_ext
  6085. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6086. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6087. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6088. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6089. # define LT_DLSYM_CONST
  6090. #elif defined __osf__
  6091. /* This system does not cope well with relocations in const data. */
  6092. # define LT_DLSYM_CONST
  6093. #else
  6094. # define LT_DLSYM_CONST const
  6095. #endif
  6096. #ifdef __cplusplus
  6097. extern "C" {
  6098. #endif
  6099. _LT_EOF
  6100. # Now generate the symbol file.
  6101. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6102. cat <<_LT_EOF >> conftest.$ac_ext
  6103. /* The mapping between symbol names and symbols. */
  6104. LT_DLSYM_CONST struct {
  6105. const char *name;
  6106. void *address;
  6107. }
  6108. lt__PROGRAM__LTX_preloaded_symbols[] =
  6109. {
  6110. { "@PROGRAM@", (void *) 0 },
  6111. _LT_EOF
  6112. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6113. cat <<\_LT_EOF >> conftest.$ac_ext
  6114. {0, (void *) 0}
  6115. };
  6116. /* This works around a problem in FreeBSD linker */
  6117. #ifdef FREEBSD_WORKAROUND
  6118. static const void *lt_preloaded_setup() {
  6119. return lt__PROGRAM__LTX_preloaded_symbols;
  6120. }
  6121. #endif
  6122. #ifdef __cplusplus
  6123. }
  6124. #endif
  6125. _LT_EOF
  6126. # Now try linking the two files.
  6127. mv conftest.$ac_objext conftstm.$ac_objext
  6128. lt_globsym_save_LIBS=$LIBS
  6129. lt_globsym_save_CFLAGS=$CFLAGS
  6130. LIBS=conftstm.$ac_objext
  6131. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6132. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6133. (eval $ac_link) 2>&5
  6134. ac_status=$?
  6135. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6136. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6137. pipe_works=yes
  6138. fi
  6139. LIBS=$lt_globsym_save_LIBS
  6140. CFLAGS=$lt_globsym_save_CFLAGS
  6141. else
  6142. echo "cannot find nm_test_func in $nlist" >&5
  6143. fi
  6144. else
  6145. echo "cannot find nm_test_var in $nlist" >&5
  6146. fi
  6147. else
  6148. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6149. fi
  6150. else
  6151. echo "$progname: failed program was:" >&5
  6152. cat conftest.$ac_ext >&5
  6153. fi
  6154. rm -rf conftest* conftst*
  6155. # Do not use the global_symbol_pipe unless it works.
  6156. if test yes = "$pipe_works"; then
  6157. break
  6158. else
  6159. lt_cv_sys_global_symbol_pipe=
  6160. fi
  6161. done
  6162. fi
  6163. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6164. lt_cv_sys_global_symbol_to_cdecl=
  6165. fi
  6166. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6168. printf "%s\n" "failed" >&6; }
  6169. else
  6170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6171. printf "%s\n" "ok" >&6; }
  6172. fi
  6173. # Response file support.
  6174. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6175. nm_file_list_spec='@'
  6176. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6177. nm_file_list_spec='@'
  6178. fi
  6179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6180. printf %s "checking for sysroot... " >&6; }
  6181. # Check whether --with-sysroot was given.
  6182. if test ${with_sysroot+y}
  6183. then :
  6184. withval=$with_sysroot;
  6185. else $as_nop
  6186. with_sysroot=no
  6187. fi
  6188. lt_sysroot=
  6189. case $with_sysroot in #(
  6190. yes)
  6191. if test yes = "$GCC"; then
  6192. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6193. fi
  6194. ;; #(
  6195. /*)
  6196. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6197. ;; #(
  6198. no|'')
  6199. ;; #(
  6200. *)
  6201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6202. printf "%s\n" "$with_sysroot" >&6; }
  6203. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6204. ;;
  6205. esac
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6207. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6209. printf %s "checking for a working dd... " >&6; }
  6210. if test ${ac_cv_path_lt_DD+y}
  6211. then :
  6212. printf %s "(cached) " >&6
  6213. else $as_nop
  6214. printf 0123456789abcdef0123456789abcdef >conftest.i
  6215. cat conftest.i conftest.i >conftest2.i
  6216. : ${lt_DD:=$DD}
  6217. if test -z "$lt_DD"; then
  6218. ac_path_lt_DD_found=false
  6219. # Loop through the user's path and test for each of PROGNAME-LIST
  6220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6221. for as_dir in $PATH
  6222. do
  6223. IFS=$as_save_IFS
  6224. case $as_dir in #(((
  6225. '') as_dir=./ ;;
  6226. */) ;;
  6227. *) as_dir=$as_dir/ ;;
  6228. esac
  6229. for ac_prog in dd
  6230. do
  6231. for ac_exec_ext in '' $ac_executable_extensions; do
  6232. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6233. as_fn_executable_p "$ac_path_lt_DD" || continue
  6234. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6235. cmp -s conftest.i conftest.out \
  6236. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6237. fi
  6238. $ac_path_lt_DD_found && break 3
  6239. done
  6240. done
  6241. done
  6242. IFS=$as_save_IFS
  6243. if test -z "$ac_cv_path_lt_DD"; then
  6244. :
  6245. fi
  6246. else
  6247. ac_cv_path_lt_DD=$lt_DD
  6248. fi
  6249. rm -f conftest.i conftest2.i conftest.out
  6250. fi
  6251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6252. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6254. printf %s "checking how to truncate binary pipes... " >&6; }
  6255. if test ${lt_cv_truncate_bin+y}
  6256. then :
  6257. printf %s "(cached) " >&6
  6258. else $as_nop
  6259. printf 0123456789abcdef0123456789abcdef >conftest.i
  6260. cat conftest.i conftest.i >conftest2.i
  6261. lt_cv_truncate_bin=
  6262. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6263. cmp -s conftest.i conftest.out \
  6264. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6265. fi
  6266. rm -f conftest.i conftest2.i conftest.out
  6267. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6268. fi
  6269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6270. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6271. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6272. func_cc_basename ()
  6273. {
  6274. for cc_temp in $*""; do
  6275. case $cc_temp in
  6276. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6277. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6278. \-*) ;;
  6279. *) break;;
  6280. esac
  6281. done
  6282. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6283. }
  6284. # Check whether --enable-libtool-lock was given.
  6285. if test ${enable_libtool_lock+y}
  6286. then :
  6287. enableval=$enable_libtool_lock;
  6288. fi
  6289. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6290. # Some flags need to be propagated to the compiler or linker for good
  6291. # libtool support.
  6292. case $host in
  6293. ia64-*-hpux*)
  6294. # Find out what ABI is being produced by ac_compile, and set mode
  6295. # options accordingly.
  6296. echo 'int i;' > conftest.$ac_ext
  6297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6298. (eval $ac_compile) 2>&5
  6299. ac_status=$?
  6300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6301. test $ac_status = 0; }; then
  6302. case `/usr/bin/file conftest.$ac_objext` in
  6303. *ELF-32*)
  6304. HPUX_IA64_MODE=32
  6305. ;;
  6306. *ELF-64*)
  6307. HPUX_IA64_MODE=64
  6308. ;;
  6309. esac
  6310. fi
  6311. rm -rf conftest*
  6312. ;;
  6313. *-*-irix6*)
  6314. # Find out what ABI is being produced by ac_compile, and set linker
  6315. # options accordingly.
  6316. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6318. (eval $ac_compile) 2>&5
  6319. ac_status=$?
  6320. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6321. test $ac_status = 0; }; then
  6322. if test yes = "$lt_cv_prog_gnu_ld"; then
  6323. case `/usr/bin/file conftest.$ac_objext` in
  6324. *32-bit*)
  6325. LD="${LD-ld} -melf32bsmip"
  6326. ;;
  6327. *N32*)
  6328. LD="${LD-ld} -melf32bmipn32"
  6329. ;;
  6330. *64-bit*)
  6331. LD="${LD-ld} -melf64bmip"
  6332. ;;
  6333. esac
  6334. else
  6335. case `/usr/bin/file conftest.$ac_objext` in
  6336. *32-bit*)
  6337. LD="${LD-ld} -32"
  6338. ;;
  6339. *N32*)
  6340. LD="${LD-ld} -n32"
  6341. ;;
  6342. *64-bit*)
  6343. LD="${LD-ld} -64"
  6344. ;;
  6345. esac
  6346. fi
  6347. fi
  6348. rm -rf conftest*
  6349. ;;
  6350. mips64*-*linux*)
  6351. # Find out what ABI is being produced by ac_compile, and set linker
  6352. # options accordingly.
  6353. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6354. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6355. (eval $ac_compile) 2>&5
  6356. ac_status=$?
  6357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6358. test $ac_status = 0; }; then
  6359. emul=elf
  6360. case `/usr/bin/file conftest.$ac_objext` in
  6361. *32-bit*)
  6362. emul="${emul}32"
  6363. ;;
  6364. *64-bit*)
  6365. emul="${emul}64"
  6366. ;;
  6367. esac
  6368. case `/usr/bin/file conftest.$ac_objext` in
  6369. *MSB*)
  6370. emul="${emul}btsmip"
  6371. ;;
  6372. *LSB*)
  6373. emul="${emul}ltsmip"
  6374. ;;
  6375. esac
  6376. case `/usr/bin/file conftest.$ac_objext` in
  6377. *N32*)
  6378. emul="${emul}n32"
  6379. ;;
  6380. esac
  6381. LD="${LD-ld} -m $emul"
  6382. fi
  6383. rm -rf conftest*
  6384. ;;
  6385. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6386. s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
  6387. # Find out what ABI is being produced by ac_compile, and set linker
  6388. # options accordingly. Note that the listed cases only cover the
  6389. # situations where additional linker options are needed (such as when
  6390. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6391. # vice versa); the common cases where no linker options are needed do
  6392. # not appear in the list.
  6393. echo 'int i;' > conftest.$ac_ext
  6394. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6395. (eval $ac_compile) 2>&5
  6396. ac_status=$?
  6397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6398. test $ac_status = 0; }; then
  6399. case `/usr/bin/file conftest.o` in
  6400. *32-bit*)
  6401. case $host in
  6402. x86_64-*kfreebsd*-gnu)
  6403. LD="${LD-ld} -m elf_i386_fbsd"
  6404. ;;
  6405. x86_64-*linux*|x86_64-gnu*)
  6406. case `/usr/bin/file conftest.o` in
  6407. *x86-64*)
  6408. LD="${LD-ld} -m elf32_x86_64"
  6409. ;;
  6410. *)
  6411. LD="${LD-ld} -m elf_i386"
  6412. ;;
  6413. esac
  6414. ;;
  6415. powerpc64le-*linux*)
  6416. LD="${LD-ld} -m elf32lppclinux"
  6417. ;;
  6418. powerpc64-*linux*)
  6419. LD="${LD-ld} -m elf32ppclinux"
  6420. ;;
  6421. s390x-*linux*)
  6422. LD="${LD-ld} -m elf_s390"
  6423. ;;
  6424. sparc64-*linux*)
  6425. LD="${LD-ld} -m elf32_sparc"
  6426. ;;
  6427. esac
  6428. ;;
  6429. *64-bit*)
  6430. case $host in
  6431. x86_64-*kfreebsd*-gnu)
  6432. LD="${LD-ld} -m elf_x86_64_fbsd"
  6433. ;;
  6434. x86_64-*linux*|x86_64-gnu*)
  6435. LD="${LD-ld} -m elf_x86_64"
  6436. ;;
  6437. powerpcle-*linux*|powerpc64le-*linux*)
  6438. LD="${LD-ld} -m elf64lppc"
  6439. ;;
  6440. powerpc-*linux*|powerpc64-*linux*)
  6441. LD="${LD-ld} -m elf64ppc"
  6442. ;;
  6443. s390*-*linux*|s390*-*tpf*)
  6444. LD="${LD-ld} -m elf64_s390"
  6445. ;;
  6446. sparc*-*linux*)
  6447. LD="${LD-ld} -m elf64_sparc"
  6448. ;;
  6449. esac
  6450. ;;
  6451. esac
  6452. fi
  6453. rm -rf conftest*
  6454. ;;
  6455. *-*-sco3.2v5*)
  6456. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6457. SAVE_CFLAGS=$CFLAGS
  6458. CFLAGS="$CFLAGS -belf"
  6459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6460. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6461. if test ${lt_cv_cc_needs_belf+y}
  6462. then :
  6463. printf %s "(cached) " >&6
  6464. else $as_nop
  6465. ac_ext=c
  6466. ac_cpp='$CPP $CPPFLAGS'
  6467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6471. /* end confdefs.h. */
  6472. int
  6473. main (void)
  6474. {
  6475. ;
  6476. return 0;
  6477. }
  6478. _ACEOF
  6479. if ac_fn_c_try_link "$LINENO"
  6480. then :
  6481. lt_cv_cc_needs_belf=yes
  6482. else $as_nop
  6483. lt_cv_cc_needs_belf=no
  6484. fi
  6485. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6486. conftest$ac_exeext conftest.$ac_ext
  6487. ac_ext=c
  6488. ac_cpp='$CPP $CPPFLAGS'
  6489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6492. fi
  6493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6494. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6495. if test yes != "$lt_cv_cc_needs_belf"; then
  6496. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6497. CFLAGS=$SAVE_CFLAGS
  6498. fi
  6499. ;;
  6500. *-*solaris*)
  6501. # Find out what ABI is being produced by ac_compile, and set linker
  6502. # options accordingly.
  6503. echo 'int i;' > conftest.$ac_ext
  6504. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6505. (eval $ac_compile) 2>&5
  6506. ac_status=$?
  6507. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6508. test $ac_status = 0; }; then
  6509. case `/usr/bin/file conftest.o` in
  6510. *64-bit*)
  6511. case $lt_cv_prog_gnu_ld in
  6512. yes*)
  6513. case $host in
  6514. i?86-*-solaris*|x86_64-*-solaris*)
  6515. LD="${LD-ld} -m elf_x86_64"
  6516. ;;
  6517. sparc*-*-solaris*)
  6518. LD="${LD-ld} -m elf64_sparc"
  6519. ;;
  6520. esac
  6521. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6522. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6523. LD=${LD-ld}_sol2
  6524. fi
  6525. ;;
  6526. *)
  6527. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6528. LD="${LD-ld} -64"
  6529. fi
  6530. ;;
  6531. esac
  6532. ;;
  6533. esac
  6534. fi
  6535. rm -rf conftest*
  6536. ;;
  6537. esac
  6538. need_locks=$enable_libtool_lock
  6539. if test -n "$ac_tool_prefix"; then
  6540. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6541. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6543. printf %s "checking for $ac_word... " >&6; }
  6544. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6545. then :
  6546. printf %s "(cached) " >&6
  6547. else $as_nop
  6548. if test -n "$MANIFEST_TOOL"; then
  6549. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6550. else
  6551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6552. for as_dir in $PATH
  6553. do
  6554. IFS=$as_save_IFS
  6555. case $as_dir in #(((
  6556. '') as_dir=./ ;;
  6557. */) ;;
  6558. *) as_dir=$as_dir/ ;;
  6559. esac
  6560. for ac_exec_ext in '' $ac_executable_extensions; do
  6561. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6562. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6563. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6564. break 2
  6565. fi
  6566. done
  6567. done
  6568. IFS=$as_save_IFS
  6569. fi
  6570. fi
  6571. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6572. if test -n "$MANIFEST_TOOL"; then
  6573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6574. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6575. else
  6576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6577. printf "%s\n" "no" >&6; }
  6578. fi
  6579. fi
  6580. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6581. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6582. # Extract the first word of "mt", so it can be a program name with args.
  6583. set dummy mt; ac_word=$2
  6584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6585. printf %s "checking for $ac_word... " >&6; }
  6586. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6587. then :
  6588. printf %s "(cached) " >&6
  6589. else $as_nop
  6590. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6591. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6592. else
  6593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6594. for as_dir in $PATH
  6595. do
  6596. IFS=$as_save_IFS
  6597. case $as_dir in #(((
  6598. '') as_dir=./ ;;
  6599. */) ;;
  6600. *) as_dir=$as_dir/ ;;
  6601. esac
  6602. for ac_exec_ext in '' $ac_executable_extensions; do
  6603. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6604. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6605. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6606. break 2
  6607. fi
  6608. done
  6609. done
  6610. IFS=$as_save_IFS
  6611. fi
  6612. fi
  6613. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6614. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6616. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6617. else
  6618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6619. printf "%s\n" "no" >&6; }
  6620. fi
  6621. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6622. MANIFEST_TOOL=":"
  6623. else
  6624. case $cross_compiling:$ac_tool_warned in
  6625. yes:)
  6626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6627. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6628. ac_tool_warned=yes ;;
  6629. esac
  6630. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6631. fi
  6632. else
  6633. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6634. fi
  6635. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6637. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6638. if test ${lt_cv_path_mainfest_tool+y}
  6639. then :
  6640. printf %s "(cached) " >&6
  6641. else $as_nop
  6642. lt_cv_path_mainfest_tool=no
  6643. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6644. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6645. cat conftest.err >&5
  6646. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6647. lt_cv_path_mainfest_tool=yes
  6648. fi
  6649. rm -f conftest*
  6650. fi
  6651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6652. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6653. if test yes != "$lt_cv_path_mainfest_tool"; then
  6654. MANIFEST_TOOL=:
  6655. fi
  6656. case $host_os in
  6657. rhapsody* | darwin*)
  6658. if test -n "$ac_tool_prefix"; then
  6659. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6660. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6662. printf %s "checking for $ac_word... " >&6; }
  6663. if test ${ac_cv_prog_DSYMUTIL+y}
  6664. then :
  6665. printf %s "(cached) " >&6
  6666. else $as_nop
  6667. if test -n "$DSYMUTIL"; then
  6668. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6669. else
  6670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6671. for as_dir in $PATH
  6672. do
  6673. IFS=$as_save_IFS
  6674. case $as_dir in #(((
  6675. '') as_dir=./ ;;
  6676. */) ;;
  6677. *) as_dir=$as_dir/ ;;
  6678. esac
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6681. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6691. if test -n "$DSYMUTIL"; then
  6692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6693. printf "%s\n" "$DSYMUTIL" >&6; }
  6694. else
  6695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. printf "%s\n" "no" >&6; }
  6697. fi
  6698. fi
  6699. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6700. ac_ct_DSYMUTIL=$DSYMUTIL
  6701. # Extract the first word of "dsymutil", so it can be a program name with args.
  6702. set dummy dsymutil; ac_word=$2
  6703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. printf %s "checking for $ac_word... " >&6; }
  6705. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6706. then :
  6707. printf %s "(cached) " >&6
  6708. else $as_nop
  6709. if test -n "$ac_ct_DSYMUTIL"; then
  6710. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. case $as_dir in #(((
  6717. '') as_dir=./ ;;
  6718. */) ;;
  6719. *) as_dir=$as_dir/ ;;
  6720. esac
  6721. for ac_exec_ext in '' $ac_executable_extensions; do
  6722. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6723. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6725. break 2
  6726. fi
  6727. done
  6728. done
  6729. IFS=$as_save_IFS
  6730. fi
  6731. fi
  6732. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6733. if test -n "$ac_ct_DSYMUTIL"; then
  6734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6735. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6736. else
  6737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6738. printf "%s\n" "no" >&6; }
  6739. fi
  6740. if test "x$ac_ct_DSYMUTIL" = x; then
  6741. DSYMUTIL=":"
  6742. else
  6743. case $cross_compiling:$ac_tool_warned in
  6744. yes:)
  6745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6746. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6747. ac_tool_warned=yes ;;
  6748. esac
  6749. DSYMUTIL=$ac_ct_DSYMUTIL
  6750. fi
  6751. else
  6752. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6753. fi
  6754. if test -n "$ac_tool_prefix"; then
  6755. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6756. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6758. printf %s "checking for $ac_word... " >&6; }
  6759. if test ${ac_cv_prog_NMEDIT+y}
  6760. then :
  6761. printf %s "(cached) " >&6
  6762. else $as_nop
  6763. if test -n "$NMEDIT"; then
  6764. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6765. else
  6766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6767. for as_dir in $PATH
  6768. do
  6769. IFS=$as_save_IFS
  6770. case $as_dir in #(((
  6771. '') as_dir=./ ;;
  6772. */) ;;
  6773. *) as_dir=$as_dir/ ;;
  6774. esac
  6775. for ac_exec_ext in '' $ac_executable_extensions; do
  6776. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6777. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6778. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6779. break 2
  6780. fi
  6781. done
  6782. done
  6783. IFS=$as_save_IFS
  6784. fi
  6785. fi
  6786. NMEDIT=$ac_cv_prog_NMEDIT
  6787. if test -n "$NMEDIT"; then
  6788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6789. printf "%s\n" "$NMEDIT" >&6; }
  6790. else
  6791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6792. printf "%s\n" "no" >&6; }
  6793. fi
  6794. fi
  6795. if test -z "$ac_cv_prog_NMEDIT"; then
  6796. ac_ct_NMEDIT=$NMEDIT
  6797. # Extract the first word of "nmedit", so it can be a program name with args.
  6798. set dummy nmedit; ac_word=$2
  6799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6800. printf %s "checking for $ac_word... " >&6; }
  6801. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6802. then :
  6803. printf %s "(cached) " >&6
  6804. else $as_nop
  6805. if test -n "$ac_ct_NMEDIT"; then
  6806. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6807. else
  6808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6809. for as_dir in $PATH
  6810. do
  6811. IFS=$as_save_IFS
  6812. case $as_dir in #(((
  6813. '') as_dir=./ ;;
  6814. */) ;;
  6815. *) as_dir=$as_dir/ ;;
  6816. esac
  6817. for ac_exec_ext in '' $ac_executable_extensions; do
  6818. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6819. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6820. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6821. break 2
  6822. fi
  6823. done
  6824. done
  6825. IFS=$as_save_IFS
  6826. fi
  6827. fi
  6828. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6829. if test -n "$ac_ct_NMEDIT"; then
  6830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6831. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6832. else
  6833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6834. printf "%s\n" "no" >&6; }
  6835. fi
  6836. if test "x$ac_ct_NMEDIT" = x; then
  6837. NMEDIT=":"
  6838. else
  6839. case $cross_compiling:$ac_tool_warned in
  6840. yes:)
  6841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6842. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6843. ac_tool_warned=yes ;;
  6844. esac
  6845. NMEDIT=$ac_ct_NMEDIT
  6846. fi
  6847. else
  6848. NMEDIT="$ac_cv_prog_NMEDIT"
  6849. fi
  6850. if test -n "$ac_tool_prefix"; then
  6851. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6852. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6854. printf %s "checking for $ac_word... " >&6; }
  6855. if test ${ac_cv_prog_LIPO+y}
  6856. then :
  6857. printf %s "(cached) " >&6
  6858. else $as_nop
  6859. if test -n "$LIPO"; then
  6860. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6861. else
  6862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6863. for as_dir in $PATH
  6864. do
  6865. IFS=$as_save_IFS
  6866. case $as_dir in #(((
  6867. '') as_dir=./ ;;
  6868. */) ;;
  6869. *) as_dir=$as_dir/ ;;
  6870. esac
  6871. for ac_exec_ext in '' $ac_executable_extensions; do
  6872. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6873. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6874. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6875. break 2
  6876. fi
  6877. done
  6878. done
  6879. IFS=$as_save_IFS
  6880. fi
  6881. fi
  6882. LIPO=$ac_cv_prog_LIPO
  6883. if test -n "$LIPO"; then
  6884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6885. printf "%s\n" "$LIPO" >&6; }
  6886. else
  6887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. printf "%s\n" "no" >&6; }
  6889. fi
  6890. fi
  6891. if test -z "$ac_cv_prog_LIPO"; then
  6892. ac_ct_LIPO=$LIPO
  6893. # Extract the first word of "lipo", so it can be a program name with args.
  6894. set dummy lipo; ac_word=$2
  6895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6896. printf %s "checking for $ac_word... " >&6; }
  6897. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6898. then :
  6899. printf %s "(cached) " >&6
  6900. else $as_nop
  6901. if test -n "$ac_ct_LIPO"; then
  6902. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6903. else
  6904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6905. for as_dir in $PATH
  6906. do
  6907. IFS=$as_save_IFS
  6908. case $as_dir in #(((
  6909. '') as_dir=./ ;;
  6910. */) ;;
  6911. *) as_dir=$as_dir/ ;;
  6912. esac
  6913. for ac_exec_ext in '' $ac_executable_extensions; do
  6914. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6915. ac_cv_prog_ac_ct_LIPO="lipo"
  6916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6917. break 2
  6918. fi
  6919. done
  6920. done
  6921. IFS=$as_save_IFS
  6922. fi
  6923. fi
  6924. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6925. if test -n "$ac_ct_LIPO"; then
  6926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6927. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6928. else
  6929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6930. printf "%s\n" "no" >&6; }
  6931. fi
  6932. if test "x$ac_ct_LIPO" = x; then
  6933. LIPO=":"
  6934. else
  6935. case $cross_compiling:$ac_tool_warned in
  6936. yes:)
  6937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6938. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6939. ac_tool_warned=yes ;;
  6940. esac
  6941. LIPO=$ac_ct_LIPO
  6942. fi
  6943. else
  6944. LIPO="$ac_cv_prog_LIPO"
  6945. fi
  6946. if test -n "$ac_tool_prefix"; then
  6947. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6948. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. printf %s "checking for $ac_word... " >&6; }
  6951. if test ${ac_cv_prog_OTOOL+y}
  6952. then :
  6953. printf %s "(cached) " >&6
  6954. else $as_nop
  6955. if test -n "$OTOOL"; then
  6956. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6957. else
  6958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6959. for as_dir in $PATH
  6960. do
  6961. IFS=$as_save_IFS
  6962. case $as_dir in #(((
  6963. '') as_dir=./ ;;
  6964. */) ;;
  6965. *) as_dir=$as_dir/ ;;
  6966. esac
  6967. for ac_exec_ext in '' $ac_executable_extensions; do
  6968. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6969. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6971. break 2
  6972. fi
  6973. done
  6974. done
  6975. IFS=$as_save_IFS
  6976. fi
  6977. fi
  6978. OTOOL=$ac_cv_prog_OTOOL
  6979. if test -n "$OTOOL"; then
  6980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6981. printf "%s\n" "$OTOOL" >&6; }
  6982. else
  6983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6984. printf "%s\n" "no" >&6; }
  6985. fi
  6986. fi
  6987. if test -z "$ac_cv_prog_OTOOL"; then
  6988. ac_ct_OTOOL=$OTOOL
  6989. # Extract the first word of "otool", so it can be a program name with args.
  6990. set dummy otool; ac_word=$2
  6991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6992. printf %s "checking for $ac_word... " >&6; }
  6993. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6994. then :
  6995. printf %s "(cached) " >&6
  6996. else $as_nop
  6997. if test -n "$ac_ct_OTOOL"; then
  6998. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6999. else
  7000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7001. for as_dir in $PATH
  7002. do
  7003. IFS=$as_save_IFS
  7004. case $as_dir in #(((
  7005. '') as_dir=./ ;;
  7006. */) ;;
  7007. *) as_dir=$as_dir/ ;;
  7008. esac
  7009. for ac_exec_ext in '' $ac_executable_extensions; do
  7010. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7011. ac_cv_prog_ac_ct_OTOOL="otool"
  7012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7013. break 2
  7014. fi
  7015. done
  7016. done
  7017. IFS=$as_save_IFS
  7018. fi
  7019. fi
  7020. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7021. if test -n "$ac_ct_OTOOL"; then
  7022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7023. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7024. else
  7025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7026. printf "%s\n" "no" >&6; }
  7027. fi
  7028. if test "x$ac_ct_OTOOL" = x; then
  7029. OTOOL=":"
  7030. else
  7031. case $cross_compiling:$ac_tool_warned in
  7032. yes:)
  7033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7034. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7035. ac_tool_warned=yes ;;
  7036. esac
  7037. OTOOL=$ac_ct_OTOOL
  7038. fi
  7039. else
  7040. OTOOL="$ac_cv_prog_OTOOL"
  7041. fi
  7042. if test -n "$ac_tool_prefix"; then
  7043. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7044. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. printf %s "checking for $ac_word... " >&6; }
  7047. if test ${ac_cv_prog_OTOOL64+y}
  7048. then :
  7049. printf %s "(cached) " >&6
  7050. else $as_nop
  7051. if test -n "$OTOOL64"; then
  7052. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7053. else
  7054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7055. for as_dir in $PATH
  7056. do
  7057. IFS=$as_save_IFS
  7058. case $as_dir in #(((
  7059. '') as_dir=./ ;;
  7060. */) ;;
  7061. *) as_dir=$as_dir/ ;;
  7062. esac
  7063. for ac_exec_ext in '' $ac_executable_extensions; do
  7064. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7065. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7066. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7067. break 2
  7068. fi
  7069. done
  7070. done
  7071. IFS=$as_save_IFS
  7072. fi
  7073. fi
  7074. OTOOL64=$ac_cv_prog_OTOOL64
  7075. if test -n "$OTOOL64"; then
  7076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7077. printf "%s\n" "$OTOOL64" >&6; }
  7078. else
  7079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7080. printf "%s\n" "no" >&6; }
  7081. fi
  7082. fi
  7083. if test -z "$ac_cv_prog_OTOOL64"; then
  7084. ac_ct_OTOOL64=$OTOOL64
  7085. # Extract the first word of "otool64", so it can be a program name with args.
  7086. set dummy otool64; ac_word=$2
  7087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7088. printf %s "checking for $ac_word... " >&6; }
  7089. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7090. then :
  7091. printf %s "(cached) " >&6
  7092. else $as_nop
  7093. if test -n "$ac_ct_OTOOL64"; then
  7094. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. case $as_dir in #(((
  7101. '') as_dir=./ ;;
  7102. */) ;;
  7103. *) as_dir=$as_dir/ ;;
  7104. esac
  7105. for ac_exec_ext in '' $ac_executable_extensions; do
  7106. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7107. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7108. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7109. break 2
  7110. fi
  7111. done
  7112. done
  7113. IFS=$as_save_IFS
  7114. fi
  7115. fi
  7116. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7117. if test -n "$ac_ct_OTOOL64"; then
  7118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7119. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7120. else
  7121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7122. printf "%s\n" "no" >&6; }
  7123. fi
  7124. if test "x$ac_ct_OTOOL64" = x; then
  7125. OTOOL64=":"
  7126. else
  7127. case $cross_compiling:$ac_tool_warned in
  7128. yes:)
  7129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7130. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7131. ac_tool_warned=yes ;;
  7132. esac
  7133. OTOOL64=$ac_ct_OTOOL64
  7134. fi
  7135. else
  7136. OTOOL64="$ac_cv_prog_OTOOL64"
  7137. fi
  7138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7139. printf %s "checking for -single_module linker flag... " >&6; }
  7140. if test ${lt_cv_apple_cc_single_mod+y}
  7141. then :
  7142. printf %s "(cached) " >&6
  7143. else $as_nop
  7144. lt_cv_apple_cc_single_mod=no
  7145. if test -z "$LT_MULTI_MODULE"; then
  7146. # By default we will add the -single_module flag. You can override
  7147. # by either setting the environment variable LT_MULTI_MODULE
  7148. # non-empty at configure time, or by adding -multi_module to the
  7149. # link flags.
  7150. rm -rf libconftest.dylib*
  7151. echo "int foo(void){return 1;}" > conftest.c
  7152. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7153. -dynamiclib -Wl,-single_module conftest.c" >&5
  7154. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7155. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7156. _lt_result=$?
  7157. # If there is a non-empty error log, and "single_module"
  7158. # appears in it, assume the flag caused a linker warning
  7159. if test -s conftest.err && $GREP single_module conftest.err; then
  7160. cat conftest.err >&5
  7161. # Otherwise, if the output was created with a 0 exit code from
  7162. # the compiler, it worked.
  7163. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7164. lt_cv_apple_cc_single_mod=yes
  7165. else
  7166. cat conftest.err >&5
  7167. fi
  7168. rm -rf libconftest.dylib*
  7169. rm -f conftest.*
  7170. fi
  7171. fi
  7172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7173. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7175. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7176. if test ${lt_cv_ld_exported_symbols_list+y}
  7177. then :
  7178. printf %s "(cached) " >&6
  7179. else $as_nop
  7180. lt_cv_ld_exported_symbols_list=no
  7181. save_LDFLAGS=$LDFLAGS
  7182. echo "_main" > conftest.sym
  7183. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7185. /* end confdefs.h. */
  7186. int
  7187. main (void)
  7188. {
  7189. ;
  7190. return 0;
  7191. }
  7192. _ACEOF
  7193. if ac_fn_c_try_link "$LINENO"
  7194. then :
  7195. lt_cv_ld_exported_symbols_list=yes
  7196. else $as_nop
  7197. lt_cv_ld_exported_symbols_list=no
  7198. fi
  7199. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7200. conftest$ac_exeext conftest.$ac_ext
  7201. LDFLAGS=$save_LDFLAGS
  7202. fi
  7203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7204. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7206. printf %s "checking for -force_load linker flag... " >&6; }
  7207. if test ${lt_cv_ld_force_load+y}
  7208. then :
  7209. printf %s "(cached) " >&6
  7210. else $as_nop
  7211. lt_cv_ld_force_load=no
  7212. cat > conftest.c << _LT_EOF
  7213. int forced_loaded() { return 2;}
  7214. _LT_EOF
  7215. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7216. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7217. echo "$AR cru libconftest.a conftest.o" >&5
  7218. $AR cru libconftest.a conftest.o 2>&5
  7219. echo "$RANLIB libconftest.a" >&5
  7220. $RANLIB libconftest.a 2>&5
  7221. cat > conftest.c << _LT_EOF
  7222. int main() { return 0;}
  7223. _LT_EOF
  7224. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7225. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7226. _lt_result=$?
  7227. if test -s conftest.err && $GREP force_load conftest.err; then
  7228. cat conftest.err >&5
  7229. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7230. lt_cv_ld_force_load=yes
  7231. else
  7232. cat conftest.err >&5
  7233. fi
  7234. rm -f conftest.err libconftest.a conftest conftest.c
  7235. rm -rf conftest.dSYM
  7236. fi
  7237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7238. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7239. case $host_os in
  7240. rhapsody* | darwin1.[012])
  7241. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7242. darwin1.*)
  7243. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7244. darwin*)
  7245. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7246. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7247. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7248. *)
  7249. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7250. esac
  7251. ;;
  7252. esac
  7253. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7254. _lt_dar_single_mod='$single_module'
  7255. fi
  7256. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7257. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7258. else
  7259. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7260. fi
  7261. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7262. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7263. else
  7264. _lt_dsymutil=
  7265. fi
  7266. ;;
  7267. esac
  7268. # func_munge_path_list VARIABLE PATH
  7269. # -----------------------------------
  7270. # VARIABLE is name of variable containing _space_ separated list of
  7271. # directories to be munged by the contents of PATH, which is string
  7272. # having a format:
  7273. # "DIR[:DIR]:"
  7274. # string "DIR[ DIR]" will be prepended to VARIABLE
  7275. # ":DIR[:DIR]"
  7276. # string "DIR[ DIR]" will be appended to VARIABLE
  7277. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7278. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7279. # "DIRA[ DIRA]" will be appended to VARIABLE
  7280. # "DIR[:DIR]"
  7281. # VARIABLE will be replaced by "DIR[ DIR]"
  7282. func_munge_path_list ()
  7283. {
  7284. case x$2 in
  7285. x)
  7286. ;;
  7287. *:)
  7288. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7289. ;;
  7290. x:*)
  7291. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7292. ;;
  7293. *::*)
  7294. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7295. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7296. ;;
  7297. *)
  7298. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7299. ;;
  7300. esac
  7301. }
  7302. ac_header= ac_cache=
  7303. for ac_item in $ac_header_c_list
  7304. do
  7305. if test $ac_cache; then
  7306. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7307. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7308. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7309. fi
  7310. ac_header= ac_cache=
  7311. elif test $ac_header; then
  7312. ac_cache=$ac_item
  7313. else
  7314. ac_header=$ac_item
  7315. fi
  7316. done
  7317. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7318. then :
  7319. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7320. fi
  7321. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7322. "
  7323. if test "x$ac_cv_header_dlfcn_h" = xyes
  7324. then :
  7325. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7326. fi
  7327. # Set options
  7328. enable_win32_dll=yes
  7329. case $host in
  7330. *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
  7331. if test -n "$ac_tool_prefix"; then
  7332. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7333. set dummy ${ac_tool_prefix}as; ac_word=$2
  7334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7335. printf %s "checking for $ac_word... " >&6; }
  7336. if test ${ac_cv_prog_AS+y}
  7337. then :
  7338. printf %s "(cached) " >&6
  7339. else $as_nop
  7340. if test -n "$AS"; then
  7341. ac_cv_prog_AS="$AS" # Let the user override the test.
  7342. else
  7343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7344. for as_dir in $PATH
  7345. do
  7346. IFS=$as_save_IFS
  7347. case $as_dir in #(((
  7348. '') as_dir=./ ;;
  7349. */) ;;
  7350. *) as_dir=$as_dir/ ;;
  7351. esac
  7352. for ac_exec_ext in '' $ac_executable_extensions; do
  7353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7354. ac_cv_prog_AS="${ac_tool_prefix}as"
  7355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7356. break 2
  7357. fi
  7358. done
  7359. done
  7360. IFS=$as_save_IFS
  7361. fi
  7362. fi
  7363. AS=$ac_cv_prog_AS
  7364. if test -n "$AS"; then
  7365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7366. printf "%s\n" "$AS" >&6; }
  7367. else
  7368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7369. printf "%s\n" "no" >&6; }
  7370. fi
  7371. fi
  7372. if test -z "$ac_cv_prog_AS"; then
  7373. ac_ct_AS=$AS
  7374. # Extract the first word of "as", so it can be a program name with args.
  7375. set dummy as; ac_word=$2
  7376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7377. printf %s "checking for $ac_word... " >&6; }
  7378. if test ${ac_cv_prog_ac_ct_AS+y}
  7379. then :
  7380. printf %s "(cached) " >&6
  7381. else $as_nop
  7382. if test -n "$ac_ct_AS"; then
  7383. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7384. else
  7385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7386. for as_dir in $PATH
  7387. do
  7388. IFS=$as_save_IFS
  7389. case $as_dir in #(((
  7390. '') as_dir=./ ;;
  7391. */) ;;
  7392. *) as_dir=$as_dir/ ;;
  7393. esac
  7394. for ac_exec_ext in '' $ac_executable_extensions; do
  7395. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7396. ac_cv_prog_ac_ct_AS="as"
  7397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7398. break 2
  7399. fi
  7400. done
  7401. done
  7402. IFS=$as_save_IFS
  7403. fi
  7404. fi
  7405. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7406. if test -n "$ac_ct_AS"; then
  7407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7408. printf "%s\n" "$ac_ct_AS" >&6; }
  7409. else
  7410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7411. printf "%s\n" "no" >&6; }
  7412. fi
  7413. if test "x$ac_ct_AS" = x; then
  7414. AS="false"
  7415. else
  7416. case $cross_compiling:$ac_tool_warned in
  7417. yes:)
  7418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7419. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7420. ac_tool_warned=yes ;;
  7421. esac
  7422. AS=$ac_ct_AS
  7423. fi
  7424. else
  7425. AS="$ac_cv_prog_AS"
  7426. fi
  7427. if test -n "$ac_tool_prefix"; then
  7428. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7429. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7431. printf %s "checking for $ac_word... " >&6; }
  7432. if test ${ac_cv_prog_DLLTOOL+y}
  7433. then :
  7434. printf %s "(cached) " >&6
  7435. else $as_nop
  7436. if test -n "$DLLTOOL"; then
  7437. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7438. else
  7439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7440. for as_dir in $PATH
  7441. do
  7442. IFS=$as_save_IFS
  7443. case $as_dir in #(((
  7444. '') as_dir=./ ;;
  7445. */) ;;
  7446. *) as_dir=$as_dir/ ;;
  7447. esac
  7448. for ac_exec_ext in '' $ac_executable_extensions; do
  7449. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7450. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7451. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7452. break 2
  7453. fi
  7454. done
  7455. done
  7456. IFS=$as_save_IFS
  7457. fi
  7458. fi
  7459. DLLTOOL=$ac_cv_prog_DLLTOOL
  7460. if test -n "$DLLTOOL"; then
  7461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7462. printf "%s\n" "$DLLTOOL" >&6; }
  7463. else
  7464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7465. printf "%s\n" "no" >&6; }
  7466. fi
  7467. fi
  7468. if test -z "$ac_cv_prog_DLLTOOL"; then
  7469. ac_ct_DLLTOOL=$DLLTOOL
  7470. # Extract the first word of "dlltool", so it can be a program name with args.
  7471. set dummy dlltool; ac_word=$2
  7472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7473. printf %s "checking for $ac_word... " >&6; }
  7474. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7475. then :
  7476. printf %s "(cached) " >&6
  7477. else $as_nop
  7478. if test -n "$ac_ct_DLLTOOL"; then
  7479. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7480. else
  7481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7482. for as_dir in $PATH
  7483. do
  7484. IFS=$as_save_IFS
  7485. case $as_dir in #(((
  7486. '') as_dir=./ ;;
  7487. */) ;;
  7488. *) as_dir=$as_dir/ ;;
  7489. esac
  7490. for ac_exec_ext in '' $ac_executable_extensions; do
  7491. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7492. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7493. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7494. break 2
  7495. fi
  7496. done
  7497. done
  7498. IFS=$as_save_IFS
  7499. fi
  7500. fi
  7501. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7502. if test -n "$ac_ct_DLLTOOL"; then
  7503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7504. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7505. else
  7506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7507. printf "%s\n" "no" >&6; }
  7508. fi
  7509. if test "x$ac_ct_DLLTOOL" = x; then
  7510. DLLTOOL="false"
  7511. else
  7512. case $cross_compiling:$ac_tool_warned in
  7513. yes:)
  7514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7515. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7516. ac_tool_warned=yes ;;
  7517. esac
  7518. DLLTOOL=$ac_ct_DLLTOOL
  7519. fi
  7520. else
  7521. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7522. fi
  7523. if test -n "$ac_tool_prefix"; then
  7524. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7525. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7527. printf %s "checking for $ac_word... " >&6; }
  7528. if test ${ac_cv_prog_OBJDUMP+y}
  7529. then :
  7530. printf %s "(cached) " >&6
  7531. else $as_nop
  7532. if test -n "$OBJDUMP"; then
  7533. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7534. else
  7535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7536. for as_dir in $PATH
  7537. do
  7538. IFS=$as_save_IFS
  7539. case $as_dir in #(((
  7540. '') as_dir=./ ;;
  7541. */) ;;
  7542. *) as_dir=$as_dir/ ;;
  7543. esac
  7544. for ac_exec_ext in '' $ac_executable_extensions; do
  7545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7546. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7548. break 2
  7549. fi
  7550. done
  7551. done
  7552. IFS=$as_save_IFS
  7553. fi
  7554. fi
  7555. OBJDUMP=$ac_cv_prog_OBJDUMP
  7556. if test -n "$OBJDUMP"; then
  7557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7558. printf "%s\n" "$OBJDUMP" >&6; }
  7559. else
  7560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7561. printf "%s\n" "no" >&6; }
  7562. fi
  7563. fi
  7564. if test -z "$ac_cv_prog_OBJDUMP"; then
  7565. ac_ct_OBJDUMP=$OBJDUMP
  7566. # Extract the first word of "objdump", so it can be a program name with args.
  7567. set dummy objdump; ac_word=$2
  7568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7569. printf %s "checking for $ac_word... " >&6; }
  7570. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7571. then :
  7572. printf %s "(cached) " >&6
  7573. else $as_nop
  7574. if test -n "$ac_ct_OBJDUMP"; then
  7575. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7576. else
  7577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7578. for as_dir in $PATH
  7579. do
  7580. IFS=$as_save_IFS
  7581. case $as_dir in #(((
  7582. '') as_dir=./ ;;
  7583. */) ;;
  7584. *) as_dir=$as_dir/ ;;
  7585. esac
  7586. for ac_exec_ext in '' $ac_executable_extensions; do
  7587. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7588. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7589. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7590. break 2
  7591. fi
  7592. done
  7593. done
  7594. IFS=$as_save_IFS
  7595. fi
  7596. fi
  7597. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7598. if test -n "$ac_ct_OBJDUMP"; then
  7599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7600. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7601. else
  7602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7603. printf "%s\n" "no" >&6; }
  7604. fi
  7605. if test "x$ac_ct_OBJDUMP" = x; then
  7606. OBJDUMP="false"
  7607. else
  7608. case $cross_compiling:$ac_tool_warned in
  7609. yes:)
  7610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7611. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7612. ac_tool_warned=yes ;;
  7613. esac
  7614. OBJDUMP=$ac_ct_OBJDUMP
  7615. fi
  7616. else
  7617. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7618. fi
  7619. ;;
  7620. esac
  7621. test -z "$AS" && AS=as
  7622. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7623. test -z "$OBJDUMP" && OBJDUMP=objdump
  7624. enable_dlopen=no
  7625. # Check whether --enable-shared was given.
  7626. if test ${enable_shared+y}
  7627. then :
  7628. enableval=$enable_shared; p=${PACKAGE-default}
  7629. case $enableval in
  7630. yes) enable_shared=yes ;;
  7631. no) enable_shared=no ;;
  7632. *)
  7633. enable_shared=no
  7634. # Look at the argument we got. We use all the common list separators.
  7635. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7636. for pkg in $enableval; do
  7637. IFS=$lt_save_ifs
  7638. if test "X$pkg" = "X$p"; then
  7639. enable_shared=yes
  7640. fi
  7641. done
  7642. IFS=$lt_save_ifs
  7643. ;;
  7644. esac
  7645. else $as_nop
  7646. enable_shared=yes
  7647. fi
  7648. # Check whether --enable-static was given.
  7649. if test ${enable_static+y}
  7650. then :
  7651. enableval=$enable_static; p=${PACKAGE-default}
  7652. case $enableval in
  7653. yes) enable_static=yes ;;
  7654. no) enable_static=no ;;
  7655. *)
  7656. enable_static=no
  7657. # Look at the argument we got. We use all the common list separators.
  7658. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7659. for pkg in $enableval; do
  7660. IFS=$lt_save_ifs
  7661. if test "X$pkg" = "X$p"; then
  7662. enable_static=yes
  7663. fi
  7664. done
  7665. IFS=$lt_save_ifs
  7666. ;;
  7667. esac
  7668. else $as_nop
  7669. enable_static=yes
  7670. fi
  7671. # Check whether --with-pic was given.
  7672. if test ${with_pic+y}
  7673. then :
  7674. withval=$with_pic; lt_p=${PACKAGE-default}
  7675. case $withval in
  7676. yes|no) pic_mode=$withval ;;
  7677. *)
  7678. pic_mode=default
  7679. # Look at the argument we got. We use all the common list separators.
  7680. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7681. for lt_pkg in $withval; do
  7682. IFS=$lt_save_ifs
  7683. if test "X$lt_pkg" = "X$lt_p"; then
  7684. pic_mode=yes
  7685. fi
  7686. done
  7687. IFS=$lt_save_ifs
  7688. ;;
  7689. esac
  7690. else $as_nop
  7691. pic_mode=default
  7692. fi
  7693. # Check whether --enable-fast-install was given.
  7694. if test ${enable_fast_install+y}
  7695. then :
  7696. enableval=$enable_fast_install; p=${PACKAGE-default}
  7697. case $enableval in
  7698. yes) enable_fast_install=yes ;;
  7699. no) enable_fast_install=no ;;
  7700. *)
  7701. enable_fast_install=no
  7702. # Look at the argument we got. We use all the common list separators.
  7703. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7704. for pkg in $enableval; do
  7705. IFS=$lt_save_ifs
  7706. if test "X$pkg" = "X$p"; then
  7707. enable_fast_install=yes
  7708. fi
  7709. done
  7710. IFS=$lt_save_ifs
  7711. ;;
  7712. esac
  7713. else $as_nop
  7714. enable_fast_install=yes
  7715. fi
  7716. shared_archive_member_spec=
  7717. case $host,$enable_shared in
  7718. power*-*-aix[5-9]*,yes)
  7719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7720. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7721. # Check whether --with-aix-soname was given.
  7722. if test ${with_aix_soname+y}
  7723. then :
  7724. withval=$with_aix_soname; case $withval in
  7725. aix|svr4|both)
  7726. ;;
  7727. *)
  7728. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7729. ;;
  7730. esac
  7731. lt_cv_with_aix_soname=$with_aix_soname
  7732. else $as_nop
  7733. if test ${lt_cv_with_aix_soname+y}
  7734. then :
  7735. printf %s "(cached) " >&6
  7736. else $as_nop
  7737. lt_cv_with_aix_soname=aix
  7738. fi
  7739. with_aix_soname=$lt_cv_with_aix_soname
  7740. fi
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7742. printf "%s\n" "$with_aix_soname" >&6; }
  7743. if test aix != "$with_aix_soname"; then
  7744. # For the AIX way of multilib, we name the shared archive member
  7745. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7746. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7747. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7748. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7749. if test 64 = "${OBJECT_MODE-32}"; then
  7750. shared_archive_member_spec=shr_64
  7751. else
  7752. shared_archive_member_spec=shr
  7753. fi
  7754. fi
  7755. ;;
  7756. *)
  7757. with_aix_soname=aix
  7758. ;;
  7759. esac
  7760. # This can be used to rebuild libtool when needed
  7761. LIBTOOL_DEPS=$ltmain
  7762. # Always use our own libtool.
  7763. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7764. test -z "$LN_S" && LN_S="ln -s"
  7765. if test -n "${ZSH_VERSION+set}"; then
  7766. setopt NO_GLOB_SUBST
  7767. fi
  7768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7769. printf %s "checking for objdir... " >&6; }
  7770. if test ${lt_cv_objdir+y}
  7771. then :
  7772. printf %s "(cached) " >&6
  7773. else $as_nop
  7774. rm -f .libs 2>/dev/null
  7775. mkdir .libs 2>/dev/null
  7776. if test -d .libs; then
  7777. lt_cv_objdir=.libs
  7778. else
  7779. # MS-DOS does not allow filenames that begin with a dot.
  7780. lt_cv_objdir=_libs
  7781. fi
  7782. rmdir .libs 2>/dev/null
  7783. fi
  7784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7785. printf "%s\n" "$lt_cv_objdir" >&6; }
  7786. objdir=$lt_cv_objdir
  7787. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7788. case $host_os in
  7789. aix3*)
  7790. # AIX sometimes has problems with the GCC collect2 program. For some
  7791. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7792. # vanish in a puff of smoke.
  7793. if test set != "${COLLECT_NAMES+set}"; then
  7794. COLLECT_NAMES=
  7795. export COLLECT_NAMES
  7796. fi
  7797. ;;
  7798. esac
  7799. # Global variables:
  7800. ofile=libtool
  7801. can_build_shared=yes
  7802. # All known linkers require a '.a' archive for static linking (except MSVC and
  7803. # ICC, which need '.lib').
  7804. libext=a
  7805. with_gnu_ld=$lt_cv_prog_gnu_ld
  7806. old_CC=$CC
  7807. old_CFLAGS=$CFLAGS
  7808. # Set sane defaults for various variables
  7809. test -z "$CC" && CC=cc
  7810. test -z "$LTCC" && LTCC=$CC
  7811. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7812. test -z "$LD" && LD=ld
  7813. test -z "$ac_objext" && ac_objext=o
  7814. func_cc_basename $compiler
  7815. cc_basename=$func_cc_basename_result
  7816. # Only perform the check for file, if the check method requires it
  7817. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7818. case $deplibs_check_method in
  7819. file_magic*)
  7820. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7822. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7823. if test ${lt_cv_path_MAGIC_CMD+y}
  7824. then :
  7825. printf %s "(cached) " >&6
  7826. else $as_nop
  7827. case $MAGIC_CMD in
  7828. [\\/*] | ?:[\\/]*)
  7829. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7830. ;;
  7831. *)
  7832. lt_save_MAGIC_CMD=$MAGIC_CMD
  7833. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7834. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7835. for ac_dir in $ac_dummy; do
  7836. IFS=$lt_save_ifs
  7837. test -z "$ac_dir" && ac_dir=.
  7838. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7839. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7840. if test -n "$file_magic_test_file"; then
  7841. case $deplibs_check_method in
  7842. "file_magic "*)
  7843. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7844. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7845. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7846. $EGREP "$file_magic_regex" > /dev/null; then
  7847. :
  7848. else
  7849. cat <<_LT_EOF 1>&2
  7850. *** Warning: the command libtool uses to detect shared libraries,
  7851. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7852. *** The result is that libtool may fail to recognize shared libraries
  7853. *** as such. This will affect the creation of libtool libraries that
  7854. *** depend on shared libraries, but programs linked with such libtool
  7855. *** libraries will work regardless of this problem. Nevertheless, you
  7856. *** may want to report the problem to your system manager and/or to
  7857. *** bug-libtool@gnu.org
  7858. _LT_EOF
  7859. fi ;;
  7860. esac
  7861. fi
  7862. break
  7863. fi
  7864. done
  7865. IFS=$lt_save_ifs
  7866. MAGIC_CMD=$lt_save_MAGIC_CMD
  7867. ;;
  7868. esac
  7869. fi
  7870. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7871. if test -n "$MAGIC_CMD"; then
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7873. printf "%s\n" "$MAGIC_CMD" >&6; }
  7874. else
  7875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7876. printf "%s\n" "no" >&6; }
  7877. fi
  7878. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7879. if test -n "$ac_tool_prefix"; then
  7880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7881. printf %s "checking for file... " >&6; }
  7882. if test ${lt_cv_path_MAGIC_CMD+y}
  7883. then :
  7884. printf %s "(cached) " >&6
  7885. else $as_nop
  7886. case $MAGIC_CMD in
  7887. [\\/*] | ?:[\\/]*)
  7888. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7889. ;;
  7890. *)
  7891. lt_save_MAGIC_CMD=$MAGIC_CMD
  7892. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7893. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7894. for ac_dir in $ac_dummy; do
  7895. IFS=$lt_save_ifs
  7896. test -z "$ac_dir" && ac_dir=.
  7897. if test -f "$ac_dir/file"; then
  7898. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7899. if test -n "$file_magic_test_file"; then
  7900. case $deplibs_check_method in
  7901. "file_magic "*)
  7902. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7903. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7904. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7905. $EGREP "$file_magic_regex" > /dev/null; then
  7906. :
  7907. else
  7908. cat <<_LT_EOF 1>&2
  7909. *** Warning: the command libtool uses to detect shared libraries,
  7910. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7911. *** The result is that libtool may fail to recognize shared libraries
  7912. *** as such. This will affect the creation of libtool libraries that
  7913. *** depend on shared libraries, but programs linked with such libtool
  7914. *** libraries will work regardless of this problem. Nevertheless, you
  7915. *** may want to report the problem to your system manager and/or to
  7916. *** bug-libtool@gnu.org
  7917. _LT_EOF
  7918. fi ;;
  7919. esac
  7920. fi
  7921. break
  7922. fi
  7923. done
  7924. IFS=$lt_save_ifs
  7925. MAGIC_CMD=$lt_save_MAGIC_CMD
  7926. ;;
  7927. esac
  7928. fi
  7929. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7930. if test -n "$MAGIC_CMD"; then
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7932. printf "%s\n" "$MAGIC_CMD" >&6; }
  7933. else
  7934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7935. printf "%s\n" "no" >&6; }
  7936. fi
  7937. else
  7938. MAGIC_CMD=:
  7939. fi
  7940. fi
  7941. fi
  7942. ;;
  7943. esac
  7944. # Use C for the default configuration in the libtool script
  7945. lt_save_CC=$CC
  7946. ac_ext=c
  7947. ac_cpp='$CPP $CPPFLAGS'
  7948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7951. # Source file extension for C test sources.
  7952. ac_ext=c
  7953. # Object file extension for compiled C test sources.
  7954. objext=o
  7955. objext=$objext
  7956. # Code to be used in simple compile tests
  7957. lt_simple_compile_test_code="int some_variable = 0;"
  7958. # Code to be used in simple link tests
  7959. lt_simple_link_test_code='int main(){return(0);}'
  7960. # If no C compiler was specified, use CC.
  7961. LTCC=${LTCC-"$CC"}
  7962. # If no C compiler flags were specified, use CFLAGS.
  7963. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7964. # Allow CC to be a program name with arguments.
  7965. compiler=$CC
  7966. # Save the default compiler, since it gets overwritten when the other
  7967. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7968. compiler_DEFAULT=$CC
  7969. # save warnings/boilerplate of simple test code
  7970. ac_outfile=conftest.$ac_objext
  7971. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7972. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7973. _lt_compiler_boilerplate=`cat conftest.err`
  7974. $RM conftest*
  7975. ac_outfile=conftest.$ac_objext
  7976. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7977. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7978. _lt_linker_boilerplate=`cat conftest.err`
  7979. $RM -r conftest*
  7980. ## CAVEAT EMPTOR:
  7981. ## There is no encapsulation within the following macros, do not change
  7982. ## the running order or otherwise move them around unless you know exactly
  7983. ## what you are doing...
  7984. if test -n "$compiler"; then
  7985. lt_prog_compiler_no_builtin_flag=
  7986. if test yes = "$GCC"; then
  7987. case $cc_basename in
  7988. nvcc*)
  7989. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7990. *)
  7991. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7992. esac
  7993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7994. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7995. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7996. then :
  7997. printf %s "(cached) " >&6
  7998. else $as_nop
  7999. lt_cv_prog_compiler_rtti_exceptions=no
  8000. ac_outfile=conftest.$ac_objext
  8001. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8002. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8003. # Insert the option either (1) after the last *FLAGS variable, or
  8004. # (2) before a word containing "conftest.", or (3) at the end.
  8005. # Note that $ac_compile itself does not contain backslashes and begins
  8006. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8007. # The option is referenced via a variable to avoid confusing sed.
  8008. lt_compile=`echo "$ac_compile" | $SED \
  8009. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8010. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8011. -e 's:$: $lt_compiler_flag:'`
  8012. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8013. (eval "$lt_compile" 2>conftest.err)
  8014. ac_status=$?
  8015. cat conftest.err >&5
  8016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8017. if (exit $ac_status) && test -s "$ac_outfile"; then
  8018. # The compiler can only warn and ignore the option if not recognized
  8019. # So say no if there are warnings other than the usual output.
  8020. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8021. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8022. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8023. lt_cv_prog_compiler_rtti_exceptions=yes
  8024. fi
  8025. fi
  8026. $RM conftest*
  8027. fi
  8028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8029. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8030. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8031. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8032. else
  8033. :
  8034. fi
  8035. fi
  8036. lt_prog_compiler_wl=
  8037. lt_prog_compiler_pic=
  8038. lt_prog_compiler_static=
  8039. if test yes = "$GCC"; then
  8040. lt_prog_compiler_wl='-Wl,'
  8041. lt_prog_compiler_static='-static'
  8042. case $host_os in
  8043. aix*)
  8044. # All AIX code is PIC.
  8045. if test ia64 = "$host_cpu"; then
  8046. # AIX 5 now supports IA64 processor
  8047. lt_prog_compiler_static='-Bstatic'
  8048. fi
  8049. lt_prog_compiler_pic='-fPIC'
  8050. ;;
  8051. amigaos*)
  8052. case $host_cpu in
  8053. powerpc)
  8054. # see comment about AmigaOS4 .so support
  8055. lt_prog_compiler_pic='-fPIC'
  8056. ;;
  8057. m68k)
  8058. # FIXME: we need at least 68020 code to build shared libraries, but
  8059. # adding the '-m68020' flag to GCC prevents building anything better,
  8060. # like '-m68040'.
  8061. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8062. ;;
  8063. esac
  8064. ;;
  8065. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8066. # PIC is the default for these OSes.
  8067. ;;
  8068. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8069. # This hack is so that the source file can tell whether it is being
  8070. # built for inclusion in a dll (and should export symbols for example).
  8071. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8072. # (--disable-auto-import) libraries
  8073. lt_prog_compiler_pic='-DDLL_EXPORT'
  8074. case $host_os in
  8075. os2*)
  8076. lt_prog_compiler_static='$wl-static'
  8077. ;;
  8078. esac
  8079. ;;
  8080. darwin* | rhapsody*)
  8081. # PIC is the default on this platform
  8082. # Common symbols not allowed in MH_DYLIB files
  8083. lt_prog_compiler_pic='-fno-common'
  8084. ;;
  8085. haiku*)
  8086. # PIC is the default for Haiku.
  8087. # The "-static" flag exists, but is broken.
  8088. lt_prog_compiler_static=
  8089. ;;
  8090. hpux*)
  8091. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8092. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8093. # sets the default TLS model and affects inlining.
  8094. case $host_cpu in
  8095. hppa*64*)
  8096. # +Z the default
  8097. ;;
  8098. *)
  8099. lt_prog_compiler_pic='-fPIC'
  8100. ;;
  8101. esac
  8102. ;;
  8103. interix[3-9]*)
  8104. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8105. # Instead, we relocate shared libraries at runtime.
  8106. ;;
  8107. msdosdjgpp*)
  8108. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8109. # on systems that don't support them.
  8110. lt_prog_compiler_can_build_shared=no
  8111. enable_shared=no
  8112. ;;
  8113. *nto* | *qnx*)
  8114. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8115. # it will coredump.
  8116. lt_prog_compiler_pic='-fPIC -shared'
  8117. ;;
  8118. sysv4*MP*)
  8119. if test -d /usr/nec; then
  8120. lt_prog_compiler_pic=-Kconform_pic
  8121. fi
  8122. ;;
  8123. *)
  8124. lt_prog_compiler_pic='-fPIC'
  8125. ;;
  8126. esac
  8127. case $cc_basename in
  8128. nvcc*) # Cuda Compiler Driver 2.2
  8129. lt_prog_compiler_wl='-Xlinker '
  8130. if test -n "$lt_prog_compiler_pic"; then
  8131. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8132. fi
  8133. ;;
  8134. esac
  8135. else
  8136. # PORTME Check for flag to pass linker flags through the system compiler.
  8137. case $host_os in
  8138. aix*)
  8139. lt_prog_compiler_wl='-Wl,'
  8140. if test ia64 = "$host_cpu"; then
  8141. # AIX 5 now supports IA64 processor
  8142. lt_prog_compiler_static='-Bstatic'
  8143. else
  8144. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8145. fi
  8146. ;;
  8147. darwin* | rhapsody*)
  8148. # PIC is the default on this platform
  8149. # Common symbols not allowed in MH_DYLIB files
  8150. lt_prog_compiler_pic='-fno-common'
  8151. case $cc_basename in
  8152. nagfor*)
  8153. # NAG Fortran compiler
  8154. lt_prog_compiler_wl='-Wl,-Wl,,'
  8155. lt_prog_compiler_pic='-PIC'
  8156. lt_prog_compiler_static='-Bstatic'
  8157. ;;
  8158. esac
  8159. ;;
  8160. mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
  8161. # This hack is so that the source file can tell whether it is being
  8162. # built for inclusion in a dll (and should export symbols for example).
  8163. lt_prog_compiler_pic='-DDLL_EXPORT'
  8164. case $host_os in
  8165. os2*)
  8166. lt_prog_compiler_static='$wl-static'
  8167. ;;
  8168. esac
  8169. ;;
  8170. hpux9* | hpux10* | hpux11*)
  8171. lt_prog_compiler_wl='-Wl,'
  8172. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8173. # not for PA HP-UX.
  8174. case $host_cpu in
  8175. hppa*64*|ia64*)
  8176. # +Z the default
  8177. ;;
  8178. *)
  8179. lt_prog_compiler_pic='+Z'
  8180. ;;
  8181. esac
  8182. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8183. lt_prog_compiler_static='$wl-a ${wl}archive'
  8184. ;;
  8185. irix5* | irix6* | nonstopux*)
  8186. lt_prog_compiler_wl='-Wl,'
  8187. # PIC (with -KPIC) is the default.
  8188. lt_prog_compiler_static='-non_shared'
  8189. ;;
  8190. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8191. case $cc_basename in
  8192. # old Intel for x86_64, which still supported -KPIC.
  8193. ecc*)
  8194. lt_prog_compiler_wl='-Wl,'
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-static'
  8197. ;;
  8198. # icc used to be incompatible with GCC.
  8199. # ICC 10 doesn't accept -KPIC any more.
  8200. icc* | ifort*)
  8201. lt_prog_compiler_wl='-Wl,'
  8202. lt_prog_compiler_pic='-fPIC'
  8203. lt_prog_compiler_static='-static'
  8204. ;;
  8205. # Lahey Fortran 8.1.
  8206. lf95*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. lt_prog_compiler_pic='--shared'
  8209. lt_prog_compiler_static='--static'
  8210. ;;
  8211. nagfor*)
  8212. # NAG Fortran compiler
  8213. lt_prog_compiler_wl='-Wl,-Wl,,'
  8214. lt_prog_compiler_pic='-PIC'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. ;;
  8217. tcc*)
  8218. # Fabrice Bellard et al's Tiny C Compiler
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-fPIC'
  8221. lt_prog_compiler_static='-static'
  8222. ;;
  8223. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8224. # Portland Group compilers (*not* the Pentium gcc compiler,
  8225. # which looks to be a dead project)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. lt_prog_compiler_pic='-fpic'
  8228. lt_prog_compiler_static='-Bstatic'
  8229. ;;
  8230. ccc*)
  8231. lt_prog_compiler_wl='-Wl,'
  8232. # All Alpha code is PIC.
  8233. lt_prog_compiler_static='-non_shared'
  8234. ;;
  8235. xl* | bgxl* | bgf* | mpixl*)
  8236. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8237. lt_prog_compiler_wl='-Wl,'
  8238. lt_prog_compiler_pic='-qpic'
  8239. lt_prog_compiler_static='-qstaticlink'
  8240. ;;
  8241. *)
  8242. case `$CC -V 2>&1 | sed 5q` in
  8243. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8244. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. lt_prog_compiler_wl=''
  8248. ;;
  8249. *Sun\ F* | *Sun*Fortran*)
  8250. lt_prog_compiler_pic='-KPIC'
  8251. lt_prog_compiler_static='-Bstatic'
  8252. lt_prog_compiler_wl='-Qoption ld '
  8253. ;;
  8254. *Sun\ C*)
  8255. # Sun C 5.9
  8256. lt_prog_compiler_pic='-KPIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. lt_prog_compiler_wl='-Wl,'
  8259. ;;
  8260. *Intel*\ [CF]*Compiler*)
  8261. lt_prog_compiler_wl='-Wl,'
  8262. lt_prog_compiler_pic='-fPIC'
  8263. lt_prog_compiler_static='-static'
  8264. ;;
  8265. *Portland\ Group*)
  8266. lt_prog_compiler_wl='-Wl,'
  8267. lt_prog_compiler_pic='-fpic'
  8268. lt_prog_compiler_static='-Bstatic'
  8269. ;;
  8270. esac
  8271. ;;
  8272. esac
  8273. ;;
  8274. newsos6)
  8275. lt_prog_compiler_pic='-KPIC'
  8276. lt_prog_compiler_static='-Bstatic'
  8277. ;;
  8278. *nto* | *qnx*)
  8279. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8280. # it will coredump.
  8281. lt_prog_compiler_pic='-fPIC -shared'
  8282. ;;
  8283. osf3* | osf4* | osf5*)
  8284. lt_prog_compiler_wl='-Wl,'
  8285. # All OSF/1 code is PIC.
  8286. lt_prog_compiler_static='-non_shared'
  8287. ;;
  8288. rdos*)
  8289. lt_prog_compiler_static='-non_shared'
  8290. ;;
  8291. solaris*)
  8292. lt_prog_compiler_pic='-KPIC'
  8293. lt_prog_compiler_static='-Bstatic'
  8294. case $cc_basename in
  8295. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8296. lt_prog_compiler_wl='-Qoption ld ';;
  8297. *)
  8298. lt_prog_compiler_wl='-Wl,';;
  8299. esac
  8300. ;;
  8301. sunos4*)
  8302. lt_prog_compiler_wl='-Qoption ld '
  8303. lt_prog_compiler_pic='-PIC'
  8304. lt_prog_compiler_static='-Bstatic'
  8305. ;;
  8306. sysv4 | sysv4.2uw2* | sysv4.3*)
  8307. lt_prog_compiler_wl='-Wl,'
  8308. lt_prog_compiler_pic='-KPIC'
  8309. lt_prog_compiler_static='-Bstatic'
  8310. ;;
  8311. sysv4*MP*)
  8312. if test -d /usr/nec; then
  8313. lt_prog_compiler_pic='-Kconform_pic'
  8314. lt_prog_compiler_static='-Bstatic'
  8315. fi
  8316. ;;
  8317. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8318. lt_prog_compiler_wl='-Wl,'
  8319. lt_prog_compiler_pic='-KPIC'
  8320. lt_prog_compiler_static='-Bstatic'
  8321. ;;
  8322. unicos*)
  8323. lt_prog_compiler_wl='-Wl,'
  8324. lt_prog_compiler_can_build_shared=no
  8325. ;;
  8326. uts4*)
  8327. lt_prog_compiler_pic='-pic'
  8328. lt_prog_compiler_static='-Bstatic'
  8329. ;;
  8330. *)
  8331. lt_prog_compiler_can_build_shared=no
  8332. ;;
  8333. esac
  8334. fi
  8335. case $host_os in
  8336. # For platforms that do not support PIC, -DPIC is meaningless:
  8337. *djgpp*)
  8338. lt_prog_compiler_pic=
  8339. ;;
  8340. *)
  8341. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8342. ;;
  8343. esac
  8344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8345. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8346. if test ${lt_cv_prog_compiler_pic+y}
  8347. then :
  8348. printf %s "(cached) " >&6
  8349. else $as_nop
  8350. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8351. fi
  8352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8353. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8354. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8355. #
  8356. # Check to make sure the PIC flag actually works.
  8357. #
  8358. if test -n "$lt_prog_compiler_pic"; then
  8359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8360. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8361. if test ${lt_cv_prog_compiler_pic_works+y}
  8362. then :
  8363. printf %s "(cached) " >&6
  8364. else $as_nop
  8365. lt_cv_prog_compiler_pic_works=no
  8366. ac_outfile=conftest.$ac_objext
  8367. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8368. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8369. # Insert the option either (1) after the last *FLAGS variable, or
  8370. # (2) before a word containing "conftest.", or (3) at the end.
  8371. # Note that $ac_compile itself does not contain backslashes and begins
  8372. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8373. # The option is referenced via a variable to avoid confusing sed.
  8374. lt_compile=`echo "$ac_compile" | $SED \
  8375. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8376. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8377. -e 's:$: $lt_compiler_flag:'`
  8378. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8379. (eval "$lt_compile" 2>conftest.err)
  8380. ac_status=$?
  8381. cat conftest.err >&5
  8382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. if (exit $ac_status) && test -s "$ac_outfile"; then
  8384. # The compiler can only warn and ignore the option if not recognized
  8385. # So say no if there are warnings other than the usual output.
  8386. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8387. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8388. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8389. lt_cv_prog_compiler_pic_works=yes
  8390. fi
  8391. fi
  8392. $RM conftest*
  8393. fi
  8394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8395. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8396. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8397. case $lt_prog_compiler_pic in
  8398. "" | " "*) ;;
  8399. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8400. esac
  8401. else
  8402. lt_prog_compiler_pic=
  8403. lt_prog_compiler_can_build_shared=no
  8404. fi
  8405. fi
  8406. #
  8407. # Check to make sure the static flag actually works.
  8408. #
  8409. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8411. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8412. if test ${lt_cv_prog_compiler_static_works+y}
  8413. then :
  8414. printf %s "(cached) " >&6
  8415. else $as_nop
  8416. lt_cv_prog_compiler_static_works=no
  8417. save_LDFLAGS=$LDFLAGS
  8418. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8419. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8420. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8421. # The linker can only warn and ignore the option if not recognized
  8422. # So say no if there are warnings
  8423. if test -s conftest.err; then
  8424. # Append any errors to the config.log.
  8425. cat conftest.err 1>&5
  8426. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8427. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8428. if diff conftest.exp conftest.er2 >/dev/null; then
  8429. lt_cv_prog_compiler_static_works=yes
  8430. fi
  8431. else
  8432. lt_cv_prog_compiler_static_works=yes
  8433. fi
  8434. fi
  8435. $RM -r conftest*
  8436. LDFLAGS=$save_LDFLAGS
  8437. fi
  8438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8439. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8440. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8441. :
  8442. else
  8443. lt_prog_compiler_static=
  8444. fi
  8445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8446. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8447. if test ${lt_cv_prog_compiler_c_o+y}
  8448. then :
  8449. printf %s "(cached) " >&6
  8450. else $as_nop
  8451. lt_cv_prog_compiler_c_o=no
  8452. $RM -r conftest 2>/dev/null
  8453. mkdir conftest
  8454. cd conftest
  8455. mkdir out
  8456. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8457. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8458. # Insert the option either (1) after the last *FLAGS variable, or
  8459. # (2) before a word containing "conftest.", or (3) at the end.
  8460. # Note that $ac_compile itself does not contain backslashes and begins
  8461. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8462. lt_compile=`echo "$ac_compile" | $SED \
  8463. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8464. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8465. -e 's:$: $lt_compiler_flag:'`
  8466. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8467. (eval "$lt_compile" 2>out/conftest.err)
  8468. ac_status=$?
  8469. cat out/conftest.err >&5
  8470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8472. then
  8473. # The compiler can only warn and ignore the option if not recognized
  8474. # So say no if there are warnings
  8475. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8476. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8477. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8478. lt_cv_prog_compiler_c_o=yes
  8479. fi
  8480. fi
  8481. chmod u+w . 2>&5
  8482. $RM conftest*
  8483. # SGI C++ compiler will create directory out/ii_files/ for
  8484. # template instantiation
  8485. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8486. $RM out/* && rmdir out
  8487. cd ..
  8488. $RM -r conftest
  8489. $RM conftest*
  8490. fi
  8491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8492. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8494. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8495. if test ${lt_cv_prog_compiler_c_o+y}
  8496. then :
  8497. printf %s "(cached) " >&6
  8498. else $as_nop
  8499. lt_cv_prog_compiler_c_o=no
  8500. $RM -r conftest 2>/dev/null
  8501. mkdir conftest
  8502. cd conftest
  8503. mkdir out
  8504. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8505. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8506. # Insert the option either (1) after the last *FLAGS variable, or
  8507. # (2) before a word containing "conftest.", or (3) at the end.
  8508. # Note that $ac_compile itself does not contain backslashes and begins
  8509. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8510. lt_compile=`echo "$ac_compile" | $SED \
  8511. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8512. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8513. -e 's:$: $lt_compiler_flag:'`
  8514. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8515. (eval "$lt_compile" 2>out/conftest.err)
  8516. ac_status=$?
  8517. cat out/conftest.err >&5
  8518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8519. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8520. then
  8521. # The compiler can only warn and ignore the option if not recognized
  8522. # So say no if there are warnings
  8523. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8524. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8525. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8526. lt_cv_prog_compiler_c_o=yes
  8527. fi
  8528. fi
  8529. chmod u+w . 2>&5
  8530. $RM conftest*
  8531. # SGI C++ compiler will create directory out/ii_files/ for
  8532. # template instantiation
  8533. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8534. $RM out/* && rmdir out
  8535. cd ..
  8536. $RM -r conftest
  8537. $RM conftest*
  8538. fi
  8539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8540. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8541. hard_links=nottested
  8542. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8543. # do not overwrite the value of need_locks provided by the user
  8544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8545. printf %s "checking if we can lock with hard links... " >&6; }
  8546. hard_links=yes
  8547. $RM conftest*
  8548. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8549. touch conftest.a
  8550. ln conftest.a conftest.b 2>&5 || hard_links=no
  8551. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8553. printf "%s\n" "$hard_links" >&6; }
  8554. if test no = "$hard_links"; then
  8555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8556. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8557. need_locks=warn
  8558. fi
  8559. else
  8560. need_locks=no
  8561. fi
  8562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8563. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8564. runpath_var=
  8565. allow_undefined_flag=
  8566. always_export_symbols=no
  8567. archive_cmds=
  8568. archive_expsym_cmds=
  8569. compiler_needs_object=no
  8570. enable_shared_with_static_runtimes=no
  8571. export_dynamic_flag_spec=
  8572. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8573. hardcode_automatic=no
  8574. hardcode_direct=no
  8575. hardcode_direct_absolute=no
  8576. hardcode_libdir_flag_spec=
  8577. hardcode_libdir_separator=
  8578. hardcode_minus_L=no
  8579. hardcode_shlibpath_var=unsupported
  8580. inherit_rpath=no
  8581. link_all_deplibs=unknown
  8582. module_cmds=
  8583. module_expsym_cmds=
  8584. old_archive_from_new_cmds=
  8585. old_archive_from_expsyms_cmds=
  8586. thread_safe_flag_spec=
  8587. whole_archive_flag_spec=
  8588. # include_expsyms should be a list of space-separated symbols to be *always*
  8589. # included in the symbol list
  8590. include_expsyms=
  8591. # exclude_expsyms can be an extended regexp of symbols to exclude
  8592. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8593. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8594. # as well as any symbol that contains 'd'.
  8595. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8596. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8597. # platforms (ab)use it in PIC code, but their linkers get confused if
  8598. # the symbol is explicitly referenced. Since portable code cannot
  8599. # rely on this symbol name, it's probably fine to never include it in
  8600. # preloaded symbol tables.
  8601. # Exclude shared library initialization/finalization symbols.
  8602. extract_expsyms_cmds=
  8603. case $host_os in
  8604. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8605. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8606. # When not using gcc, we currently assume that we are using
  8607. # Microsoft Visual C++ or Intel C++ Compiler.
  8608. if test yes != "$GCC"; then
  8609. with_gnu_ld=no
  8610. fi
  8611. ;;
  8612. interix*)
  8613. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8614. with_gnu_ld=yes
  8615. ;;
  8616. openbsd* | bitrig*)
  8617. with_gnu_ld=no
  8618. ;;
  8619. esac
  8620. ld_shlibs=yes
  8621. # On some targets, GNU ld is compatible enough with the native linker
  8622. # that we're better off using the native interface for both.
  8623. lt_use_gnu_ld_interface=no
  8624. if test yes = "$with_gnu_ld"; then
  8625. case $host_os in
  8626. aix*)
  8627. # The AIX port of GNU ld has always aspired to compatibility
  8628. # with the native linker. However, as the warning in the GNU ld
  8629. # block says, versions before 2.19.5* couldn't really create working
  8630. # shared libraries, regardless of the interface used.
  8631. case `$LD -v 2>&1` in
  8632. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8633. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8634. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8635. *)
  8636. lt_use_gnu_ld_interface=yes
  8637. ;;
  8638. esac
  8639. ;;
  8640. *)
  8641. lt_use_gnu_ld_interface=yes
  8642. ;;
  8643. esac
  8644. fi
  8645. if test yes = "$lt_use_gnu_ld_interface"; then
  8646. # If archive_cmds runs LD, not CC, wlarc should be empty
  8647. wlarc='$wl'
  8648. # Set some defaults for GNU ld with shared library support. These
  8649. # are reset later if shared libraries are not supported. Putting them
  8650. # here allows them to be overridden if necessary.
  8651. runpath_var=LD_RUN_PATH
  8652. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8653. export_dynamic_flag_spec='$wl--export-dynamic'
  8654. # ancient GNU ld didn't support --whole-archive et. al.
  8655. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8656. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8657. else
  8658. whole_archive_flag_spec=
  8659. fi
  8660. supports_anon_versioning=no
  8661. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8662. *GNU\ gold*) supports_anon_versioning=yes ;;
  8663. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8664. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8665. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8666. *\ 2.11.*) ;; # other 2.11 versions
  8667. *) supports_anon_versioning=yes ;;
  8668. esac
  8669. # See if GNU ld supports shared libraries.
  8670. case $host_os in
  8671. aix[3-9]*)
  8672. # On AIX/PPC, the GNU linker is very broken
  8673. if test ia64 != "$host_cpu"; then
  8674. ld_shlibs=no
  8675. cat <<_LT_EOF 1>&2
  8676. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8677. *** to be unable to reliably create shared libraries on AIX.
  8678. *** Therefore, libtool is disabling shared libraries support. If you
  8679. *** really care for shared libraries, you may want to install binutils
  8680. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8681. *** You will then need to restart the configuration process.
  8682. _LT_EOF
  8683. fi
  8684. ;;
  8685. amigaos*)
  8686. case $host_cpu in
  8687. powerpc)
  8688. # see comment about AmigaOS4 .so support
  8689. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8690. archive_expsym_cmds=''
  8691. ;;
  8692. m68k)
  8693. 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)'
  8694. hardcode_libdir_flag_spec='-L$libdir'
  8695. hardcode_minus_L=yes
  8696. ;;
  8697. esac
  8698. ;;
  8699. beos*)
  8700. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8701. allow_undefined_flag=unsupported
  8702. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8703. # support --undefined. This deserves some investigation. FIXME
  8704. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8705. else
  8706. ld_shlibs=no
  8707. fi
  8708. ;;
  8709. cygwin* | mingw* | windows* | pw32* | cegcc*)
  8710. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8711. # as there is no search path for DLLs.
  8712. hardcode_libdir_flag_spec='-L$libdir'
  8713. export_dynamic_flag_spec='$wl--export-all-symbols'
  8714. allow_undefined_flag=unsupported
  8715. always_export_symbols=no
  8716. enable_shared_with_static_runtimes=yes
  8717. 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'
  8718. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8719. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8720. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8721. # If the export-symbols file already is a .def file, use it as
  8722. # is; otherwise, prepend EXPORTS...
  8723. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8724. cp $export_symbols $output_objdir/$soname.def;
  8725. else
  8726. echo EXPORTS > $output_objdir/$soname.def;
  8727. cat $export_symbols >> $output_objdir/$soname.def;
  8728. fi~
  8729. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8730. else
  8731. ld_shlibs=no
  8732. fi
  8733. ;;
  8734. haiku*)
  8735. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8736. link_all_deplibs=yes
  8737. ;;
  8738. os2*)
  8739. hardcode_libdir_flag_spec='-L$libdir'
  8740. hardcode_minus_L=yes
  8741. allow_undefined_flag=unsupported
  8742. shrext_cmds=.dll
  8743. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8744. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8745. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8746. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8747. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8748. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8749. emximp -o $lib $output_objdir/$libname.def'
  8750. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8751. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8752. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8753. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8754. prefix_cmds="$SED"~
  8755. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8756. prefix_cmds="$prefix_cmds -e 1d";
  8757. fi~
  8758. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8759. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8760. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8761. emximp -o $lib $output_objdir/$libname.def'
  8762. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8763. enable_shared_with_static_runtimes=yes
  8764. file_list_spec='@'
  8765. ;;
  8766. interix[3-9]*)
  8767. hardcode_direct=no
  8768. hardcode_shlibpath_var=no
  8769. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8770. export_dynamic_flag_spec='$wl-E'
  8771. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8772. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8773. # default) and relocated if they conflict, which is a slow very memory
  8774. # consuming and fragmenting process. To avoid this, we pick a random,
  8775. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8776. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8777. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8778. 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'
  8779. ;;
  8780. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8781. tmp_diet=no
  8782. if test linux-dietlibc = "$host_os"; then
  8783. case $cc_basename in
  8784. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8785. esac
  8786. fi
  8787. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8788. && test no = "$tmp_diet"
  8789. then
  8790. tmp_addflag=' $pic_flag'
  8791. tmp_sharedflag='-shared'
  8792. case $cc_basename,$host_cpu in
  8793. pgcc*) # Portland Group C compiler
  8794. 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'
  8795. tmp_addflag=' $pic_flag'
  8796. ;;
  8797. pgf77* | pgf90* | pgf95* | pgfortran*)
  8798. # Portland Group f77 and f90 compilers
  8799. 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'
  8800. tmp_addflag=' $pic_flag -Mnomain' ;;
  8801. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8802. tmp_addflag=' -i_dynamic' ;;
  8803. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8804. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8805. ifc* | ifort*) # Intel Fortran compiler
  8806. tmp_addflag=' -nofor_main' ;;
  8807. lf95*) # Lahey Fortran 8.1
  8808. whole_archive_flag_spec=
  8809. tmp_sharedflag='--shared' ;;
  8810. nagfor*) # NAGFOR 5.3
  8811. tmp_sharedflag='-Wl,-shared' ;;
  8812. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8813. tmp_sharedflag='-qmkshrobj'
  8814. tmp_addflag= ;;
  8815. nvcc*) # Cuda Compiler Driver 2.2
  8816. 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'
  8817. compiler_needs_object=yes
  8818. ;;
  8819. esac
  8820. case `$CC -V 2>&1 | sed 5q` in
  8821. *Sun\ C*) # Sun C 5.9
  8822. 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'
  8823. compiler_needs_object=yes
  8824. tmp_sharedflag='-G' ;;
  8825. *Sun\ F*) # Sun Fortran 8.3
  8826. tmp_sharedflag='-G' ;;
  8827. esac
  8828. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8829. if test yes = "$supports_anon_versioning"; then
  8830. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8831. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8832. echo "local: *; };" >> $output_objdir/$libname.ver~
  8833. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8834. fi
  8835. case $cc_basename in
  8836. tcc*)
  8837. export_dynamic_flag_spec='-rdynamic'
  8838. ;;
  8839. xlf* | bgf* | bgxlf* | mpixlf*)
  8840. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8841. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8842. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8843. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8844. if test yes = "$supports_anon_versioning"; then
  8845. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8846. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8847. echo "local: *; };" >> $output_objdir/$libname.ver~
  8848. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8849. fi
  8850. ;;
  8851. esac
  8852. else
  8853. ld_shlibs=no
  8854. fi
  8855. ;;
  8856. netbsd*)
  8857. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8858. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8859. wlarc=
  8860. else
  8861. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8862. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8863. fi
  8864. ;;
  8865. solaris*)
  8866. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8867. ld_shlibs=no
  8868. cat <<_LT_EOF 1>&2
  8869. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8870. *** create shared libraries on Solaris systems. Therefore, libtool
  8871. *** is disabling shared libraries support. We urge you to upgrade GNU
  8872. *** binutils to release 2.9.1 or newer. Another option is to modify
  8873. *** your PATH or compiler configuration so that the native linker is
  8874. *** used, and then restart.
  8875. _LT_EOF
  8876. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8877. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8878. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8879. else
  8880. ld_shlibs=no
  8881. fi
  8882. ;;
  8883. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8884. case `$LD -v 2>&1` in
  8885. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8886. ld_shlibs=no
  8887. cat <<_LT_EOF 1>&2
  8888. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8889. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8890. *** is disabling shared libraries support. We urge you to upgrade GNU
  8891. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8892. *** your PATH or compiler configuration so that the native linker is
  8893. *** used, and then restart.
  8894. _LT_EOF
  8895. ;;
  8896. *)
  8897. # For security reasons, it is highly recommended that you always
  8898. # use absolute paths for naming shared libraries, and exclude the
  8899. # DT_RUNPATH tag from executables and libraries. But doing so
  8900. # requires that you compile everything twice, which is a pain.
  8901. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8902. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8903. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8904. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8905. else
  8906. ld_shlibs=no
  8907. fi
  8908. ;;
  8909. esac
  8910. ;;
  8911. sunos4*)
  8912. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8913. wlarc=
  8914. hardcode_direct=yes
  8915. hardcode_shlibpath_var=no
  8916. ;;
  8917. *)
  8918. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8919. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8920. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8921. else
  8922. ld_shlibs=no
  8923. fi
  8924. ;;
  8925. esac
  8926. if test no = "$ld_shlibs"; then
  8927. runpath_var=
  8928. hardcode_libdir_flag_spec=
  8929. export_dynamic_flag_spec=
  8930. whole_archive_flag_spec=
  8931. fi
  8932. else
  8933. # PORTME fill in a description of your system's linker (not GNU ld)
  8934. case $host_os in
  8935. aix3*)
  8936. allow_undefined_flag=unsupported
  8937. always_export_symbols=yes
  8938. 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'
  8939. # Note: this linker hardcodes the directories in LIBPATH if there
  8940. # are no directories specified by -L.
  8941. hardcode_minus_L=yes
  8942. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8943. # Neither direct hardcoding nor static linking is supported with a
  8944. # broken collect2.
  8945. hardcode_direct=unsupported
  8946. fi
  8947. ;;
  8948. aix[4-9]*)
  8949. if test ia64 = "$host_cpu"; then
  8950. # On IA64, the linker does run time linking by default, so we don't
  8951. # have to do anything special.
  8952. aix_use_runtimelinking=no
  8953. exp_sym_flag='-Bexport'
  8954. no_entry_flag=
  8955. else
  8956. # If we're using GNU nm, then we don't want the "-C" option.
  8957. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8958. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8959. # weak defined symbols like other global defined symbols, whereas
  8960. # GNU nm marks them as "W".
  8961. # While the 'weak' keyword is ignored in the Export File, we need
  8962. # it in the Import File for the 'aix-soname' feature, so we have
  8963. # to replace the "-B" option with "-P" for AIX nm.
  8964. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8965. 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'
  8966. else
  8967. 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'
  8968. fi
  8969. aix_use_runtimelinking=no
  8970. # Test if we are trying to use run time linking or normal
  8971. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8972. # have runtime linking enabled, and use it for executables.
  8973. # For shared libraries, we enable/disable runtime linking
  8974. # depending on the kind of the shared library created -
  8975. # when "with_aix_soname,aix_use_runtimelinking" is:
  8976. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8977. # "aix,yes" lib.so shared, rtl:yes, for executables
  8978. # lib.a static archive
  8979. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8980. # lib.a(lib.so.V) shared, rtl:no, for executables
  8981. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8982. # lib.a(lib.so.V) shared, rtl:no
  8983. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8984. # lib.a static archive
  8985. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8986. for ld_flag in $LDFLAGS; do
  8987. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8988. aix_use_runtimelinking=yes
  8989. break
  8990. fi
  8991. done
  8992. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8993. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8994. # so we don't have lib.a shared libs to link our executables.
  8995. # We have to force runtime linking in this case.
  8996. aix_use_runtimelinking=yes
  8997. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8998. fi
  8999. ;;
  9000. esac
  9001. exp_sym_flag='-bexport'
  9002. no_entry_flag='-bnoentry'
  9003. fi
  9004. # When large executables or shared objects are built, AIX ld can
  9005. # have problems creating the table of contents. If linking a library
  9006. # or program results in "error TOC overflow" add -mminimal-toc to
  9007. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9008. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9009. archive_cmds=''
  9010. hardcode_direct=yes
  9011. hardcode_direct_absolute=yes
  9012. hardcode_libdir_separator=':'
  9013. link_all_deplibs=yes
  9014. file_list_spec='$wl-f,'
  9015. case $with_aix_soname,$aix_use_runtimelinking in
  9016. aix,*) ;; # traditional, no import file
  9017. svr4,* | *,yes) # use import file
  9018. # The Import File defines what to hardcode.
  9019. hardcode_direct=no
  9020. hardcode_direct_absolute=no
  9021. ;;
  9022. esac
  9023. if test yes = "$GCC"; then
  9024. case $host_os in aix4.[012]|aix4.[012].*)
  9025. # We only want to do this on AIX 4.2 and lower, the check
  9026. # below for broken collect2 doesn't work under 4.3+
  9027. collect2name=`$CC -print-prog-name=collect2`
  9028. if test -f "$collect2name" &&
  9029. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9030. then
  9031. # We have reworked collect2
  9032. :
  9033. else
  9034. # We have old collect2
  9035. hardcode_direct=unsupported
  9036. # It fails to find uninstalled libraries when the uninstalled
  9037. # path is not listed in the libpath. Setting hardcode_minus_L
  9038. # to unsupported forces relinking
  9039. hardcode_minus_L=yes
  9040. hardcode_libdir_flag_spec='-L$libdir'
  9041. hardcode_libdir_separator=
  9042. fi
  9043. ;;
  9044. esac
  9045. shared_flag='-shared'
  9046. if test yes = "$aix_use_runtimelinking"; then
  9047. shared_flag="$shared_flag "'$wl-G'
  9048. fi
  9049. # Need to ensure runtime linking is disabled for the traditional
  9050. # shared library, or the linker may eventually find shared libraries
  9051. # /with/ Import File - we do not want to mix them.
  9052. shared_flag_aix='-shared'
  9053. shared_flag_svr4='-shared $wl-G'
  9054. else
  9055. # not using gcc
  9056. if test ia64 = "$host_cpu"; then
  9057. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9058. # chokes on -Wl,-G. The following line is correct:
  9059. shared_flag='-G'
  9060. else
  9061. if test yes = "$aix_use_runtimelinking"; then
  9062. shared_flag='$wl-G'
  9063. else
  9064. shared_flag='$wl-bM:SRE'
  9065. fi
  9066. shared_flag_aix='$wl-bM:SRE'
  9067. shared_flag_svr4='$wl-G'
  9068. fi
  9069. fi
  9070. export_dynamic_flag_spec='$wl-bexpall'
  9071. # It seems that -bexpall does not export symbols beginning with
  9072. # underscore (_), so it is better to generate a list of symbols to export.
  9073. always_export_symbols=yes
  9074. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9075. # Warning - without using the other runtime loading flags (-brtl),
  9076. # -berok will link without error, but may produce a broken library.
  9077. allow_undefined_flag='-berok'
  9078. # Determine the default libpath from the value encoded in an
  9079. # empty executable.
  9080. if test set = "${lt_cv_aix_libpath+set}"; then
  9081. aix_libpath=$lt_cv_aix_libpath
  9082. else
  9083. if test ${lt_cv_aix_libpath_+y}
  9084. then :
  9085. printf %s "(cached) " >&6
  9086. else $as_nop
  9087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9088. /* end confdefs.h. */
  9089. int
  9090. main (void)
  9091. {
  9092. ;
  9093. return 0;
  9094. }
  9095. _ACEOF
  9096. if ac_fn_c_try_link "$LINENO"
  9097. then :
  9098. lt_aix_libpath_sed='
  9099. /Import File Strings/,/^$/ {
  9100. /^0/ {
  9101. s/^0 *\([^ ]*\) *$/\1/
  9102. p
  9103. }
  9104. }'
  9105. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9106. # Check for a 64-bit object if we didn't find anything.
  9107. if test -z "$lt_cv_aix_libpath_"; then
  9108. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9109. fi
  9110. fi
  9111. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9112. conftest$ac_exeext conftest.$ac_ext
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=/usr/lib:/lib
  9115. fi
  9116. fi
  9117. aix_libpath=$lt_cv_aix_libpath_
  9118. fi
  9119. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9120. 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
  9121. else
  9122. if test ia64 = "$host_cpu"; then
  9123. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9124. allow_undefined_flag="-z nodefs"
  9125. 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"
  9126. else
  9127. # Determine the default libpath from the value encoded in an
  9128. # empty executable.
  9129. if test set = "${lt_cv_aix_libpath+set}"; then
  9130. aix_libpath=$lt_cv_aix_libpath
  9131. else
  9132. if test ${lt_cv_aix_libpath_+y}
  9133. then :
  9134. printf %s "(cached) " >&6
  9135. else $as_nop
  9136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9137. /* end confdefs.h. */
  9138. int
  9139. main (void)
  9140. {
  9141. ;
  9142. return 0;
  9143. }
  9144. _ACEOF
  9145. if ac_fn_c_try_link "$LINENO"
  9146. then :
  9147. lt_aix_libpath_sed='
  9148. /Import File Strings/,/^$/ {
  9149. /^0/ {
  9150. s/^0 *\([^ ]*\) *$/\1/
  9151. p
  9152. }
  9153. }'
  9154. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9155. # Check for a 64-bit object if we didn't find anything.
  9156. if test -z "$lt_cv_aix_libpath_"; then
  9157. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9158. fi
  9159. fi
  9160. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9161. conftest$ac_exeext conftest.$ac_ext
  9162. if test -z "$lt_cv_aix_libpath_"; then
  9163. lt_cv_aix_libpath_=/usr/lib:/lib
  9164. fi
  9165. fi
  9166. aix_libpath=$lt_cv_aix_libpath_
  9167. fi
  9168. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9169. # Warning - without using the other run time loading flags,
  9170. # -berok will link without error, but may produce a broken library.
  9171. no_undefined_flag=' $wl-bernotok'
  9172. allow_undefined_flag=' $wl-berok'
  9173. if test yes = "$with_gnu_ld"; then
  9174. # We only use this code for GNU lds that support --whole-archive.
  9175. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9176. else
  9177. # Exported symbols can be pulled into shared objects from archives
  9178. whole_archive_flag_spec='$convenience'
  9179. fi
  9180. archive_cmds_need_lc=yes
  9181. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9182. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9183. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9184. if test svr4 != "$with_aix_soname"; then
  9185. # This is similar to how AIX traditionally builds its shared libraries.
  9186. 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'
  9187. fi
  9188. if test aix != "$with_aix_soname"; then
  9189. 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'
  9190. else
  9191. # used by -dlpreopen to get the symbols
  9192. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9193. fi
  9194. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9195. fi
  9196. fi
  9197. ;;
  9198. amigaos*)
  9199. case $host_cpu in
  9200. powerpc)
  9201. # see comment about AmigaOS4 .so support
  9202. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9203. archive_expsym_cmds=''
  9204. ;;
  9205. m68k)
  9206. 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)'
  9207. hardcode_libdir_flag_spec='-L$libdir'
  9208. hardcode_minus_L=yes
  9209. ;;
  9210. esac
  9211. ;;
  9212. bsdi[45]*)
  9213. export_dynamic_flag_spec=-rdynamic
  9214. ;;
  9215. cygwin* | mingw* | windows* | pw32* | cegcc*)
  9216. # When not using gcc, we currently assume that we are using
  9217. # Microsoft Visual C++ or Intel C++ Compiler.
  9218. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9219. # no search path for DLLs.
  9220. case $cc_basename in
  9221. cl* | icl*)
  9222. # Native MSVC or ICC
  9223. hardcode_libdir_flag_spec=' '
  9224. allow_undefined_flag=unsupported
  9225. always_export_symbols=yes
  9226. file_list_spec='@'
  9227. # Tell ltmain to make .lib files, not .a files.
  9228. libext=lib
  9229. # Tell ltmain to make .dll files, not .so files.
  9230. shrext_cmds=.dll
  9231. # FIXME: Setting linknames here is a bad hack.
  9232. archive_cmds='$CC -Fe $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9233. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9234. cp "$export_symbols" "$output_objdir/$soname.def";
  9235. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9236. else
  9237. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9238. fi~
  9239. $CC -Fe $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9240. linknames='
  9241. # The linker will not automatically build a static lib if we build a DLL.
  9242. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9243. enable_shared_with_static_runtimes=yes
  9244. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9245. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9246. # Don't use ranlib
  9247. old_postinstall_cmds='chmod 644 $oldlib'
  9248. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9249. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9250. case $lt_outputfile in
  9251. *.exe|*.EXE) ;;
  9252. *)
  9253. lt_outputfile=$lt_outputfile.exe
  9254. lt_tool_outputfile=$lt_tool_outputfile.exe
  9255. ;;
  9256. esac~
  9257. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9258. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9259. $RM "$lt_outputfile.manifest";
  9260. fi'
  9261. ;;
  9262. *)
  9263. # Assume MSVC and ICC wrapper
  9264. hardcode_libdir_flag_spec=' '
  9265. allow_undefined_flag=unsupported
  9266. # Tell ltmain to make .lib files, not .a files.
  9267. libext=lib
  9268. # Tell ltmain to make .dll files, not .so files.
  9269. shrext_cmds=.dll
  9270. # FIXME: Setting linknames here is a bad hack.
  9271. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9272. # The linker will automatically build a .lib file if we build a DLL.
  9273. old_archive_from_new_cmds='true'
  9274. # FIXME: Should let the user specify the lib program.
  9275. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9276. enable_shared_with_static_runtimes=yes
  9277. ;;
  9278. esac
  9279. ;;
  9280. darwin* | rhapsody*)
  9281. archive_cmds_need_lc=no
  9282. hardcode_direct=no
  9283. hardcode_automatic=yes
  9284. hardcode_shlibpath_var=unsupported
  9285. if test yes = "$lt_cv_ld_force_load"; then
  9286. 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\"`'
  9287. else
  9288. whole_archive_flag_spec=''
  9289. fi
  9290. link_all_deplibs=yes
  9291. allow_undefined_flag=$_lt_dar_allow_undefined
  9292. case $cc_basename in
  9293. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9294. *) _lt_dar_can_shared=$GCC ;;
  9295. esac
  9296. if test yes = "$_lt_dar_can_shared"; then
  9297. output_verbose_link_cmd=func_echo_all
  9298. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9299. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9300. 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"
  9301. 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"
  9302. else
  9303. ld_shlibs=no
  9304. fi
  9305. ;;
  9306. dgux*)
  9307. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9308. hardcode_libdir_flag_spec='-L$libdir'
  9309. hardcode_shlibpath_var=no
  9310. ;;
  9311. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9312. # support. Future versions do this automatically, but an explicit c++rt0.o
  9313. # does not break anything, and helps significantly (at the cost of a little
  9314. # extra space).
  9315. freebsd2.2*)
  9316. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9317. hardcode_libdir_flag_spec='-R$libdir'
  9318. hardcode_direct=yes
  9319. hardcode_shlibpath_var=no
  9320. ;;
  9321. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9322. freebsd2.*)
  9323. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9324. hardcode_direct=yes
  9325. hardcode_minus_L=yes
  9326. hardcode_shlibpath_var=no
  9327. ;;
  9328. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9329. freebsd* | dragonfly* | midnightbsd*)
  9330. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9331. hardcode_libdir_flag_spec='-R$libdir'
  9332. hardcode_direct=yes
  9333. hardcode_shlibpath_var=no
  9334. ;;
  9335. hpux9*)
  9336. if test yes = "$GCC"; then
  9337. 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'
  9338. else
  9339. 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'
  9340. fi
  9341. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9342. hardcode_libdir_separator=:
  9343. hardcode_direct=yes
  9344. # hardcode_minus_L: Not really in the search PATH,
  9345. # but as the default location of the library.
  9346. hardcode_minus_L=yes
  9347. export_dynamic_flag_spec='$wl-E'
  9348. ;;
  9349. hpux10*)
  9350. if test yes,no = "$GCC,$with_gnu_ld"; then
  9351. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9352. else
  9353. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9354. fi
  9355. if test no = "$with_gnu_ld"; then
  9356. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9357. hardcode_libdir_separator=:
  9358. hardcode_direct=yes
  9359. hardcode_direct_absolute=yes
  9360. export_dynamic_flag_spec='$wl-E'
  9361. # hardcode_minus_L: Not really in the search PATH,
  9362. # but as the default location of the library.
  9363. hardcode_minus_L=yes
  9364. fi
  9365. ;;
  9366. hpux11*)
  9367. if test yes,no = "$GCC,$with_gnu_ld"; then
  9368. case $host_cpu in
  9369. hppa*64*)
  9370. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9371. ;;
  9372. ia64*)
  9373. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9374. ;;
  9375. *)
  9376. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9377. ;;
  9378. esac
  9379. else
  9380. case $host_cpu in
  9381. hppa*64*)
  9382. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9383. ;;
  9384. ia64*)
  9385. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9386. ;;
  9387. *)
  9388. # Older versions of the 11.00 compiler do not understand -b yet
  9389. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9391. printf %s "checking if $CC understands -b... " >&6; }
  9392. if test ${lt_cv_prog_compiler__b+y}
  9393. then :
  9394. printf %s "(cached) " >&6
  9395. else $as_nop
  9396. lt_cv_prog_compiler__b=no
  9397. save_LDFLAGS=$LDFLAGS
  9398. LDFLAGS="$LDFLAGS -b"
  9399. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9400. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9401. # The linker can only warn and ignore the option if not recognized
  9402. # So say no if there are warnings
  9403. if test -s conftest.err; then
  9404. # Append any errors to the config.log.
  9405. cat conftest.err 1>&5
  9406. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9407. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9408. if diff conftest.exp conftest.er2 >/dev/null; then
  9409. lt_cv_prog_compiler__b=yes
  9410. fi
  9411. else
  9412. lt_cv_prog_compiler__b=yes
  9413. fi
  9414. fi
  9415. $RM -r conftest*
  9416. LDFLAGS=$save_LDFLAGS
  9417. fi
  9418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9419. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9420. if test yes = "$lt_cv_prog_compiler__b"; then
  9421. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9422. else
  9423. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9424. fi
  9425. ;;
  9426. esac
  9427. fi
  9428. if test no = "$with_gnu_ld"; then
  9429. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9430. hardcode_libdir_separator=:
  9431. case $host_cpu in
  9432. hppa*64*|ia64*)
  9433. hardcode_direct=no
  9434. hardcode_shlibpath_var=no
  9435. ;;
  9436. *)
  9437. hardcode_direct=yes
  9438. hardcode_direct_absolute=yes
  9439. export_dynamic_flag_spec='$wl-E'
  9440. # hardcode_minus_L: Not really in the search PATH,
  9441. # but as the default location of the library.
  9442. hardcode_minus_L=yes
  9443. ;;
  9444. esac
  9445. fi
  9446. ;;
  9447. irix5* | irix6* | nonstopux*)
  9448. if test yes = "$GCC"; then
  9449. 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'
  9450. # Try to use the -exported_symbol ld option, if it does not
  9451. # work, assume that -exports_file does not work either and
  9452. # implicitly export all symbols.
  9453. # This should be the same for all languages, so no per-tag cache variable.
  9454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9455. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9456. if test ${lt_cv_irix_exported_symbol+y}
  9457. then :
  9458. printf %s "(cached) " >&6
  9459. else $as_nop
  9460. save_LDFLAGS=$LDFLAGS
  9461. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9463. /* end confdefs.h. */
  9464. int foo (void) { return 0; }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"
  9467. then :
  9468. lt_cv_irix_exported_symbol=yes
  9469. else $as_nop
  9470. lt_cv_irix_exported_symbol=no
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9473. conftest$ac_exeext conftest.$ac_ext
  9474. LDFLAGS=$save_LDFLAGS
  9475. fi
  9476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9477. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9478. if test yes = "$lt_cv_irix_exported_symbol"; then
  9479. 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'
  9480. fi
  9481. else
  9482. 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'
  9483. 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'
  9484. fi
  9485. archive_cmds_need_lc='no'
  9486. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9487. hardcode_libdir_separator=:
  9488. inherit_rpath=yes
  9489. link_all_deplibs=yes
  9490. ;;
  9491. linux*)
  9492. case $cc_basename in
  9493. tcc*)
  9494. # Fabrice Bellard et al's Tiny C Compiler
  9495. ld_shlibs=yes
  9496. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9497. ;;
  9498. esac
  9499. ;;
  9500. netbsd*)
  9501. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9502. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9503. else
  9504. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9505. fi
  9506. hardcode_libdir_flag_spec='-R$libdir'
  9507. hardcode_direct=yes
  9508. hardcode_shlibpath_var=no
  9509. ;;
  9510. newsos6)
  9511. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9512. hardcode_direct=yes
  9513. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9514. hardcode_libdir_separator=:
  9515. hardcode_shlibpath_var=no
  9516. ;;
  9517. *nto* | *qnx*)
  9518. ;;
  9519. openbsd* | bitrig*)
  9520. if test -f /usr/libexec/ld.so; then
  9521. hardcode_direct=yes
  9522. hardcode_shlibpath_var=no
  9523. hardcode_direct_absolute=yes
  9524. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9525. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9526. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9527. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9528. export_dynamic_flag_spec='$wl-E'
  9529. else
  9530. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9531. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9532. fi
  9533. else
  9534. ld_shlibs=no
  9535. fi
  9536. ;;
  9537. os2*)
  9538. hardcode_libdir_flag_spec='-L$libdir'
  9539. hardcode_minus_L=yes
  9540. allow_undefined_flag=unsupported
  9541. shrext_cmds=.dll
  9542. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9543. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9544. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9545. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9546. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9547. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9548. emximp -o $lib $output_objdir/$libname.def'
  9549. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9550. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9551. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9552. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9553. prefix_cmds="$SED"~
  9554. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9555. prefix_cmds="$prefix_cmds -e 1d";
  9556. fi~
  9557. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9558. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9559. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9560. emximp -o $lib $output_objdir/$libname.def'
  9561. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9562. enable_shared_with_static_runtimes=yes
  9563. file_list_spec='@'
  9564. ;;
  9565. osf3*)
  9566. if test yes = "$GCC"; then
  9567. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9568. 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'
  9569. else
  9570. allow_undefined_flag=' -expect_unresolved \*'
  9571. 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'
  9572. fi
  9573. archive_cmds_need_lc='no'
  9574. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9575. hardcode_libdir_separator=:
  9576. ;;
  9577. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9578. if test yes = "$GCC"; then
  9579. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9580. 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'
  9581. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9582. else
  9583. allow_undefined_flag=' -expect_unresolved \*'
  9584. 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'
  9585. 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~
  9586. $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'
  9587. # Both c and cxx compiler support -rpath directly
  9588. hardcode_libdir_flag_spec='-rpath $libdir'
  9589. fi
  9590. archive_cmds_need_lc='no'
  9591. hardcode_libdir_separator=:
  9592. ;;
  9593. solaris*)
  9594. no_undefined_flag=' -z defs'
  9595. if test yes = "$GCC"; then
  9596. wlarc='$wl'
  9597. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9598. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9599. $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'
  9600. else
  9601. case `$CC -V 2>&1` in
  9602. *"Compilers 5.0"*)
  9603. wlarc=''
  9604. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9605. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9606. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9607. ;;
  9608. *)
  9609. wlarc='$wl'
  9610. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9611. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9612. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9613. ;;
  9614. esac
  9615. fi
  9616. hardcode_libdir_flag_spec='-R$libdir'
  9617. hardcode_shlibpath_var=no
  9618. case $host_os in
  9619. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9620. *)
  9621. # The compiler driver will combine and reorder linker options,
  9622. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9623. # but is careful enough not to reorder.
  9624. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9625. if test yes = "$GCC"; then
  9626. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9627. else
  9628. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9629. fi
  9630. ;;
  9631. esac
  9632. link_all_deplibs=yes
  9633. ;;
  9634. sunos4*)
  9635. if test sequent = "$host_vendor"; then
  9636. # Use $CC to link under sequent, because it throws in some extra .o
  9637. # files that make .init and .fini sections work.
  9638. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9639. else
  9640. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9641. fi
  9642. hardcode_libdir_flag_spec='-L$libdir'
  9643. hardcode_direct=yes
  9644. hardcode_minus_L=yes
  9645. hardcode_shlibpath_var=no
  9646. ;;
  9647. sysv4)
  9648. case $host_vendor in
  9649. sni)
  9650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9651. hardcode_direct=yes # is this really true???
  9652. ;;
  9653. siemens)
  9654. ## LD is ld it makes a PLAMLIB
  9655. ## CC just makes a GrossModule.
  9656. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9657. reload_cmds='$CC -r -o $output$reload_objs'
  9658. hardcode_direct=no
  9659. ;;
  9660. motorola)
  9661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9662. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9663. ;;
  9664. esac
  9665. runpath_var='LD_RUN_PATH'
  9666. hardcode_shlibpath_var=no
  9667. ;;
  9668. sysv4.3*)
  9669. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9670. hardcode_shlibpath_var=no
  9671. export_dynamic_flag_spec='-Bexport'
  9672. ;;
  9673. sysv4*MP*)
  9674. if test -d /usr/nec; then
  9675. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9676. hardcode_shlibpath_var=no
  9677. runpath_var=LD_RUN_PATH
  9678. hardcode_runpath_var=yes
  9679. ld_shlibs=yes
  9680. fi
  9681. ;;
  9682. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9683. no_undefined_flag='$wl-z,text'
  9684. archive_cmds_need_lc=no
  9685. hardcode_shlibpath_var=no
  9686. runpath_var='LD_RUN_PATH'
  9687. if test yes = "$GCC"; then
  9688. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9689. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9690. else
  9691. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9692. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9693. fi
  9694. ;;
  9695. sysv5* | sco3.2v5* | sco5v6*)
  9696. # Note: We CANNOT use -z defs as we might desire, because we do not
  9697. # link with -lc, and that would cause any symbols used from libc to
  9698. # always be unresolved, which means just about no library would
  9699. # ever link correctly. If we're not using GNU ld we use -z text
  9700. # though, which does catch some bad symbols but isn't as heavy-handed
  9701. # as -z defs.
  9702. no_undefined_flag='$wl-z,text'
  9703. allow_undefined_flag='$wl-z,nodefs'
  9704. archive_cmds_need_lc=no
  9705. hardcode_shlibpath_var=no
  9706. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9707. hardcode_libdir_separator=':'
  9708. link_all_deplibs=yes
  9709. export_dynamic_flag_spec='$wl-Bexport'
  9710. runpath_var='LD_RUN_PATH'
  9711. if test yes = "$GCC"; then
  9712. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9713. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9714. else
  9715. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9716. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9717. fi
  9718. ;;
  9719. uts4*)
  9720. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9721. hardcode_libdir_flag_spec='-L$libdir'
  9722. hardcode_shlibpath_var=no
  9723. ;;
  9724. *)
  9725. ld_shlibs=no
  9726. ;;
  9727. esac
  9728. if test sni = "$host_vendor"; then
  9729. case $host in
  9730. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9731. export_dynamic_flag_spec='$wl-Blargedynsym'
  9732. ;;
  9733. esac
  9734. fi
  9735. fi
  9736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9737. printf "%s\n" "$ld_shlibs" >&6; }
  9738. test no = "$ld_shlibs" && can_build_shared=no
  9739. with_gnu_ld=$with_gnu_ld
  9740. #
  9741. # Do we need to explicitly link libc?
  9742. #
  9743. case "x$archive_cmds_need_lc" in
  9744. x|xyes)
  9745. # Assume -lc should be added
  9746. archive_cmds_need_lc=yes
  9747. if test yes,yes = "$GCC,$enable_shared"; then
  9748. case $archive_cmds in
  9749. *'~'*)
  9750. # FIXME: we may have to deal with multi-command sequences.
  9751. ;;
  9752. '$CC '*)
  9753. # Test whether the compiler implicitly links with -lc since on some
  9754. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9755. # to ld, don't add -lc before -lgcc.
  9756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9757. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9758. if test ${lt_cv_archive_cmds_need_lc+y}
  9759. then :
  9760. printf %s "(cached) " >&6
  9761. else $as_nop
  9762. $RM conftest*
  9763. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9764. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9765. (eval $ac_compile) 2>&5
  9766. ac_status=$?
  9767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9768. test $ac_status = 0; } 2>conftest.err; then
  9769. soname=conftest
  9770. lib=conftest
  9771. libobjs=conftest.$ac_objext
  9772. deplibs=
  9773. wl=$lt_prog_compiler_wl
  9774. pic_flag=$lt_prog_compiler_pic
  9775. compiler_flags=-v
  9776. linker_flags=-v
  9777. verstring=
  9778. output_objdir=.
  9779. libname=conftest
  9780. lt_save_allow_undefined_flag=$allow_undefined_flag
  9781. allow_undefined_flag=
  9782. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9783. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9784. ac_status=$?
  9785. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9786. test $ac_status = 0; }
  9787. then
  9788. lt_cv_archive_cmds_need_lc=no
  9789. else
  9790. lt_cv_archive_cmds_need_lc=yes
  9791. fi
  9792. allow_undefined_flag=$lt_save_allow_undefined_flag
  9793. else
  9794. cat conftest.err 1>&5
  9795. fi
  9796. $RM conftest*
  9797. fi
  9798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9799. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9800. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9801. ;;
  9802. esac
  9803. fi
  9804. ;;
  9805. esac
  9806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9807. printf %s "checking dynamic linker characteristics... " >&6; }
  9808. if test yes = "$GCC"; then
  9809. case $host_os in
  9810. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9811. *) lt_awk_arg='/^libraries:/' ;;
  9812. esac
  9813. case $host_os in
  9814. mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9815. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9816. esac
  9817. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9818. case $lt_search_path_spec in
  9819. *\;*)
  9820. # if the path contains ";" then we assume it to be the separator
  9821. # otherwise default to the standard path separator (i.e. ":") - it is
  9822. # assumed that no part of a normal pathname contains ";" but that should
  9823. # okay in the real world where ";" in dirpaths is itself problematic.
  9824. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9825. ;;
  9826. *)
  9827. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9828. ;;
  9829. esac
  9830. # Ok, now we have the path, separated by spaces, we can step through it
  9831. # and add multilib dir if necessary...
  9832. lt_tmp_lt_search_path_spec=
  9833. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9834. # ...but if some path component already ends with the multilib dir we assume
  9835. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9836. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9837. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9838. lt_multi_os_dir=
  9839. ;;
  9840. esac
  9841. for lt_sys_path in $lt_search_path_spec; do
  9842. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9843. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9844. elif test -n "$lt_multi_os_dir"; then
  9845. test -d "$lt_sys_path" && \
  9846. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9847. fi
  9848. done
  9849. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9850. BEGIN {RS = " "; FS = "/|\n";} {
  9851. lt_foo = "";
  9852. lt_count = 0;
  9853. for (lt_i = NF; lt_i > 0; lt_i--) {
  9854. if ($lt_i != "" && $lt_i != ".") {
  9855. if ($lt_i == "..") {
  9856. lt_count++;
  9857. } else {
  9858. if (lt_count == 0) {
  9859. lt_foo = "/" $lt_i lt_foo;
  9860. } else {
  9861. lt_count--;
  9862. }
  9863. }
  9864. }
  9865. }
  9866. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9867. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9868. }'`
  9869. # AWK program above erroneously prepends '/' to C:/dos/paths
  9870. # for these hosts.
  9871. case $host_os in
  9872. mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9873. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9874. esac
  9875. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9876. else
  9877. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9878. fi
  9879. library_names_spec=
  9880. libname_spec='lib$name'
  9881. soname_spec=
  9882. shrext_cmds=.so
  9883. postinstall_cmds=
  9884. postuninstall_cmds=
  9885. finish_cmds=
  9886. finish_eval=
  9887. shlibpath_var=
  9888. shlibpath_overrides_runpath=unknown
  9889. version_type=none
  9890. dynamic_linker="$host_os ld.so"
  9891. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9892. need_lib_prefix=unknown
  9893. hardcode_into_libs=no
  9894. # when you set need_version to no, make sure it does not cause -set_version
  9895. # flags to be left without arguments
  9896. need_version=unknown
  9897. case $host_os in
  9898. aix3*)
  9899. version_type=linux # correct to gnu/linux during the next big refactor
  9900. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9901. shlibpath_var=LIBPATH
  9902. # AIX 3 has no versioning support, so we append a major version to the name.
  9903. soname_spec='$libname$release$shared_ext$major'
  9904. ;;
  9905. aix[4-9]*)
  9906. version_type=linux # correct to gnu/linux during the next big refactor
  9907. need_lib_prefix=no
  9908. need_version=no
  9909. hardcode_into_libs=yes
  9910. if test ia64 = "$host_cpu"; then
  9911. # AIX 5 supports IA64
  9912. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9913. shlibpath_var=LD_LIBRARY_PATH
  9914. else
  9915. # With GCC up to 2.95.x, collect2 would create an import file
  9916. # for dependence libraries. The import file would start with
  9917. # the line '#! .'. This would cause the generated library to
  9918. # depend on '.', always an invalid library. This was fixed in
  9919. # development snapshots of GCC prior to 3.0.
  9920. case $host_os in
  9921. aix4 | aix4.[01] | aix4.[01].*)
  9922. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9923. echo ' yes '
  9924. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9925. :
  9926. else
  9927. can_build_shared=no
  9928. fi
  9929. ;;
  9930. esac
  9931. # Using Import Files as archive members, it is possible to support
  9932. # filename-based versioning of shared library archives on AIX. While
  9933. # this would work for both with and without runtime linking, it will
  9934. # prevent static linking of such archives. So we do filename-based
  9935. # shared library versioning with .so extension only, which is used
  9936. # when both runtime linking and shared linking is enabled.
  9937. # Unfortunately, runtime linking may impact performance, so we do
  9938. # not want this to be the default eventually. Also, we use the
  9939. # versioned .so libs for executables only if there is the -brtl
  9940. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9941. # To allow for filename-based versioning support, we need to create
  9942. # libNAME.so.V as an archive file, containing:
  9943. # *) an Import File, referring to the versioned filename of the
  9944. # archive as well as the shared archive member, telling the
  9945. # bitwidth (32 or 64) of that shared object, and providing the
  9946. # list of exported symbols of that shared object, eventually
  9947. # decorated with the 'weak' keyword
  9948. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9949. # it being seen by the linker.
  9950. # At run time we better use the real file rather than another symlink,
  9951. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9952. case $with_aix_soname,$aix_use_runtimelinking in
  9953. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9954. # soname into executable. Probably we can add versioning support to
  9955. # collect2, so additional links can be useful in future.
  9956. aix,yes) # traditional libtool
  9957. dynamic_linker='AIX unversionable lib.so'
  9958. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9959. # instead of lib<name>.a to let people know that these are not
  9960. # typical AIX shared libraries.
  9961. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9962. ;;
  9963. aix,no) # traditional AIX only
  9964. dynamic_linker='AIX lib.a(lib.so.V)'
  9965. # We preserve .a as extension for shared libraries through AIX4.2
  9966. # and later when we are not doing run time linking.
  9967. library_names_spec='$libname$release.a $libname.a'
  9968. soname_spec='$libname$release$shared_ext$major'
  9969. ;;
  9970. svr4,*) # full svr4 only
  9971. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9972. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9973. # We do not specify a path in Import Files, so LIBPATH fires.
  9974. shlibpath_overrides_runpath=yes
  9975. ;;
  9976. *,yes) # both, prefer svr4
  9977. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9978. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9979. # unpreferred sharedlib libNAME.a needs extra handling
  9980. 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"'
  9981. 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"'
  9982. # We do not specify a path in Import Files, so LIBPATH fires.
  9983. shlibpath_overrides_runpath=yes
  9984. ;;
  9985. *,no) # both, prefer aix
  9986. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9987. library_names_spec='$libname$release.a $libname.a'
  9988. soname_spec='$libname$release$shared_ext$major'
  9989. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9990. 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)'
  9991. 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"'
  9992. ;;
  9993. esac
  9994. shlibpath_var=LIBPATH
  9995. fi
  9996. ;;
  9997. amigaos*)
  9998. case $host_cpu in
  9999. powerpc)
  10000. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10001. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10002. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10003. ;;
  10004. m68k)
  10005. library_names_spec='$libname.ixlibrary $libname.a'
  10006. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10007. 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'
  10008. ;;
  10009. esac
  10010. ;;
  10011. beos*)
  10012. library_names_spec='$libname$shared_ext'
  10013. dynamic_linker="$host_os ld.so"
  10014. shlibpath_var=LIBRARY_PATH
  10015. ;;
  10016. bsdi[45]*)
  10017. version_type=linux # correct to gnu/linux during the next big refactor
  10018. need_version=no
  10019. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10020. soname_spec='$libname$release$shared_ext$major'
  10021. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10022. shlibpath_var=LD_LIBRARY_PATH
  10023. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10024. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10025. # the default ld.so.conf also contains /usr/contrib/lib and
  10026. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10027. # libtool to hard-code these into programs
  10028. ;;
  10029. cygwin* | mingw* | windows* | pw32* | cegcc*)
  10030. version_type=windows
  10031. shrext_cmds=.dll
  10032. need_version=no
  10033. need_lib_prefix=no
  10034. case $GCC,$cc_basename in
  10035. yes,*)
  10036. # gcc
  10037. library_names_spec='$libname.dll.a'
  10038. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10039. postinstall_cmds='base_file=`basename \$file`~
  10040. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10041. dldir=$destdir/`dirname \$dlpath`~
  10042. test -d \$dldir || mkdir -p \$dldir~
  10043. $install_prog $dir/$dlname \$dldir/$dlname~
  10044. chmod a+x \$dldir/$dlname~
  10045. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10046. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10047. fi'
  10048. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10049. dlpath=$dir/\$dldll~
  10050. $RM \$dlpath'
  10051. shlibpath_overrides_runpath=yes
  10052. case $host_os in
  10053. cygwin*)
  10054. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10055. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10056. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10057. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10058. ;;
  10059. mingw* | windows* | cegcc*)
  10060. # MinGW DLLs use traditional 'lib' prefix
  10061. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10062. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10063. ;;
  10064. pw32*)
  10065. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10066. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10067. ;;
  10068. esac
  10069. dynamic_linker='Win32 ld.exe'
  10070. ;;
  10071. *,cl* | *,icl*)
  10072. # Native MSVC or ICC
  10073. libname_spec='$name'
  10074. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10075. library_names_spec='$libname.dll.lib'
  10076. case $build_os in
  10077. mingw* | windows*)
  10078. sys_lib_search_path_spec=
  10079. lt_save_ifs=$IFS
  10080. IFS=';'
  10081. for lt_path in $LIB
  10082. do
  10083. IFS=$lt_save_ifs
  10084. # Let DOS variable expansion print the short 8.3 style file name.
  10085. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10086. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10087. done
  10088. IFS=$lt_save_ifs
  10089. # Convert to MSYS style.
  10090. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10091. ;;
  10092. cygwin*)
  10093. # Convert to unix form, then to dos form, then back to unix form
  10094. # but this time dos style (no spaces!) so that the unix form looks
  10095. # like /cygdrive/c/PROGRA~1:/cygdr...
  10096. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10097. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10098. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10099. ;;
  10100. *)
  10101. sys_lib_search_path_spec=$LIB
  10102. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10103. # It is most probably a Windows format PATH.
  10104. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10105. else
  10106. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10107. fi
  10108. # FIXME: find the short name or the path components, as spaces are
  10109. # common. (e.g. "Program Files" -> "PROGRA~1")
  10110. ;;
  10111. esac
  10112. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10113. postinstall_cmds='base_file=`basename \$file`~
  10114. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10115. dldir=$destdir/`dirname \$dlpath`~
  10116. test -d \$dldir || mkdir -p \$dldir~
  10117. $install_prog $dir/$dlname \$dldir/$dlname'
  10118. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10119. dlpath=$dir/\$dldll~
  10120. $RM \$dlpath'
  10121. shlibpath_overrides_runpath=yes
  10122. dynamic_linker='Win32 link.exe'
  10123. ;;
  10124. *)
  10125. # Assume MSVC and ICC wrapper
  10126. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10127. dynamic_linker='Win32 ld.exe'
  10128. ;;
  10129. esac
  10130. # FIXME: first we should search . and the directory the executable is in
  10131. shlibpath_var=PATH
  10132. ;;
  10133. darwin* | rhapsody*)
  10134. dynamic_linker="$host_os dyld"
  10135. version_type=darwin
  10136. need_lib_prefix=no
  10137. need_version=no
  10138. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10139. soname_spec='$libname$release$major$shared_ext'
  10140. shlibpath_overrides_runpath=yes
  10141. shlibpath_var=DYLD_LIBRARY_PATH
  10142. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10143. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10144. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10145. ;;
  10146. dgux*)
  10147. version_type=linux # correct to gnu/linux during the next big refactor
  10148. need_lib_prefix=no
  10149. need_version=no
  10150. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10151. soname_spec='$libname$release$shared_ext$major'
  10152. shlibpath_var=LD_LIBRARY_PATH
  10153. ;;
  10154. freebsd* | dragonfly* | midnightbsd*)
  10155. # DragonFly does not have aout. When/if they implement a new
  10156. # versioning mechanism, adjust this.
  10157. if test -x /usr/bin/objformat; then
  10158. objformat=`/usr/bin/objformat`
  10159. else
  10160. case $host_os in
  10161. freebsd[23].*) objformat=aout ;;
  10162. *) objformat=elf ;;
  10163. esac
  10164. fi
  10165. version_type=freebsd-$objformat
  10166. case $version_type in
  10167. freebsd-elf*)
  10168. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10169. soname_spec='$libname$release$shared_ext$major'
  10170. need_version=no
  10171. need_lib_prefix=no
  10172. ;;
  10173. freebsd-*)
  10174. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10175. need_version=yes
  10176. ;;
  10177. esac
  10178. shlibpath_var=LD_LIBRARY_PATH
  10179. case $host_os in
  10180. freebsd2.*)
  10181. shlibpath_overrides_runpath=yes
  10182. ;;
  10183. freebsd3.[01]* | freebsdelf3.[01]*)
  10184. shlibpath_overrides_runpath=yes
  10185. hardcode_into_libs=yes
  10186. ;;
  10187. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10188. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10189. shlibpath_overrides_runpath=no
  10190. hardcode_into_libs=yes
  10191. ;;
  10192. *) # from 4.6 on, and DragonFly
  10193. shlibpath_overrides_runpath=yes
  10194. hardcode_into_libs=yes
  10195. ;;
  10196. esac
  10197. ;;
  10198. haiku*)
  10199. version_type=linux # correct to gnu/linux during the next big refactor
  10200. need_lib_prefix=no
  10201. need_version=no
  10202. dynamic_linker="$host_os runtime_loader"
  10203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10204. soname_spec='$libname$release$shared_ext$major'
  10205. shlibpath_var=LIBRARY_PATH
  10206. shlibpath_overrides_runpath=no
  10207. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10208. hardcode_into_libs=yes
  10209. ;;
  10210. hpux9* | hpux10* | hpux11*)
  10211. # Give a soname corresponding to the major version so that dld.sl refuses to
  10212. # link against other versions.
  10213. version_type=sunos
  10214. need_lib_prefix=no
  10215. need_version=no
  10216. case $host_cpu in
  10217. ia64*)
  10218. shrext_cmds='.so'
  10219. hardcode_into_libs=yes
  10220. dynamic_linker="$host_os dld.so"
  10221. shlibpath_var=LD_LIBRARY_PATH
  10222. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10223. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10224. soname_spec='$libname$release$shared_ext$major'
  10225. if test 32 = "$HPUX_IA64_MODE"; then
  10226. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10227. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10228. else
  10229. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10230. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10231. fi
  10232. ;;
  10233. hppa*64*)
  10234. shrext_cmds='.sl'
  10235. hardcode_into_libs=yes
  10236. dynamic_linker="$host_os dld.sl"
  10237. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10238. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10240. soname_spec='$libname$release$shared_ext$major'
  10241. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10242. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10243. ;;
  10244. *)
  10245. shrext_cmds='.sl'
  10246. dynamic_linker="$host_os dld.sl"
  10247. shlibpath_var=SHLIB_PATH
  10248. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10249. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10250. soname_spec='$libname$release$shared_ext$major'
  10251. ;;
  10252. esac
  10253. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10254. postinstall_cmds='chmod 555 $lib'
  10255. # or fails outright, so override atomically:
  10256. install_override_mode=555
  10257. ;;
  10258. interix[3-9]*)
  10259. version_type=linux # correct to gnu/linux during the next big refactor
  10260. need_lib_prefix=no
  10261. need_version=no
  10262. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10263. soname_spec='$libname$release$shared_ext$major'
  10264. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10265. shlibpath_var=LD_LIBRARY_PATH
  10266. shlibpath_overrides_runpath=no
  10267. hardcode_into_libs=yes
  10268. ;;
  10269. irix5* | irix6* | nonstopux*)
  10270. case $host_os in
  10271. nonstopux*) version_type=nonstopux ;;
  10272. *)
  10273. if test yes = "$lt_cv_prog_gnu_ld"; then
  10274. version_type=linux # correct to gnu/linux during the next big refactor
  10275. else
  10276. version_type=irix
  10277. fi ;;
  10278. esac
  10279. need_lib_prefix=no
  10280. need_version=no
  10281. soname_spec='$libname$release$shared_ext$major'
  10282. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10283. case $host_os in
  10284. irix5* | nonstopux*)
  10285. libsuff= shlibsuff=
  10286. ;;
  10287. *)
  10288. case $LD in # libtool.m4 will add one of these switches to LD
  10289. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10290. libsuff= shlibsuff= libmagic=32-bit;;
  10291. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10292. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10293. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10294. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10295. *) libsuff= shlibsuff= libmagic=never-match;;
  10296. esac
  10297. ;;
  10298. esac
  10299. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10300. shlibpath_overrides_runpath=no
  10301. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10302. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10303. hardcode_into_libs=yes
  10304. ;;
  10305. # No shared lib support for Linux oldld, aout, or coff.
  10306. linux*oldld* | linux*aout* | linux*coff*)
  10307. dynamic_linker=no
  10308. ;;
  10309. linux*android*)
  10310. version_type=none # Android doesn't support versioned libraries.
  10311. need_lib_prefix=no
  10312. need_version=no
  10313. library_names_spec='$libname$release$shared_ext'
  10314. soname_spec='$libname$release$shared_ext'
  10315. finish_cmds=
  10316. shlibpath_var=LD_LIBRARY_PATH
  10317. shlibpath_overrides_runpath=yes
  10318. # This implies no fast_install, which is unacceptable.
  10319. # Some rework will be needed to allow for fast_install
  10320. # before this can be enabled.
  10321. hardcode_into_libs=yes
  10322. dynamic_linker='Android linker'
  10323. # Don't embed -rpath directories since the linker doesn't support them.
  10324. hardcode_libdir_flag_spec='-L$libdir'
  10325. ;;
  10326. # This must be glibc/ELF.
  10327. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10328. version_type=linux # correct to gnu/linux during the next big refactor
  10329. need_lib_prefix=no
  10330. need_version=no
  10331. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10332. soname_spec='$libname$release$shared_ext$major'
  10333. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10334. shlibpath_var=LD_LIBRARY_PATH
  10335. shlibpath_overrides_runpath=no
  10336. # Some binutils ld are patched to set DT_RUNPATH
  10337. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10338. then :
  10339. printf %s "(cached) " >&6
  10340. else $as_nop
  10341. lt_cv_shlibpath_overrides_runpath=no
  10342. save_LDFLAGS=$LDFLAGS
  10343. save_libdir=$libdir
  10344. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10345. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. int
  10349. main (void)
  10350. {
  10351. ;
  10352. return 0;
  10353. }
  10354. _ACEOF
  10355. if ac_fn_c_try_link "$LINENO"
  10356. then :
  10357. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10358. then :
  10359. lt_cv_shlibpath_overrides_runpath=yes
  10360. fi
  10361. fi
  10362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10363. conftest$ac_exeext conftest.$ac_ext
  10364. LDFLAGS=$save_LDFLAGS
  10365. libdir=$save_libdir
  10366. fi
  10367. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10368. # This implies no fast_install, which is unacceptable.
  10369. # Some rework will be needed to allow for fast_install
  10370. # before this can be enabled.
  10371. hardcode_into_libs=yes
  10372. # Add ABI-specific directories to the system library path.
  10373. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10374. # Ideally, we could use ldconfig to report *all* directores which are
  10375. # searched for libraries, however this is still not possible. Aside from not
  10376. # being certain /sbin/ldconfig is available, command
  10377. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10378. # even though it is searched at run-time. Try to do the best guess by
  10379. # appending ld.so.conf contents (and includes) to the search path.
  10380. if test -f /etc/ld.so.conf; then
  10381. 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' ' '`
  10382. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10383. fi
  10384. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10385. # powerpc, because MkLinux only supported shared libraries with the
  10386. # GNU dynamic linker. Since this was broken with cross compilers,
  10387. # most powerpc-linux boxes support dynamic linking these days and
  10388. # people can always --disable-shared, the test was removed, and we
  10389. # assume the GNU/Linux dynamic linker is in use.
  10390. dynamic_linker='GNU/Linux ld.so'
  10391. ;;
  10392. netbsd*)
  10393. version_type=sunos
  10394. need_lib_prefix=no
  10395. need_version=no
  10396. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10397. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10398. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10399. dynamic_linker='NetBSD (a.out) ld.so'
  10400. else
  10401. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10402. soname_spec='$libname$release$shared_ext$major'
  10403. dynamic_linker='NetBSD ld.elf_so'
  10404. fi
  10405. shlibpath_var=LD_LIBRARY_PATH
  10406. shlibpath_overrides_runpath=yes
  10407. hardcode_into_libs=yes
  10408. ;;
  10409. newsos6)
  10410. version_type=linux # correct to gnu/linux during the next big refactor
  10411. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10412. shlibpath_var=LD_LIBRARY_PATH
  10413. shlibpath_overrides_runpath=yes
  10414. ;;
  10415. *nto* | *qnx*)
  10416. version_type=qnx
  10417. need_lib_prefix=no
  10418. need_version=no
  10419. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10420. soname_spec='$libname$release$shared_ext$major'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. shlibpath_overrides_runpath=no
  10423. hardcode_into_libs=yes
  10424. dynamic_linker='ldqnx.so'
  10425. ;;
  10426. openbsd* | bitrig*)
  10427. version_type=sunos
  10428. sys_lib_dlsearch_path_spec=/usr/lib
  10429. need_lib_prefix=no
  10430. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10431. need_version=no
  10432. else
  10433. need_version=yes
  10434. fi
  10435. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10436. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10437. shlibpath_var=LD_LIBRARY_PATH
  10438. shlibpath_overrides_runpath=yes
  10439. ;;
  10440. os2*)
  10441. libname_spec='$name'
  10442. shrext_cmds=.dll
  10443. need_lib_prefix=no
  10444. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10445. # SDL customization: removed versioning support.
  10446. # version_type=windows
  10447. # need_version=no
  10448. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10449. # v=$($ECHO $release$versuffix | tr -d .-);
  10450. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10451. # $ECHO $n$v`$shared_ext'
  10452. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10453. library_names_spec='${libname}_dll.$libext'
  10454. dynamic_linker='OS/2 ld.exe'
  10455. shlibpath_var=BEGINLIBPATH
  10456. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10457. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10458. postinstall_cmds='base_file=`basename \$file`~
  10459. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10460. dldir=$destdir/`dirname \$dlpath`~
  10461. test -d \$dldir || mkdir -p \$dldir~
  10462. $install_prog $dir/$dlname \$dldir/$dlname~
  10463. chmod a+x \$dldir/$dlname~
  10464. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10465. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10466. fi'
  10467. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10468. dlpath=$dir/\$dldll~
  10469. $RM \$dlpath'
  10470. ;;
  10471. osf3* | osf4* | osf5*)
  10472. version_type=osf
  10473. need_lib_prefix=no
  10474. need_version=no
  10475. soname_spec='$libname$release$shared_ext$major'
  10476. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10477. shlibpath_var=LD_LIBRARY_PATH
  10478. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10479. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10480. ;;
  10481. rdos*)
  10482. dynamic_linker=no
  10483. ;;
  10484. solaris*)
  10485. version_type=linux # correct to gnu/linux during the next big refactor
  10486. need_lib_prefix=no
  10487. need_version=no
  10488. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10489. soname_spec='$libname$release$shared_ext$major'
  10490. shlibpath_var=LD_LIBRARY_PATH
  10491. shlibpath_overrides_runpath=yes
  10492. hardcode_into_libs=yes
  10493. # ldd complains unless libraries are executable
  10494. postinstall_cmds='chmod +x $lib'
  10495. ;;
  10496. sunos4*)
  10497. version_type=sunos
  10498. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10499. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10500. shlibpath_var=LD_LIBRARY_PATH
  10501. shlibpath_overrides_runpath=yes
  10502. if test yes = "$with_gnu_ld"; then
  10503. need_lib_prefix=no
  10504. fi
  10505. need_version=yes
  10506. ;;
  10507. sysv4 | sysv4.3*)
  10508. version_type=linux # correct to gnu/linux during the next big refactor
  10509. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10510. soname_spec='$libname$release$shared_ext$major'
  10511. shlibpath_var=LD_LIBRARY_PATH
  10512. case $host_vendor in
  10513. sni)
  10514. shlibpath_overrides_runpath=no
  10515. need_lib_prefix=no
  10516. runpath_var=LD_RUN_PATH
  10517. ;;
  10518. siemens)
  10519. need_lib_prefix=no
  10520. ;;
  10521. motorola)
  10522. need_lib_prefix=no
  10523. need_version=no
  10524. shlibpath_overrides_runpath=no
  10525. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10526. ;;
  10527. esac
  10528. ;;
  10529. sysv4*MP*)
  10530. if test -d /usr/nec; then
  10531. version_type=linux # correct to gnu/linux during the next big refactor
  10532. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10533. soname_spec='$libname$shared_ext.$major'
  10534. shlibpath_var=LD_LIBRARY_PATH
  10535. fi
  10536. ;;
  10537. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10538. version_type=sco
  10539. need_lib_prefix=no
  10540. need_version=no
  10541. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10542. soname_spec='$libname$release$shared_ext$major'
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. shlibpath_overrides_runpath=yes
  10545. hardcode_into_libs=yes
  10546. if test yes = "$with_gnu_ld"; then
  10547. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10548. else
  10549. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10550. case $host_os in
  10551. sco3.2v5*)
  10552. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10553. ;;
  10554. esac
  10555. fi
  10556. sys_lib_dlsearch_path_spec='/usr/lib'
  10557. ;;
  10558. tpf*)
  10559. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10560. version_type=linux # correct to gnu/linux during the next big refactor
  10561. need_lib_prefix=no
  10562. need_version=no
  10563. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10564. shlibpath_var=LD_LIBRARY_PATH
  10565. shlibpath_overrides_runpath=no
  10566. hardcode_into_libs=yes
  10567. ;;
  10568. uts4*)
  10569. version_type=linux # correct to gnu/linux during the next big refactor
  10570. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10571. soname_spec='$libname$release$shared_ext$major'
  10572. shlibpath_var=LD_LIBRARY_PATH
  10573. ;;
  10574. *)
  10575. dynamic_linker=no
  10576. ;;
  10577. esac
  10578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10579. printf "%s\n" "$dynamic_linker" >&6; }
  10580. test no = "$dynamic_linker" && can_build_shared=no
  10581. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10582. if test yes = "$GCC"; then
  10583. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10584. fi
  10585. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10586. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10587. fi
  10588. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10589. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10590. fi
  10591. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10592. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10593. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10594. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10595. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10596. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10598. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10599. hardcode_action=
  10600. if test -n "$hardcode_libdir_flag_spec" ||
  10601. test -n "$runpath_var" ||
  10602. test yes = "$hardcode_automatic"; then
  10603. # We can hardcode non-existent directories.
  10604. if test no != "$hardcode_direct" &&
  10605. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10606. # have to relink, otherwise we might link with an installed library
  10607. # when we should be linking with a yet-to-be-installed one
  10608. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10609. test no != "$hardcode_minus_L"; then
  10610. # Linking always hardcodes the temporary library directory.
  10611. hardcode_action=relink
  10612. else
  10613. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10614. hardcode_action=immediate
  10615. fi
  10616. else
  10617. # We cannot hardcode anything, or else we can only hardcode existing
  10618. # directories.
  10619. hardcode_action=unsupported
  10620. fi
  10621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10622. printf "%s\n" "$hardcode_action" >&6; }
  10623. if test relink = "$hardcode_action" ||
  10624. test yes = "$inherit_rpath"; then
  10625. # Fast installation is not supported
  10626. enable_fast_install=no
  10627. elif test yes = "$shlibpath_overrides_runpath" ||
  10628. test no = "$enable_shared"; then
  10629. # Fast installation is not necessary
  10630. enable_fast_install=needless
  10631. fi
  10632. if test yes != "$enable_dlopen"; then
  10633. enable_dlopen=unknown
  10634. enable_dlopen_self=unknown
  10635. enable_dlopen_self_static=unknown
  10636. else
  10637. lt_cv_dlopen=no
  10638. lt_cv_dlopen_libs=
  10639. case $host_os in
  10640. beos*)
  10641. lt_cv_dlopen=load_add_on
  10642. lt_cv_dlopen_libs=
  10643. lt_cv_dlopen_self=yes
  10644. ;;
  10645. mingw* | windows* | pw32* | cegcc*)
  10646. lt_cv_dlopen=LoadLibrary
  10647. lt_cv_dlopen_libs=
  10648. ;;
  10649. cygwin*)
  10650. lt_cv_dlopen=dlopen
  10651. lt_cv_dlopen_libs=
  10652. ;;
  10653. darwin*)
  10654. # if libdl is installed we need to link against it
  10655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10656. printf %s "checking for dlopen in -ldl... " >&6; }
  10657. if test ${ac_cv_lib_dl_dlopen+y}
  10658. then :
  10659. printf %s "(cached) " >&6
  10660. else $as_nop
  10661. ac_check_lib_save_LIBS=$LIBS
  10662. LIBS="-ldl $LIBS"
  10663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10664. /* end confdefs.h. */
  10665. /* Override any GCC internal prototype to avoid an error.
  10666. Use char because int might match the return type of a GCC
  10667. builtin and then its argument prototype would still apply. */
  10668. char dlopen ();
  10669. int
  10670. main (void)
  10671. {
  10672. return dlopen ();
  10673. ;
  10674. return 0;
  10675. }
  10676. _ACEOF
  10677. if ac_fn_c_try_link "$LINENO"
  10678. then :
  10679. ac_cv_lib_dl_dlopen=yes
  10680. else $as_nop
  10681. ac_cv_lib_dl_dlopen=no
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. LIBS=$ac_check_lib_save_LIBS
  10686. fi
  10687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10688. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10689. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10690. then :
  10691. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10692. else $as_nop
  10693. lt_cv_dlopen=dyld
  10694. lt_cv_dlopen_libs=
  10695. lt_cv_dlopen_self=yes
  10696. fi
  10697. ;;
  10698. tpf*)
  10699. # Don't try to run any link tests for TPF. We know it's impossible
  10700. # because TPF is a cross-compiler, and we know how we open DSOs.
  10701. lt_cv_dlopen=dlopen
  10702. lt_cv_dlopen_libs=
  10703. lt_cv_dlopen_self=no
  10704. ;;
  10705. *)
  10706. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10707. if test "x$ac_cv_func_shl_load" = xyes
  10708. then :
  10709. lt_cv_dlopen=shl_load
  10710. else $as_nop
  10711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10712. printf %s "checking for shl_load in -ldld... " >&6; }
  10713. if test ${ac_cv_lib_dld_shl_load+y}
  10714. then :
  10715. printf %s "(cached) " >&6
  10716. else $as_nop
  10717. ac_check_lib_save_LIBS=$LIBS
  10718. LIBS="-ldld $LIBS"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. /* Override any GCC internal prototype to avoid an error.
  10722. Use char because int might match the return type of a GCC
  10723. builtin and then its argument prototype would still apply. */
  10724. char shl_load ();
  10725. int
  10726. main (void)
  10727. {
  10728. return shl_load ();
  10729. ;
  10730. return 0;
  10731. }
  10732. _ACEOF
  10733. if ac_fn_c_try_link "$LINENO"
  10734. then :
  10735. ac_cv_lib_dld_shl_load=yes
  10736. else $as_nop
  10737. ac_cv_lib_dld_shl_load=no
  10738. fi
  10739. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10740. conftest$ac_exeext conftest.$ac_ext
  10741. LIBS=$ac_check_lib_save_LIBS
  10742. fi
  10743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10744. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10745. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10746. then :
  10747. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10748. else $as_nop
  10749. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10750. if test "x$ac_cv_func_dlopen" = xyes
  10751. then :
  10752. lt_cv_dlopen=dlopen
  10753. else $as_nop
  10754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10755. printf %s "checking for dlopen in -ldl... " >&6; }
  10756. if test ${ac_cv_lib_dl_dlopen+y}
  10757. then :
  10758. printf %s "(cached) " >&6
  10759. else $as_nop
  10760. ac_check_lib_save_LIBS=$LIBS
  10761. LIBS="-ldl $LIBS"
  10762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10763. /* end confdefs.h. */
  10764. /* Override any GCC internal prototype to avoid an error.
  10765. Use char because int might match the return type of a GCC
  10766. builtin and then its argument prototype would still apply. */
  10767. char dlopen ();
  10768. int
  10769. main (void)
  10770. {
  10771. return dlopen ();
  10772. ;
  10773. return 0;
  10774. }
  10775. _ACEOF
  10776. if ac_fn_c_try_link "$LINENO"
  10777. then :
  10778. ac_cv_lib_dl_dlopen=yes
  10779. else $as_nop
  10780. ac_cv_lib_dl_dlopen=no
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10783. conftest$ac_exeext conftest.$ac_ext
  10784. LIBS=$ac_check_lib_save_LIBS
  10785. fi
  10786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10787. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10788. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10789. then :
  10790. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10791. else $as_nop
  10792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10793. printf %s "checking for dlopen in -lsvld... " >&6; }
  10794. if test ${ac_cv_lib_svld_dlopen+y}
  10795. then :
  10796. printf %s "(cached) " >&6
  10797. else $as_nop
  10798. ac_check_lib_save_LIBS=$LIBS
  10799. LIBS="-lsvld $LIBS"
  10800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10801. /* end confdefs.h. */
  10802. /* Override any GCC internal prototype to avoid an error.
  10803. Use char because int might match the return type of a GCC
  10804. builtin and then its argument prototype would still apply. */
  10805. char dlopen ();
  10806. int
  10807. main (void)
  10808. {
  10809. return dlopen ();
  10810. ;
  10811. return 0;
  10812. }
  10813. _ACEOF
  10814. if ac_fn_c_try_link "$LINENO"
  10815. then :
  10816. ac_cv_lib_svld_dlopen=yes
  10817. else $as_nop
  10818. ac_cv_lib_svld_dlopen=no
  10819. fi
  10820. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10821. conftest$ac_exeext conftest.$ac_ext
  10822. LIBS=$ac_check_lib_save_LIBS
  10823. fi
  10824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10825. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10826. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10827. then :
  10828. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10829. else $as_nop
  10830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10831. printf %s "checking for dld_link in -ldld... " >&6; }
  10832. if test ${ac_cv_lib_dld_dld_link+y}
  10833. then :
  10834. printf %s "(cached) " >&6
  10835. else $as_nop
  10836. ac_check_lib_save_LIBS=$LIBS
  10837. LIBS="-ldld $LIBS"
  10838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10839. /* end confdefs.h. */
  10840. /* Override any GCC internal prototype to avoid an error.
  10841. Use char because int might match the return type of a GCC
  10842. builtin and then its argument prototype would still apply. */
  10843. char dld_link ();
  10844. int
  10845. main (void)
  10846. {
  10847. return dld_link ();
  10848. ;
  10849. return 0;
  10850. }
  10851. _ACEOF
  10852. if ac_fn_c_try_link "$LINENO"
  10853. then :
  10854. ac_cv_lib_dld_dld_link=yes
  10855. else $as_nop
  10856. ac_cv_lib_dld_dld_link=no
  10857. fi
  10858. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10859. conftest$ac_exeext conftest.$ac_ext
  10860. LIBS=$ac_check_lib_save_LIBS
  10861. fi
  10862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10863. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10864. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10865. then :
  10866. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10867. fi
  10868. fi
  10869. fi
  10870. fi
  10871. fi
  10872. fi
  10873. ;;
  10874. esac
  10875. if test no = "$lt_cv_dlopen"; then
  10876. enable_dlopen=no
  10877. else
  10878. enable_dlopen=yes
  10879. fi
  10880. case $lt_cv_dlopen in
  10881. dlopen)
  10882. save_CPPFLAGS=$CPPFLAGS
  10883. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10884. save_LDFLAGS=$LDFLAGS
  10885. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10886. save_LIBS=$LIBS
  10887. LIBS="$lt_cv_dlopen_libs $LIBS"
  10888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10889. printf %s "checking whether a program can dlopen itself... " >&6; }
  10890. if test ${lt_cv_dlopen_self+y}
  10891. then :
  10892. printf %s "(cached) " >&6
  10893. else $as_nop
  10894. if test yes = "$cross_compiling"; then :
  10895. lt_cv_dlopen_self=cross
  10896. else
  10897. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10898. lt_status=$lt_dlunknown
  10899. cat > conftest.$ac_ext <<_LT_EOF
  10900. #line $LINENO "configure"
  10901. #include "confdefs.h"
  10902. #if HAVE_DLFCN_H
  10903. #include <dlfcn.h>
  10904. #endif
  10905. #include <stdio.h>
  10906. #ifdef RTLD_GLOBAL
  10907. # define LT_DLGLOBAL RTLD_GLOBAL
  10908. #else
  10909. # ifdef DL_GLOBAL
  10910. # define LT_DLGLOBAL DL_GLOBAL
  10911. # else
  10912. # define LT_DLGLOBAL 0
  10913. # endif
  10914. #endif
  10915. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10916. find out it does not work in some platform. */
  10917. #ifndef LT_DLLAZY_OR_NOW
  10918. # ifdef RTLD_LAZY
  10919. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10920. # else
  10921. # ifdef DL_LAZY
  10922. # define LT_DLLAZY_OR_NOW DL_LAZY
  10923. # else
  10924. # ifdef RTLD_NOW
  10925. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10926. # else
  10927. # ifdef DL_NOW
  10928. # define LT_DLLAZY_OR_NOW DL_NOW
  10929. # else
  10930. # define LT_DLLAZY_OR_NOW 0
  10931. # endif
  10932. # endif
  10933. # endif
  10934. # endif
  10935. #endif
  10936. /* When -fvisibility=hidden is used, assume the code has been annotated
  10937. correspondingly for the symbols needed. */
  10938. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10939. int fnord () __attribute__((visibility("default")));
  10940. #endif
  10941. int fnord () { return 42; }
  10942. int main ()
  10943. {
  10944. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10945. int status = $lt_dlunknown;
  10946. if (self)
  10947. {
  10948. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10949. else
  10950. {
  10951. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10952. else puts (dlerror ());
  10953. }
  10954. /* dlclose (self); */
  10955. }
  10956. else
  10957. puts (dlerror ());
  10958. return status;
  10959. }
  10960. _LT_EOF
  10961. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10962. (eval $ac_link) 2>&5
  10963. ac_status=$?
  10964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10965. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10966. (./conftest; exit; ) >&5 2>/dev/null
  10967. lt_status=$?
  10968. case x$lt_status in
  10969. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10970. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10971. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10972. esac
  10973. else :
  10974. # compilation failed
  10975. lt_cv_dlopen_self=no
  10976. fi
  10977. fi
  10978. rm -fr conftest*
  10979. fi
  10980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10981. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10982. if test yes = "$lt_cv_dlopen_self"; then
  10983. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10985. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10986. if test ${lt_cv_dlopen_self_static+y}
  10987. then :
  10988. printf %s "(cached) " >&6
  10989. else $as_nop
  10990. if test yes = "$cross_compiling"; then :
  10991. lt_cv_dlopen_self_static=cross
  10992. else
  10993. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10994. lt_status=$lt_dlunknown
  10995. cat > conftest.$ac_ext <<_LT_EOF
  10996. #line $LINENO "configure"
  10997. #include "confdefs.h"
  10998. #if HAVE_DLFCN_H
  10999. #include <dlfcn.h>
  11000. #endif
  11001. #include <stdio.h>
  11002. #ifdef RTLD_GLOBAL
  11003. # define LT_DLGLOBAL RTLD_GLOBAL
  11004. #else
  11005. # ifdef DL_GLOBAL
  11006. # define LT_DLGLOBAL DL_GLOBAL
  11007. # else
  11008. # define LT_DLGLOBAL 0
  11009. # endif
  11010. #endif
  11011. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11012. find out it does not work in some platform. */
  11013. #ifndef LT_DLLAZY_OR_NOW
  11014. # ifdef RTLD_LAZY
  11015. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11016. # else
  11017. # ifdef DL_LAZY
  11018. # define LT_DLLAZY_OR_NOW DL_LAZY
  11019. # else
  11020. # ifdef RTLD_NOW
  11021. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11022. # else
  11023. # ifdef DL_NOW
  11024. # define LT_DLLAZY_OR_NOW DL_NOW
  11025. # else
  11026. # define LT_DLLAZY_OR_NOW 0
  11027. # endif
  11028. # endif
  11029. # endif
  11030. # endif
  11031. #endif
  11032. /* When -fvisibility=hidden is used, assume the code has been annotated
  11033. correspondingly for the symbols needed. */
  11034. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11035. int fnord () __attribute__((visibility("default")));
  11036. #endif
  11037. int fnord () { return 42; }
  11038. int main ()
  11039. {
  11040. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11041. int status = $lt_dlunknown;
  11042. if (self)
  11043. {
  11044. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11045. else
  11046. {
  11047. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11048. else puts (dlerror ());
  11049. }
  11050. /* dlclose (self); */
  11051. }
  11052. else
  11053. puts (dlerror ());
  11054. return status;
  11055. }
  11056. _LT_EOF
  11057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11058. (eval $ac_link) 2>&5
  11059. ac_status=$?
  11060. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11061. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11062. (./conftest; exit; ) >&5 2>/dev/null
  11063. lt_status=$?
  11064. case x$lt_status in
  11065. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11066. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11067. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11068. esac
  11069. else :
  11070. # compilation failed
  11071. lt_cv_dlopen_self_static=no
  11072. fi
  11073. fi
  11074. rm -fr conftest*
  11075. fi
  11076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11077. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11078. fi
  11079. CPPFLAGS=$save_CPPFLAGS
  11080. LDFLAGS=$save_LDFLAGS
  11081. LIBS=$save_LIBS
  11082. ;;
  11083. esac
  11084. case $lt_cv_dlopen_self in
  11085. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11086. *) enable_dlopen_self=unknown ;;
  11087. esac
  11088. case $lt_cv_dlopen_self_static in
  11089. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11090. *) enable_dlopen_self_static=unknown ;;
  11091. esac
  11092. fi
  11093. striplib=
  11094. old_striplib=
  11095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11096. printf %s "checking whether stripping libraries is possible... " >&6; }
  11097. if test -z "$STRIP"; then
  11098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11099. printf "%s\n" "no" >&6; }
  11100. else
  11101. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11102. old_striplib="$STRIP --strip-debug"
  11103. striplib="$STRIP --strip-unneeded"
  11104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11105. printf "%s\n" "yes" >&6; }
  11106. else
  11107. case $host_os in
  11108. darwin*)
  11109. # FIXME - insert some real tests, host_os isn't really good enough
  11110. striplib="$STRIP -x"
  11111. old_striplib="$STRIP -S"
  11112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11113. printf "%s\n" "yes" >&6; }
  11114. ;;
  11115. freebsd*)
  11116. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11117. old_striplib="$STRIP --strip-debug"
  11118. striplib="$STRIP --strip-unneeded"
  11119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11120. printf "%s\n" "yes" >&6; }
  11121. else
  11122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11123. printf "%s\n" "no" >&6; }
  11124. fi
  11125. ;;
  11126. *)
  11127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11128. printf "%s\n" "no" >&6; }
  11129. ;;
  11130. esac
  11131. fi
  11132. fi
  11133. # Report what library types will actually be built
  11134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11135. printf %s "checking if libtool supports shared libraries... " >&6; }
  11136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11137. printf "%s\n" "$can_build_shared" >&6; }
  11138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11139. printf %s "checking whether to build shared libraries... " >&6; }
  11140. test no = "$can_build_shared" && enable_shared=no
  11141. # On AIX, shared libraries and static libraries use the same namespace, and
  11142. # are all built from PIC.
  11143. case $host_os in
  11144. aix3*)
  11145. test yes = "$enable_shared" && enable_static=no
  11146. if test -n "$RANLIB"; then
  11147. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11148. postinstall_cmds='$RANLIB $lib'
  11149. fi
  11150. ;;
  11151. aix[4-9]*)
  11152. if test ia64 != "$host_cpu"; then
  11153. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11154. yes,aix,yes) ;; # shared object as lib.so file only
  11155. yes,svr4,*) ;; # shared object as lib.so archive member only
  11156. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11157. esac
  11158. fi
  11159. ;;
  11160. esac
  11161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11162. printf "%s\n" "$enable_shared" >&6; }
  11163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11164. printf %s "checking whether to build static libraries... " >&6; }
  11165. # Make sure either enable_shared or enable_static is yes.
  11166. test yes = "$enable_shared" || enable_static=yes
  11167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11168. printf "%s\n" "$enable_static" >&6; }
  11169. fi
  11170. ac_ext=c
  11171. ac_cpp='$CPP $CPPFLAGS'
  11172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11175. CC=$lt_save_CC
  11176. ac_config_commands="$ac_config_commands libtool"
  11177. # Only expand once:
  11178. if test -n "$ac_tool_prefix"; then
  11179. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11180. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11182. printf %s "checking for $ac_word... " >&6; }
  11183. if test ${ac_cv_prog_RC+y}
  11184. then :
  11185. printf %s "(cached) " >&6
  11186. else $as_nop
  11187. if test -n "$RC"; then
  11188. ac_cv_prog_RC="$RC" # Let the user override the test.
  11189. else
  11190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11191. for as_dir in $PATH
  11192. do
  11193. IFS=$as_save_IFS
  11194. case $as_dir in #(((
  11195. '') as_dir=./ ;;
  11196. */) ;;
  11197. *) as_dir=$as_dir/ ;;
  11198. esac
  11199. for ac_exec_ext in '' $ac_executable_extensions; do
  11200. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11201. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11203. break 2
  11204. fi
  11205. done
  11206. done
  11207. IFS=$as_save_IFS
  11208. fi
  11209. fi
  11210. RC=$ac_cv_prog_RC
  11211. if test -n "$RC"; then
  11212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11213. printf "%s\n" "$RC" >&6; }
  11214. else
  11215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11216. printf "%s\n" "no" >&6; }
  11217. fi
  11218. fi
  11219. if test -z "$ac_cv_prog_RC"; then
  11220. ac_ct_RC=$RC
  11221. # Extract the first word of "windres", so it can be a program name with args.
  11222. set dummy windres; ac_word=$2
  11223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11224. printf %s "checking for $ac_word... " >&6; }
  11225. if test ${ac_cv_prog_ac_ct_RC+y}
  11226. then :
  11227. printf %s "(cached) " >&6
  11228. else $as_nop
  11229. if test -n "$ac_ct_RC"; then
  11230. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11231. else
  11232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11233. for as_dir in $PATH
  11234. do
  11235. IFS=$as_save_IFS
  11236. case $as_dir in #(((
  11237. '') as_dir=./ ;;
  11238. */) ;;
  11239. *) as_dir=$as_dir/ ;;
  11240. esac
  11241. for ac_exec_ext in '' $ac_executable_extensions; do
  11242. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11243. ac_cv_prog_ac_ct_RC="windres"
  11244. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11245. break 2
  11246. fi
  11247. done
  11248. done
  11249. IFS=$as_save_IFS
  11250. fi
  11251. fi
  11252. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11253. if test -n "$ac_ct_RC"; then
  11254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11255. printf "%s\n" "$ac_ct_RC" >&6; }
  11256. else
  11257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11258. printf "%s\n" "no" >&6; }
  11259. fi
  11260. if test "x$ac_ct_RC" = x; then
  11261. RC=""
  11262. else
  11263. case $cross_compiling:$ac_tool_warned in
  11264. yes:)
  11265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11266. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11267. ac_tool_warned=yes ;;
  11268. esac
  11269. RC=$ac_ct_RC
  11270. fi
  11271. else
  11272. RC="$ac_cv_prog_RC"
  11273. fi
  11274. # Source file extension for RC test sources.
  11275. ac_ext=rc
  11276. # Object file extension for compiled RC test sources.
  11277. objext=o
  11278. objext_RC=$objext
  11279. # Code to be used in simple compile tests
  11280. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11281. # Code to be used in simple link tests
  11282. lt_simple_link_test_code=$lt_simple_compile_test_code
  11283. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11284. # If no C compiler was specified, use CC.
  11285. LTCC=${LTCC-"$CC"}
  11286. # If no C compiler flags were specified, use CFLAGS.
  11287. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11288. # Allow CC to be a program name with arguments.
  11289. compiler=$CC
  11290. # save warnings/boilerplate of simple test code
  11291. ac_outfile=conftest.$ac_objext
  11292. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11293. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11294. _lt_compiler_boilerplate=`cat conftest.err`
  11295. $RM conftest*
  11296. ac_outfile=conftest.$ac_objext
  11297. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11298. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11299. _lt_linker_boilerplate=`cat conftest.err`
  11300. $RM -r conftest*
  11301. # Allow CC to be a program name with arguments.
  11302. lt_save_CC=$CC
  11303. lt_save_CFLAGS=$CFLAGS
  11304. lt_save_GCC=$GCC
  11305. GCC=
  11306. CC=${RC-"windres"}
  11307. CFLAGS=
  11308. compiler=$CC
  11309. compiler_RC=$CC
  11310. func_cc_basename $compiler
  11311. cc_basename=$func_cc_basename_result
  11312. lt_cv_prog_compiler_c_o_RC=yes
  11313. if test -n "$compiler"; then
  11314. :
  11315. fi
  11316. GCC=$lt_save_GCC
  11317. ac_ext=c
  11318. ac_cpp='$CPP $CPPFLAGS'
  11319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11322. CC=$lt_save_CC
  11323. CFLAGS=$lt_save_CFLAGS
  11324. # For historical reasons, the library name redundantly includes the major
  11325. # version twice: libSDL2-2.0.so.0.
  11326. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11327. LT_RELEASE=2.0
  11328. # Increment this if there is an incompatible change - but if that happens,
  11329. # we should rename the library from SDL2 to SDL3, at which point this would
  11330. # reset to 0 anyway.
  11331. LT_MAJOR=0
  11332. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11333. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11334. LT_REVISION=$SDL_INTERFACE_AGE
  11335. for ac_prog in gawk mawk nawk awk
  11336. do
  11337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11338. set dummy $ac_prog; ac_word=$2
  11339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11340. printf %s "checking for $ac_word... " >&6; }
  11341. if test ${ac_cv_prog_AWK+y}
  11342. then :
  11343. printf %s "(cached) " >&6
  11344. else $as_nop
  11345. if test -n "$AWK"; then
  11346. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11347. else
  11348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11349. for as_dir in $PATH
  11350. do
  11351. IFS=$as_save_IFS
  11352. case $as_dir in #(((
  11353. '') as_dir=./ ;;
  11354. */) ;;
  11355. *) as_dir=$as_dir/ ;;
  11356. esac
  11357. for ac_exec_ext in '' $ac_executable_extensions; do
  11358. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11359. ac_cv_prog_AWK="$ac_prog"
  11360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11361. break 2
  11362. fi
  11363. done
  11364. done
  11365. IFS=$as_save_IFS
  11366. fi
  11367. fi
  11368. AWK=$ac_cv_prog_AWK
  11369. if test -n "$AWK"; then
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11371. printf "%s\n" "$AWK" >&6; }
  11372. else
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11374. printf "%s\n" "no" >&6; }
  11375. fi
  11376. test -n "$AWK" && break
  11377. done
  11378. ac_ext=c
  11379. ac_cpp='$CPP $CPPFLAGS'
  11380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11383. if test -n "$ac_tool_prefix"; then
  11384. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11385. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11387. printf %s "checking for $ac_word... " >&6; }
  11388. if test ${ac_cv_prog_CC+y}
  11389. then :
  11390. printf %s "(cached) " >&6
  11391. else $as_nop
  11392. if test -n "$CC"; then
  11393. ac_cv_prog_CC="$CC" # Let the user override the test.
  11394. else
  11395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11396. for as_dir in $PATH
  11397. do
  11398. IFS=$as_save_IFS
  11399. case $as_dir in #(((
  11400. '') as_dir=./ ;;
  11401. */) ;;
  11402. *) as_dir=$as_dir/ ;;
  11403. esac
  11404. for ac_exec_ext in '' $ac_executable_extensions; do
  11405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11406. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11408. break 2
  11409. fi
  11410. done
  11411. done
  11412. IFS=$as_save_IFS
  11413. fi
  11414. fi
  11415. CC=$ac_cv_prog_CC
  11416. if test -n "$CC"; then
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11418. printf "%s\n" "$CC" >&6; }
  11419. else
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11421. printf "%s\n" "no" >&6; }
  11422. fi
  11423. fi
  11424. if test -z "$ac_cv_prog_CC"; then
  11425. ac_ct_CC=$CC
  11426. # Extract the first word of "gcc", so it can be a program name with args.
  11427. set dummy gcc; ac_word=$2
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11429. printf %s "checking for $ac_word... " >&6; }
  11430. if test ${ac_cv_prog_ac_ct_CC+y}
  11431. then :
  11432. printf %s "(cached) " >&6
  11433. else $as_nop
  11434. if test -n "$ac_ct_CC"; then
  11435. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11436. else
  11437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11438. for as_dir in $PATH
  11439. do
  11440. IFS=$as_save_IFS
  11441. case $as_dir in #(((
  11442. '') as_dir=./ ;;
  11443. */) ;;
  11444. *) as_dir=$as_dir/ ;;
  11445. esac
  11446. for ac_exec_ext in '' $ac_executable_extensions; do
  11447. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11448. ac_cv_prog_ac_ct_CC="gcc"
  11449. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11450. break 2
  11451. fi
  11452. done
  11453. done
  11454. IFS=$as_save_IFS
  11455. fi
  11456. fi
  11457. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11458. if test -n "$ac_ct_CC"; then
  11459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11460. printf "%s\n" "$ac_ct_CC" >&6; }
  11461. else
  11462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11463. printf "%s\n" "no" >&6; }
  11464. fi
  11465. if test "x$ac_ct_CC" = x; then
  11466. CC=""
  11467. else
  11468. case $cross_compiling:$ac_tool_warned in
  11469. yes:)
  11470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11471. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11472. ac_tool_warned=yes ;;
  11473. esac
  11474. CC=$ac_ct_CC
  11475. fi
  11476. else
  11477. CC="$ac_cv_prog_CC"
  11478. fi
  11479. if test -z "$CC"; then
  11480. if test -n "$ac_tool_prefix"; then
  11481. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11482. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11484. printf %s "checking for $ac_word... " >&6; }
  11485. if test ${ac_cv_prog_CC+y}
  11486. then :
  11487. printf %s "(cached) " >&6
  11488. else $as_nop
  11489. if test -n "$CC"; then
  11490. ac_cv_prog_CC="$CC" # Let the user override the test.
  11491. else
  11492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11493. for as_dir in $PATH
  11494. do
  11495. IFS=$as_save_IFS
  11496. case $as_dir in #(((
  11497. '') as_dir=./ ;;
  11498. */) ;;
  11499. *) as_dir=$as_dir/ ;;
  11500. esac
  11501. for ac_exec_ext in '' $ac_executable_extensions; do
  11502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11503. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11505. break 2
  11506. fi
  11507. done
  11508. done
  11509. IFS=$as_save_IFS
  11510. fi
  11511. fi
  11512. CC=$ac_cv_prog_CC
  11513. if test -n "$CC"; then
  11514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11515. printf "%s\n" "$CC" >&6; }
  11516. else
  11517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11518. printf "%s\n" "no" >&6; }
  11519. fi
  11520. fi
  11521. fi
  11522. if test -z "$CC"; then
  11523. # Extract the first word of "cc", so it can be a program name with args.
  11524. set dummy cc; ac_word=$2
  11525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11526. printf %s "checking for $ac_word... " >&6; }
  11527. if test ${ac_cv_prog_CC+y}
  11528. then :
  11529. printf %s "(cached) " >&6
  11530. else $as_nop
  11531. if test -n "$CC"; then
  11532. ac_cv_prog_CC="$CC" # Let the user override the test.
  11533. else
  11534. ac_prog_rejected=no
  11535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11536. for as_dir in $PATH
  11537. do
  11538. IFS=$as_save_IFS
  11539. case $as_dir in #(((
  11540. '') as_dir=./ ;;
  11541. */) ;;
  11542. *) as_dir=$as_dir/ ;;
  11543. esac
  11544. for ac_exec_ext in '' $ac_executable_extensions; do
  11545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11546. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11547. ac_prog_rejected=yes
  11548. continue
  11549. fi
  11550. ac_cv_prog_CC="cc"
  11551. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11552. break 2
  11553. fi
  11554. done
  11555. done
  11556. IFS=$as_save_IFS
  11557. if test $ac_prog_rejected = yes; then
  11558. # We found a bogon in the path, so make sure we never use it.
  11559. set dummy $ac_cv_prog_CC
  11560. shift
  11561. if test $# != 0; then
  11562. # We chose a different compiler from the bogus one.
  11563. # However, it has the same basename, so the bogon will be chosen
  11564. # first if we set CC to just the basename; use the full file name.
  11565. shift
  11566. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11567. fi
  11568. fi
  11569. fi
  11570. fi
  11571. CC=$ac_cv_prog_CC
  11572. if test -n "$CC"; then
  11573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11574. printf "%s\n" "$CC" >&6; }
  11575. else
  11576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11577. printf "%s\n" "no" >&6; }
  11578. fi
  11579. fi
  11580. if test -z "$CC"; then
  11581. if test -n "$ac_tool_prefix"; then
  11582. for ac_prog in cl.exe
  11583. do
  11584. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11585. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11587. printf %s "checking for $ac_word... " >&6; }
  11588. if test ${ac_cv_prog_CC+y}
  11589. then :
  11590. printf %s "(cached) " >&6
  11591. else $as_nop
  11592. if test -n "$CC"; then
  11593. ac_cv_prog_CC="$CC" # Let the user override the test.
  11594. else
  11595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11596. for as_dir in $PATH
  11597. do
  11598. IFS=$as_save_IFS
  11599. case $as_dir in #(((
  11600. '') as_dir=./ ;;
  11601. */) ;;
  11602. *) as_dir=$as_dir/ ;;
  11603. esac
  11604. for ac_exec_ext in '' $ac_executable_extensions; do
  11605. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11606. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11608. break 2
  11609. fi
  11610. done
  11611. done
  11612. IFS=$as_save_IFS
  11613. fi
  11614. fi
  11615. CC=$ac_cv_prog_CC
  11616. if test -n "$CC"; then
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11618. printf "%s\n" "$CC" >&6; }
  11619. else
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11621. printf "%s\n" "no" >&6; }
  11622. fi
  11623. test -n "$CC" && break
  11624. done
  11625. fi
  11626. if test -z "$CC"; then
  11627. ac_ct_CC=$CC
  11628. for ac_prog in cl.exe
  11629. do
  11630. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11631. set dummy $ac_prog; ac_word=$2
  11632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11633. printf %s "checking for $ac_word... " >&6; }
  11634. if test ${ac_cv_prog_ac_ct_CC+y}
  11635. then :
  11636. printf %s "(cached) " >&6
  11637. else $as_nop
  11638. if test -n "$ac_ct_CC"; then
  11639. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11640. else
  11641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11642. for as_dir in $PATH
  11643. do
  11644. IFS=$as_save_IFS
  11645. case $as_dir in #(((
  11646. '') as_dir=./ ;;
  11647. */) ;;
  11648. *) as_dir=$as_dir/ ;;
  11649. esac
  11650. for ac_exec_ext in '' $ac_executable_extensions; do
  11651. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11652. ac_cv_prog_ac_ct_CC="$ac_prog"
  11653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11654. break 2
  11655. fi
  11656. done
  11657. done
  11658. IFS=$as_save_IFS
  11659. fi
  11660. fi
  11661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11662. if test -n "$ac_ct_CC"; then
  11663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11664. printf "%s\n" "$ac_ct_CC" >&6; }
  11665. else
  11666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11667. printf "%s\n" "no" >&6; }
  11668. fi
  11669. test -n "$ac_ct_CC" && break
  11670. done
  11671. if test "x$ac_ct_CC" = x; then
  11672. CC=""
  11673. else
  11674. case $cross_compiling:$ac_tool_warned in
  11675. yes:)
  11676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11677. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11678. ac_tool_warned=yes ;;
  11679. esac
  11680. CC=$ac_ct_CC
  11681. fi
  11682. fi
  11683. fi
  11684. if test -z "$CC"; then
  11685. if test -n "$ac_tool_prefix"; then
  11686. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11687. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11689. printf %s "checking for $ac_word... " >&6; }
  11690. if test ${ac_cv_prog_CC+y}
  11691. then :
  11692. printf %s "(cached) " >&6
  11693. else $as_nop
  11694. if test -n "$CC"; then
  11695. ac_cv_prog_CC="$CC" # Let the user override the test.
  11696. else
  11697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11698. for as_dir in $PATH
  11699. do
  11700. IFS=$as_save_IFS
  11701. case $as_dir in #(((
  11702. '') as_dir=./ ;;
  11703. */) ;;
  11704. *) as_dir=$as_dir/ ;;
  11705. esac
  11706. for ac_exec_ext in '' $ac_executable_extensions; do
  11707. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11708. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11709. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11710. break 2
  11711. fi
  11712. done
  11713. done
  11714. IFS=$as_save_IFS
  11715. fi
  11716. fi
  11717. CC=$ac_cv_prog_CC
  11718. if test -n "$CC"; then
  11719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11720. printf "%s\n" "$CC" >&6; }
  11721. else
  11722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11723. printf "%s\n" "no" >&6; }
  11724. fi
  11725. fi
  11726. if test -z "$ac_cv_prog_CC"; then
  11727. ac_ct_CC=$CC
  11728. # Extract the first word of "clang", so it can be a program name with args.
  11729. set dummy clang; ac_word=$2
  11730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11731. printf %s "checking for $ac_word... " >&6; }
  11732. if test ${ac_cv_prog_ac_ct_CC+y}
  11733. then :
  11734. printf %s "(cached) " >&6
  11735. else $as_nop
  11736. if test -n "$ac_ct_CC"; then
  11737. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11738. else
  11739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11740. for as_dir in $PATH
  11741. do
  11742. IFS=$as_save_IFS
  11743. case $as_dir in #(((
  11744. '') as_dir=./ ;;
  11745. */) ;;
  11746. *) as_dir=$as_dir/ ;;
  11747. esac
  11748. for ac_exec_ext in '' $ac_executable_extensions; do
  11749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11750. ac_cv_prog_ac_ct_CC="clang"
  11751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11752. break 2
  11753. fi
  11754. done
  11755. done
  11756. IFS=$as_save_IFS
  11757. fi
  11758. fi
  11759. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11760. if test -n "$ac_ct_CC"; then
  11761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11762. printf "%s\n" "$ac_ct_CC" >&6; }
  11763. else
  11764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11765. printf "%s\n" "no" >&6; }
  11766. fi
  11767. if test "x$ac_ct_CC" = x; then
  11768. CC=""
  11769. else
  11770. case $cross_compiling:$ac_tool_warned in
  11771. yes:)
  11772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11773. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11774. ac_tool_warned=yes ;;
  11775. esac
  11776. CC=$ac_ct_CC
  11777. fi
  11778. else
  11779. CC="$ac_cv_prog_CC"
  11780. fi
  11781. fi
  11782. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11783. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11784. as_fn_error $? "no acceptable C compiler found in \$PATH
  11785. See \`config.log' for more details" "$LINENO" 5; }
  11786. # Provide some information about the compiler.
  11787. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11788. set X $ac_compile
  11789. ac_compiler=$2
  11790. for ac_option in --version -v -V -qversion -version; do
  11791. { { ac_try="$ac_compiler $ac_option >&5"
  11792. case "(($ac_try" in
  11793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11794. *) ac_try_echo=$ac_try;;
  11795. esac
  11796. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11797. printf "%s\n" "$ac_try_echo"; } >&5
  11798. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11799. ac_status=$?
  11800. if test -s conftest.err; then
  11801. sed '10a\
  11802. ... rest of stderr output deleted ...
  11803. 10q' conftest.err >conftest.er1
  11804. cat conftest.er1 >&5
  11805. fi
  11806. rm -f conftest.er1 conftest.err
  11807. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11808. test $ac_status = 0; }
  11809. done
  11810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11811. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11812. if test ${ac_cv_c_compiler_gnu+y}
  11813. then :
  11814. printf %s "(cached) " >&6
  11815. else $as_nop
  11816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11817. /* end confdefs.h. */
  11818. int
  11819. main (void)
  11820. {
  11821. #ifndef __GNUC__
  11822. choke me
  11823. #endif
  11824. ;
  11825. return 0;
  11826. }
  11827. _ACEOF
  11828. if ac_fn_c_try_compile "$LINENO"
  11829. then :
  11830. ac_compiler_gnu=yes
  11831. else $as_nop
  11832. ac_compiler_gnu=no
  11833. fi
  11834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11835. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11836. fi
  11837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11838. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11840. if test $ac_compiler_gnu = yes; then
  11841. GCC=yes
  11842. else
  11843. GCC=
  11844. fi
  11845. ac_test_CFLAGS=${CFLAGS+y}
  11846. ac_save_CFLAGS=$CFLAGS
  11847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11848. printf %s "checking whether $CC accepts -g... " >&6; }
  11849. if test ${ac_cv_prog_cc_g+y}
  11850. then :
  11851. printf %s "(cached) " >&6
  11852. else $as_nop
  11853. ac_save_c_werror_flag=$ac_c_werror_flag
  11854. ac_c_werror_flag=yes
  11855. ac_cv_prog_cc_g=no
  11856. CFLAGS="-g"
  11857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11858. /* end confdefs.h. */
  11859. int
  11860. main (void)
  11861. {
  11862. ;
  11863. return 0;
  11864. }
  11865. _ACEOF
  11866. if ac_fn_c_try_compile "$LINENO"
  11867. then :
  11868. ac_cv_prog_cc_g=yes
  11869. else $as_nop
  11870. CFLAGS=""
  11871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11872. /* end confdefs.h. */
  11873. int
  11874. main (void)
  11875. {
  11876. ;
  11877. return 0;
  11878. }
  11879. _ACEOF
  11880. if ac_fn_c_try_compile "$LINENO"
  11881. then :
  11882. else $as_nop
  11883. ac_c_werror_flag=$ac_save_c_werror_flag
  11884. CFLAGS="-g"
  11885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11886. /* end confdefs.h. */
  11887. int
  11888. main (void)
  11889. {
  11890. ;
  11891. return 0;
  11892. }
  11893. _ACEOF
  11894. if ac_fn_c_try_compile "$LINENO"
  11895. then :
  11896. ac_cv_prog_cc_g=yes
  11897. fi
  11898. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11899. fi
  11900. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11901. fi
  11902. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11903. ac_c_werror_flag=$ac_save_c_werror_flag
  11904. fi
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11906. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11907. if test $ac_test_CFLAGS; then
  11908. CFLAGS=$ac_save_CFLAGS
  11909. elif test $ac_cv_prog_cc_g = yes; then
  11910. if test "$GCC" = yes; then
  11911. CFLAGS="-g -O2"
  11912. else
  11913. CFLAGS="-g"
  11914. fi
  11915. else
  11916. if test "$GCC" = yes; then
  11917. CFLAGS="-O2"
  11918. else
  11919. CFLAGS=
  11920. fi
  11921. fi
  11922. ac_prog_cc_stdc=no
  11923. if test x$ac_prog_cc_stdc = xno
  11924. then :
  11925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11926. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11927. if test ${ac_cv_prog_cc_c11+y}
  11928. then :
  11929. printf %s "(cached) " >&6
  11930. else $as_nop
  11931. ac_cv_prog_cc_c11=no
  11932. ac_save_CC=$CC
  11933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11934. /* end confdefs.h. */
  11935. $ac_c_conftest_c11_program
  11936. _ACEOF
  11937. for ac_arg in '' -std=gnu11
  11938. do
  11939. CC="$ac_save_CC $ac_arg"
  11940. if ac_fn_c_try_compile "$LINENO"
  11941. then :
  11942. ac_cv_prog_cc_c11=$ac_arg
  11943. fi
  11944. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11945. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11946. done
  11947. rm -f conftest.$ac_ext
  11948. CC=$ac_save_CC
  11949. fi
  11950. if test "x$ac_cv_prog_cc_c11" = xno
  11951. then :
  11952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11953. printf "%s\n" "unsupported" >&6; }
  11954. else $as_nop
  11955. if test "x$ac_cv_prog_cc_c11" = x
  11956. then :
  11957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11958. printf "%s\n" "none needed" >&6; }
  11959. else $as_nop
  11960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11961. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11962. CC="$CC $ac_cv_prog_cc_c11"
  11963. fi
  11964. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11965. ac_prog_cc_stdc=c11
  11966. fi
  11967. fi
  11968. if test x$ac_prog_cc_stdc = xno
  11969. then :
  11970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11971. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11972. if test ${ac_cv_prog_cc_c99+y}
  11973. then :
  11974. printf %s "(cached) " >&6
  11975. else $as_nop
  11976. ac_cv_prog_cc_c99=no
  11977. ac_save_CC=$CC
  11978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11979. /* end confdefs.h. */
  11980. $ac_c_conftest_c99_program
  11981. _ACEOF
  11982. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11983. do
  11984. CC="$ac_save_CC $ac_arg"
  11985. if ac_fn_c_try_compile "$LINENO"
  11986. then :
  11987. ac_cv_prog_cc_c99=$ac_arg
  11988. fi
  11989. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11990. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11991. done
  11992. rm -f conftest.$ac_ext
  11993. CC=$ac_save_CC
  11994. fi
  11995. if test "x$ac_cv_prog_cc_c99" = xno
  11996. then :
  11997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11998. printf "%s\n" "unsupported" >&6; }
  11999. else $as_nop
  12000. if test "x$ac_cv_prog_cc_c99" = x
  12001. then :
  12002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12003. printf "%s\n" "none needed" >&6; }
  12004. else $as_nop
  12005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  12006. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  12007. CC="$CC $ac_cv_prog_cc_c99"
  12008. fi
  12009. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  12010. ac_prog_cc_stdc=c99
  12011. fi
  12012. fi
  12013. if test x$ac_prog_cc_stdc = xno
  12014. then :
  12015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  12016. printf %s "checking for $CC option to enable C89 features... " >&6; }
  12017. if test ${ac_cv_prog_cc_c89+y}
  12018. then :
  12019. printf %s "(cached) " >&6
  12020. else $as_nop
  12021. ac_cv_prog_cc_c89=no
  12022. ac_save_CC=$CC
  12023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12024. /* end confdefs.h. */
  12025. $ac_c_conftest_c89_program
  12026. _ACEOF
  12027. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  12028. do
  12029. CC="$ac_save_CC $ac_arg"
  12030. if ac_fn_c_try_compile "$LINENO"
  12031. then :
  12032. ac_cv_prog_cc_c89=$ac_arg
  12033. fi
  12034. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12035. test "x$ac_cv_prog_cc_c89" != "xno" && break
  12036. done
  12037. rm -f conftest.$ac_ext
  12038. CC=$ac_save_CC
  12039. fi
  12040. if test "x$ac_cv_prog_cc_c89" = xno
  12041. then :
  12042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12043. printf "%s\n" "unsupported" >&6; }
  12044. else $as_nop
  12045. if test "x$ac_cv_prog_cc_c89" = x
  12046. then :
  12047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12048. printf "%s\n" "none needed" >&6; }
  12049. else $as_nop
  12050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12051. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12052. CC="$CC $ac_cv_prog_cc_c89"
  12053. fi
  12054. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12055. ac_prog_cc_stdc=c89
  12056. fi
  12057. fi
  12058. ac_ext=c
  12059. ac_cpp='$CPP $CPPFLAGS'
  12060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12063. ac_ext=cpp
  12064. ac_cpp='$CXXCPP $CPPFLAGS'
  12065. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12066. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12067. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12068. if test -z "$CXX"; then
  12069. if test -n "$CCC"; then
  12070. CXX=$CCC
  12071. else
  12072. if test -n "$ac_tool_prefix"; then
  12073. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12074. do
  12075. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12076. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12078. printf %s "checking for $ac_word... " >&6; }
  12079. if test ${ac_cv_prog_CXX+y}
  12080. then :
  12081. printf %s "(cached) " >&6
  12082. else $as_nop
  12083. if test -n "$CXX"; then
  12084. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12085. else
  12086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12087. for as_dir in $PATH
  12088. do
  12089. IFS=$as_save_IFS
  12090. case $as_dir in #(((
  12091. '') as_dir=./ ;;
  12092. */) ;;
  12093. *) as_dir=$as_dir/ ;;
  12094. esac
  12095. for ac_exec_ext in '' $ac_executable_extensions; do
  12096. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12097. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12098. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12099. break 2
  12100. fi
  12101. done
  12102. done
  12103. IFS=$as_save_IFS
  12104. fi
  12105. fi
  12106. CXX=$ac_cv_prog_CXX
  12107. if test -n "$CXX"; then
  12108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12109. printf "%s\n" "$CXX" >&6; }
  12110. else
  12111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12112. printf "%s\n" "no" >&6; }
  12113. fi
  12114. test -n "$CXX" && break
  12115. done
  12116. fi
  12117. if test -z "$CXX"; then
  12118. ac_ct_CXX=$CXX
  12119. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12120. do
  12121. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12122. set dummy $ac_prog; ac_word=$2
  12123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12124. printf %s "checking for $ac_word... " >&6; }
  12125. if test ${ac_cv_prog_ac_ct_CXX+y}
  12126. then :
  12127. printf %s "(cached) " >&6
  12128. else $as_nop
  12129. if test -n "$ac_ct_CXX"; then
  12130. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12131. else
  12132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12133. for as_dir in $PATH
  12134. do
  12135. IFS=$as_save_IFS
  12136. case $as_dir in #(((
  12137. '') as_dir=./ ;;
  12138. */) ;;
  12139. *) as_dir=$as_dir/ ;;
  12140. esac
  12141. for ac_exec_ext in '' $ac_executable_extensions; do
  12142. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12143. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12145. break 2
  12146. fi
  12147. done
  12148. done
  12149. IFS=$as_save_IFS
  12150. fi
  12151. fi
  12152. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12153. if test -n "$ac_ct_CXX"; then
  12154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12155. printf "%s\n" "$ac_ct_CXX" >&6; }
  12156. else
  12157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12158. printf "%s\n" "no" >&6; }
  12159. fi
  12160. test -n "$ac_ct_CXX" && break
  12161. done
  12162. if test "x$ac_ct_CXX" = x; then
  12163. CXX="g++"
  12164. else
  12165. case $cross_compiling:$ac_tool_warned in
  12166. yes:)
  12167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12168. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12169. ac_tool_warned=yes ;;
  12170. esac
  12171. CXX=$ac_ct_CXX
  12172. fi
  12173. fi
  12174. fi
  12175. fi
  12176. # Provide some information about the compiler.
  12177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12178. set X $ac_compile
  12179. ac_compiler=$2
  12180. for ac_option in --version -v -V -qversion; do
  12181. { { ac_try="$ac_compiler $ac_option >&5"
  12182. case "(($ac_try" in
  12183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12184. *) ac_try_echo=$ac_try;;
  12185. esac
  12186. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12187. printf "%s\n" "$ac_try_echo"; } >&5
  12188. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12189. ac_status=$?
  12190. if test -s conftest.err; then
  12191. sed '10a\
  12192. ... rest of stderr output deleted ...
  12193. 10q' conftest.err >conftest.er1
  12194. cat conftest.er1 >&5
  12195. fi
  12196. rm -f conftest.er1 conftest.err
  12197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12198. test $ac_status = 0; }
  12199. done
  12200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12201. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12202. if test ${ac_cv_cxx_compiler_gnu+y}
  12203. then :
  12204. printf %s "(cached) " >&6
  12205. else $as_nop
  12206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12207. /* end confdefs.h. */
  12208. int
  12209. main (void)
  12210. {
  12211. #ifndef __GNUC__
  12212. choke me
  12213. #endif
  12214. ;
  12215. return 0;
  12216. }
  12217. _ACEOF
  12218. if ac_fn_cxx_try_compile "$LINENO"
  12219. then :
  12220. ac_compiler_gnu=yes
  12221. else $as_nop
  12222. ac_compiler_gnu=no
  12223. fi
  12224. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12225. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12226. fi
  12227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12228. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12229. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12230. if test $ac_compiler_gnu = yes; then
  12231. GXX=yes
  12232. else
  12233. GXX=
  12234. fi
  12235. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12236. ac_save_CXXFLAGS=$CXXFLAGS
  12237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12238. printf %s "checking whether $CXX accepts -g... " >&6; }
  12239. if test ${ac_cv_prog_cxx_g+y}
  12240. then :
  12241. printf %s "(cached) " >&6
  12242. else $as_nop
  12243. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12244. ac_cxx_werror_flag=yes
  12245. ac_cv_prog_cxx_g=no
  12246. CXXFLAGS="-g"
  12247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12248. /* end confdefs.h. */
  12249. int
  12250. main (void)
  12251. {
  12252. ;
  12253. return 0;
  12254. }
  12255. _ACEOF
  12256. if ac_fn_cxx_try_compile "$LINENO"
  12257. then :
  12258. ac_cv_prog_cxx_g=yes
  12259. else $as_nop
  12260. CXXFLAGS=""
  12261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12262. /* end confdefs.h. */
  12263. int
  12264. main (void)
  12265. {
  12266. ;
  12267. return 0;
  12268. }
  12269. _ACEOF
  12270. if ac_fn_cxx_try_compile "$LINENO"
  12271. then :
  12272. else $as_nop
  12273. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12274. CXXFLAGS="-g"
  12275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12276. /* end confdefs.h. */
  12277. int
  12278. main (void)
  12279. {
  12280. ;
  12281. return 0;
  12282. }
  12283. _ACEOF
  12284. if ac_fn_cxx_try_compile "$LINENO"
  12285. then :
  12286. ac_cv_prog_cxx_g=yes
  12287. fi
  12288. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12289. fi
  12290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12291. fi
  12292. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12293. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12294. fi
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12296. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12297. if test $ac_test_CXXFLAGS; then
  12298. CXXFLAGS=$ac_save_CXXFLAGS
  12299. elif test $ac_cv_prog_cxx_g = yes; then
  12300. if test "$GXX" = yes; then
  12301. CXXFLAGS="-g -O2"
  12302. else
  12303. CXXFLAGS="-g"
  12304. fi
  12305. else
  12306. if test "$GXX" = yes; then
  12307. CXXFLAGS="-O2"
  12308. else
  12309. CXXFLAGS=
  12310. fi
  12311. fi
  12312. ac_prog_cxx_stdcxx=no
  12313. if test x$ac_prog_cxx_stdcxx = xno
  12314. then :
  12315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12316. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12317. if test ${ac_cv_prog_cxx_11+y}
  12318. then :
  12319. printf %s "(cached) " >&6
  12320. else $as_nop
  12321. ac_cv_prog_cxx_11=no
  12322. ac_save_CXX=$CXX
  12323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12324. /* end confdefs.h. */
  12325. $ac_cxx_conftest_cxx11_program
  12326. _ACEOF
  12327. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12328. do
  12329. CXX="$ac_save_CXX $ac_arg"
  12330. if ac_fn_cxx_try_compile "$LINENO"
  12331. then :
  12332. ac_cv_prog_cxx_cxx11=$ac_arg
  12333. fi
  12334. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12335. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12336. done
  12337. rm -f conftest.$ac_ext
  12338. CXX=$ac_save_CXX
  12339. fi
  12340. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12341. then :
  12342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12343. printf "%s\n" "unsupported" >&6; }
  12344. else $as_nop
  12345. if test "x$ac_cv_prog_cxx_cxx11" = x
  12346. then :
  12347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12348. printf "%s\n" "none needed" >&6; }
  12349. else $as_nop
  12350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12351. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12352. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12353. fi
  12354. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12355. ac_prog_cxx_stdcxx=cxx11
  12356. fi
  12357. fi
  12358. if test x$ac_prog_cxx_stdcxx = xno
  12359. then :
  12360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12361. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12362. if test ${ac_cv_prog_cxx_98+y}
  12363. then :
  12364. printf %s "(cached) " >&6
  12365. else $as_nop
  12366. ac_cv_prog_cxx_98=no
  12367. ac_save_CXX=$CXX
  12368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12369. /* end confdefs.h. */
  12370. $ac_cxx_conftest_cxx98_program
  12371. _ACEOF
  12372. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12373. do
  12374. CXX="$ac_save_CXX $ac_arg"
  12375. if ac_fn_cxx_try_compile "$LINENO"
  12376. then :
  12377. ac_cv_prog_cxx_cxx98=$ac_arg
  12378. fi
  12379. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12380. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12381. done
  12382. rm -f conftest.$ac_ext
  12383. CXX=$ac_save_CXX
  12384. fi
  12385. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12386. then :
  12387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12388. printf "%s\n" "unsupported" >&6; }
  12389. else $as_nop
  12390. if test "x$ac_cv_prog_cxx_cxx98" = x
  12391. then :
  12392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12393. printf "%s\n" "none needed" >&6; }
  12394. else $as_nop
  12395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12396. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12397. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12398. fi
  12399. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12400. ac_prog_cxx_stdcxx=cxx98
  12401. fi
  12402. fi
  12403. ac_ext=c
  12404. ac_cpp='$CPP $CPPFLAGS'
  12405. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12406. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12407. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12408. func_stripname_cnf ()
  12409. {
  12410. case $2 in
  12411. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12412. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12413. esac
  12414. } # func_stripname_cnf
  12415. if test -n "$CXX" && ( test no != "$CXX" &&
  12416. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12417. (test g++ != "$CXX"))); then
  12418. ac_ext=cpp
  12419. ac_cpp='$CXXCPP $CPPFLAGS'
  12420. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12421. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12422. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12424. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12425. if test -z "$CXXCPP"; then
  12426. if test ${ac_cv_prog_CXXCPP+y}
  12427. then :
  12428. printf %s "(cached) " >&6
  12429. else $as_nop
  12430. # Double quotes because $CXX needs to be expanded
  12431. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12432. do
  12433. ac_preproc_ok=false
  12434. for ac_cxx_preproc_warn_flag in '' yes
  12435. do
  12436. # Use a header file that comes with gcc, so configuring glibc
  12437. # with a fresh cross-compiler works.
  12438. # On the NeXT, cc -E runs the code through the compiler's parser,
  12439. # not just through cpp. "Syntax error" is here to catch this case.
  12440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12441. /* end confdefs.h. */
  12442. #include <limits.h>
  12443. Syntax error
  12444. _ACEOF
  12445. if ac_fn_cxx_try_cpp "$LINENO"
  12446. then :
  12447. else $as_nop
  12448. # Broken: fails on valid input.
  12449. continue
  12450. fi
  12451. rm -f conftest.err conftest.i conftest.$ac_ext
  12452. # OK, works on sane cases. Now check whether nonexistent headers
  12453. # can be detected and how.
  12454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12455. /* end confdefs.h. */
  12456. #include <ac_nonexistent.h>
  12457. _ACEOF
  12458. if ac_fn_cxx_try_cpp "$LINENO"
  12459. then :
  12460. # Broken: success on invalid input.
  12461. continue
  12462. else $as_nop
  12463. # Passes both tests.
  12464. ac_preproc_ok=:
  12465. break
  12466. fi
  12467. rm -f conftest.err conftest.i conftest.$ac_ext
  12468. done
  12469. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12470. rm -f conftest.i conftest.err conftest.$ac_ext
  12471. if $ac_preproc_ok
  12472. then :
  12473. break
  12474. fi
  12475. done
  12476. ac_cv_prog_CXXCPP=$CXXCPP
  12477. fi
  12478. CXXCPP=$ac_cv_prog_CXXCPP
  12479. else
  12480. ac_cv_prog_CXXCPP=$CXXCPP
  12481. fi
  12482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12483. printf "%s\n" "$CXXCPP" >&6; }
  12484. ac_preproc_ok=false
  12485. for ac_cxx_preproc_warn_flag in '' yes
  12486. do
  12487. # Use a header file that comes with gcc, so configuring glibc
  12488. # with a fresh cross-compiler works.
  12489. # On the NeXT, cc -E runs the code through the compiler's parser,
  12490. # not just through cpp. "Syntax error" is here to catch this case.
  12491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12492. /* end confdefs.h. */
  12493. #include <limits.h>
  12494. Syntax error
  12495. _ACEOF
  12496. if ac_fn_cxx_try_cpp "$LINENO"
  12497. then :
  12498. else $as_nop
  12499. # Broken: fails on valid input.
  12500. continue
  12501. fi
  12502. rm -f conftest.err conftest.i conftest.$ac_ext
  12503. # OK, works on sane cases. Now check whether nonexistent headers
  12504. # can be detected and how.
  12505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12506. /* end confdefs.h. */
  12507. #include <ac_nonexistent.h>
  12508. _ACEOF
  12509. if ac_fn_cxx_try_cpp "$LINENO"
  12510. then :
  12511. # Broken: success on invalid input.
  12512. continue
  12513. else $as_nop
  12514. # Passes both tests.
  12515. ac_preproc_ok=:
  12516. break
  12517. fi
  12518. rm -f conftest.err conftest.i conftest.$ac_ext
  12519. done
  12520. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12521. rm -f conftest.i conftest.err conftest.$ac_ext
  12522. if $ac_preproc_ok
  12523. then :
  12524. else $as_nop
  12525. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12526. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12527. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12528. See \`config.log' for more details" "$LINENO" 5; }
  12529. fi
  12530. ac_ext=c
  12531. ac_cpp='$CPP $CPPFLAGS'
  12532. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12533. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12534. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12535. else
  12536. _lt_caught_CXX_error=yes
  12537. fi
  12538. ac_ext=cpp
  12539. ac_cpp='$CXXCPP $CPPFLAGS'
  12540. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12541. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12542. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12543. archive_cmds_need_lc_CXX=no
  12544. allow_undefined_flag_CXX=
  12545. always_export_symbols_CXX=no
  12546. archive_expsym_cmds_CXX=
  12547. compiler_needs_object_CXX=no
  12548. export_dynamic_flag_spec_CXX=
  12549. hardcode_direct_CXX=no
  12550. hardcode_direct_absolute_CXX=no
  12551. hardcode_libdir_flag_spec_CXX=
  12552. hardcode_libdir_separator_CXX=
  12553. hardcode_minus_L_CXX=no
  12554. hardcode_shlibpath_var_CXX=unsupported
  12555. hardcode_automatic_CXX=no
  12556. inherit_rpath_CXX=no
  12557. module_cmds_CXX=
  12558. module_expsym_cmds_CXX=
  12559. link_all_deplibs_CXX=unknown
  12560. old_archive_cmds_CXX=$old_archive_cmds
  12561. reload_flag_CXX=$reload_flag
  12562. reload_cmds_CXX=$reload_cmds
  12563. no_undefined_flag_CXX=
  12564. whole_archive_flag_spec_CXX=
  12565. enable_shared_with_static_runtimes_CXX=no
  12566. # Source file extension for C++ test sources.
  12567. ac_ext=cpp
  12568. # Object file extension for compiled C++ test sources.
  12569. objext=o
  12570. objext_CXX=$objext
  12571. # No sense in running all these tests if we already determined that
  12572. # the CXX compiler isn't working. Some variables (like enable_shared)
  12573. # are currently assumed to apply to all compilers on this platform,
  12574. # and will be corrupted by setting them based on a non-working compiler.
  12575. if test yes != "$_lt_caught_CXX_error"; then
  12576. # Code to be used in simple compile tests
  12577. lt_simple_compile_test_code="int some_variable = 0;"
  12578. # Code to be used in simple link tests
  12579. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12580. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12581. # If no C compiler was specified, use CC.
  12582. LTCC=${LTCC-"$CC"}
  12583. # If no C compiler flags were specified, use CFLAGS.
  12584. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12585. # Allow CC to be a program name with arguments.
  12586. compiler=$CC
  12587. # save warnings/boilerplate of simple test code
  12588. ac_outfile=conftest.$ac_objext
  12589. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12590. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12591. _lt_compiler_boilerplate=`cat conftest.err`
  12592. $RM conftest*
  12593. ac_outfile=conftest.$ac_objext
  12594. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12595. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12596. _lt_linker_boilerplate=`cat conftest.err`
  12597. $RM -r conftest*
  12598. # Allow CC to be a program name with arguments.
  12599. lt_save_CC=$CC
  12600. lt_save_CFLAGS=$CFLAGS
  12601. lt_save_LD=$LD
  12602. lt_save_GCC=$GCC
  12603. GCC=$GXX
  12604. lt_save_with_gnu_ld=$with_gnu_ld
  12605. lt_save_path_LD=$lt_cv_path_LD
  12606. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12607. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12608. else
  12609. $as_unset lt_cv_prog_gnu_ld
  12610. fi
  12611. if test -n "${lt_cv_path_LDCXX+set}"; then
  12612. lt_cv_path_LD=$lt_cv_path_LDCXX
  12613. else
  12614. $as_unset lt_cv_path_LD
  12615. fi
  12616. test -z "${LDCXX+set}" || LD=$LDCXX
  12617. CC=${CXX-"c++"}
  12618. CFLAGS=$CXXFLAGS
  12619. compiler=$CC
  12620. compiler_CXX=$CC
  12621. func_cc_basename $compiler
  12622. cc_basename=$func_cc_basename_result
  12623. if test -n "$compiler"; then
  12624. # We don't want -fno-exception when compiling C++ code, so set the
  12625. # no_builtin_flag separately
  12626. if test yes = "$GXX"; then
  12627. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12628. else
  12629. lt_prog_compiler_no_builtin_flag_CXX=
  12630. fi
  12631. if test yes = "$GXX"; then
  12632. # Set up default GNU C++ configuration
  12633. # Check whether --with-gnu-ld was given.
  12634. if test ${with_gnu_ld+y}
  12635. then :
  12636. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12637. else $as_nop
  12638. with_gnu_ld=no
  12639. fi
  12640. ac_prog=ld
  12641. if test yes = "$GCC"; then
  12642. # Check if gcc -print-prog-name=ld gives a path.
  12643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12644. printf %s "checking for ld used by $CC... " >&6; }
  12645. case $host in
  12646. *-*-mingw* | *-*-windows*)
  12647. # gcc leaves a trailing carriage return, which upsets mingw
  12648. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12649. *)
  12650. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12651. esac
  12652. case $ac_prog in
  12653. # Accept absolute paths.
  12654. [\\/]* | ?:[\\/]*)
  12655. re_direlt='/[^/][^/]*/\.\./'
  12656. # Canonicalize the pathname of ld
  12657. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12658. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12659. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12660. done
  12661. test -z "$LD" && LD=$ac_prog
  12662. ;;
  12663. "")
  12664. # If it fails, then pretend we aren't using GCC.
  12665. ac_prog=ld
  12666. ;;
  12667. *)
  12668. # If it is relative, then search for the first ld in PATH.
  12669. with_gnu_ld=unknown
  12670. ;;
  12671. esac
  12672. elif test yes = "$with_gnu_ld"; then
  12673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12674. printf %s "checking for GNU ld... " >&6; }
  12675. else
  12676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12677. printf %s "checking for non-GNU ld... " >&6; }
  12678. fi
  12679. if test ${lt_cv_path_LD+y}
  12680. then :
  12681. printf %s "(cached) " >&6
  12682. else $as_nop
  12683. if test -z "$LD"; then
  12684. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12685. for ac_dir in $PATH; do
  12686. IFS=$lt_save_ifs
  12687. test -z "$ac_dir" && ac_dir=.
  12688. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12689. lt_cv_path_LD=$ac_dir/$ac_prog
  12690. # Check to see if the program is GNU ld. I'd rather use --version,
  12691. # but apparently some variants of GNU ld only accept -v.
  12692. # Break only if it was the GNU/non-GNU ld that we prefer.
  12693. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12694. *GNU* | *'with BFD'*)
  12695. test no != "$with_gnu_ld" && break
  12696. ;;
  12697. *)
  12698. test yes != "$with_gnu_ld" && break
  12699. ;;
  12700. esac
  12701. fi
  12702. done
  12703. IFS=$lt_save_ifs
  12704. else
  12705. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12706. fi
  12707. fi
  12708. LD=$lt_cv_path_LD
  12709. if test -n "$LD"; then
  12710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12711. printf "%s\n" "$LD" >&6; }
  12712. else
  12713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12714. printf "%s\n" "no" >&6; }
  12715. fi
  12716. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12718. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12719. if test ${lt_cv_prog_gnu_ld+y}
  12720. then :
  12721. printf %s "(cached) " >&6
  12722. else $as_nop
  12723. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12724. case `$LD -v 2>&1 </dev/null` in
  12725. *GNU* | *'with BFD'*)
  12726. lt_cv_prog_gnu_ld=yes
  12727. ;;
  12728. *)
  12729. lt_cv_prog_gnu_ld=no
  12730. ;;
  12731. esac
  12732. fi
  12733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12734. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12735. with_gnu_ld=$lt_cv_prog_gnu_ld
  12736. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12737. # archiving commands below assume that GNU ld is being used.
  12738. if test yes = "$with_gnu_ld"; then
  12739. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12740. 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'
  12741. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12742. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12743. # If archive_cmds runs LD, not CC, wlarc should be empty
  12744. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12745. # investigate it a little bit more. (MM)
  12746. wlarc='$wl'
  12747. # ancient GNU ld didn't support --whole-archive et. al.
  12748. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12749. $GREP 'no-whole-archive' > /dev/null; then
  12750. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12751. else
  12752. whole_archive_flag_spec_CXX=
  12753. fi
  12754. else
  12755. with_gnu_ld=no
  12756. wlarc=
  12757. # A generic and very simple default shared library creation
  12758. # command for GNU C++ for the case where it uses the native
  12759. # linker, instead of GNU ld. If possible, this setting should
  12760. # overridden to take advantage of the native linker features on
  12761. # the platform it is being used on.
  12762. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12763. fi
  12764. # Commands to make compiler produce verbose output that lists
  12765. # what "hidden" libraries, object files and flags are used when
  12766. # linking a shared library.
  12767. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  12768. else
  12769. GXX=no
  12770. with_gnu_ld=no
  12771. wlarc=
  12772. fi
  12773. # PORTME: fill in a description of your system's C++ link characteristics
  12774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12775. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12776. ld_shlibs_CXX=yes
  12777. case $host_os in
  12778. aix3*)
  12779. # FIXME: insert proper C++ library support
  12780. ld_shlibs_CXX=no
  12781. ;;
  12782. aix[4-9]*)
  12783. if test ia64 = "$host_cpu"; then
  12784. # On IA64, the linker does run time linking by default, so we don't
  12785. # have to do anything special.
  12786. aix_use_runtimelinking=no
  12787. exp_sym_flag='-Bexport'
  12788. no_entry_flag=
  12789. else
  12790. aix_use_runtimelinking=no
  12791. # Test if we are trying to use run time linking or normal
  12792. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12793. # have runtime linking enabled, and use it for executables.
  12794. # For shared libraries, we enable/disable runtime linking
  12795. # depending on the kind of the shared library created -
  12796. # when "with_aix_soname,aix_use_runtimelinking" is:
  12797. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12798. # "aix,yes" lib.so shared, rtl:yes, for executables
  12799. # lib.a static archive
  12800. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12801. # lib.a(lib.so.V) shared, rtl:no, for executables
  12802. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12803. # lib.a(lib.so.V) shared, rtl:no
  12804. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12805. # lib.a static archive
  12806. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12807. for ld_flag in $LDFLAGS; do
  12808. case $ld_flag in
  12809. *-brtl*)
  12810. aix_use_runtimelinking=yes
  12811. break
  12812. ;;
  12813. esac
  12814. done
  12815. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12816. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12817. # so we don't have lib.a shared libs to link our executables.
  12818. # We have to force runtime linking in this case.
  12819. aix_use_runtimelinking=yes
  12820. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12821. fi
  12822. ;;
  12823. esac
  12824. exp_sym_flag='-bexport'
  12825. no_entry_flag='-bnoentry'
  12826. fi
  12827. # When large executables or shared objects are built, AIX ld can
  12828. # have problems creating the table of contents. If linking a library
  12829. # or program results in "error TOC overflow" add -mminimal-toc to
  12830. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12831. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12832. archive_cmds_CXX=''
  12833. hardcode_direct_CXX=yes
  12834. hardcode_direct_absolute_CXX=yes
  12835. hardcode_libdir_separator_CXX=':'
  12836. link_all_deplibs_CXX=yes
  12837. file_list_spec_CXX='$wl-f,'
  12838. case $with_aix_soname,$aix_use_runtimelinking in
  12839. aix,*) ;; # no import file
  12840. svr4,* | *,yes) # use import file
  12841. # The Import File defines what to hardcode.
  12842. hardcode_direct_CXX=no
  12843. hardcode_direct_absolute_CXX=no
  12844. ;;
  12845. esac
  12846. if test yes = "$GXX"; then
  12847. case $host_os in aix4.[012]|aix4.[012].*)
  12848. # We only want to do this on AIX 4.2 and lower, the check
  12849. # below for broken collect2 doesn't work under 4.3+
  12850. collect2name=`$CC -print-prog-name=collect2`
  12851. if test -f "$collect2name" &&
  12852. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12853. then
  12854. # We have reworked collect2
  12855. :
  12856. else
  12857. # We have old collect2
  12858. hardcode_direct_CXX=unsupported
  12859. # It fails to find uninstalled libraries when the uninstalled
  12860. # path is not listed in the libpath. Setting hardcode_minus_L
  12861. # to unsupported forces relinking
  12862. hardcode_minus_L_CXX=yes
  12863. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12864. hardcode_libdir_separator_CXX=
  12865. fi
  12866. esac
  12867. shared_flag='-shared'
  12868. if test yes = "$aix_use_runtimelinking"; then
  12869. shared_flag=$shared_flag' $wl-G'
  12870. fi
  12871. # Need to ensure runtime linking is disabled for the traditional
  12872. # shared library, or the linker may eventually find shared libraries
  12873. # /with/ Import File - we do not want to mix them.
  12874. shared_flag_aix='-shared'
  12875. shared_flag_svr4='-shared $wl-G'
  12876. else
  12877. # not using gcc
  12878. if test ia64 = "$host_cpu"; then
  12879. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12880. # chokes on -Wl,-G. The following line is correct:
  12881. shared_flag='-G'
  12882. else
  12883. if test yes = "$aix_use_runtimelinking"; then
  12884. shared_flag='$wl-G'
  12885. else
  12886. shared_flag='$wl-bM:SRE'
  12887. fi
  12888. shared_flag_aix='$wl-bM:SRE'
  12889. shared_flag_svr4='$wl-G'
  12890. fi
  12891. fi
  12892. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12893. # It seems that -bexpall does not export symbols beginning with
  12894. # underscore (_), so it is better to generate a list of symbols to
  12895. # export.
  12896. always_export_symbols_CXX=yes
  12897. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12898. # Warning - without using the other runtime loading flags (-brtl),
  12899. # -berok will link without error, but may produce a broken library.
  12900. # The "-G" linker flag allows undefined symbols.
  12901. no_undefined_flag_CXX='-bernotok'
  12902. # Determine the default libpath from the value encoded in an empty
  12903. # executable.
  12904. if test set = "${lt_cv_aix_libpath+set}"; then
  12905. aix_libpath=$lt_cv_aix_libpath
  12906. else
  12907. if test ${lt_cv_aix_libpath__CXX+y}
  12908. then :
  12909. printf %s "(cached) " >&6
  12910. else $as_nop
  12911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12912. /* end confdefs.h. */
  12913. int
  12914. main (void)
  12915. {
  12916. ;
  12917. return 0;
  12918. }
  12919. _ACEOF
  12920. if ac_fn_cxx_try_link "$LINENO"
  12921. then :
  12922. lt_aix_libpath_sed='
  12923. /Import File Strings/,/^$/ {
  12924. /^0/ {
  12925. s/^0 *\([^ ]*\) *$/\1/
  12926. p
  12927. }
  12928. }'
  12929. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12930. # Check for a 64-bit object if we didn't find anything.
  12931. if test -z "$lt_cv_aix_libpath__CXX"; then
  12932. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12933. fi
  12934. fi
  12935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12936. conftest$ac_exeext conftest.$ac_ext
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12939. fi
  12940. fi
  12941. aix_libpath=$lt_cv_aix_libpath__CXX
  12942. fi
  12943. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12944. 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
  12945. else
  12946. if test ia64 = "$host_cpu"; then
  12947. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12948. allow_undefined_flag_CXX="-z nodefs"
  12949. 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"
  12950. else
  12951. # Determine the default libpath from the value encoded in an
  12952. # empty executable.
  12953. if test set = "${lt_cv_aix_libpath+set}"; then
  12954. aix_libpath=$lt_cv_aix_libpath
  12955. else
  12956. if test ${lt_cv_aix_libpath__CXX+y}
  12957. then :
  12958. printf %s "(cached) " >&6
  12959. else $as_nop
  12960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12961. /* end confdefs.h. */
  12962. int
  12963. main (void)
  12964. {
  12965. ;
  12966. return 0;
  12967. }
  12968. _ACEOF
  12969. if ac_fn_cxx_try_link "$LINENO"
  12970. then :
  12971. lt_aix_libpath_sed='
  12972. /Import File Strings/,/^$/ {
  12973. /^0/ {
  12974. s/^0 *\([^ ]*\) *$/\1/
  12975. p
  12976. }
  12977. }'
  12978. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12979. # Check for a 64-bit object if we didn't find anything.
  12980. if test -z "$lt_cv_aix_libpath__CXX"; then
  12981. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12982. fi
  12983. fi
  12984. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12985. conftest$ac_exeext conftest.$ac_ext
  12986. if test -z "$lt_cv_aix_libpath__CXX"; then
  12987. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12988. fi
  12989. fi
  12990. aix_libpath=$lt_cv_aix_libpath__CXX
  12991. fi
  12992. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12993. # Warning - without using the other run time loading flags,
  12994. # -berok will link without error, but may produce a broken library.
  12995. no_undefined_flag_CXX=' $wl-bernotok'
  12996. allow_undefined_flag_CXX=' $wl-berok'
  12997. if test yes = "$with_gnu_ld"; then
  12998. # We only use this code for GNU lds that support --whole-archive.
  12999. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13000. else
  13001. # Exported symbols can be pulled into shared objects from archives
  13002. whole_archive_flag_spec_CXX='$convenience'
  13003. fi
  13004. archive_cmds_need_lc_CXX=yes
  13005. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  13006. # -brtl affects multiple linker settings, -berok does not and is overridden later
  13007. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  13008. if test svr4 != "$with_aix_soname"; then
  13009. # This is similar to how AIX traditionally builds its shared
  13010. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  13011. 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'
  13012. fi
  13013. if test aix != "$with_aix_soname"; then
  13014. 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'
  13015. else
  13016. # used by -dlpreopen to get the symbols
  13017. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  13018. fi
  13019. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  13020. fi
  13021. fi
  13022. ;;
  13023. beos*)
  13024. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13025. allow_undefined_flag_CXX=unsupported
  13026. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13027. # support --undefined. This deserves some investigation. FIXME
  13028. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13029. else
  13030. ld_shlibs_CXX=no
  13031. fi
  13032. ;;
  13033. chorus*)
  13034. case $cc_basename in
  13035. *)
  13036. # FIXME: insert proper C++ library support
  13037. ld_shlibs_CXX=no
  13038. ;;
  13039. esac
  13040. ;;
  13041. cygwin* | mingw* | windows* | pw32* | cegcc*)
  13042. case $GXX,$cc_basename in
  13043. ,cl* | no,cl* | ,icl* | no,icl*)
  13044. # Native MSVC or ICC
  13045. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13046. # no search path for DLLs.
  13047. hardcode_libdir_flag_spec_CXX=' '
  13048. allow_undefined_flag_CXX=unsupported
  13049. always_export_symbols_CXX=yes
  13050. file_list_spec_CXX='@'
  13051. # Tell ltmain to make .lib files, not .a files.
  13052. libext=lib
  13053. # Tell ltmain to make .dll files, not .so files.
  13054. shrext_cmds=.dll
  13055. # FIXME: Setting linknames here is a bad hack.
  13056. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13057. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13058. cp "$export_symbols" "$output_objdir/$soname.def";
  13059. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13060. else
  13061. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13062. fi~
  13063. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13064. linknames='
  13065. # The linker will not automatically build a static lib if we build a DLL.
  13066. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13067. enable_shared_with_static_runtimes_CXX=yes
  13068. # Don't use ranlib
  13069. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13070. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13071. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13072. case $lt_outputfile in
  13073. *.exe|*.EXE) ;;
  13074. *)
  13075. lt_outputfile=$lt_outputfile.exe
  13076. lt_tool_outputfile=$lt_tool_outputfile.exe
  13077. ;;
  13078. esac~
  13079. func_to_tool_file "$lt_outputfile"~
  13080. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13081. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13082. $RM "$lt_outputfile.manifest";
  13083. fi'
  13084. ;;
  13085. *)
  13086. # g++
  13087. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13088. # as there is no search path for DLLs.
  13089. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13090. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13091. allow_undefined_flag_CXX=unsupported
  13092. always_export_symbols_CXX=no
  13093. enable_shared_with_static_runtimes_CXX=yes
  13094. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13095. 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'
  13096. # If the export-symbols file already is a .def file, use it as
  13097. # is; otherwise, prepend EXPORTS...
  13098. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13099. cp $export_symbols $output_objdir/$soname.def;
  13100. else
  13101. echo EXPORTS > $output_objdir/$soname.def;
  13102. cat $export_symbols >> $output_objdir/$soname.def;
  13103. fi~
  13104. $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'
  13105. else
  13106. ld_shlibs_CXX=no
  13107. fi
  13108. ;;
  13109. esac
  13110. ;;
  13111. darwin* | rhapsody*)
  13112. archive_cmds_need_lc_CXX=no
  13113. hardcode_direct_CXX=no
  13114. hardcode_automatic_CXX=yes
  13115. hardcode_shlibpath_var_CXX=unsupported
  13116. if test yes = "$lt_cv_ld_force_load"; then
  13117. 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\"`'
  13118. else
  13119. whole_archive_flag_spec_CXX=''
  13120. fi
  13121. link_all_deplibs_CXX=yes
  13122. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13123. case $cc_basename in
  13124. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13125. *) _lt_dar_can_shared=$GCC ;;
  13126. esac
  13127. if test yes = "$_lt_dar_can_shared"; then
  13128. output_verbose_link_cmd=func_echo_all
  13129. 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"
  13130. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13131. 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"
  13132. 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"
  13133. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13134. 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"
  13135. 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"
  13136. fi
  13137. else
  13138. ld_shlibs_CXX=no
  13139. fi
  13140. ;;
  13141. os2*)
  13142. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13143. hardcode_minus_L_CXX=yes
  13144. allow_undefined_flag_CXX=unsupported
  13145. shrext_cmds=.dll
  13146. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13147. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13148. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13149. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13150. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13151. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13152. emximp -o $lib $output_objdir/$libname.def'
  13153. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13154. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13155. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13156. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13157. prefix_cmds="$SED"~
  13158. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13159. prefix_cmds="$prefix_cmds -e 1d";
  13160. fi~
  13161. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13162. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13163. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13164. emximp -o $lib $output_objdir/$libname.def'
  13165. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13166. enable_shared_with_static_runtimes_CXX=yes
  13167. file_list_spec_CXX='@'
  13168. ;;
  13169. dgux*)
  13170. case $cc_basename in
  13171. ec++*)
  13172. # FIXME: insert proper C++ library support
  13173. ld_shlibs_CXX=no
  13174. ;;
  13175. ghcx*)
  13176. # Green Hills C++ Compiler
  13177. # FIXME: insert proper C++ library support
  13178. ld_shlibs_CXX=no
  13179. ;;
  13180. *)
  13181. # FIXME: insert proper C++ library support
  13182. ld_shlibs_CXX=no
  13183. ;;
  13184. esac
  13185. ;;
  13186. freebsd2.*)
  13187. # C++ shared libraries reported to be fairly broken before
  13188. # switch to ELF
  13189. ld_shlibs_CXX=no
  13190. ;;
  13191. freebsd-elf*)
  13192. archive_cmds_need_lc_CXX=no
  13193. ;;
  13194. freebsd* | dragonfly* | midnightbsd*)
  13195. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13196. # conventions
  13197. ld_shlibs_CXX=yes
  13198. ;;
  13199. haiku*)
  13200. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13201. link_all_deplibs_CXX=yes
  13202. ;;
  13203. hpux9*)
  13204. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13205. hardcode_libdir_separator_CXX=:
  13206. export_dynamic_flag_spec_CXX='$wl-E'
  13207. hardcode_direct_CXX=yes
  13208. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13209. # but as the default
  13210. # location of the library.
  13211. case $cc_basename in
  13212. CC*)
  13213. # FIXME: insert proper C++ library support
  13214. ld_shlibs_CXX=no
  13215. ;;
  13216. aCC*)
  13217. 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'
  13218. # Commands to make compiler produce verbose output that lists
  13219. # what "hidden" libraries, object files and flags are used when
  13220. # linking a shared library.
  13221. #
  13222. # There doesn't appear to be a way to prevent this compiler from
  13223. # explicitly linking system object files so we need to strip them
  13224. # from the output so that they don't get included in the library
  13225. # dependencies.
  13226. 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"'
  13227. ;;
  13228. *)
  13229. if test yes = "$GXX"; then
  13230. 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'
  13231. else
  13232. # FIXME: insert proper C++ library support
  13233. ld_shlibs_CXX=no
  13234. fi
  13235. ;;
  13236. esac
  13237. ;;
  13238. hpux10*|hpux11*)
  13239. if test no = "$with_gnu_ld"; then
  13240. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13241. hardcode_libdir_separator_CXX=:
  13242. case $host_cpu in
  13243. hppa*64*|ia64*)
  13244. ;;
  13245. *)
  13246. export_dynamic_flag_spec_CXX='$wl-E'
  13247. ;;
  13248. esac
  13249. fi
  13250. case $host_cpu in
  13251. hppa*64*|ia64*)
  13252. hardcode_direct_CXX=no
  13253. hardcode_shlibpath_var_CXX=no
  13254. ;;
  13255. *)
  13256. hardcode_direct_CXX=yes
  13257. hardcode_direct_absolute_CXX=yes
  13258. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13259. # but as the default
  13260. # location of the library.
  13261. ;;
  13262. esac
  13263. case $cc_basename in
  13264. CC*)
  13265. # FIXME: insert proper C++ library support
  13266. ld_shlibs_CXX=no
  13267. ;;
  13268. aCC*)
  13269. case $host_cpu in
  13270. hppa*64*)
  13271. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13272. ;;
  13273. ia64*)
  13274. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13275. ;;
  13276. *)
  13277. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13278. ;;
  13279. esac
  13280. # Commands to make compiler produce verbose output that lists
  13281. # what "hidden" libraries, object files and flags are used when
  13282. # linking a shared library.
  13283. #
  13284. # There doesn't appear to be a way to prevent this compiler from
  13285. # explicitly linking system object files so we need to strip them
  13286. # from the output so that they don't get included in the library
  13287. # dependencies.
  13288. 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"'
  13289. ;;
  13290. *)
  13291. if test yes = "$GXX"; then
  13292. if test no = "$with_gnu_ld"; then
  13293. case $host_cpu in
  13294. hppa*64*)
  13295. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13296. ;;
  13297. ia64*)
  13298. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13299. ;;
  13300. *)
  13301. 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'
  13302. ;;
  13303. esac
  13304. fi
  13305. else
  13306. # FIXME: insert proper C++ library support
  13307. ld_shlibs_CXX=no
  13308. fi
  13309. ;;
  13310. esac
  13311. ;;
  13312. interix[3-9]*)
  13313. hardcode_direct_CXX=no
  13314. hardcode_shlibpath_var_CXX=no
  13315. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13316. export_dynamic_flag_spec_CXX='$wl-E'
  13317. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13318. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13319. # default) and relocated if they conflict, which is a slow very memory
  13320. # consuming and fragmenting process. To avoid this, we pick a random,
  13321. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13322. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13323. 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'
  13324. 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'
  13325. ;;
  13326. irix5* | irix6*)
  13327. case $cc_basename in
  13328. CC*)
  13329. # SGI C++
  13330. 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'
  13331. # Archives containing C++ object files must be created using
  13332. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13333. # necessary to make sure instantiated templates are included
  13334. # in the archive.
  13335. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13336. ;;
  13337. *)
  13338. if test yes = "$GXX"; then
  13339. if test no = "$with_gnu_ld"; then
  13340. 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'
  13341. else
  13342. 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'
  13343. fi
  13344. fi
  13345. link_all_deplibs_CXX=yes
  13346. ;;
  13347. esac
  13348. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13349. hardcode_libdir_separator_CXX=:
  13350. inherit_rpath_CXX=yes
  13351. ;;
  13352. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13353. case $cc_basename in
  13354. KCC*)
  13355. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13356. # KCC will only create a shared library if the output file
  13357. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13358. # to its proper name (with version) after linking.
  13359. 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'
  13360. 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'
  13361. # Commands to make compiler produce verbose output that lists
  13362. # what "hidden" libraries, object files and flags are used when
  13363. # linking a shared library.
  13364. #
  13365. # There doesn't appear to be a way to prevent this compiler from
  13366. # explicitly linking system object files so we need to strip them
  13367. # from the output so that they don't get included in the library
  13368. # dependencies.
  13369. 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"'
  13370. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13371. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13372. # Archives containing C++ object files must be created using
  13373. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13374. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13375. ;;
  13376. icpc* | ecpc* )
  13377. # Intel C++
  13378. with_gnu_ld=yes
  13379. # version 8.0 and above of icpc choke on multiply defined symbols
  13380. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13381. # earlier do not add the objects themselves.
  13382. case `$CC -V 2>&1` in
  13383. *"Version 7."*)
  13384. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13385. 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'
  13386. ;;
  13387. *) # Version 8.0 or newer
  13388. tmp_idyn=
  13389. case $host_cpu in
  13390. ia64*) tmp_idyn=' -i_dynamic';;
  13391. esac
  13392. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13393. 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'
  13394. ;;
  13395. esac
  13396. archive_cmds_need_lc_CXX=no
  13397. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13398. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13399. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13400. ;;
  13401. pgCC* | pgcpp*)
  13402. # Portland Group C++ compiler
  13403. case `$CC -V` in
  13404. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13405. prelink_cmds_CXX='tpldir=Template.dir~
  13406. rm -rf $tpldir~
  13407. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13408. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13409. old_archive_cmds_CXX='tpldir=Template.dir~
  13410. rm -rf $tpldir~
  13411. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13412. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13413. $RANLIB $oldlib'
  13414. archive_cmds_CXX='tpldir=Template.dir~
  13415. rm -rf $tpldir~
  13416. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13417. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13418. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13419. rm -rf $tpldir~
  13420. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13421. $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'
  13422. ;;
  13423. *) # Version 6 and above use weak symbols
  13424. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13425. 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'
  13426. ;;
  13427. esac
  13428. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13429. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13430. 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'
  13431. ;;
  13432. cxx*)
  13433. # Compaq C++
  13434. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13435. 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'
  13436. runpath_var=LD_RUN_PATH
  13437. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13438. hardcode_libdir_separator_CXX=:
  13439. # Commands to make compiler produce verbose output that lists
  13440. # what "hidden" libraries, object files and flags are used when
  13441. # linking a shared library.
  13442. #
  13443. # There doesn't appear to be a way to prevent this compiler from
  13444. # explicitly linking system object files so we need to strip them
  13445. # from the output so that they don't get included in the library
  13446. # dependencies.
  13447. 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'
  13448. ;;
  13449. xl* | mpixl* | bgxl*)
  13450. # IBM XL 8.0 on PPC, with GNU ld
  13451. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13452. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13453. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13454. if test yes = "$supports_anon_versioning"; then
  13455. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13456. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13457. echo "local: *; };" >> $output_objdir/$libname.ver~
  13458. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13459. fi
  13460. ;;
  13461. *)
  13462. case `$CC -V 2>&1 | sed 5q` in
  13463. *Sun\ C*)
  13464. # Sun C++ 5.9
  13465. no_undefined_flag_CXX=' -zdefs'
  13466. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13467. 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'
  13468. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13469. 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'
  13470. compiler_needs_object_CXX=yes
  13471. # Not sure whether something based on
  13472. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13473. # would be better.
  13474. output_verbose_link_cmd='func_echo_all'
  13475. # Archives containing C++ object files must be created using
  13476. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13477. # necessary to make sure instantiated templates are included
  13478. # in the archive.
  13479. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13480. ;;
  13481. esac
  13482. ;;
  13483. esac
  13484. ;;
  13485. lynxos*)
  13486. # FIXME: insert proper C++ library support
  13487. ld_shlibs_CXX=no
  13488. ;;
  13489. m88k*)
  13490. # FIXME: insert proper C++ library support
  13491. ld_shlibs_CXX=no
  13492. ;;
  13493. mvs*)
  13494. case $cc_basename in
  13495. cxx*)
  13496. # FIXME: insert proper C++ library support
  13497. ld_shlibs_CXX=no
  13498. ;;
  13499. *)
  13500. # FIXME: insert proper C++ library support
  13501. ld_shlibs_CXX=no
  13502. ;;
  13503. esac
  13504. ;;
  13505. netbsd*)
  13506. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13507. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13508. wlarc=
  13509. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13510. hardcode_direct_CXX=yes
  13511. hardcode_shlibpath_var_CXX=no
  13512. fi
  13513. # Workaround some broken pre-1.5 toolchains
  13514. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13515. ;;
  13516. *nto* | *qnx*)
  13517. ld_shlibs_CXX=yes
  13518. ;;
  13519. openbsd* | bitrig*)
  13520. if test -f /usr/libexec/ld.so; then
  13521. hardcode_direct_CXX=yes
  13522. hardcode_shlibpath_var_CXX=no
  13523. hardcode_direct_absolute_CXX=yes
  13524. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13525. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13526. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13527. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13528. export_dynamic_flag_spec_CXX='$wl-E'
  13529. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13530. fi
  13531. output_verbose_link_cmd=func_echo_all
  13532. else
  13533. ld_shlibs_CXX=no
  13534. fi
  13535. ;;
  13536. osf3* | osf4* | osf5*)
  13537. case $cc_basename in
  13538. KCC*)
  13539. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13540. # KCC will only create a shared library if the output file
  13541. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13542. # to its proper name (with version) after linking.
  13543. 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'
  13544. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13545. hardcode_libdir_separator_CXX=:
  13546. # Archives containing C++ object files must be created using
  13547. # the KAI C++ compiler.
  13548. case $host in
  13549. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13550. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13551. esac
  13552. ;;
  13553. RCC*)
  13554. # Rational C++ 2.4.1
  13555. # FIXME: insert proper C++ library support
  13556. ld_shlibs_CXX=no
  13557. ;;
  13558. cxx*)
  13559. case $host in
  13560. osf3*)
  13561. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13562. 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'
  13563. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13564. ;;
  13565. *)
  13566. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13567. 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'
  13568. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13569. echo "-hidden">> $lib.exp~
  13570. $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~
  13571. $RM $lib.exp'
  13572. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13573. ;;
  13574. esac
  13575. hardcode_libdir_separator_CXX=:
  13576. # Commands to make compiler produce verbose output that lists
  13577. # what "hidden" libraries, object files and flags are used when
  13578. # linking a shared library.
  13579. #
  13580. # There doesn't appear to be a way to prevent this compiler from
  13581. # explicitly linking system object files so we need to strip them
  13582. # from the output so that they don't get included in the library
  13583. # dependencies.
  13584. 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"'
  13585. ;;
  13586. *)
  13587. if test yes,no = "$GXX,$with_gnu_ld"; then
  13588. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13589. case $host in
  13590. osf3*)
  13591. 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'
  13592. ;;
  13593. *)
  13594. 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'
  13595. ;;
  13596. esac
  13597. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13598. hardcode_libdir_separator_CXX=:
  13599. # Commands to make compiler produce verbose output that lists
  13600. # what "hidden" libraries, object files and flags are used when
  13601. # linking a shared library.
  13602. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13603. else
  13604. # FIXME: insert proper C++ library support
  13605. ld_shlibs_CXX=no
  13606. fi
  13607. ;;
  13608. esac
  13609. ;;
  13610. psos*)
  13611. # FIXME: insert proper C++ library support
  13612. ld_shlibs_CXX=no
  13613. ;;
  13614. sunos4*)
  13615. case $cc_basename in
  13616. CC*)
  13617. # Sun C++ 4.x
  13618. # FIXME: insert proper C++ library support
  13619. ld_shlibs_CXX=no
  13620. ;;
  13621. lcc*)
  13622. # Lucid
  13623. # FIXME: insert proper C++ library support
  13624. ld_shlibs_CXX=no
  13625. ;;
  13626. *)
  13627. # FIXME: insert proper C++ library support
  13628. ld_shlibs_CXX=no
  13629. ;;
  13630. esac
  13631. ;;
  13632. solaris*)
  13633. case $cc_basename in
  13634. CC* | sunCC*)
  13635. # Sun C++ 4.2, 5.x and Centerline C++
  13636. archive_cmds_need_lc_CXX=yes
  13637. no_undefined_flag_CXX=' -zdefs'
  13638. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13639. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13640. $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'
  13641. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13642. hardcode_shlibpath_var_CXX=no
  13643. case $host_os in
  13644. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13645. *)
  13646. # The compiler driver will combine and reorder linker options,
  13647. # but understands '-z linker_flag'.
  13648. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13649. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13650. ;;
  13651. esac
  13652. link_all_deplibs_CXX=yes
  13653. output_verbose_link_cmd='func_echo_all'
  13654. # Archives containing C++ object files must be created using
  13655. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13656. # necessary to make sure instantiated templates are included
  13657. # in the archive.
  13658. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13659. ;;
  13660. gcx*)
  13661. # Green Hills C++ Compiler
  13662. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13663. # The C++ compiler must be used to create the archive.
  13664. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13665. ;;
  13666. *)
  13667. # GNU C++ compiler with Solaris linker
  13668. if test yes,no = "$GXX,$with_gnu_ld"; then
  13669. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13670. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13671. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13672. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13673. $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'
  13674. # Commands to make compiler produce verbose output that lists
  13675. # what "hidden" libraries, object files and flags are used when
  13676. # linking a shared library.
  13677. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13678. else
  13679. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13680. # platform.
  13681. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13682. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13683. $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'
  13684. # Commands to make compiler produce verbose output that lists
  13685. # what "hidden" libraries, object files and flags are used when
  13686. # linking a shared library.
  13687. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "[-]L"'
  13688. fi
  13689. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13690. case $host_os in
  13691. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13692. *)
  13693. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13694. ;;
  13695. esac
  13696. fi
  13697. ;;
  13698. esac
  13699. ;;
  13700. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13701. no_undefined_flag_CXX='$wl-z,text'
  13702. archive_cmds_need_lc_CXX=no
  13703. hardcode_shlibpath_var_CXX=no
  13704. runpath_var='LD_RUN_PATH'
  13705. case $cc_basename in
  13706. CC*)
  13707. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13708. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13709. ;;
  13710. *)
  13711. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13712. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13713. ;;
  13714. esac
  13715. ;;
  13716. sysv5* | sco3.2v5* | sco5v6*)
  13717. # Note: We CANNOT use -z defs as we might desire, because we do not
  13718. # link with -lc, and that would cause any symbols used from libc to
  13719. # always be unresolved, which means just about no library would
  13720. # ever link correctly. If we're not using GNU ld we use -z text
  13721. # though, which does catch some bad symbols but isn't as heavy-handed
  13722. # as -z defs.
  13723. no_undefined_flag_CXX='$wl-z,text'
  13724. allow_undefined_flag_CXX='$wl-z,nodefs'
  13725. archive_cmds_need_lc_CXX=no
  13726. hardcode_shlibpath_var_CXX=no
  13727. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13728. hardcode_libdir_separator_CXX=':'
  13729. link_all_deplibs_CXX=yes
  13730. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13731. runpath_var='LD_RUN_PATH'
  13732. case $cc_basename in
  13733. CC*)
  13734. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13735. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13736. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13737. '"$old_archive_cmds_CXX"
  13738. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13739. '"$reload_cmds_CXX"
  13740. ;;
  13741. *)
  13742. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13743. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13744. ;;
  13745. esac
  13746. ;;
  13747. tandem*)
  13748. case $cc_basename in
  13749. NCC*)
  13750. # NonStop-UX NCC 3.20
  13751. # FIXME: insert proper C++ library support
  13752. ld_shlibs_CXX=no
  13753. ;;
  13754. *)
  13755. # FIXME: insert proper C++ library support
  13756. ld_shlibs_CXX=no
  13757. ;;
  13758. esac
  13759. ;;
  13760. vxworks*)
  13761. # FIXME: insert proper C++ library support
  13762. ld_shlibs_CXX=no
  13763. ;;
  13764. *)
  13765. # FIXME: insert proper C++ library support
  13766. ld_shlibs_CXX=no
  13767. ;;
  13768. esac
  13769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13770. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13771. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13772. GCC_CXX=$GXX
  13773. LD_CXX=$LD
  13774. ## CAVEAT EMPTOR:
  13775. ## There is no encapsulation within the following macros, do not change
  13776. ## the running order or otherwise move them around unless you know exactly
  13777. ## what you are doing...
  13778. # Dependencies to place before and after the object being linked:
  13779. predep_objects_CXX=
  13780. postdep_objects_CXX=
  13781. predeps_CXX=
  13782. postdeps_CXX=
  13783. compiler_lib_search_path_CXX=
  13784. cat > conftest.$ac_ext <<_LT_EOF
  13785. class Foo
  13786. {
  13787. public:
  13788. Foo (void) { a = 0; }
  13789. private:
  13790. int a;
  13791. };
  13792. _LT_EOF
  13793. _lt_libdeps_save_CFLAGS=$CFLAGS
  13794. case "$CC $CFLAGS " in #(
  13795. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13796. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13797. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13798. esac
  13799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13800. (eval $ac_compile) 2>&5
  13801. ac_status=$?
  13802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13803. test $ac_status = 0; }; then
  13804. # Parse the compiler output and extract the necessary
  13805. # objects, libraries and library flags.
  13806. # Sentinel used to keep track of whether or not we are before
  13807. # the conftest object file.
  13808. pre_test_object_deps_done=no
  13809. for p in `eval "$output_verbose_link_cmd"`; do
  13810. case $prev$p in
  13811. -L* | -R* | -l*)
  13812. # Some compilers place space between "-{L,R}" and the path.
  13813. # Remove the space.
  13814. if test x-L = "x$p" ||
  13815. test x-R = "x$p" ||
  13816. test x-l = "x$p"; then
  13817. prev=$p
  13818. continue
  13819. fi
  13820. # Expand the sysroot to ease extracting the directories later.
  13821. if test -z "$prev"; then
  13822. case $p in
  13823. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13824. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13825. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13826. esac
  13827. fi
  13828. case $p in
  13829. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13830. esac
  13831. if test no = "$pre_test_object_deps_done"; then
  13832. case $prev in
  13833. -L | -R)
  13834. # Internal compiler library paths should come after those
  13835. # provided the user. The postdeps already come after the
  13836. # user supplied libs so there is no need to process them.
  13837. if test -z "$compiler_lib_search_path_CXX"; then
  13838. compiler_lib_search_path_CXX=$prev$p
  13839. else
  13840. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13841. fi
  13842. ;;
  13843. # The "-l" case would never come before the object being
  13844. # linked, so don't bother handling this case.
  13845. esac
  13846. else
  13847. if test -z "$postdeps_CXX"; then
  13848. postdeps_CXX=$prev$p
  13849. else
  13850. postdeps_CXX="${postdeps_CXX} $prev$p"
  13851. fi
  13852. fi
  13853. prev=
  13854. ;;
  13855. *.lto.$objext) ;; # Ignore GCC LTO objects
  13856. *.$objext)
  13857. # This assumes that the test object file only shows up
  13858. # once in the compiler output.
  13859. if test "$p" = "conftest.$objext"; then
  13860. pre_test_object_deps_done=yes
  13861. continue
  13862. fi
  13863. if test no = "$pre_test_object_deps_done"; then
  13864. if test -z "$predep_objects_CXX"; then
  13865. predep_objects_CXX=$p
  13866. else
  13867. predep_objects_CXX="$predep_objects_CXX $p"
  13868. fi
  13869. else
  13870. if test -z "$postdep_objects_CXX"; then
  13871. postdep_objects_CXX=$p
  13872. else
  13873. postdep_objects_CXX="$postdep_objects_CXX $p"
  13874. fi
  13875. fi
  13876. ;;
  13877. *) ;; # Ignore the rest.
  13878. esac
  13879. done
  13880. # Clean up.
  13881. rm -f a.out a.exe
  13882. else
  13883. echo "libtool.m4: error: problem compiling CXX test program"
  13884. fi
  13885. $RM -f confest.$objext
  13886. CFLAGS=$_lt_libdeps_save_CFLAGS
  13887. # PORTME: override above test on systems where it is broken
  13888. case $host_os in
  13889. interix[3-9]*)
  13890. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13891. # hack all around it, let's just trust "g++" to DTRT.
  13892. predep_objects_CXX=
  13893. postdep_objects_CXX=
  13894. postdeps_CXX=
  13895. ;;
  13896. esac
  13897. case " $postdeps_CXX " in
  13898. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13899. esac
  13900. compiler_lib_search_dirs_CXX=
  13901. if test -n "${compiler_lib_search_path_CXX}"; then
  13902. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13903. fi
  13904. lt_prog_compiler_wl_CXX=
  13905. lt_prog_compiler_pic_CXX=
  13906. lt_prog_compiler_static_CXX=
  13907. # C++ specific cases for pic, static, wl, etc.
  13908. if test yes = "$GXX"; then
  13909. lt_prog_compiler_wl_CXX='-Wl,'
  13910. lt_prog_compiler_static_CXX='-static'
  13911. case $host_os in
  13912. aix*)
  13913. # All AIX code is PIC.
  13914. if test ia64 = "$host_cpu"; then
  13915. # AIX 5 now supports IA64 processor
  13916. lt_prog_compiler_static_CXX='-Bstatic'
  13917. fi
  13918. lt_prog_compiler_pic_CXX='-fPIC'
  13919. ;;
  13920. amigaos*)
  13921. case $host_cpu in
  13922. powerpc)
  13923. # see comment about AmigaOS4 .so support
  13924. lt_prog_compiler_pic_CXX='-fPIC'
  13925. ;;
  13926. m68k)
  13927. # FIXME: we need at least 68020 code to build shared libraries, but
  13928. # adding the '-m68020' flag to GCC prevents building anything better,
  13929. # like '-m68040'.
  13930. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13931. ;;
  13932. esac
  13933. ;;
  13934. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13935. # PIC is the default for these OSes.
  13936. ;;
  13937. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  13938. # This hack is so that the source file can tell whether it is being
  13939. # built for inclusion in a dll (and should export symbols for example).
  13940. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13941. # (--disable-auto-import) libraries
  13942. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13943. case $host_os in
  13944. os2*)
  13945. lt_prog_compiler_static_CXX='$wl-static'
  13946. ;;
  13947. esac
  13948. ;;
  13949. darwin* | rhapsody*)
  13950. # PIC is the default on this platform
  13951. # Common symbols not allowed in MH_DYLIB files
  13952. lt_prog_compiler_pic_CXX='-fno-common'
  13953. ;;
  13954. *djgpp*)
  13955. # DJGPP does not support shared libraries at all
  13956. lt_prog_compiler_pic_CXX=
  13957. ;;
  13958. haiku*)
  13959. # PIC is the default for Haiku.
  13960. # The "-static" flag exists, but is broken.
  13961. lt_prog_compiler_static_CXX=
  13962. ;;
  13963. interix[3-9]*)
  13964. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13965. # Instead, we relocate shared libraries at runtime.
  13966. ;;
  13967. sysv4*MP*)
  13968. if test -d /usr/nec; then
  13969. lt_prog_compiler_pic_CXX=-Kconform_pic
  13970. fi
  13971. ;;
  13972. hpux*)
  13973. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13974. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13975. # sets the default TLS model and affects inlining.
  13976. case $host_cpu in
  13977. hppa*64*)
  13978. ;;
  13979. *)
  13980. lt_prog_compiler_pic_CXX='-fPIC'
  13981. ;;
  13982. esac
  13983. ;;
  13984. *qnx* | *nto*)
  13985. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13986. # it will coredump.
  13987. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13988. ;;
  13989. *)
  13990. lt_prog_compiler_pic_CXX='-fPIC'
  13991. ;;
  13992. esac
  13993. else
  13994. case $host_os in
  13995. aix[4-9]*)
  13996. # All AIX code is PIC.
  13997. if test ia64 = "$host_cpu"; then
  13998. # AIX 5 now supports IA64 processor
  13999. lt_prog_compiler_static_CXX='-Bstatic'
  14000. else
  14001. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  14002. fi
  14003. ;;
  14004. chorus*)
  14005. case $cc_basename in
  14006. cxch68*)
  14007. # Green Hills C++ Compiler
  14008. # _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"
  14009. ;;
  14010. esac
  14011. ;;
  14012. mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
  14013. # This hack is so that the source file can tell whether it is being
  14014. # built for inclusion in a dll (and should export symbols for example).
  14015. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  14016. ;;
  14017. dgux*)
  14018. case $cc_basename in
  14019. ec++*)
  14020. lt_prog_compiler_pic_CXX='-KPIC'
  14021. ;;
  14022. ghcx*)
  14023. # Green Hills C++ Compiler
  14024. lt_prog_compiler_pic_CXX='-pic'
  14025. ;;
  14026. *)
  14027. ;;
  14028. esac
  14029. ;;
  14030. freebsd* | dragonfly* | midnightbsd*)
  14031. # FreeBSD uses GNU C++
  14032. ;;
  14033. hpux9* | hpux10* | hpux11*)
  14034. case $cc_basename in
  14035. CC*)
  14036. lt_prog_compiler_wl_CXX='-Wl,'
  14037. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14038. if test ia64 != "$host_cpu"; then
  14039. lt_prog_compiler_pic_CXX='+Z'
  14040. fi
  14041. ;;
  14042. aCC*)
  14043. lt_prog_compiler_wl_CXX='-Wl,'
  14044. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  14045. case $host_cpu in
  14046. hppa*64*|ia64*)
  14047. # +Z the default
  14048. ;;
  14049. *)
  14050. lt_prog_compiler_pic_CXX='+Z'
  14051. ;;
  14052. esac
  14053. ;;
  14054. *)
  14055. ;;
  14056. esac
  14057. ;;
  14058. interix*)
  14059. # This is c89, which is MS Visual C++ (no shared libs)
  14060. # Anyone wants to do a port?
  14061. ;;
  14062. irix5* | irix6* | nonstopux*)
  14063. case $cc_basename in
  14064. CC*)
  14065. lt_prog_compiler_wl_CXX='-Wl,'
  14066. lt_prog_compiler_static_CXX='-non_shared'
  14067. # CC pic flag -KPIC is the default.
  14068. ;;
  14069. *)
  14070. ;;
  14071. esac
  14072. ;;
  14073. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14074. case $cc_basename in
  14075. KCC*)
  14076. # KAI C++ Compiler
  14077. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14078. lt_prog_compiler_pic_CXX='-fPIC'
  14079. ;;
  14080. ecpc* )
  14081. # old Intel C++ for x86_64, which still supported -KPIC.
  14082. lt_prog_compiler_wl_CXX='-Wl,'
  14083. lt_prog_compiler_pic_CXX='-KPIC'
  14084. lt_prog_compiler_static_CXX='-static'
  14085. ;;
  14086. icpc* )
  14087. # Intel C++, used to be incompatible with GCC.
  14088. # ICC 10 doesn't accept -KPIC any more.
  14089. lt_prog_compiler_wl_CXX='-Wl,'
  14090. lt_prog_compiler_pic_CXX='-fPIC'
  14091. lt_prog_compiler_static_CXX='-static'
  14092. ;;
  14093. pgCC* | pgcpp*)
  14094. # Portland Group C++ compiler
  14095. lt_prog_compiler_wl_CXX='-Wl,'
  14096. lt_prog_compiler_pic_CXX='-fpic'
  14097. lt_prog_compiler_static_CXX='-Bstatic'
  14098. ;;
  14099. cxx*)
  14100. # Compaq C++
  14101. # Make sure the PIC flag is empty. It appears that all Alpha
  14102. # Linux and Compaq Tru64 Unix objects are PIC.
  14103. lt_prog_compiler_pic_CXX=
  14104. lt_prog_compiler_static_CXX='-non_shared'
  14105. ;;
  14106. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14107. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14108. lt_prog_compiler_wl_CXX='-Wl,'
  14109. lt_prog_compiler_pic_CXX='-qpic'
  14110. lt_prog_compiler_static_CXX='-qstaticlink'
  14111. ;;
  14112. *)
  14113. case `$CC -V 2>&1 | sed 5q` in
  14114. *Sun\ C*)
  14115. # Sun C++ 5.9
  14116. lt_prog_compiler_pic_CXX='-KPIC'
  14117. lt_prog_compiler_static_CXX='-Bstatic'
  14118. lt_prog_compiler_wl_CXX='-Qoption ld '
  14119. ;;
  14120. esac
  14121. ;;
  14122. esac
  14123. ;;
  14124. lynxos*)
  14125. ;;
  14126. m88k*)
  14127. ;;
  14128. mvs*)
  14129. case $cc_basename in
  14130. cxx*)
  14131. lt_prog_compiler_pic_CXX='-W c,exportall'
  14132. ;;
  14133. *)
  14134. ;;
  14135. esac
  14136. ;;
  14137. netbsd*)
  14138. ;;
  14139. *qnx* | *nto*)
  14140. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14141. # it will coredump.
  14142. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14143. ;;
  14144. osf3* | osf4* | osf5*)
  14145. case $cc_basename in
  14146. KCC*)
  14147. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14148. ;;
  14149. RCC*)
  14150. # Rational C++ 2.4.1
  14151. lt_prog_compiler_pic_CXX='-pic'
  14152. ;;
  14153. cxx*)
  14154. # Digital/Compaq C++
  14155. lt_prog_compiler_wl_CXX='-Wl,'
  14156. # Make sure the PIC flag is empty. It appears that all Alpha
  14157. # Linux and Compaq Tru64 Unix objects are PIC.
  14158. lt_prog_compiler_pic_CXX=
  14159. lt_prog_compiler_static_CXX='-non_shared'
  14160. ;;
  14161. *)
  14162. ;;
  14163. esac
  14164. ;;
  14165. psos*)
  14166. ;;
  14167. solaris*)
  14168. case $cc_basename in
  14169. CC* | sunCC*)
  14170. # Sun C++ 4.2, 5.x and Centerline C++
  14171. lt_prog_compiler_pic_CXX='-KPIC'
  14172. lt_prog_compiler_static_CXX='-Bstatic'
  14173. lt_prog_compiler_wl_CXX='-Qoption ld '
  14174. ;;
  14175. gcx*)
  14176. # Green Hills C++ Compiler
  14177. lt_prog_compiler_pic_CXX='-PIC'
  14178. ;;
  14179. *)
  14180. ;;
  14181. esac
  14182. ;;
  14183. sunos4*)
  14184. case $cc_basename in
  14185. CC*)
  14186. # Sun C++ 4.x
  14187. lt_prog_compiler_pic_CXX='-pic'
  14188. lt_prog_compiler_static_CXX='-Bstatic'
  14189. ;;
  14190. lcc*)
  14191. # Lucid
  14192. lt_prog_compiler_pic_CXX='-pic'
  14193. ;;
  14194. *)
  14195. ;;
  14196. esac
  14197. ;;
  14198. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14199. case $cc_basename in
  14200. CC*)
  14201. lt_prog_compiler_wl_CXX='-Wl,'
  14202. lt_prog_compiler_pic_CXX='-KPIC'
  14203. lt_prog_compiler_static_CXX='-Bstatic'
  14204. ;;
  14205. esac
  14206. ;;
  14207. tandem*)
  14208. case $cc_basename in
  14209. NCC*)
  14210. # NonStop-UX NCC 3.20
  14211. lt_prog_compiler_pic_CXX='-KPIC'
  14212. ;;
  14213. *)
  14214. ;;
  14215. esac
  14216. ;;
  14217. vxworks*)
  14218. ;;
  14219. *)
  14220. lt_prog_compiler_can_build_shared_CXX=no
  14221. ;;
  14222. esac
  14223. fi
  14224. case $host_os in
  14225. # For platforms that do not support PIC, -DPIC is meaningless:
  14226. *djgpp*)
  14227. lt_prog_compiler_pic_CXX=
  14228. ;;
  14229. *)
  14230. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14231. ;;
  14232. esac
  14233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14234. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14235. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14236. then :
  14237. printf %s "(cached) " >&6
  14238. else $as_nop
  14239. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14240. fi
  14241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14242. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14243. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14244. #
  14245. # Check to make sure the PIC flag actually works.
  14246. #
  14247. if test -n "$lt_prog_compiler_pic_CXX"; then
  14248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14249. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14250. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14251. then :
  14252. printf %s "(cached) " >&6
  14253. else $as_nop
  14254. lt_cv_prog_compiler_pic_works_CXX=no
  14255. ac_outfile=conftest.$ac_objext
  14256. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14257. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14258. # Insert the option either (1) after the last *FLAGS variable, or
  14259. # (2) before a word containing "conftest.", or (3) at the end.
  14260. # Note that $ac_compile itself does not contain backslashes and begins
  14261. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14262. # The option is referenced via a variable to avoid confusing sed.
  14263. lt_compile=`echo "$ac_compile" | $SED \
  14264. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14265. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14266. -e 's:$: $lt_compiler_flag:'`
  14267. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14268. (eval "$lt_compile" 2>conftest.err)
  14269. ac_status=$?
  14270. cat conftest.err >&5
  14271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14272. if (exit $ac_status) && test -s "$ac_outfile"; then
  14273. # The compiler can only warn and ignore the option if not recognized
  14274. # So say no if there are warnings other than the usual output.
  14275. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14276. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14277. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14278. lt_cv_prog_compiler_pic_works_CXX=yes
  14279. fi
  14280. fi
  14281. $RM conftest*
  14282. fi
  14283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14284. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14285. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14286. case $lt_prog_compiler_pic_CXX in
  14287. "" | " "*) ;;
  14288. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14289. esac
  14290. else
  14291. lt_prog_compiler_pic_CXX=
  14292. lt_prog_compiler_can_build_shared_CXX=no
  14293. fi
  14294. fi
  14295. #
  14296. # Check to make sure the static flag actually works.
  14297. #
  14298. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14300. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14301. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14302. then :
  14303. printf %s "(cached) " >&6
  14304. else $as_nop
  14305. lt_cv_prog_compiler_static_works_CXX=no
  14306. save_LDFLAGS=$LDFLAGS
  14307. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14308. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14309. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14310. # The linker can only warn and ignore the option if not recognized
  14311. # So say no if there are warnings
  14312. if test -s conftest.err; then
  14313. # Append any errors to the config.log.
  14314. cat conftest.err 1>&5
  14315. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14316. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14317. if diff conftest.exp conftest.er2 >/dev/null; then
  14318. lt_cv_prog_compiler_static_works_CXX=yes
  14319. fi
  14320. else
  14321. lt_cv_prog_compiler_static_works_CXX=yes
  14322. fi
  14323. fi
  14324. $RM -r conftest*
  14325. LDFLAGS=$save_LDFLAGS
  14326. fi
  14327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14328. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14329. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14330. :
  14331. else
  14332. lt_prog_compiler_static_CXX=
  14333. fi
  14334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14335. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14336. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14337. then :
  14338. printf %s "(cached) " >&6
  14339. else $as_nop
  14340. lt_cv_prog_compiler_c_o_CXX=no
  14341. $RM -r conftest 2>/dev/null
  14342. mkdir conftest
  14343. cd conftest
  14344. mkdir out
  14345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14346. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14347. # Insert the option either (1) after the last *FLAGS variable, or
  14348. # (2) before a word containing "conftest.", or (3) at the end.
  14349. # Note that $ac_compile itself does not contain backslashes and begins
  14350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14351. lt_compile=`echo "$ac_compile" | $SED \
  14352. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14353. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14354. -e 's:$: $lt_compiler_flag:'`
  14355. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14356. (eval "$lt_compile" 2>out/conftest.err)
  14357. ac_status=$?
  14358. cat out/conftest.err >&5
  14359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14360. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14361. then
  14362. # The compiler can only warn and ignore the option if not recognized
  14363. # So say no if there are warnings
  14364. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14365. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14366. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14367. lt_cv_prog_compiler_c_o_CXX=yes
  14368. fi
  14369. fi
  14370. chmod u+w . 2>&5
  14371. $RM conftest*
  14372. # SGI C++ compiler will create directory out/ii_files/ for
  14373. # template instantiation
  14374. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14375. $RM out/* && rmdir out
  14376. cd ..
  14377. $RM -r conftest
  14378. $RM conftest*
  14379. fi
  14380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14381. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14383. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14384. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14385. then :
  14386. printf %s "(cached) " >&6
  14387. else $as_nop
  14388. lt_cv_prog_compiler_c_o_CXX=no
  14389. $RM -r conftest 2>/dev/null
  14390. mkdir conftest
  14391. cd conftest
  14392. mkdir out
  14393. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14394. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14395. # Insert the option either (1) after the last *FLAGS variable, or
  14396. # (2) before a word containing "conftest.", or (3) at the end.
  14397. # Note that $ac_compile itself does not contain backslashes and begins
  14398. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14399. lt_compile=`echo "$ac_compile" | $SED \
  14400. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14401. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14402. -e 's:$: $lt_compiler_flag:'`
  14403. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14404. (eval "$lt_compile" 2>out/conftest.err)
  14405. ac_status=$?
  14406. cat out/conftest.err >&5
  14407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14408. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14409. then
  14410. # The compiler can only warn and ignore the option if not recognized
  14411. # So say no if there are warnings
  14412. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14413. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14414. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14415. lt_cv_prog_compiler_c_o_CXX=yes
  14416. fi
  14417. fi
  14418. chmod u+w . 2>&5
  14419. $RM conftest*
  14420. # SGI C++ compiler will create directory out/ii_files/ for
  14421. # template instantiation
  14422. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14423. $RM out/* && rmdir out
  14424. cd ..
  14425. $RM -r conftest
  14426. $RM conftest*
  14427. fi
  14428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14429. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14430. hard_links=nottested
  14431. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14432. # do not overwrite the value of need_locks provided by the user
  14433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14434. printf %s "checking if we can lock with hard links... " >&6; }
  14435. hard_links=yes
  14436. $RM conftest*
  14437. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14438. touch conftest.a
  14439. ln conftest.a conftest.b 2>&5 || hard_links=no
  14440. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14442. printf "%s\n" "$hard_links" >&6; }
  14443. if test no = "$hard_links"; then
  14444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14445. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14446. need_locks=warn
  14447. fi
  14448. else
  14449. need_locks=no
  14450. fi
  14451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14452. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14453. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14454. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14455. case $host_os in
  14456. aix[4-9]*)
  14457. # If we're using GNU nm, then we don't want the "-C" option.
  14458. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14459. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14460. # weak defined symbols like other global defined symbols, whereas
  14461. # GNU nm marks them as "W".
  14462. # While the 'weak' keyword is ignored in the Export File, we need
  14463. # it in the Import File for the 'aix-soname' feature, so we have
  14464. # to replace the "-B" option with "-P" for AIX nm.
  14465. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14466. 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'
  14467. else
  14468. 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'
  14469. fi
  14470. ;;
  14471. pw32*)
  14472. export_symbols_cmds_CXX=$ltdll_cmds
  14473. ;;
  14474. cygwin* | mingw* | windows* | cegcc*)
  14475. case $cc_basename in
  14476. cl* | icl*)
  14477. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14478. ;;
  14479. *)
  14480. 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'
  14481. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14482. ;;
  14483. esac
  14484. ;;
  14485. *)
  14486. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14487. ;;
  14488. esac
  14489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14490. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14491. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14492. with_gnu_ld_CXX=$with_gnu_ld
  14493. #
  14494. # Do we need to explicitly link libc?
  14495. #
  14496. case "x$archive_cmds_need_lc_CXX" in
  14497. x|xyes)
  14498. # Assume -lc should be added
  14499. archive_cmds_need_lc_CXX=yes
  14500. if test yes,yes = "$GCC,$enable_shared"; then
  14501. case $archive_cmds_CXX in
  14502. *'~'*)
  14503. # FIXME: we may have to deal with multi-command sequences.
  14504. ;;
  14505. '$CC '*)
  14506. # Test whether the compiler implicitly links with -lc since on some
  14507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14508. # to ld, don't add -lc before -lgcc.
  14509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14510. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14511. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14512. then :
  14513. printf %s "(cached) " >&6
  14514. else $as_nop
  14515. $RM conftest*
  14516. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14518. (eval $ac_compile) 2>&5
  14519. ac_status=$?
  14520. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14521. test $ac_status = 0; } 2>conftest.err; then
  14522. soname=conftest
  14523. lib=conftest
  14524. libobjs=conftest.$ac_objext
  14525. deplibs=
  14526. wl=$lt_prog_compiler_wl_CXX
  14527. pic_flag=$lt_prog_compiler_pic_CXX
  14528. compiler_flags=-v
  14529. linker_flags=-v
  14530. verstring=
  14531. output_objdir=.
  14532. libname=conftest
  14533. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14534. allow_undefined_flag_CXX=
  14535. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14536. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14537. ac_status=$?
  14538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14539. test $ac_status = 0; }
  14540. then
  14541. lt_cv_archive_cmds_need_lc_CXX=no
  14542. else
  14543. lt_cv_archive_cmds_need_lc_CXX=yes
  14544. fi
  14545. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14546. else
  14547. cat conftest.err 1>&5
  14548. fi
  14549. $RM conftest*
  14550. fi
  14551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14552. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14553. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14554. ;;
  14555. esac
  14556. fi
  14557. ;;
  14558. esac
  14559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14560. printf %s "checking dynamic linker characteristics... " >&6; }
  14561. library_names_spec=
  14562. libname_spec='lib$name'
  14563. soname_spec=
  14564. shrext_cmds=.so
  14565. postinstall_cmds=
  14566. postuninstall_cmds=
  14567. finish_cmds=
  14568. finish_eval=
  14569. shlibpath_var=
  14570. shlibpath_overrides_runpath=unknown
  14571. version_type=none
  14572. dynamic_linker="$host_os ld.so"
  14573. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14574. need_lib_prefix=unknown
  14575. hardcode_into_libs=no
  14576. # when you set need_version to no, make sure it does not cause -set_version
  14577. # flags to be left without arguments
  14578. need_version=unknown
  14579. case $host_os in
  14580. aix3*)
  14581. version_type=linux # correct to gnu/linux during the next big refactor
  14582. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14583. shlibpath_var=LIBPATH
  14584. # AIX 3 has no versioning support, so we append a major version to the name.
  14585. soname_spec='$libname$release$shared_ext$major'
  14586. ;;
  14587. aix[4-9]*)
  14588. version_type=linux # correct to gnu/linux during the next big refactor
  14589. need_lib_prefix=no
  14590. need_version=no
  14591. hardcode_into_libs=yes
  14592. if test ia64 = "$host_cpu"; then
  14593. # AIX 5 supports IA64
  14594. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14595. shlibpath_var=LD_LIBRARY_PATH
  14596. else
  14597. # With GCC up to 2.95.x, collect2 would create an import file
  14598. # for dependence libraries. The import file would start with
  14599. # the line '#! .'. This would cause the generated library to
  14600. # depend on '.', always an invalid library. This was fixed in
  14601. # development snapshots of GCC prior to 3.0.
  14602. case $host_os in
  14603. aix4 | aix4.[01] | aix4.[01].*)
  14604. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14605. echo ' yes '
  14606. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14607. :
  14608. else
  14609. can_build_shared=no
  14610. fi
  14611. ;;
  14612. esac
  14613. # Using Import Files as archive members, it is possible to support
  14614. # filename-based versioning of shared library archives on AIX. While
  14615. # this would work for both with and without runtime linking, it will
  14616. # prevent static linking of such archives. So we do filename-based
  14617. # shared library versioning with .so extension only, which is used
  14618. # when both runtime linking and shared linking is enabled.
  14619. # Unfortunately, runtime linking may impact performance, so we do
  14620. # not want this to be the default eventually. Also, we use the
  14621. # versioned .so libs for executables only if there is the -brtl
  14622. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14623. # To allow for filename-based versioning support, we need to create
  14624. # libNAME.so.V as an archive file, containing:
  14625. # *) an Import File, referring to the versioned filename of the
  14626. # archive as well as the shared archive member, telling the
  14627. # bitwidth (32 or 64) of that shared object, and providing the
  14628. # list of exported symbols of that shared object, eventually
  14629. # decorated with the 'weak' keyword
  14630. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14631. # it being seen by the linker.
  14632. # At run time we better use the real file rather than another symlink,
  14633. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14634. case $with_aix_soname,$aix_use_runtimelinking in
  14635. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14636. # soname into executable. Probably we can add versioning support to
  14637. # collect2, so additional links can be useful in future.
  14638. aix,yes) # traditional libtool
  14639. dynamic_linker='AIX unversionable lib.so'
  14640. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14641. # instead of lib<name>.a to let people know that these are not
  14642. # typical AIX shared libraries.
  14643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14644. ;;
  14645. aix,no) # traditional AIX only
  14646. dynamic_linker='AIX lib.a(lib.so.V)'
  14647. # We preserve .a as extension for shared libraries through AIX4.2
  14648. # and later when we are not doing run time linking.
  14649. library_names_spec='$libname$release.a $libname.a'
  14650. soname_spec='$libname$release$shared_ext$major'
  14651. ;;
  14652. svr4,*) # full svr4 only
  14653. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14654. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14655. # We do not specify a path in Import Files, so LIBPATH fires.
  14656. shlibpath_overrides_runpath=yes
  14657. ;;
  14658. *,yes) # both, prefer svr4
  14659. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14660. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14661. # unpreferred sharedlib libNAME.a needs extra handling
  14662. 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"'
  14663. 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"'
  14664. # We do not specify a path in Import Files, so LIBPATH fires.
  14665. shlibpath_overrides_runpath=yes
  14666. ;;
  14667. *,no) # both, prefer aix
  14668. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14669. library_names_spec='$libname$release.a $libname.a'
  14670. soname_spec='$libname$release$shared_ext$major'
  14671. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14672. 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)'
  14673. 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"'
  14674. ;;
  14675. esac
  14676. shlibpath_var=LIBPATH
  14677. fi
  14678. ;;
  14679. amigaos*)
  14680. case $host_cpu in
  14681. powerpc)
  14682. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14683. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14684. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14685. ;;
  14686. m68k)
  14687. library_names_spec='$libname.ixlibrary $libname.a'
  14688. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14689. 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'
  14690. ;;
  14691. esac
  14692. ;;
  14693. beos*)
  14694. library_names_spec='$libname$shared_ext'
  14695. dynamic_linker="$host_os ld.so"
  14696. shlibpath_var=LIBRARY_PATH
  14697. ;;
  14698. bsdi[45]*)
  14699. version_type=linux # correct to gnu/linux during the next big refactor
  14700. need_version=no
  14701. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14702. soname_spec='$libname$release$shared_ext$major'
  14703. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14704. shlibpath_var=LD_LIBRARY_PATH
  14705. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14706. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14707. # the default ld.so.conf also contains /usr/contrib/lib and
  14708. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14709. # libtool to hard-code these into programs
  14710. ;;
  14711. cygwin* | mingw* | windows* | pw32* | cegcc*)
  14712. version_type=windows
  14713. shrext_cmds=.dll
  14714. need_version=no
  14715. need_lib_prefix=no
  14716. case $GCC,$cc_basename in
  14717. yes,*)
  14718. # gcc
  14719. library_names_spec='$libname.dll.a'
  14720. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14721. postinstall_cmds='base_file=`basename \$file`~
  14722. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14723. dldir=$destdir/`dirname \$dlpath`~
  14724. test -d \$dldir || mkdir -p \$dldir~
  14725. $install_prog $dir/$dlname \$dldir/$dlname~
  14726. chmod a+x \$dldir/$dlname~
  14727. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14728. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14729. fi'
  14730. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14731. dlpath=$dir/\$dldll~
  14732. $RM \$dlpath'
  14733. shlibpath_overrides_runpath=yes
  14734. case $host_os in
  14735. cygwin*)
  14736. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14737. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14738. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14739. ;;
  14740. mingw* | windows* | cegcc*)
  14741. # MinGW DLLs use traditional 'lib' prefix
  14742. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14743. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14744. ;;
  14745. pw32*)
  14746. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14747. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14748. ;;
  14749. esac
  14750. dynamic_linker='Win32 ld.exe'
  14751. ;;
  14752. *,cl* | *,icl*)
  14753. # Native MSVC or ICC
  14754. libname_spec='$name'
  14755. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14756. library_names_spec='$libname.dll.lib'
  14757. case $build_os in
  14758. mingw* | windows*)
  14759. sys_lib_search_path_spec=
  14760. lt_save_ifs=$IFS
  14761. IFS=';'
  14762. for lt_path in $LIB
  14763. do
  14764. IFS=$lt_save_ifs
  14765. # Let DOS variable expansion print the short 8.3 style file name.
  14766. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14767. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14768. done
  14769. IFS=$lt_save_ifs
  14770. # Convert to MSYS style.
  14771. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14772. ;;
  14773. cygwin*)
  14774. # Convert to unix form, then to dos form, then back to unix form
  14775. # but this time dos style (no spaces!) so that the unix form looks
  14776. # like /cygdrive/c/PROGRA~1:/cygdr...
  14777. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14778. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14779. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14780. ;;
  14781. *)
  14782. sys_lib_search_path_spec=$LIB
  14783. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14784. # It is most probably a Windows format PATH.
  14785. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14786. else
  14787. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14788. fi
  14789. # FIXME: find the short name or the path components, as spaces are
  14790. # common. (e.g. "Program Files" -> "PROGRA~1")
  14791. ;;
  14792. esac
  14793. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14794. postinstall_cmds='base_file=`basename \$file`~
  14795. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14796. dldir=$destdir/`dirname \$dlpath`~
  14797. test -d \$dldir || mkdir -p \$dldir~
  14798. $install_prog $dir/$dlname \$dldir/$dlname'
  14799. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14800. dlpath=$dir/\$dldll~
  14801. $RM \$dlpath'
  14802. shlibpath_overrides_runpath=yes
  14803. dynamic_linker='Win32 link.exe'
  14804. ;;
  14805. *)
  14806. # Assume MSVC and ICC wrapper
  14807. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14808. dynamic_linker='Win32 ld.exe'
  14809. ;;
  14810. esac
  14811. # FIXME: first we should search . and the directory the executable is in
  14812. shlibpath_var=PATH
  14813. ;;
  14814. darwin* | rhapsody*)
  14815. dynamic_linker="$host_os dyld"
  14816. version_type=darwin
  14817. need_lib_prefix=no
  14818. need_version=no
  14819. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14820. soname_spec='$libname$release$major$shared_ext'
  14821. shlibpath_overrides_runpath=yes
  14822. shlibpath_var=DYLD_LIBRARY_PATH
  14823. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14824. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14825. ;;
  14826. dgux*)
  14827. version_type=linux # correct to gnu/linux during the next big refactor
  14828. need_lib_prefix=no
  14829. need_version=no
  14830. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14831. soname_spec='$libname$release$shared_ext$major'
  14832. shlibpath_var=LD_LIBRARY_PATH
  14833. ;;
  14834. freebsd* | dragonfly* | midnightbsd*)
  14835. # DragonFly does not have aout. When/if they implement a new
  14836. # versioning mechanism, adjust this.
  14837. if test -x /usr/bin/objformat; then
  14838. objformat=`/usr/bin/objformat`
  14839. else
  14840. case $host_os in
  14841. freebsd[23].*) objformat=aout ;;
  14842. *) objformat=elf ;;
  14843. esac
  14844. fi
  14845. version_type=freebsd-$objformat
  14846. case $version_type in
  14847. freebsd-elf*)
  14848. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14849. soname_spec='$libname$release$shared_ext$major'
  14850. need_version=no
  14851. need_lib_prefix=no
  14852. ;;
  14853. freebsd-*)
  14854. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14855. need_version=yes
  14856. ;;
  14857. esac
  14858. shlibpath_var=LD_LIBRARY_PATH
  14859. case $host_os in
  14860. freebsd2.*)
  14861. shlibpath_overrides_runpath=yes
  14862. ;;
  14863. freebsd3.[01]* | freebsdelf3.[01]*)
  14864. shlibpath_overrides_runpath=yes
  14865. hardcode_into_libs=yes
  14866. ;;
  14867. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14868. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14869. shlibpath_overrides_runpath=no
  14870. hardcode_into_libs=yes
  14871. ;;
  14872. *) # from 4.6 on, and DragonFly
  14873. shlibpath_overrides_runpath=yes
  14874. hardcode_into_libs=yes
  14875. ;;
  14876. esac
  14877. ;;
  14878. haiku*)
  14879. version_type=linux # correct to gnu/linux during the next big refactor
  14880. need_lib_prefix=no
  14881. need_version=no
  14882. dynamic_linker="$host_os runtime_loader"
  14883. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14884. soname_spec='$libname$release$shared_ext$major'
  14885. shlibpath_var=LIBRARY_PATH
  14886. shlibpath_overrides_runpath=no
  14887. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14888. hardcode_into_libs=yes
  14889. ;;
  14890. hpux9* | hpux10* | hpux11*)
  14891. # Give a soname corresponding to the major version so that dld.sl refuses to
  14892. # link against other versions.
  14893. version_type=sunos
  14894. need_lib_prefix=no
  14895. need_version=no
  14896. case $host_cpu in
  14897. ia64*)
  14898. shrext_cmds='.so'
  14899. hardcode_into_libs=yes
  14900. dynamic_linker="$host_os dld.so"
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14903. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14904. soname_spec='$libname$release$shared_ext$major'
  14905. if test 32 = "$HPUX_IA64_MODE"; then
  14906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14907. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14908. else
  14909. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14910. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14911. fi
  14912. ;;
  14913. hppa*64*)
  14914. shrext_cmds='.sl'
  14915. hardcode_into_libs=yes
  14916. dynamic_linker="$host_os dld.sl"
  14917. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14918. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14919. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14920. soname_spec='$libname$release$shared_ext$major'
  14921. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14922. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14923. ;;
  14924. *)
  14925. shrext_cmds='.sl'
  14926. dynamic_linker="$host_os dld.sl"
  14927. shlibpath_var=SHLIB_PATH
  14928. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14929. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14930. soname_spec='$libname$release$shared_ext$major'
  14931. ;;
  14932. esac
  14933. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14934. postinstall_cmds='chmod 555 $lib'
  14935. # or fails outright, so override atomically:
  14936. install_override_mode=555
  14937. ;;
  14938. interix[3-9]*)
  14939. version_type=linux # correct to gnu/linux during the next big refactor
  14940. need_lib_prefix=no
  14941. need_version=no
  14942. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14943. soname_spec='$libname$release$shared_ext$major'
  14944. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14945. shlibpath_var=LD_LIBRARY_PATH
  14946. shlibpath_overrides_runpath=no
  14947. hardcode_into_libs=yes
  14948. ;;
  14949. irix5* | irix6* | nonstopux*)
  14950. case $host_os in
  14951. nonstopux*) version_type=nonstopux ;;
  14952. *)
  14953. if test yes = "$lt_cv_prog_gnu_ld"; then
  14954. version_type=linux # correct to gnu/linux during the next big refactor
  14955. else
  14956. version_type=irix
  14957. fi ;;
  14958. esac
  14959. need_lib_prefix=no
  14960. need_version=no
  14961. soname_spec='$libname$release$shared_ext$major'
  14962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14963. case $host_os in
  14964. irix5* | nonstopux*)
  14965. libsuff= shlibsuff=
  14966. ;;
  14967. *)
  14968. case $LD in # libtool.m4 will add one of these switches to LD
  14969. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14970. libsuff= shlibsuff= libmagic=32-bit;;
  14971. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14972. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14973. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14974. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14975. *) libsuff= shlibsuff= libmagic=never-match;;
  14976. esac
  14977. ;;
  14978. esac
  14979. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14980. shlibpath_overrides_runpath=no
  14981. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14982. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14983. hardcode_into_libs=yes
  14984. ;;
  14985. # No shared lib support for Linux oldld, aout, or coff.
  14986. linux*oldld* | linux*aout* | linux*coff*)
  14987. dynamic_linker=no
  14988. ;;
  14989. linux*android*)
  14990. version_type=none # Android doesn't support versioned libraries.
  14991. need_lib_prefix=no
  14992. need_version=no
  14993. library_names_spec='$libname$release$shared_ext'
  14994. soname_spec='$libname$release$shared_ext'
  14995. finish_cmds=
  14996. shlibpath_var=LD_LIBRARY_PATH
  14997. shlibpath_overrides_runpath=yes
  14998. # This implies no fast_install, which is unacceptable.
  14999. # Some rework will be needed to allow for fast_install
  15000. # before this can be enabled.
  15001. hardcode_into_libs=yes
  15002. dynamic_linker='Android linker'
  15003. # Don't embed -rpath directories since the linker doesn't support them.
  15004. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15005. ;;
  15006. # This must be glibc/ELF.
  15007. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15008. version_type=linux # correct to gnu/linux during the next big refactor
  15009. need_lib_prefix=no
  15010. need_version=no
  15011. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15012. soname_spec='$libname$release$shared_ext$major'
  15013. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15014. shlibpath_var=LD_LIBRARY_PATH
  15015. shlibpath_overrides_runpath=no
  15016. # Some binutils ld are patched to set DT_RUNPATH
  15017. if test ${lt_cv_shlibpath_overrides_runpath+y}
  15018. then :
  15019. printf %s "(cached) " >&6
  15020. else $as_nop
  15021. lt_cv_shlibpath_overrides_runpath=no
  15022. save_LDFLAGS=$LDFLAGS
  15023. save_libdir=$libdir
  15024. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  15025. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  15026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15027. /* end confdefs.h. */
  15028. int
  15029. main (void)
  15030. {
  15031. ;
  15032. return 0;
  15033. }
  15034. _ACEOF
  15035. if ac_fn_cxx_try_link "$LINENO"
  15036. then :
  15037. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  15038. then :
  15039. lt_cv_shlibpath_overrides_runpath=yes
  15040. fi
  15041. fi
  15042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15043. conftest$ac_exeext conftest.$ac_ext
  15044. LDFLAGS=$save_LDFLAGS
  15045. libdir=$save_libdir
  15046. fi
  15047. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15048. # This implies no fast_install, which is unacceptable.
  15049. # Some rework will be needed to allow for fast_install
  15050. # before this can be enabled.
  15051. hardcode_into_libs=yes
  15052. # Add ABI-specific directories to the system library path.
  15053. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15054. # Ideally, we could use ldconfig to report *all* directores which are
  15055. # searched for libraries, however this is still not possible. Aside from not
  15056. # being certain /sbin/ldconfig is available, command
  15057. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15058. # even though it is searched at run-time. Try to do the best guess by
  15059. # appending ld.so.conf contents (and includes) to the search path.
  15060. if test -f /etc/ld.so.conf; then
  15061. 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' ' '`
  15062. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15063. fi
  15064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15065. # powerpc, because MkLinux only supported shared libraries with the
  15066. # GNU dynamic linker. Since this was broken with cross compilers,
  15067. # most powerpc-linux boxes support dynamic linking these days and
  15068. # people can always --disable-shared, the test was removed, and we
  15069. # assume the GNU/Linux dynamic linker is in use.
  15070. dynamic_linker='GNU/Linux ld.so'
  15071. ;;
  15072. netbsd*)
  15073. version_type=sunos
  15074. need_lib_prefix=no
  15075. need_version=no
  15076. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15077. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15079. dynamic_linker='NetBSD (a.out) ld.so'
  15080. else
  15081. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15082. soname_spec='$libname$release$shared_ext$major'
  15083. dynamic_linker='NetBSD ld.elf_so'
  15084. fi
  15085. shlibpath_var=LD_LIBRARY_PATH
  15086. shlibpath_overrides_runpath=yes
  15087. hardcode_into_libs=yes
  15088. ;;
  15089. newsos6)
  15090. version_type=linux # correct to gnu/linux during the next big refactor
  15091. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15092. shlibpath_var=LD_LIBRARY_PATH
  15093. shlibpath_overrides_runpath=yes
  15094. ;;
  15095. *nto* | *qnx*)
  15096. version_type=qnx
  15097. need_lib_prefix=no
  15098. need_version=no
  15099. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15100. soname_spec='$libname$release$shared_ext$major'
  15101. shlibpath_var=LD_LIBRARY_PATH
  15102. shlibpath_overrides_runpath=no
  15103. hardcode_into_libs=yes
  15104. dynamic_linker='ldqnx.so'
  15105. ;;
  15106. openbsd* | bitrig*)
  15107. version_type=sunos
  15108. sys_lib_dlsearch_path_spec=/usr/lib
  15109. need_lib_prefix=no
  15110. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15111. need_version=no
  15112. else
  15113. need_version=yes
  15114. fi
  15115. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15116. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. shlibpath_overrides_runpath=yes
  15119. ;;
  15120. os2*)
  15121. libname_spec='$name'
  15122. shrext_cmds=.dll
  15123. need_lib_prefix=no
  15124. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15125. # SDL customization: removed versioning support.
  15126. # version_type=windows
  15127. # need_version=no
  15128. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15129. # v=$($ECHO $release$versuffix | tr -d .-);
  15130. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15131. # $ECHO $n$v`$shared_ext'
  15132. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15133. library_names_spec='${libname}_dll.$libext'
  15134. dynamic_linker='OS/2 ld.exe'
  15135. shlibpath_var=BEGINLIBPATH
  15136. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15137. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15138. postinstall_cmds='base_file=`basename \$file`~
  15139. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15140. dldir=$destdir/`dirname \$dlpath`~
  15141. test -d \$dldir || mkdir -p \$dldir~
  15142. $install_prog $dir/$dlname \$dldir/$dlname~
  15143. chmod a+x \$dldir/$dlname~
  15144. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15145. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15146. fi'
  15147. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15148. dlpath=$dir/\$dldll~
  15149. $RM \$dlpath'
  15150. ;;
  15151. osf3* | osf4* | osf5*)
  15152. version_type=osf
  15153. need_lib_prefix=no
  15154. need_version=no
  15155. soname_spec='$libname$release$shared_ext$major'
  15156. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15157. shlibpath_var=LD_LIBRARY_PATH
  15158. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15159. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15160. ;;
  15161. rdos*)
  15162. dynamic_linker=no
  15163. ;;
  15164. solaris*)
  15165. version_type=linux # correct to gnu/linux during the next big refactor
  15166. need_lib_prefix=no
  15167. need_version=no
  15168. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15169. soname_spec='$libname$release$shared_ext$major'
  15170. shlibpath_var=LD_LIBRARY_PATH
  15171. shlibpath_overrides_runpath=yes
  15172. hardcode_into_libs=yes
  15173. # ldd complains unless libraries are executable
  15174. postinstall_cmds='chmod +x $lib'
  15175. ;;
  15176. sunos4*)
  15177. version_type=sunos
  15178. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15179. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15180. shlibpath_var=LD_LIBRARY_PATH
  15181. shlibpath_overrides_runpath=yes
  15182. if test yes = "$with_gnu_ld"; then
  15183. need_lib_prefix=no
  15184. fi
  15185. need_version=yes
  15186. ;;
  15187. sysv4 | sysv4.3*)
  15188. version_type=linux # correct to gnu/linux during the next big refactor
  15189. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15190. soname_spec='$libname$release$shared_ext$major'
  15191. shlibpath_var=LD_LIBRARY_PATH
  15192. case $host_vendor in
  15193. sni)
  15194. shlibpath_overrides_runpath=no
  15195. need_lib_prefix=no
  15196. runpath_var=LD_RUN_PATH
  15197. ;;
  15198. siemens)
  15199. need_lib_prefix=no
  15200. ;;
  15201. motorola)
  15202. need_lib_prefix=no
  15203. need_version=no
  15204. shlibpath_overrides_runpath=no
  15205. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15206. ;;
  15207. esac
  15208. ;;
  15209. sysv4*MP*)
  15210. if test -d /usr/nec; then
  15211. version_type=linux # correct to gnu/linux during the next big refactor
  15212. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15213. soname_spec='$libname$shared_ext.$major'
  15214. shlibpath_var=LD_LIBRARY_PATH
  15215. fi
  15216. ;;
  15217. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15218. version_type=sco
  15219. need_lib_prefix=no
  15220. need_version=no
  15221. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15222. soname_spec='$libname$release$shared_ext$major'
  15223. shlibpath_var=LD_LIBRARY_PATH
  15224. shlibpath_overrides_runpath=yes
  15225. hardcode_into_libs=yes
  15226. if test yes = "$with_gnu_ld"; then
  15227. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15228. else
  15229. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15230. case $host_os in
  15231. sco3.2v5*)
  15232. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15233. ;;
  15234. esac
  15235. fi
  15236. sys_lib_dlsearch_path_spec='/usr/lib'
  15237. ;;
  15238. tpf*)
  15239. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15240. version_type=linux # correct to gnu/linux during the next big refactor
  15241. need_lib_prefix=no
  15242. need_version=no
  15243. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15244. shlibpath_var=LD_LIBRARY_PATH
  15245. shlibpath_overrides_runpath=no
  15246. hardcode_into_libs=yes
  15247. ;;
  15248. uts4*)
  15249. version_type=linux # correct to gnu/linux during the next big refactor
  15250. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15251. soname_spec='$libname$release$shared_ext$major'
  15252. shlibpath_var=LD_LIBRARY_PATH
  15253. ;;
  15254. *)
  15255. dynamic_linker=no
  15256. ;;
  15257. esac
  15258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15259. printf "%s\n" "$dynamic_linker" >&6; }
  15260. test no = "$dynamic_linker" && can_build_shared=no
  15261. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15262. if test yes = "$GCC"; then
  15263. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15264. fi
  15265. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15266. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15267. fi
  15268. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15269. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15270. fi
  15271. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15272. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15273. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15274. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15275. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15276. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15278. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15279. hardcode_action_CXX=
  15280. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15281. test -n "$runpath_var_CXX" ||
  15282. test yes = "$hardcode_automatic_CXX"; then
  15283. # We can hardcode non-existent directories.
  15284. if test no != "$hardcode_direct_CXX" &&
  15285. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15286. # have to relink, otherwise we might link with an installed library
  15287. # when we should be linking with a yet-to-be-installed one
  15288. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15289. test no != "$hardcode_minus_L_CXX"; then
  15290. # Linking always hardcodes the temporary library directory.
  15291. hardcode_action_CXX=relink
  15292. else
  15293. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15294. hardcode_action_CXX=immediate
  15295. fi
  15296. else
  15297. # We cannot hardcode anything, or else we can only hardcode existing
  15298. # directories.
  15299. hardcode_action_CXX=unsupported
  15300. fi
  15301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15302. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15303. if test relink = "$hardcode_action_CXX" ||
  15304. test yes = "$inherit_rpath_CXX"; then
  15305. # Fast installation is not supported
  15306. enable_fast_install=no
  15307. elif test yes = "$shlibpath_overrides_runpath" ||
  15308. test no = "$enable_shared"; then
  15309. # Fast installation is not necessary
  15310. enable_fast_install=needless
  15311. fi
  15312. fi # test -n "$compiler"
  15313. CC=$lt_save_CC
  15314. CFLAGS=$lt_save_CFLAGS
  15315. LDCXX=$LD
  15316. LD=$lt_save_LD
  15317. GCC=$lt_save_GCC
  15318. with_gnu_ld=$lt_save_with_gnu_ld
  15319. lt_cv_path_LDCXX=$lt_cv_path_LD
  15320. lt_cv_path_LD=$lt_save_path_LD
  15321. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15322. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15323. fi # test yes != "$_lt_caught_CXX_error"
  15324. ac_ext=c
  15325. ac_cpp='$CPP $CPPFLAGS'
  15326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15330. printf %s "checking for egrep... " >&6; }
  15331. if test ${ac_cv_path_EGREP+y}
  15332. then :
  15333. printf %s "(cached) " >&6
  15334. else $as_nop
  15335. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15336. then ac_cv_path_EGREP="$GREP -E"
  15337. else
  15338. if test -z "$EGREP"; then
  15339. ac_path_EGREP_found=false
  15340. # Loop through the user's path and test for each of PROGNAME-LIST
  15341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15342. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15343. do
  15344. IFS=$as_save_IFS
  15345. case $as_dir in #(((
  15346. '') as_dir=./ ;;
  15347. */) ;;
  15348. *) as_dir=$as_dir/ ;;
  15349. esac
  15350. for ac_prog in egrep
  15351. do
  15352. for ac_exec_ext in '' $ac_executable_extensions; do
  15353. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15354. as_fn_executable_p "$ac_path_EGREP" || continue
  15355. # Check for GNU ac_path_EGREP and select it if it is found.
  15356. # Check for GNU $ac_path_EGREP
  15357. case `"$ac_path_EGREP" --version 2>&1` in
  15358. *GNU*)
  15359. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15360. *)
  15361. ac_count=0
  15362. printf %s 0123456789 >"conftest.in"
  15363. while :
  15364. do
  15365. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15366. mv "conftest.tmp" "conftest.in"
  15367. cp "conftest.in" "conftest.nl"
  15368. printf "%s\n" 'EGREP' >> "conftest.nl"
  15369. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15370. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15371. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15372. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15373. # Best one so far, save it but keep looking for a better one
  15374. ac_cv_path_EGREP="$ac_path_EGREP"
  15375. ac_path_EGREP_max=$ac_count
  15376. fi
  15377. # 10*(2^10) chars as input seems more than enough
  15378. test $ac_count -gt 10 && break
  15379. done
  15380. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15381. esac
  15382. $ac_path_EGREP_found && break 3
  15383. done
  15384. done
  15385. done
  15386. IFS=$as_save_IFS
  15387. if test -z "$ac_cv_path_EGREP"; then
  15388. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15389. fi
  15390. else
  15391. ac_cv_path_EGREP=$EGREP
  15392. fi
  15393. fi
  15394. fi
  15395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15396. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15397. EGREP="$ac_cv_path_EGREP"
  15398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15399. printf %s "checking for fgrep... " >&6; }
  15400. if test ${ac_cv_path_FGREP+y}
  15401. then :
  15402. printf %s "(cached) " >&6
  15403. else $as_nop
  15404. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15405. then ac_cv_path_FGREP="$GREP -F"
  15406. else
  15407. if test -z "$FGREP"; then
  15408. ac_path_FGREP_found=false
  15409. # Loop through the user's path and test for each of PROGNAME-LIST
  15410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15411. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15412. do
  15413. IFS=$as_save_IFS
  15414. case $as_dir in #(((
  15415. '') as_dir=./ ;;
  15416. */) ;;
  15417. *) as_dir=$as_dir/ ;;
  15418. esac
  15419. for ac_prog in fgrep
  15420. do
  15421. for ac_exec_ext in '' $ac_executable_extensions; do
  15422. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15423. as_fn_executable_p "$ac_path_FGREP" || continue
  15424. # Check for GNU ac_path_FGREP and select it if it is found.
  15425. # Check for GNU $ac_path_FGREP
  15426. case `"$ac_path_FGREP" --version 2>&1` in
  15427. *GNU*)
  15428. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15429. *)
  15430. ac_count=0
  15431. printf %s 0123456789 >"conftest.in"
  15432. while :
  15433. do
  15434. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15435. mv "conftest.tmp" "conftest.in"
  15436. cp "conftest.in" "conftest.nl"
  15437. printf "%s\n" 'FGREP' >> "conftest.nl"
  15438. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15439. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15440. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15441. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15442. # Best one so far, save it but keep looking for a better one
  15443. ac_cv_path_FGREP="$ac_path_FGREP"
  15444. ac_path_FGREP_max=$ac_count
  15445. fi
  15446. # 10*(2^10) chars as input seems more than enough
  15447. test $ac_count -gt 10 && break
  15448. done
  15449. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15450. esac
  15451. $ac_path_FGREP_found && break 3
  15452. done
  15453. done
  15454. done
  15455. IFS=$as_save_IFS
  15456. if test -z "$ac_cv_path_FGREP"; then
  15457. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15458. fi
  15459. else
  15460. ac_cv_path_FGREP=$FGREP
  15461. fi
  15462. fi
  15463. fi
  15464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15465. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15466. FGREP="$ac_cv_path_FGREP"
  15467. # Find a good install program. We prefer a C program (faster),
  15468. # so one script is as good as another. But avoid the broken or
  15469. # incompatible versions:
  15470. # SysV /etc/install, /usr/sbin/install
  15471. # SunOS /usr/etc/install
  15472. # IRIX /sbin/install
  15473. # AIX /bin/install
  15474. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15475. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15476. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15477. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15478. # OS/2's system install, which has a completely different semantic
  15479. # ./install, which can be erroneously created by make from ./install.sh.
  15480. # Reject install programs that cannot install multiple files.
  15481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15482. printf %s "checking for a BSD-compatible install... " >&6; }
  15483. if test -z "$INSTALL"; then
  15484. if test ${ac_cv_path_install+y}
  15485. then :
  15486. printf %s "(cached) " >&6
  15487. else $as_nop
  15488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15489. for as_dir in $PATH
  15490. do
  15491. IFS=$as_save_IFS
  15492. case $as_dir in #(((
  15493. '') as_dir=./ ;;
  15494. */) ;;
  15495. *) as_dir=$as_dir/ ;;
  15496. esac
  15497. # Account for fact that we put trailing slashes in our PATH walk.
  15498. case $as_dir in #((
  15499. ./ | /[cC]/* | \
  15500. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15501. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15502. /usr/ucb/* ) ;;
  15503. *)
  15504. # OSF1 and SCO ODT 3.0 have their own names for install.
  15505. # Don't use installbsd from OSF since it installs stuff as root
  15506. # by default.
  15507. for ac_prog in ginstall scoinst install; do
  15508. for ac_exec_ext in '' $ac_executable_extensions; do
  15509. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15510. if test $ac_prog = install &&
  15511. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15512. # AIX install. It has an incompatible calling convention.
  15513. :
  15514. elif test $ac_prog = install &&
  15515. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15516. # program-specific install script used by HP pwplus--don't use.
  15517. :
  15518. else
  15519. rm -rf conftest.one conftest.two conftest.dir
  15520. echo one > conftest.one
  15521. echo two > conftest.two
  15522. mkdir conftest.dir
  15523. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15524. test -s conftest.one && test -s conftest.two &&
  15525. test -s conftest.dir/conftest.one &&
  15526. test -s conftest.dir/conftest.two
  15527. then
  15528. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15529. break 3
  15530. fi
  15531. fi
  15532. fi
  15533. done
  15534. done
  15535. ;;
  15536. esac
  15537. done
  15538. IFS=$as_save_IFS
  15539. rm -rf conftest.one conftest.two conftest.dir
  15540. fi
  15541. if test ${ac_cv_path_install+y}; then
  15542. INSTALL=$ac_cv_path_install
  15543. else
  15544. # As a last resort, use the slow shell script. Don't cache a
  15545. # value for INSTALL within a source directory, because that will
  15546. # break other packages using the cache if that directory is
  15547. # removed, or if the value is a relative name.
  15548. INSTALL=$ac_install_sh
  15549. fi
  15550. fi
  15551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15552. printf "%s\n" "$INSTALL" >&6; }
  15553. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15554. # It thinks the first close brace ends the variable substitution.
  15555. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15556. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15557. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15559. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15560. set x ${MAKE-make}
  15561. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15562. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15563. then :
  15564. printf %s "(cached) " >&6
  15565. else $as_nop
  15566. cat >conftest.make <<\_ACEOF
  15567. SHELL = /bin/sh
  15568. all:
  15569. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15570. _ACEOF
  15571. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15572. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15573. *@@@%%%=?*=@@@%%%*)
  15574. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15575. *)
  15576. eval ac_cv_prog_make_${ac_make}_set=no;;
  15577. esac
  15578. rm -f conftest.make
  15579. fi
  15580. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15582. printf "%s\n" "yes" >&6; }
  15583. SET_MAKE=
  15584. else
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15586. printf "%s\n" "no" >&6; }
  15587. SET_MAKE="MAKE=${MAKE-make}"
  15588. fi
  15589. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15590. if test -n "$ac_tool_prefix"; then
  15591. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15592. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15594. printf %s "checking for $ac_word... " >&6; }
  15595. if test ${ac_cv_path_PKG_CONFIG+y}
  15596. then :
  15597. printf %s "(cached) " >&6
  15598. else $as_nop
  15599. case $PKG_CONFIG in
  15600. [\\/]* | ?:[\\/]*)
  15601. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15602. ;;
  15603. *)
  15604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15605. for as_dir in $PATH
  15606. do
  15607. IFS=$as_save_IFS
  15608. case $as_dir in #(((
  15609. '') as_dir=./ ;;
  15610. */) ;;
  15611. *) as_dir=$as_dir/ ;;
  15612. esac
  15613. for ac_exec_ext in '' $ac_executable_extensions; do
  15614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15615. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15617. break 2
  15618. fi
  15619. done
  15620. done
  15621. IFS=$as_save_IFS
  15622. ;;
  15623. esac
  15624. fi
  15625. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15626. if test -n "$PKG_CONFIG"; then
  15627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15628. printf "%s\n" "$PKG_CONFIG" >&6; }
  15629. else
  15630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15631. printf "%s\n" "no" >&6; }
  15632. fi
  15633. fi
  15634. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15635. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15636. # Extract the first word of "pkg-config", so it can be a program name with args.
  15637. set dummy pkg-config; ac_word=$2
  15638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15639. printf %s "checking for $ac_word... " >&6; }
  15640. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15641. then :
  15642. printf %s "(cached) " >&6
  15643. else $as_nop
  15644. case $ac_pt_PKG_CONFIG in
  15645. [\\/]* | ?:[\\/]*)
  15646. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15647. ;;
  15648. *)
  15649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15650. for as_dir in $PATH
  15651. do
  15652. IFS=$as_save_IFS
  15653. case $as_dir in #(((
  15654. '') as_dir=./ ;;
  15655. */) ;;
  15656. *) as_dir=$as_dir/ ;;
  15657. esac
  15658. for ac_exec_ext in '' $ac_executable_extensions; do
  15659. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15660. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15661. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15662. break 2
  15663. fi
  15664. done
  15665. done
  15666. IFS=$as_save_IFS
  15667. ;;
  15668. esac
  15669. fi
  15670. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15671. if test -n "$ac_pt_PKG_CONFIG"; then
  15672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15673. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15674. else
  15675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15676. printf "%s\n" "no" >&6; }
  15677. fi
  15678. if test "x$ac_pt_PKG_CONFIG" = x; then
  15679. PKG_CONFIG=""
  15680. else
  15681. case $cross_compiling:$ac_tool_warned in
  15682. yes:)
  15683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15684. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15685. ac_tool_warned=yes ;;
  15686. esac
  15687. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15688. fi
  15689. else
  15690. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15691. fi
  15692. fi
  15693. if test -n "$PKG_CONFIG"; then
  15694. _pkg_min_version=0.9.0
  15695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15696. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15697. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15699. printf "%s\n" "yes" >&6; }
  15700. else
  15701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15702. printf "%s\n" "no" >&6; }
  15703. PKG_CONFIG=""
  15704. fi
  15705. fi
  15706. if test -z "$AWK" ; then
  15707. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15708. fi
  15709. for ac_prog in gsort sort
  15710. do
  15711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15712. set dummy $ac_prog; ac_word=$2
  15713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15714. printf %s "checking for $ac_word... " >&6; }
  15715. if test ${ac_cv_prog_SORT+y}
  15716. then :
  15717. printf %s "(cached) " >&6
  15718. else $as_nop
  15719. if test -n "$SORT"; then
  15720. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15721. else
  15722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15723. for as_dir in $PATH
  15724. do
  15725. IFS=$as_save_IFS
  15726. case $as_dir in #(((
  15727. '') as_dir=./ ;;
  15728. */) ;;
  15729. *) as_dir=$as_dir/ ;;
  15730. esac
  15731. for ac_exec_ext in '' $ac_executable_extensions; do
  15732. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15733. ac_cv_prog_SORT="$ac_prog"
  15734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15735. break 2
  15736. fi
  15737. done
  15738. done
  15739. IFS=$as_save_IFS
  15740. fi
  15741. fi
  15742. SORT=$ac_cv_prog_SORT
  15743. if test -n "$SORT"; then
  15744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15745. printf "%s\n" "$SORT" >&6; }
  15746. else
  15747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15748. printf "%s\n" "no" >&6; }
  15749. fi
  15750. test -n "$SORT" && break
  15751. done
  15752. test -n "$SORT" || SORT="false"
  15753. if ! "$SORT" -V </dev/null >/dev/null
  15754. then :
  15755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15756. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15757. fi
  15758. # Check whether --enable-largefile was given.
  15759. if test ${enable_largefile+y}
  15760. then :
  15761. enableval=$enable_largefile;
  15762. fi
  15763. if test "$enable_largefile" != no; then
  15764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15765. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15766. if test ${ac_cv_sys_largefile_CC+y}
  15767. then :
  15768. printf %s "(cached) " >&6
  15769. else $as_nop
  15770. ac_cv_sys_largefile_CC=no
  15771. if test "$GCC" != yes; then
  15772. ac_save_CC=$CC
  15773. while :; do
  15774. # IRIX 6.2 and later do not support large files by default,
  15775. # so use the C compiler's -n32 option if that helps.
  15776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15777. /* end confdefs.h. */
  15778. #include <sys/types.h>
  15779. /* Check that off_t can represent 2**63 - 1 correctly.
  15780. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15781. since some C++ compilers masquerading as C compilers
  15782. incorrectly reject 9223372036854775807. */
  15783. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15784. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15785. && LARGE_OFF_T % 2147483647 == 1)
  15786. ? 1 : -1];
  15787. int
  15788. main (void)
  15789. {
  15790. ;
  15791. return 0;
  15792. }
  15793. _ACEOF
  15794. if ac_fn_c_try_compile "$LINENO"
  15795. then :
  15796. break
  15797. fi
  15798. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15799. CC="$CC -n32"
  15800. if ac_fn_c_try_compile "$LINENO"
  15801. then :
  15802. ac_cv_sys_largefile_CC=' -n32'; break
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15805. break
  15806. done
  15807. CC=$ac_save_CC
  15808. rm -f conftest.$ac_ext
  15809. fi
  15810. fi
  15811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15812. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15813. if test "$ac_cv_sys_largefile_CC" != no; then
  15814. CC=$CC$ac_cv_sys_largefile_CC
  15815. fi
  15816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15817. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15818. if test ${ac_cv_sys_file_offset_bits+y}
  15819. then :
  15820. printf %s "(cached) " >&6
  15821. else $as_nop
  15822. while :; do
  15823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15824. /* end confdefs.h. */
  15825. #include <sys/types.h>
  15826. /* Check that off_t can represent 2**63 - 1 correctly.
  15827. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15828. since some C++ compilers masquerading as C compilers
  15829. incorrectly reject 9223372036854775807. */
  15830. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15831. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15832. && LARGE_OFF_T % 2147483647 == 1)
  15833. ? 1 : -1];
  15834. int
  15835. main (void)
  15836. {
  15837. ;
  15838. return 0;
  15839. }
  15840. _ACEOF
  15841. if ac_fn_c_try_compile "$LINENO"
  15842. then :
  15843. ac_cv_sys_file_offset_bits=no; break
  15844. fi
  15845. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15847. /* end confdefs.h. */
  15848. #define _FILE_OFFSET_BITS 64
  15849. #include <sys/types.h>
  15850. /* Check that off_t can represent 2**63 - 1 correctly.
  15851. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15852. since some C++ compilers masquerading as C compilers
  15853. incorrectly reject 9223372036854775807. */
  15854. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15855. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15856. && LARGE_OFF_T % 2147483647 == 1)
  15857. ? 1 : -1];
  15858. int
  15859. main (void)
  15860. {
  15861. ;
  15862. return 0;
  15863. }
  15864. _ACEOF
  15865. if ac_fn_c_try_compile "$LINENO"
  15866. then :
  15867. ac_cv_sys_file_offset_bits=64; break
  15868. fi
  15869. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15870. ac_cv_sys_file_offset_bits=unknown
  15871. break
  15872. done
  15873. fi
  15874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15875. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15876. case $ac_cv_sys_file_offset_bits in #(
  15877. no | unknown) ;;
  15878. *)
  15879. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15880. ;;
  15881. esac
  15882. rm -rf conftest*
  15883. if test $ac_cv_sys_file_offset_bits = unknown; then
  15884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15885. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15886. if test ${ac_cv_sys_large_files+y}
  15887. then :
  15888. printf %s "(cached) " >&6
  15889. else $as_nop
  15890. while :; do
  15891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15892. /* end confdefs.h. */
  15893. #include <sys/types.h>
  15894. /* Check that off_t can represent 2**63 - 1 correctly.
  15895. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15896. since some C++ compilers masquerading as C compilers
  15897. incorrectly reject 9223372036854775807. */
  15898. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15899. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15900. && LARGE_OFF_T % 2147483647 == 1)
  15901. ? 1 : -1];
  15902. int
  15903. main (void)
  15904. {
  15905. ;
  15906. return 0;
  15907. }
  15908. _ACEOF
  15909. if ac_fn_c_try_compile "$LINENO"
  15910. then :
  15911. ac_cv_sys_large_files=no; break
  15912. fi
  15913. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15915. /* end confdefs.h. */
  15916. #define _LARGE_FILES 1
  15917. #include <sys/types.h>
  15918. /* Check that off_t can represent 2**63 - 1 correctly.
  15919. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15920. since some C++ compilers masquerading as C compilers
  15921. incorrectly reject 9223372036854775807. */
  15922. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15923. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15924. && LARGE_OFF_T % 2147483647 == 1)
  15925. ? 1 : -1];
  15926. int
  15927. main (void)
  15928. {
  15929. ;
  15930. return 0;
  15931. }
  15932. _ACEOF
  15933. if ac_fn_c_try_compile "$LINENO"
  15934. then :
  15935. ac_cv_sys_large_files=1; break
  15936. fi
  15937. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15938. ac_cv_sys_large_files=unknown
  15939. break
  15940. done
  15941. fi
  15942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15943. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15944. case $ac_cv_sys_large_files in #(
  15945. no | unknown) ;;
  15946. *)
  15947. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15948. ;;
  15949. esac
  15950. rm -rf conftest*
  15951. fi
  15952. fi
  15953. case "$host" in
  15954. *-*-mingw*)
  15955. # Except on msys, where make can't handle full pathnames (bug 1972)
  15956. ;;
  15957. *)
  15958. srcdir=`cd $srcdir && pwd`
  15959. ;;
  15960. esac
  15961. INCLUDE="-I$srcdir/include"
  15962. case "$host" in
  15963. *-*-nto-qnx*)
  15964. ;;
  15965. *)
  15966. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15967. ;;
  15968. esac
  15969. case "$host" in
  15970. *-*-haiku*)
  15971. LINKER='$(CXX)'
  15972. LIBTOOLLINKERTAG='CXX'
  15973. ;;
  15974. *)
  15975. LINKER='$(CC)'
  15976. LIBTOOLLINKERTAG='CC'
  15977. ;;
  15978. esac
  15979. if test x$srcdir != x.; then
  15980. INCLUDE="-Iinclude $INCLUDE"
  15981. elif test -d .git; then
  15982. as_fn_error $? "
  15983. *** When building from a git clone you should configure and build in a
  15984. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15985. " "$LINENO" 5
  15986. fi
  15987. BASE_CFLAGS=""
  15988. BASE_LDFLAGS=""
  15989. case "$host" in
  15990. *-*-cygwin*)
  15991. # We build SDL on cygwin without the UNIX emulation layer
  15992. save_CFLAGS="$CFLAGS"
  15993. have_no_cygwin=no
  15994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15995. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15996. CFLAGS="$save_CFLAGS -mno-cygwin"
  15997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15998. /* end confdefs.h. */
  15999. int
  16000. main (void)
  16001. {
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. if ac_fn_c_try_compile "$LINENO"
  16007. then :
  16008. have_no_cygwin=yes
  16009. fi
  16010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  16012. printf "%s\n" "$have_no_cygwin" >&6; }
  16013. CFLAGS="$save_CFLAGS"
  16014. if test x$have_no_cygwin = xyes; then
  16015. BASE_CFLAGS="-mno-cygwin"
  16016. BASE_LDFLAGS="-mno-cygwin"
  16017. fi
  16018. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  16019. ;;
  16020. esac
  16021. # Uncomment the following line if you want to force SDL and applications
  16022. # built with it to be compiled for a particular architecture.
  16023. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  16024. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  16025. # The default optimization for SDL is -O3 (Bug #31)
  16026. if test "x$orig_CFLAGS" = x; then
  16027. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  16028. fi
  16029. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  16030. BUILD_LDFLAGS="$LDFLAGS"
  16031. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  16032. ## These are common directories to find software packages
  16033. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  16034. # if test -d $path/include; then
  16035. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  16036. # fi
  16037. # if test -d $path/lib; then
  16038. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  16039. # fi
  16040. #done
  16041. SDL_CFLAGS="$BASE_CFLAGS"
  16042. SDL_LIBS="-lSDL2"
  16043. if test "x$BASE_LDFLAGS" != x; then
  16044. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  16045. fi
  16046. if test "x$EXTRA_CFLAGS" != x; then
  16047. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  16048. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  16049. fi
  16050. if test "x$EXTRA_LDFLAGS" != x; then
  16051. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  16052. fi
  16053. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  16054. find_lib()
  16055. {
  16056. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16057. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  16058. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  16059. if test "$cross_compiling" = yes; then
  16060. host_lib_path=""
  16061. else
  16062. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  16063. fi
  16064. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  16065. 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`
  16066. if test x$lib != x; then
  16067. echo $lib
  16068. return
  16069. fi
  16070. done
  16071. }
  16072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16073. printf %s "checking for an ANSI C-conforming const... " >&6; }
  16074. if test ${ac_cv_c_const+y}
  16075. then :
  16076. printf %s "(cached) " >&6
  16077. else $as_nop
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. int
  16081. main (void)
  16082. {
  16083. #ifndef __cplusplus
  16084. /* Ultrix mips cc rejects this sort of thing. */
  16085. typedef int charset[2];
  16086. const charset cs = { 0, 0 };
  16087. /* SunOS 4.1.1 cc rejects this. */
  16088. char const *const *pcpcc;
  16089. char **ppc;
  16090. /* NEC SVR4.0.2 mips cc rejects this. */
  16091. struct point {int x, y;};
  16092. static struct point const zero = {0,0};
  16093. /* IBM XL C 1.02.0.0 rejects this.
  16094. It does not let you subtract one const X* pointer from another in
  16095. an arm of an if-expression whose if-part is not a constant
  16096. expression */
  16097. const char *g = "string";
  16098. pcpcc = &g + (g ? g-g : 0);
  16099. /* HPUX 7.0 cc rejects these. */
  16100. ++pcpcc;
  16101. ppc = (char**) pcpcc;
  16102. pcpcc = (char const *const *) ppc;
  16103. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16104. char tx;
  16105. char *t = &tx;
  16106. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16107. *t++ = 0;
  16108. if (s) return 0;
  16109. }
  16110. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16111. int x[] = {25, 17};
  16112. const int *foo = &x[0];
  16113. ++foo;
  16114. }
  16115. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16116. typedef const int *iptr;
  16117. iptr p = 0;
  16118. ++p;
  16119. }
  16120. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16121. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16122. struct s { int j; const int *ap[3]; } bx;
  16123. struct s *b = &bx; b->j = 5;
  16124. }
  16125. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16126. const int foo = 10;
  16127. if (!foo) return 0;
  16128. }
  16129. return !cs[0] && !zero.x;
  16130. #endif
  16131. ;
  16132. return 0;
  16133. }
  16134. _ACEOF
  16135. if ac_fn_c_try_compile "$LINENO"
  16136. then :
  16137. ac_cv_c_const=yes
  16138. else $as_nop
  16139. ac_cv_c_const=no
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16142. fi
  16143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16144. printf "%s\n" "$ac_cv_c_const" >&6; }
  16145. if test $ac_cv_c_const = no; then
  16146. printf "%s\n" "#define const /**/" >>confdefs.h
  16147. fi
  16148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16149. printf %s "checking for inline... " >&6; }
  16150. if test ${ac_cv_c_inline+y}
  16151. then :
  16152. printf %s "(cached) " >&6
  16153. else $as_nop
  16154. ac_cv_c_inline=no
  16155. for ac_kw in inline __inline__ __inline; do
  16156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16157. /* end confdefs.h. */
  16158. #ifndef __cplusplus
  16159. typedef int foo_t;
  16160. static $ac_kw foo_t static_foo (void) {return 0; }
  16161. $ac_kw foo_t foo (void) {return 0; }
  16162. #endif
  16163. _ACEOF
  16164. if ac_fn_c_try_compile "$LINENO"
  16165. then :
  16166. ac_cv_c_inline=$ac_kw
  16167. fi
  16168. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16169. test "$ac_cv_c_inline" != no && break
  16170. done
  16171. fi
  16172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16173. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16174. case $ac_cv_c_inline in
  16175. inline | yes) ;;
  16176. *)
  16177. case $ac_cv_c_inline in
  16178. no) ac_val=;;
  16179. *) ac_val=$ac_cv_c_inline;;
  16180. esac
  16181. cat >>confdefs.h <<_ACEOF
  16182. #ifndef __cplusplus
  16183. #define inline $ac_val
  16184. #endif
  16185. _ACEOF
  16186. ;;
  16187. esac
  16188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16189. printf %s "checking for working volatile... " >&6; }
  16190. if test ${ac_cv_c_volatile+y}
  16191. then :
  16192. printf %s "(cached) " >&6
  16193. else $as_nop
  16194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16195. /* end confdefs.h. */
  16196. int
  16197. main (void)
  16198. {
  16199. volatile int x;
  16200. int * volatile y = (int *) 0;
  16201. return !x && !y;
  16202. ;
  16203. return 0;
  16204. }
  16205. _ACEOF
  16206. if ac_fn_c_try_compile "$LINENO"
  16207. then :
  16208. ac_cv_c_volatile=yes
  16209. else $as_nop
  16210. ac_cv_c_volatile=no
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16213. fi
  16214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16215. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16216. if test $ac_cv_c_volatile = no; then
  16217. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16218. fi
  16219. # Check whether --enable-assertions was given.
  16220. if test ${enable_assertions+y}
  16221. then :
  16222. enableval=$enable_assertions;
  16223. else $as_nop
  16224. enable_assertions=auto
  16225. fi
  16226. case "$enable_assertions" in
  16227. auto) # Use optimization settings to determine assertion level
  16228. ;;
  16229. disabled)
  16230. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16231. ;;
  16232. release)
  16233. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16234. ;;
  16235. enabled)
  16236. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16237. ;;
  16238. paranoid)
  16239. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16240. ;;
  16241. *)
  16242. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16243. ;;
  16244. esac
  16245. 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"
  16246. # Check whether --enable-dependency-tracking was given.
  16247. if test ${enable_dependency_tracking+y}
  16248. then :
  16249. enableval=$enable_dependency_tracking;
  16250. else $as_nop
  16251. enable_dependency_tracking=yes
  16252. fi
  16253. if test x$enable_dependency_tracking = xyes; then
  16254. have_gcc_mmd_mt=no
  16255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16256. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16258. /* end confdefs.h. */
  16259. #if !defined(__GNUC__) || __GNUC__ < 3
  16260. #error Dependency tracking requires GCC 3.0 or newer
  16261. #endif
  16262. int
  16263. main (void)
  16264. {
  16265. ;
  16266. return 0;
  16267. }
  16268. _ACEOF
  16269. if ac_fn_c_try_compile "$LINENO"
  16270. then :
  16271. have_gcc_mmd_mt=yes
  16272. fi
  16273. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16275. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16276. if test x$have_gcc_mmd_mt = xyes; then
  16277. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16278. fi
  16279. fi
  16280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16281. printf %s "checking for linker option --no-undefined... " >&6; }
  16282. have_no_undefined=no
  16283. case "$host" in
  16284. *-*-openbsd*)
  16285. ;;
  16286. *)
  16287. save_LDFLAGS="$LDFLAGS"
  16288. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16290. /* end confdefs.h. */
  16291. int
  16292. main (void)
  16293. {
  16294. ;
  16295. return 0;
  16296. }
  16297. _ACEOF
  16298. if ac_fn_c_try_link "$LINENO"
  16299. then :
  16300. have_no_undefined=yes
  16301. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16304. conftest$ac_exeext conftest.$ac_ext
  16305. LDFLAGS="$save_LDFLAGS"
  16306. ;;
  16307. esac
  16308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16309. printf "%s\n" "$have_no_undefined" >&6; }
  16310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16311. printf %s "checking for linker option --dynamicbase... " >&6; }
  16312. have_dynamicbase=no
  16313. case "$host" in
  16314. *)
  16315. save_LDFLAGS="$LDFLAGS"
  16316. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16318. /* end confdefs.h. */
  16319. int
  16320. main (void)
  16321. {
  16322. ;
  16323. return 0;
  16324. }
  16325. _ACEOF
  16326. if ac_fn_c_try_link "$LINENO"
  16327. then :
  16328. have_dynamicbase=yes
  16329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16332. conftest$ac_exeext conftest.$ac_ext
  16333. LDFLAGS="$save_LDFLAGS"
  16334. ;;
  16335. esac
  16336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16337. printf "%s\n" "$have_dynamicbase" >&6; }
  16338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16339. printf %s "checking for linker option --nxcompat... " >&6; }
  16340. have_nxcompat=no
  16341. case "$host" in
  16342. *)
  16343. save_LDFLAGS="$LDFLAGS"
  16344. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16346. /* end confdefs.h. */
  16347. int
  16348. main (void)
  16349. {
  16350. ;
  16351. return 0;
  16352. }
  16353. _ACEOF
  16354. if ac_fn_c_try_link "$LINENO"
  16355. then :
  16356. have_nxcompat=yes
  16357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16358. fi
  16359. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16360. conftest$ac_exeext conftest.$ac_ext
  16361. LDFLAGS="$save_LDFLAGS"
  16362. ;;
  16363. esac
  16364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16365. printf "%s\n" "$have_nxcompat" >&6; }
  16366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16367. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16368. have_high_entropy_va=no
  16369. case "$host" in
  16370. *)
  16371. save_LDFLAGS="$LDFLAGS"
  16372. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16374. /* end confdefs.h. */
  16375. int
  16376. main (void)
  16377. {
  16378. ;
  16379. return 0;
  16380. }
  16381. _ACEOF
  16382. if ac_fn_c_try_link "$LINENO"
  16383. then :
  16384. have_high_entropy_va=yes
  16385. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16386. fi
  16387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16388. conftest$ac_exeext conftest.$ac_ext
  16389. LDFLAGS="$save_LDFLAGS"
  16390. ;;
  16391. esac
  16392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16393. printf "%s\n" "$have_high_entropy_va" >&6; }
  16394. # Check whether --enable-libc was given.
  16395. if test ${enable_libc+y}
  16396. then :
  16397. enableval=$enable_libc;
  16398. else $as_nop
  16399. enable_libc=yes
  16400. fi
  16401. enable_system_iconv_default=yes
  16402. case "$host" in
  16403. *-*-cygwin*|*-*-mingw*|*-*-darwin*|*-ios-*)
  16404. enable_system_iconv_default=no
  16405. ;;
  16406. esac
  16407. # Check whether --enable-system-iconv was given.
  16408. if test ${enable_system_iconv+y}
  16409. then :
  16410. enableval=$enable_system_iconv;
  16411. else $as_nop
  16412. enable_system_iconv=$enable_system_iconv_default
  16413. fi
  16414. # Check whether --enable-libiconv was given.
  16415. if test ${enable_libiconv+y}
  16416. then :
  16417. enableval=$enable_libiconv;
  16418. else $as_nop
  16419. enable_libiconv=no
  16420. fi
  16421. if test x$enable_libc = xyes; then
  16422. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16423. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16424. if test "x$ac_cv_header_sys_types_h" = xyes
  16425. then :
  16426. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16427. fi
  16428. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16429. if test "x$ac_cv_header_stdio_h" = xyes
  16430. then :
  16431. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16432. fi
  16433. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16434. if test "x$ac_cv_header_stdlib_h" = xyes
  16435. then :
  16436. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16437. fi
  16438. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16439. if test "x$ac_cv_header_stddef_h" = xyes
  16440. then :
  16441. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16442. fi
  16443. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16444. if test "x$ac_cv_header_stdarg_h" = xyes
  16445. then :
  16446. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16447. fi
  16448. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16449. if test "x$ac_cv_header_malloc_h" = xyes
  16450. then :
  16451. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16452. fi
  16453. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16454. if test "x$ac_cv_header_memory_h" = xyes
  16455. then :
  16456. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16457. fi
  16458. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16459. if test "x$ac_cv_header_string_h" = xyes
  16460. then :
  16461. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16462. fi
  16463. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16464. if test "x$ac_cv_header_strings_h" = xyes
  16465. then :
  16466. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16467. fi
  16468. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16469. if test "x$ac_cv_header_wchar_h" = xyes
  16470. then :
  16471. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16472. fi
  16473. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16474. if test "x$ac_cv_header_inttypes_h" = xyes
  16475. then :
  16476. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16477. fi
  16478. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16479. if test "x$ac_cv_header_stdint_h" = xyes
  16480. then :
  16481. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16482. fi
  16483. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16484. if test "x$ac_cv_header_limits_h" = xyes
  16485. then :
  16486. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16487. fi
  16488. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16489. if test "x$ac_cv_header_ctype_h" = xyes
  16490. then :
  16491. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16492. fi
  16493. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16494. if test "x$ac_cv_header_math_h" = xyes
  16495. then :
  16496. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16497. fi
  16498. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16499. if test "x$ac_cv_header_float_h" = xyes
  16500. then :
  16501. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16502. fi
  16503. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16504. if test "x$ac_cv_header_iconv_h" = xyes
  16505. then :
  16506. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16507. fi
  16508. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16509. if test "x$ac_cv_header_signal_h" = xyes
  16510. then :
  16511. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16512. fi
  16513. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16514. if test "x$ac_cv_type_size_t" = xyes
  16515. then :
  16516. else $as_nop
  16517. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16518. fi
  16519. ac_ext=c
  16520. ac_cpp='$CPP $CPPFLAGS'
  16521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16525. printf %s "checking how to run the C preprocessor... " >&6; }
  16526. # On Suns, sometimes $CPP names a directory.
  16527. if test -n "$CPP" && test -d "$CPP"; then
  16528. CPP=
  16529. fi
  16530. if test -z "$CPP"; then
  16531. if test ${ac_cv_prog_CPP+y}
  16532. then :
  16533. printf %s "(cached) " >&6
  16534. else $as_nop
  16535. # Double quotes because $CC needs to be expanded
  16536. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16537. do
  16538. ac_preproc_ok=false
  16539. for ac_c_preproc_warn_flag in '' yes
  16540. do
  16541. # Use a header file that comes with gcc, so configuring glibc
  16542. # with a fresh cross-compiler works.
  16543. # On the NeXT, cc -E runs the code through the compiler's parser,
  16544. # not just through cpp. "Syntax error" is here to catch this case.
  16545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. #include <limits.h>
  16548. Syntax error
  16549. _ACEOF
  16550. if ac_fn_c_try_cpp "$LINENO"
  16551. then :
  16552. else $as_nop
  16553. # Broken: fails on valid input.
  16554. continue
  16555. fi
  16556. rm -f conftest.err conftest.i conftest.$ac_ext
  16557. # OK, works on sane cases. Now check whether nonexistent headers
  16558. # can be detected and how.
  16559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16560. /* end confdefs.h. */
  16561. #include <ac_nonexistent.h>
  16562. _ACEOF
  16563. if ac_fn_c_try_cpp "$LINENO"
  16564. then :
  16565. # Broken: success on invalid input.
  16566. continue
  16567. else $as_nop
  16568. # Passes both tests.
  16569. ac_preproc_ok=:
  16570. break
  16571. fi
  16572. rm -f conftest.err conftest.i conftest.$ac_ext
  16573. done
  16574. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16575. rm -f conftest.i conftest.err conftest.$ac_ext
  16576. if $ac_preproc_ok
  16577. then :
  16578. break
  16579. fi
  16580. done
  16581. ac_cv_prog_CPP=$CPP
  16582. fi
  16583. CPP=$ac_cv_prog_CPP
  16584. else
  16585. ac_cv_prog_CPP=$CPP
  16586. fi
  16587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16588. printf "%s\n" "$CPP" >&6; }
  16589. ac_preproc_ok=false
  16590. for ac_c_preproc_warn_flag in '' yes
  16591. do
  16592. # Use a header file that comes with gcc, so configuring glibc
  16593. # with a fresh cross-compiler works.
  16594. # On the NeXT, cc -E runs the code through the compiler's parser,
  16595. # not just through cpp. "Syntax error" is here to catch this case.
  16596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. /* end confdefs.h. */
  16598. #include <limits.h>
  16599. Syntax error
  16600. _ACEOF
  16601. if ac_fn_c_try_cpp "$LINENO"
  16602. then :
  16603. else $as_nop
  16604. # Broken: fails on valid input.
  16605. continue
  16606. fi
  16607. rm -f conftest.err conftest.i conftest.$ac_ext
  16608. # OK, works on sane cases. Now check whether nonexistent headers
  16609. # can be detected and how.
  16610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16611. /* end confdefs.h. */
  16612. #include <ac_nonexistent.h>
  16613. _ACEOF
  16614. if ac_fn_c_try_cpp "$LINENO"
  16615. then :
  16616. # Broken: success on invalid input.
  16617. continue
  16618. else $as_nop
  16619. # Passes both tests.
  16620. ac_preproc_ok=:
  16621. break
  16622. fi
  16623. rm -f conftest.err conftest.i conftest.$ac_ext
  16624. done
  16625. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16626. rm -f conftest.i conftest.err conftest.$ac_ext
  16627. if $ac_preproc_ok
  16628. then :
  16629. else $as_nop
  16630. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16631. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16632. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16633. See \`config.log' for more details" "$LINENO" 5; }
  16634. fi
  16635. ac_ext=c
  16636. ac_cpp='$CPP $CPPFLAGS'
  16637. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16638. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16641. printf %s "checking for M_PI in math.h... " >&6; }
  16642. if test ${ac_cv_define_M_PI+y}
  16643. then :
  16644. printf %s "(cached) " >&6
  16645. else $as_nop
  16646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16647. /* end confdefs.h. */
  16648. #include <math.h>
  16649. #ifdef M_PI
  16650. YES_IS_DEFINED
  16651. #endif
  16652. _ACEOF
  16653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16654. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16655. then :
  16656. ac_cv_define_M_PI=yes
  16657. else $as_nop
  16658. ac_cv_define_M_PI=no
  16659. fi
  16660. rm -rf conftest*
  16661. fi
  16662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16663. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16664. if test "$ac_cv_define_M_PI" = "yes" ; then
  16665. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16666. fi
  16667. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16668. # for constant arguments. Useless!
  16669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16670. printf %s "checking for working alloca.h... " >&6; }
  16671. if test ${ac_cv_working_alloca_h+y}
  16672. then :
  16673. printf %s "(cached) " >&6
  16674. else $as_nop
  16675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16676. /* end confdefs.h. */
  16677. #include <alloca.h>
  16678. int
  16679. main (void)
  16680. {
  16681. char *p = (char *) alloca (2 * sizeof (int));
  16682. if (p) return 0;
  16683. ;
  16684. return 0;
  16685. }
  16686. _ACEOF
  16687. if ac_fn_c_try_link "$LINENO"
  16688. then :
  16689. ac_cv_working_alloca_h=yes
  16690. else $as_nop
  16691. ac_cv_working_alloca_h=no
  16692. fi
  16693. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16694. conftest$ac_exeext conftest.$ac_ext
  16695. fi
  16696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16697. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16698. if test $ac_cv_working_alloca_h = yes; then
  16699. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16700. fi
  16701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16702. printf %s "checking for alloca... " >&6; }
  16703. if test ${ac_cv_func_alloca_works+y}
  16704. then :
  16705. printf %s "(cached) " >&6
  16706. else $as_nop
  16707. if test $ac_cv_working_alloca_h = yes; then
  16708. ac_cv_func_alloca_works=yes
  16709. else
  16710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16711. /* end confdefs.h. */
  16712. #include <stdlib.h>
  16713. #include <stddef.h>
  16714. #ifndef alloca
  16715. # ifdef __GNUC__
  16716. # define alloca __builtin_alloca
  16717. # elif defined _MSC_VER
  16718. # include <malloc.h>
  16719. # define alloca _alloca
  16720. # else
  16721. # ifdef __cplusplus
  16722. extern "C"
  16723. # endif
  16724. void *alloca (size_t);
  16725. # endif
  16726. #endif
  16727. int
  16728. main (void)
  16729. {
  16730. char *p = (char *) alloca (1);
  16731. if (p) return 0;
  16732. ;
  16733. return 0;
  16734. }
  16735. _ACEOF
  16736. if ac_fn_c_try_link "$LINENO"
  16737. then :
  16738. ac_cv_func_alloca_works=yes
  16739. else $as_nop
  16740. ac_cv_func_alloca_works=no
  16741. fi
  16742. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16743. conftest$ac_exeext conftest.$ac_ext
  16744. fi
  16745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16746. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16747. fi
  16748. if test $ac_cv_func_alloca_works = yes; then
  16749. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16750. else
  16751. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16752. # that cause trouble. Some versions do not even contain alloca or
  16753. # contain a buggy version. If you still want to use their alloca,
  16754. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16755. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16756. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16758. printf %s "checking stack direction for C alloca... " >&6; }
  16759. if test ${ac_cv_c_stack_direction+y}
  16760. then :
  16761. printf %s "(cached) " >&6
  16762. else $as_nop
  16763. if test "$cross_compiling" = yes
  16764. then :
  16765. ac_cv_c_stack_direction=0
  16766. else $as_nop
  16767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16768. /* end confdefs.h. */
  16769. $ac_includes_default
  16770. int
  16771. find_stack_direction (int *addr, int depth)
  16772. {
  16773. int dir, dummy = 0;
  16774. if (! addr)
  16775. addr = &dummy;
  16776. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16777. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16778. return dir + dummy;
  16779. }
  16780. int
  16781. main (int argc, char **argv)
  16782. {
  16783. return find_stack_direction (0, argc + !argv + 20) < 0;
  16784. }
  16785. _ACEOF
  16786. if ac_fn_c_try_run "$LINENO"
  16787. then :
  16788. ac_cv_c_stack_direction=1
  16789. else $as_nop
  16790. ac_cv_c_stack_direction=-1
  16791. fi
  16792. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16793. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16794. fi
  16795. fi
  16796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16797. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16798. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16801. if test "x$ac_cv_func_mprotect" = xyes
  16802. then :
  16803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16804. /* end confdefs.h. */
  16805. #include <sys/types.h>
  16806. #include <sys/mman.h>
  16807. int
  16808. main (void)
  16809. {
  16810. ;
  16811. return 0;
  16812. }
  16813. _ACEOF
  16814. if ac_fn_c_try_compile "$LINENO"
  16815. then :
  16816. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16817. fi
  16818. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16821. if test "x$ac_cv_func_malloc" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16826. if test "x$ac_cv_func_calloc" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16831. if test "x$ac_cv_func_realloc" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16834. fi
  16835. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16836. if test "x$ac_cv_func_free" = xyes
  16837. then :
  16838. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16839. fi
  16840. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16841. if test "x$ac_cv_func_getenv" = xyes
  16842. then :
  16843. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16844. fi
  16845. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16846. if test "x$ac_cv_func_setenv" = xyes
  16847. then :
  16848. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16849. fi
  16850. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16851. if test "x$ac_cv_func_putenv" = xyes
  16852. then :
  16853. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16854. fi
  16855. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16856. if test "x$ac_cv_func_unsetenv" = xyes
  16857. then :
  16858. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16859. fi
  16860. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16861. if test "x$ac_cv_func_bsearch" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16864. fi
  16865. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16866. if test "x$ac_cv_func_qsort" = xyes
  16867. then :
  16868. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16869. fi
  16870. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16871. if test "x$ac_cv_func_abs" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16876. if test "x$ac_cv_func_bcopy" = xyes
  16877. then :
  16878. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16879. fi
  16880. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16881. if test "x$ac_cv_func_memset" = xyes
  16882. then :
  16883. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16884. fi
  16885. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16886. if test "x$ac_cv_func_memcmp" = xyes
  16887. then :
  16888. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16889. fi
  16890. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16891. if test "x$ac_cv_func_memcpy" = xyes
  16892. then :
  16893. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16894. fi
  16895. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16896. if test "x$ac_cv_func_memmove" = xyes
  16897. then :
  16898. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16899. fi
  16900. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16901. if test "x$ac_cv_func_wcslen" = xyes
  16902. then :
  16903. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16904. fi
  16905. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16906. if test "x$ac_cv_func_wcslcpy" = xyes
  16907. then :
  16908. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16909. fi
  16910. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16911. if test "x$ac_cv_func_wcslcat" = xyes
  16912. then :
  16913. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16914. fi
  16915. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16916. if test "x$ac_cv_func__wcsdup" = xyes
  16917. then :
  16918. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16919. fi
  16920. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16921. if test "x$ac_cv_func_wcsdup" = xyes
  16922. then :
  16923. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16924. fi
  16925. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16926. if test "x$ac_cv_func_wcsstr" = xyes
  16927. then :
  16928. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16929. fi
  16930. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16931. if test "x$ac_cv_func_wcscmp" = xyes
  16932. then :
  16933. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16934. fi
  16935. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16936. if test "x$ac_cv_func_wcsncmp" = xyes
  16937. then :
  16938. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16939. fi
  16940. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16941. if test "x$ac_cv_func_wcscasecmp" = xyes
  16942. then :
  16943. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16944. fi
  16945. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16946. if test "x$ac_cv_func__wcsicmp" = xyes
  16947. then :
  16948. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16949. fi
  16950. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16951. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16952. then :
  16953. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16954. fi
  16955. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16956. if test "x$ac_cv_func__wcsnicmp" = xyes
  16957. then :
  16958. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16959. fi
  16960. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16961. if test "x$ac_cv_func_strlen" = xyes
  16962. then :
  16963. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16964. fi
  16965. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16966. if test "x$ac_cv_func_strlcpy" = xyes
  16967. then :
  16968. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16969. fi
  16970. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16971. if test "x$ac_cv_func_strlcat" = xyes
  16972. then :
  16973. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16974. fi
  16975. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16976. if test "x$ac_cv_func__strrev" = xyes
  16977. then :
  16978. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16979. fi
  16980. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16981. if test "x$ac_cv_func__strupr" = xyes
  16982. then :
  16983. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16984. fi
  16985. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16986. if test "x$ac_cv_func__strlwr" = xyes
  16987. then :
  16988. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16989. fi
  16990. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16991. if test "x$ac_cv_func_index" = xyes
  16992. then :
  16993. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16994. fi
  16995. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16996. if test "x$ac_cv_func_rindex" = xyes
  16997. then :
  16998. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16999. fi
  17000. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  17001. if test "x$ac_cv_func_strchr" = xyes
  17002. then :
  17003. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  17004. fi
  17005. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  17006. if test "x$ac_cv_func_strrchr" = xyes
  17007. then :
  17008. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  17009. fi
  17010. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  17011. if test "x$ac_cv_func_strstr" = xyes
  17012. then :
  17013. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  17014. fi
  17015. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  17016. if test "x$ac_cv_func_strtok_r" = xyes
  17017. then :
  17018. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  17019. fi
  17020. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  17021. if test "x$ac_cv_func_itoa" = xyes
  17022. then :
  17023. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  17024. fi
  17025. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  17026. if test "x$ac_cv_func__ltoa" = xyes
  17027. then :
  17028. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  17029. fi
  17030. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  17031. if test "x$ac_cv_func__uitoa" = xyes
  17032. then :
  17033. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  17034. fi
  17035. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  17036. if test "x$ac_cv_func__ultoa" = xyes
  17037. then :
  17038. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  17039. fi
  17040. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  17041. if test "x$ac_cv_func_strtod" = xyes
  17042. then :
  17043. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  17044. fi
  17045. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  17046. if test "x$ac_cv_func_strtol" = xyes
  17047. then :
  17048. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  17049. fi
  17050. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  17051. if test "x$ac_cv_func_strtoul" = xyes
  17052. then :
  17053. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  17054. fi
  17055. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  17056. if test "x$ac_cv_func__i64toa" = xyes
  17057. then :
  17058. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  17059. fi
  17060. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  17061. if test "x$ac_cv_func__ui64toa" = xyes
  17062. then :
  17063. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  17064. fi
  17065. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  17066. if test "x$ac_cv_func_strtoll" = xyes
  17067. then :
  17068. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  17069. fi
  17070. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  17071. if test "x$ac_cv_func_strtoull" = xyes
  17072. then :
  17073. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  17074. fi
  17075. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  17076. if test "x$ac_cv_func_atoi" = xyes
  17077. then :
  17078. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  17079. fi
  17080. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  17081. if test "x$ac_cv_func_atof" = xyes
  17082. then :
  17083. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  17084. fi
  17085. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  17086. if test "x$ac_cv_func_strcmp" = xyes
  17087. then :
  17088. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  17089. fi
  17090. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  17091. if test "x$ac_cv_func_strncmp" = xyes
  17092. then :
  17093. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  17094. fi
  17095. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  17096. if test "x$ac_cv_func__stricmp" = xyes
  17097. then :
  17098. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  17099. fi
  17100. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  17101. if test "x$ac_cv_func_strcasecmp" = xyes
  17102. then :
  17103. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  17104. fi
  17105. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  17106. if test "x$ac_cv_func__strnicmp" = xyes
  17107. then :
  17108. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  17109. fi
  17110. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17111. if test "x$ac_cv_func_strncasecmp" = xyes
  17112. then :
  17113. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17114. fi
  17115. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17116. if test "x$ac_cv_func_strcasestr" = xyes
  17117. then :
  17118. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17119. fi
  17120. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17121. if test "x$ac_cv_func_vsscanf" = xyes
  17122. then :
  17123. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17124. fi
  17125. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17126. if test "x$ac_cv_func_vsnprintf" = xyes
  17127. then :
  17128. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17129. fi
  17130. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17131. if test "x$ac_cv_func_fopen64" = xyes
  17132. then :
  17133. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17134. fi
  17135. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17136. if test "x$ac_cv_func_fseeko" = xyes
  17137. then :
  17138. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17139. fi
  17140. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17141. if test "x$ac_cv_func_fseeko64" = xyes
  17142. then :
  17143. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17144. fi
  17145. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17146. if test "x$ac_cv_func_sigaction" = xyes
  17147. then :
  17148. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17149. fi
  17150. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17151. if test "x$ac_cv_func_setjmp" = xyes
  17152. then :
  17153. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17154. fi
  17155. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17156. if test "x$ac_cv_func_nanosleep" = xyes
  17157. then :
  17158. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17159. fi
  17160. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17161. if test "x$ac_cv_func_sysconf" = xyes
  17162. then :
  17163. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17164. fi
  17165. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17166. if test "x$ac_cv_func_sysctlbyname" = xyes
  17167. then :
  17168. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17169. fi
  17170. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17171. if test "x$ac_cv_func_getauxval" = xyes
  17172. then :
  17173. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17174. fi
  17175. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17176. if test "x$ac_cv_func_elf_aux_info" = xyes
  17177. then :
  17178. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17179. fi
  17180. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17181. if test "x$ac_cv_func_poll" = xyes
  17182. then :
  17183. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17184. fi
  17185. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  17186. if test "x$ac_cv_func_memfd_create" = xyes
  17187. then :
  17188. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  17189. fi
  17190. ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  17191. if test "x$ac_cv_func_posix_fallocate" = xyes
  17192. then :
  17193. printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
  17194. fi
  17195. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17196. if test "x$ac_cv_func__Exit" = xyes
  17197. then :
  17198. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17199. fi
  17200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17201. printf %s "checking for pow in -lm... " >&6; }
  17202. if test ${ac_cv_lib_m_pow+y}
  17203. then :
  17204. printf %s "(cached) " >&6
  17205. else $as_nop
  17206. ac_check_lib_save_LIBS=$LIBS
  17207. LIBS="-lm $LIBS"
  17208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17209. /* end confdefs.h. */
  17210. /* Override any GCC internal prototype to avoid an error.
  17211. Use char because int might match the return type of a GCC
  17212. builtin and then its argument prototype would still apply. */
  17213. char pow ();
  17214. int
  17215. main (void)
  17216. {
  17217. return pow ();
  17218. ;
  17219. return 0;
  17220. }
  17221. _ACEOF
  17222. if ac_fn_c_try_link "$LINENO"
  17223. then :
  17224. ac_cv_lib_m_pow=yes
  17225. else $as_nop
  17226. ac_cv_lib_m_pow=no
  17227. fi
  17228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17229. conftest$ac_exeext conftest.$ac_ext
  17230. LIBS=$ac_check_lib_save_LIBS
  17231. fi
  17232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17233. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17234. if test "x$ac_cv_lib_m_pow" = xyes
  17235. then :
  17236. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17237. fi
  17238. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17239. if test "x$ac_cv_func_acos" = xyes
  17240. then :
  17241. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17242. fi
  17243. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17244. if test "x$ac_cv_func_acosf" = xyes
  17245. then :
  17246. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17247. fi
  17248. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17249. if test "x$ac_cv_func_asin" = xyes
  17250. then :
  17251. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17252. fi
  17253. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17254. if test "x$ac_cv_func_asinf" = xyes
  17255. then :
  17256. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17257. fi
  17258. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17259. if test "x$ac_cv_func_atan" = xyes
  17260. then :
  17261. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17262. fi
  17263. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17264. if test "x$ac_cv_func_atanf" = xyes
  17265. then :
  17266. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17267. fi
  17268. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17269. if test "x$ac_cv_func_atan2" = xyes
  17270. then :
  17271. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17272. fi
  17273. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17274. if test "x$ac_cv_func_atan2f" = xyes
  17275. then :
  17276. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17277. fi
  17278. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17279. if test "x$ac_cv_func_ceil" = xyes
  17280. then :
  17281. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17282. fi
  17283. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17284. if test "x$ac_cv_func_ceilf" = xyes
  17285. then :
  17286. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17287. fi
  17288. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17289. if test "x$ac_cv_func_copysign" = xyes
  17290. then :
  17291. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17292. fi
  17293. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17294. if test "x$ac_cv_func_copysignf" = xyes
  17295. then :
  17296. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17297. fi
  17298. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17299. if test "x$ac_cv_func_cos" = xyes
  17300. then :
  17301. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17302. fi
  17303. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17304. if test "x$ac_cv_func_cosf" = xyes
  17305. then :
  17306. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17307. fi
  17308. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17309. if test "x$ac_cv_func_exp" = xyes
  17310. then :
  17311. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17312. fi
  17313. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17314. if test "x$ac_cv_func_expf" = xyes
  17315. then :
  17316. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17317. fi
  17318. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17319. if test "x$ac_cv_func_fabs" = xyes
  17320. then :
  17321. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17322. fi
  17323. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17324. if test "x$ac_cv_func_fabsf" = xyes
  17325. then :
  17326. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17327. fi
  17328. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17329. if test "x$ac_cv_func_floor" = xyes
  17330. then :
  17331. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17332. fi
  17333. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17334. if test "x$ac_cv_func_floorf" = xyes
  17335. then :
  17336. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17337. fi
  17338. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17339. if test "x$ac_cv_func_trunc" = xyes
  17340. then :
  17341. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17342. fi
  17343. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17344. if test "x$ac_cv_func_truncf" = xyes
  17345. then :
  17346. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17347. fi
  17348. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17349. if test "x$ac_cv_func_fmod" = xyes
  17350. then :
  17351. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17352. fi
  17353. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17354. if test "x$ac_cv_func_fmodf" = xyes
  17355. then :
  17356. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17357. fi
  17358. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17359. if test "x$ac_cv_func_log" = xyes
  17360. then :
  17361. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17362. fi
  17363. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17364. if test "x$ac_cv_func_logf" = xyes
  17365. then :
  17366. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17367. fi
  17368. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17369. if test "x$ac_cv_func_log10" = xyes
  17370. then :
  17371. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17372. fi
  17373. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17374. if test "x$ac_cv_func_log10f" = xyes
  17375. then :
  17376. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17377. fi
  17378. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17379. if test "x$ac_cv_func_lround" = xyes
  17380. then :
  17381. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17382. fi
  17383. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17384. if test "x$ac_cv_func_lroundf" = xyes
  17385. then :
  17386. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17387. fi
  17388. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17389. if test "x$ac_cv_func_pow" = xyes
  17390. then :
  17391. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17392. fi
  17393. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17394. if test "x$ac_cv_func_powf" = xyes
  17395. then :
  17396. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17397. fi
  17398. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17399. if test "x$ac_cv_func_round" = xyes
  17400. then :
  17401. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17402. fi
  17403. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17404. if test "x$ac_cv_func_roundf" = xyes
  17405. then :
  17406. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17407. fi
  17408. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17409. if test "x$ac_cv_func_scalbn" = xyes
  17410. then :
  17411. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17412. fi
  17413. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17414. if test "x$ac_cv_func_scalbnf" = xyes
  17415. then :
  17416. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17417. fi
  17418. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17419. if test "x$ac_cv_func_sin" = xyes
  17420. then :
  17421. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17422. fi
  17423. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17424. if test "x$ac_cv_func_sinf" = xyes
  17425. then :
  17426. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17427. fi
  17428. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17429. if test "x$ac_cv_func_sqrt" = xyes
  17430. then :
  17431. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17432. fi
  17433. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17434. if test "x$ac_cv_func_sqrtf" = xyes
  17435. then :
  17436. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17437. fi
  17438. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17439. if test "x$ac_cv_func_tan" = xyes
  17440. then :
  17441. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17442. fi
  17443. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17444. if test "x$ac_cv_func_tanf" = xyes
  17445. then :
  17446. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17447. fi
  17448. if test x$enable_system_iconv = xyes; then
  17449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libc" >&5
  17450. printf %s "checking for iconv in libc... " >&6; }
  17451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17452. /* end confdefs.h. */
  17453. #define LIBICONV_PLUG 1 /* in case libiconv header is in include path */
  17454. #include <stddef.h>
  17455. #include <iconv.h>
  17456. int
  17457. main (void)
  17458. {
  17459. iconv_open(NULL,NULL);
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_link "$LINENO"
  17465. then :
  17466. have_libc_iconv=yes
  17467. else $as_nop
  17468. have_libc_iconv=no
  17469. fi
  17470. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17471. conftest$ac_exeext conftest.$ac_ext
  17472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libc_iconv" >&5
  17473. printf "%s\n" "$have_libc_iconv" >&6; }
  17474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv in libiconv" >&5
  17475. printf %s "checking for iconv in libiconv... " >&6; }
  17476. save_LIBS="$LIBS"
  17477. LIBS="$LIBS -liconv"
  17478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17479. /* end confdefs.h. */
  17480. #include <stddef.h>
  17481. #include <iconv.h>
  17482. int
  17483. main (void)
  17484. {
  17485. iconv_open(NULL,NULL);
  17486. ;
  17487. return 0;
  17488. }
  17489. _ACEOF
  17490. if ac_fn_c_try_link "$LINENO"
  17491. then :
  17492. have_libiconv=yes
  17493. else $as_nop
  17494. have_libiconv=no
  17495. fi
  17496. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17497. conftest$ac_exeext conftest.$ac_ext
  17498. LIBS="$save_LIBS"
  17499. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libiconv" >&5
  17500. printf "%s\n" "$have_libiconv" >&6; }
  17501. if test x$have_libc_iconv = xyes || test x$have_libiconv = xyes; then
  17502. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17503. if test x$have_libiconv = xyes; then
  17504. if test x$have_libc_iconv != xyes; then
  17505. use_libiconv=yes
  17506. elif test x$enable_libiconv = xyes; then
  17507. use_libiconv=yes
  17508. fi
  17509. fi
  17510. if test x$use_libiconv = xyes; then
  17511. printf "%s\n" "#define SDL_USE_LIBICONV 1" >>confdefs.h
  17512. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17513. echo "-- Using iconv from libiconv"
  17514. else
  17515. echo "-- Using iconv from libc"
  17516. fi
  17517. fi
  17518. fi
  17519. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17520. "
  17521. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17522. then :
  17523. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17524. fi
  17525. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17526. if test "x$ac_cv_header_libunwind_h" = xyes
  17527. then :
  17528. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17529. fi
  17530. fi
  17531. # Check whether --enable-gcc-atomics was given.
  17532. if test ${enable_gcc_atomics+y}
  17533. then :
  17534. enableval=$enable_gcc_atomics;
  17535. else $as_nop
  17536. enable_gcc_atomics=yes
  17537. fi
  17538. if test x$enable_gcc_atomics = xyes; then
  17539. have_gcc_atomics=no
  17540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17541. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17543. /* end confdefs.h. */
  17544. int
  17545. main (void)
  17546. {
  17547. int a;
  17548. void *x, *y, *z;
  17549. __sync_lock_test_and_set(&a, 4);
  17550. __sync_lock_test_and_set(&x, y);
  17551. __sync_fetch_and_add(&a, 1);
  17552. __sync_bool_compare_and_swap(&a, 5, 10);
  17553. __sync_bool_compare_and_swap(&x, y, z);
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. if ac_fn_c_try_link "$LINENO"
  17559. then :
  17560. have_gcc_atomics=yes
  17561. fi
  17562. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17563. conftest$ac_exeext conftest.$ac_ext
  17564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17565. printf "%s\n" "$have_gcc_atomics" >&6; }
  17566. if test x$have_gcc_atomics = xyes; then
  17567. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17568. else
  17569. # See if we have the minimum operation needed for GCC atomics
  17570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17571. /* end confdefs.h. */
  17572. int
  17573. main (void)
  17574. {
  17575. int a;
  17576. __sync_lock_test_and_set(&a, 1);
  17577. __sync_lock_release(&a);
  17578. ;
  17579. return 0;
  17580. }
  17581. _ACEOF
  17582. if ac_fn_c_try_link "$LINENO"
  17583. then :
  17584. have_gcc_sync_lock_test_and_set=yes
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17587. conftest$ac_exeext conftest.$ac_ext
  17588. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17589. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17590. fi
  17591. fi
  17592. fi
  17593. # Standard C sources
  17594. SOURCES="$SOURCES $srcdir/src/*.c"
  17595. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17596. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17597. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17598. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17599. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17600. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17601. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17602. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17603. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17604. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17605. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17606. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17607. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17608. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17609. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17610. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17611. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17612. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17613. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17614. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17615. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17616. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17617. case "$host" in
  17618. *-*-emscripten*)
  17619. default_atomic=no
  17620. ;;
  17621. *)
  17622. default_atomic=yes
  17623. ;;
  17624. esac
  17625. # Check whether --enable-atomic was given.
  17626. if test ${enable_atomic+y}
  17627. then :
  17628. enableval=$enable_atomic;
  17629. else $as_nop
  17630. enable_atomic=$default_atomic
  17631. fi
  17632. if test x$enable_atomic != xyes; then
  17633. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17634. else
  17635. SUMMARY_modules="${SUMMARY_modules} atomic"
  17636. fi
  17637. # Check whether --enable-audio was given.
  17638. if test ${enable_audio+y}
  17639. then :
  17640. enableval=$enable_audio;
  17641. else $as_nop
  17642. enable_audio=yes
  17643. fi
  17644. if test x$enable_audio != xyes; then
  17645. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17646. else
  17647. SUMMARY_modules="${SUMMARY_modules} audio"
  17648. fi
  17649. # Check whether --enable-video was given.
  17650. if test ${enable_video+y}
  17651. then :
  17652. enableval=$enable_video;
  17653. else $as_nop
  17654. enable_video=yes
  17655. fi
  17656. if test x$enable_video != xyes; then
  17657. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17658. else
  17659. SUMMARY_modules="${SUMMARY_modules} video"
  17660. fi
  17661. # Check whether --enable-render was given.
  17662. if test ${enable_render+y}
  17663. then :
  17664. enableval=$enable_render;
  17665. else $as_nop
  17666. enable_render=yes
  17667. fi
  17668. if test x$enable_render != xyes; then
  17669. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17670. else
  17671. SUMMARY_modules="${SUMMARY_modules} render"
  17672. fi
  17673. # Check whether --enable-events was given.
  17674. if test ${enable_events+y}
  17675. then :
  17676. enableval=$enable_events;
  17677. else $as_nop
  17678. enable_events=yes
  17679. fi
  17680. if test x$enable_events != xyes; then
  17681. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17682. else
  17683. SUMMARY_modules="${SUMMARY_modules} events"
  17684. fi
  17685. # Check whether --enable-joystick was given.
  17686. if test ${enable_joystick+y}
  17687. then :
  17688. enableval=$enable_joystick;
  17689. else $as_nop
  17690. enable_joystick=yes
  17691. fi
  17692. if test x$enable_joystick != xyes; then
  17693. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17694. else
  17695. SUMMARY_modules="${SUMMARY_modules} joystick"
  17696. fi
  17697. # Check whether --enable-haptic was given.
  17698. if test ${enable_haptic+y}
  17699. then :
  17700. enableval=$enable_haptic;
  17701. else $as_nop
  17702. enable_haptic=yes
  17703. fi
  17704. if test x$enable_haptic != xyes; then
  17705. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17706. else
  17707. SUMMARY_modules="${SUMMARY_modules} haptic"
  17708. fi
  17709. # Check whether --enable-hidapi was given.
  17710. if test ${enable_hidapi+y}
  17711. then :
  17712. enableval=$enable_hidapi;
  17713. else $as_nop
  17714. enable_hidapi=yes
  17715. fi
  17716. if test x$enable_hidapi != xyes; then
  17717. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17718. else
  17719. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17720. fi
  17721. # Check whether --enable-sensor was given.
  17722. if test ${enable_sensor+y}
  17723. then :
  17724. enableval=$enable_sensor;
  17725. else $as_nop
  17726. enable_sensor=yes
  17727. fi
  17728. if test x$enable_sensor != xyes; then
  17729. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17730. else
  17731. SUMMARY_modules="${SUMMARY_modules} sensor"
  17732. fi
  17733. # Check whether --enable-power was given.
  17734. if test ${enable_power+y}
  17735. then :
  17736. enableval=$enable_power;
  17737. else $as_nop
  17738. enable_power=yes
  17739. fi
  17740. if test x$enable_power != xyes; then
  17741. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17742. else
  17743. SUMMARY_modules="${SUMMARY_modules} power"
  17744. fi
  17745. # Check whether --enable-filesystem was given.
  17746. if test ${enable_filesystem+y}
  17747. then :
  17748. enableval=$enable_filesystem;
  17749. else $as_nop
  17750. enable_filesystem=yes
  17751. fi
  17752. if test x$enable_filesystem != xyes; then
  17753. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17754. else
  17755. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17756. fi
  17757. # Many subsystems depend on threads, so leave them enabled by default
  17758. #AC_ARG_ENABLE(threads,
  17759. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17760. # , enable_threads=yes)
  17761. enable_threads=yes
  17762. if test x$enable_threads != xyes; then
  17763. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17764. else
  17765. SUMMARY_modules="${SUMMARY_modules} threads"
  17766. fi
  17767. # Check whether --enable-timers was given.
  17768. if test ${enable_timers+y}
  17769. then :
  17770. enableval=$enable_timers;
  17771. else $as_nop
  17772. enable_timers=yes
  17773. fi
  17774. if test x$enable_timers != xyes; then
  17775. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17776. else
  17777. SUMMARY_modules="${SUMMARY_modules} timers"
  17778. fi
  17779. # Check whether --enable-file was given.
  17780. if test ${enable_file+y}
  17781. then :
  17782. enableval=$enable_file;
  17783. else $as_nop
  17784. enable_file=yes
  17785. fi
  17786. if test x$enable_file != xyes; then
  17787. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17788. else
  17789. SUMMARY_modules="${SUMMARY_modules} file"
  17790. fi
  17791. # Check whether --enable-misc was given.
  17792. if test ${enable_misc+y}
  17793. then :
  17794. enableval=$enable_misc;
  17795. else $as_nop
  17796. enable_misc=yes
  17797. fi
  17798. if test x$enable_misc != xyes; then
  17799. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17800. else
  17801. SUMMARY_modules="${SUMMARY_modules} misc"
  17802. fi
  17803. # Check whether --enable-locale was given.
  17804. if test ${enable_locale+y}
  17805. then :
  17806. enableval=$enable_locale;
  17807. else $as_nop
  17808. enable_locale=yes
  17809. fi
  17810. if test x$enable_locale != xyes; then
  17811. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17812. else
  17813. SUMMARY_modules="${SUMMARY_modules} locale"
  17814. fi
  17815. # Check whether --enable-loadso was given.
  17816. if test ${enable_loadso+y}
  17817. then :
  17818. enableval=$enable_loadso;
  17819. else $as_nop
  17820. enable_loadso=yes
  17821. fi
  17822. if test x$enable_loadso != xyes; then
  17823. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17824. else
  17825. SUMMARY_modules="${SUMMARY_modules} loadso"
  17826. fi
  17827. # Check whether --enable-cpuinfo was given.
  17828. if test ${enable_cpuinfo+y}
  17829. then :
  17830. enableval=$enable_cpuinfo;
  17831. else $as_nop
  17832. enable_cpuinfo=yes
  17833. fi
  17834. if test x$enable_cpuinfo != xyes; then
  17835. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17836. else
  17837. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17838. fi
  17839. # Check whether --enable-assembly was given.
  17840. if test ${enable_assembly+y}
  17841. then :
  17842. enableval=$enable_assembly;
  17843. else $as_nop
  17844. enable_assembly=yes
  17845. fi
  17846. if test x$enable_assembly = xyes; then
  17847. SUMMARY_modules="${SUMMARY_modules} assembly"
  17848. # Make sure that we don't generate floating point code that would
  17849. # cause illegal instruction exceptions on older processors
  17850. case "$host" in
  17851. *-*-darwin*)
  17852. # Don't need to worry about Apple hardware, it's all SSE capable
  17853. default_ssemath=yes
  17854. ;;
  17855. *64-*-*)
  17856. # x86 64-bit architectures all have SSE instructions
  17857. default_ssemath=yes
  17858. ;;
  17859. *)
  17860. default_ssemath=no
  17861. ;;
  17862. esac
  17863. # Check whether --enable-ssemath was given.
  17864. if test ${enable_ssemath+y}
  17865. then :
  17866. enableval=$enable_ssemath;
  17867. else $as_nop
  17868. enable_ssemath=$default_ssemath
  17869. fi
  17870. if test x$enable_ssemath = xno; then
  17871. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17872. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17873. fi
  17874. fi
  17875. # Check whether --enable-mmx was given.
  17876. if test ${enable_mmx+y}
  17877. then :
  17878. enableval=$enable_mmx;
  17879. else $as_nop
  17880. enable_mmx=yes
  17881. fi
  17882. if test x$enable_mmx = xyes; then
  17883. save_CFLAGS="$CFLAGS"
  17884. have_gcc_mmx=no
  17885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17886. printf %s "checking for GCC -mmmx option... " >&6; }
  17887. mmx_CFLAGS="-mmmx"
  17888. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17890. /* end confdefs.h. */
  17891. #ifdef __MINGW32__
  17892. #include <_mingw.h>
  17893. #ifdef __MINGW64_VERSION_MAJOR
  17894. #include <intrin.h>
  17895. #else
  17896. #include <mmintrin.h>
  17897. #endif
  17898. #else
  17899. #include <mmintrin.h>
  17900. #endif
  17901. #ifndef __MMX__
  17902. #error Assembler CPP flag not enabled
  17903. #endif
  17904. int
  17905. main (void)
  17906. {
  17907. ;
  17908. return 0;
  17909. }
  17910. _ACEOF
  17911. if ac_fn_c_try_compile "$LINENO"
  17912. then :
  17913. have_gcc_mmx=yes
  17914. fi
  17915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17917. printf "%s\n" "$have_gcc_mmx" >&6; }
  17918. CFLAGS="$save_CFLAGS"
  17919. if test x$have_gcc_mmx = xyes; then
  17920. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17921. SUMMARY_math="${SUMMARY_math} mmx"
  17922. fi
  17923. fi
  17924. # Check whether --enable-3dnow was given.
  17925. if test ${enable_3dnow+y}
  17926. then :
  17927. enableval=$enable_3dnow;
  17928. else $as_nop
  17929. enable_3dnow=yes
  17930. fi
  17931. if test x$enable_3dnow = xyes; then
  17932. save_CFLAGS="$CFLAGS"
  17933. have_gcc_3dnow=no
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17935. printf %s "checking for GCC -m3dnow option... " >&6; }
  17936. amd3dnow_CFLAGS="-m3dnow"
  17937. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17939. /* end confdefs.h. */
  17940. #include <mm3dnow.h>
  17941. #ifndef __3dNOW__
  17942. #error Assembler CPP flag not enabled
  17943. #endif
  17944. int
  17945. main (void)
  17946. {
  17947. void *p = 0;
  17948. _m_prefetch(p);
  17949. ;
  17950. return 0;
  17951. }
  17952. _ACEOF
  17953. if ac_fn_c_try_link "$LINENO"
  17954. then :
  17955. have_gcc_3dnow=yes
  17956. fi
  17957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17958. conftest$ac_exeext conftest.$ac_ext
  17959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17960. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17961. CFLAGS="$save_CFLAGS"
  17962. if test x$have_gcc_3dnow = xyes; then
  17963. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17964. SUMMARY_math="${SUMMARY_math} 3dnow"
  17965. fi
  17966. fi
  17967. # Check whether --enable-sse was given.
  17968. if test ${enable_sse+y}
  17969. then :
  17970. enableval=$enable_sse;
  17971. else $as_nop
  17972. enable_sse=yes
  17973. fi
  17974. if test x$enable_sse = xyes; then
  17975. save_CFLAGS="$CFLAGS"
  17976. have_gcc_sse=no
  17977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17978. printf %s "checking for GCC -msse option... " >&6; }
  17979. sse_CFLAGS="-msse"
  17980. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17982. /* end confdefs.h. */
  17983. #ifdef __MINGW32__
  17984. #include <_mingw.h>
  17985. #ifdef __MINGW64_VERSION_MAJOR
  17986. #include <intrin.h>
  17987. #else
  17988. #include <xmmintrin.h>
  17989. #endif
  17990. #else
  17991. #include <xmmintrin.h>
  17992. #endif
  17993. #ifndef __SSE__
  17994. #error Assembler CPP flag not enabled
  17995. #endif
  17996. int
  17997. main (void)
  17998. {
  17999. ;
  18000. return 0;
  18001. }
  18002. _ACEOF
  18003. if ac_fn_c_try_compile "$LINENO"
  18004. then :
  18005. have_gcc_sse=yes
  18006. fi
  18007. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  18009. printf "%s\n" "$have_gcc_sse" >&6; }
  18010. CFLAGS="$save_CFLAGS"
  18011. if test x$have_gcc_sse = xyes; then
  18012. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  18013. SUMMARY_math="${SUMMARY_math} sse"
  18014. fi
  18015. fi
  18016. # Check whether --enable-sse2 was given.
  18017. if test ${enable_sse2+y}
  18018. then :
  18019. enableval=$enable_sse2;
  18020. else $as_nop
  18021. enable_sse2=$default_ssemath
  18022. fi
  18023. if test x$enable_sse2 = xyes; then
  18024. save_CFLAGS="$CFLAGS"
  18025. have_gcc_sse2=no
  18026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  18027. printf %s "checking for GCC -msse2 option... " >&6; }
  18028. sse2_CFLAGS="-msse2"
  18029. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #ifdef __MINGW32__
  18033. #include <_mingw.h>
  18034. #ifdef __MINGW64_VERSION_MAJOR
  18035. #include <intrin.h>
  18036. #else
  18037. #include <emmintrin.h>
  18038. #endif
  18039. #else
  18040. #include <emmintrin.h>
  18041. #endif
  18042. #ifndef __SSE2__
  18043. #error Assembler CPP flag not enabled
  18044. #endif
  18045. int
  18046. main (void)
  18047. {
  18048. ;
  18049. return 0;
  18050. }
  18051. _ACEOF
  18052. if ac_fn_c_try_compile "$LINENO"
  18053. then :
  18054. have_gcc_sse2=yes
  18055. fi
  18056. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  18058. printf "%s\n" "$have_gcc_sse2" >&6; }
  18059. CFLAGS="$save_CFLAGS"
  18060. if test x$have_gcc_sse2 = xyes; then
  18061. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  18062. SUMMARY_math="${SUMMARY_math} sse2"
  18063. fi
  18064. fi
  18065. # Check whether --enable-sse3 was given.
  18066. if test ${enable_sse3+y}
  18067. then :
  18068. enableval=$enable_sse3;
  18069. else $as_nop
  18070. enable_sse3=$default_ssemath
  18071. fi
  18072. if test x$enable_sse3 = xyes; then
  18073. save_CFLAGS="$CFLAGS"
  18074. have_gcc_sse3=no
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  18076. printf %s "checking for GCC -msse3 option... " >&6; }
  18077. sse3_CFLAGS="-msse3"
  18078. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  18079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18080. /* end confdefs.h. */
  18081. #ifdef __MINGW32__
  18082. #include <_mingw.h>
  18083. #ifdef __MINGW64_VERSION_MAJOR
  18084. #include <intrin.h>
  18085. #else
  18086. #include <pmmintrin.h>
  18087. #endif
  18088. #else
  18089. #include <pmmintrin.h>
  18090. #endif
  18091. #ifndef __SSE2__
  18092. #error Assembler CPP flag not enabled
  18093. #endif
  18094. int
  18095. main (void)
  18096. {
  18097. ;
  18098. return 0;
  18099. }
  18100. _ACEOF
  18101. if ac_fn_c_try_compile "$LINENO"
  18102. then :
  18103. have_gcc_sse3=yes
  18104. fi
  18105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  18107. printf "%s\n" "$have_gcc_sse3" >&6; }
  18108. CFLAGS="$save_CFLAGS"
  18109. if test x$have_gcc_sse3 = xyes; then
  18110. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  18111. SUMMARY_math="${SUMMARY_math} sse3"
  18112. fi
  18113. fi
  18114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  18115. printf %s "checking for immintrin.h... " >&6; }
  18116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18117. /* end confdefs.h. */
  18118. #include <immintrin.h>
  18119. int
  18120. main (void)
  18121. {
  18122. ;
  18123. return 0;
  18124. }
  18125. _ACEOF
  18126. if ac_fn_c_try_compile "$LINENO"
  18127. then :
  18128. have_immintrin_h_hdr=yes
  18129. else $as_nop
  18130. have_immintrin_h_hdr=no
  18131. fi
  18132. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  18134. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  18135. if test x$have_immintrin_h_hdr = xyes; then
  18136. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  18137. fi
  18138. # Check whether --enable-altivec was given.
  18139. if test ${enable_altivec+y}
  18140. then :
  18141. enableval=$enable_altivec;
  18142. else $as_nop
  18143. enable_altivec=yes
  18144. fi
  18145. if test x$enable_altivec = xyes; then
  18146. save_CFLAGS="$CFLAGS"
  18147. have_gcc_altivec=no
  18148. have_altivec_h_hdr=no
  18149. altivec_CFLAGS="-maltivec"
  18150. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18152. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18154. /* end confdefs.h. */
  18155. #include <altivec.h>
  18156. vector unsigned int vzero() {
  18157. return vec_splat_u32(0);
  18158. }
  18159. int
  18160. main (void)
  18161. {
  18162. ;
  18163. return 0;
  18164. }
  18165. _ACEOF
  18166. if ac_fn_c_try_compile "$LINENO"
  18167. then :
  18168. have_gcc_altivec=yes
  18169. have_altivec_h_hdr=yes
  18170. fi
  18171. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18173. printf "%s\n" "$have_gcc_altivec" >&6; }
  18174. if test x$have_gcc_altivec = xno; then
  18175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18176. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18178. /* end confdefs.h. */
  18179. vector unsigned int vzero() {
  18180. return vec_splat_u32(0);
  18181. }
  18182. int
  18183. main (void)
  18184. {
  18185. ;
  18186. return 0;
  18187. }
  18188. _ACEOF
  18189. if ac_fn_c_try_compile "$LINENO"
  18190. then :
  18191. have_gcc_altivec=yes
  18192. fi
  18193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18195. printf "%s\n" "$have_gcc_altivec" >&6; }
  18196. fi
  18197. if test x$have_gcc_altivec = xno; then
  18198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18199. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18200. altivec_CFLAGS="-faltivec"
  18201. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18203. /* end confdefs.h. */
  18204. #include <altivec.h>
  18205. vector unsigned int vzero() {
  18206. return vec_splat_u32(0);
  18207. }
  18208. int
  18209. main (void)
  18210. {
  18211. ;
  18212. return 0;
  18213. }
  18214. _ACEOF
  18215. if ac_fn_c_try_compile "$LINENO"
  18216. then :
  18217. have_gcc_altivec=yes
  18218. have_altivec_h_hdr=yes
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18222. printf "%s\n" "$have_gcc_altivec" >&6; }
  18223. fi
  18224. if test x$have_gcc_altivec = xno; then
  18225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18226. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18228. /* end confdefs.h. */
  18229. vector unsigned int vzero() {
  18230. return vec_splat_u32(0);
  18231. }
  18232. int
  18233. main (void)
  18234. {
  18235. ;
  18236. return 0;
  18237. }
  18238. _ACEOF
  18239. if ac_fn_c_try_compile "$LINENO"
  18240. then :
  18241. have_gcc_altivec=yes
  18242. fi
  18243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18245. printf "%s\n" "$have_gcc_altivec" >&6; }
  18246. fi
  18247. CFLAGS="$save_CFLAGS"
  18248. if test x$have_gcc_altivec = xyes; then
  18249. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18250. if test x$have_altivec_h_hdr = xyes; then
  18251. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18252. fi
  18253. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18254. SUMMARY_math="${SUMMARY_math} altivec"
  18255. fi
  18256. fi
  18257. fi
  18258. # Check whether --enable-lsx was given.
  18259. if test ${enable_lsx+y}
  18260. then :
  18261. enableval=$enable_lsx;
  18262. else $as_nop
  18263. enable_lsx=yes
  18264. fi
  18265. if test x$enable_lsx = xyes; then
  18266. save_CFLAGS="$CFLAGS"
  18267. have_gcc_lsx=no
  18268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18269. printf %s "checking for GCC -mlsx option... " >&6; }
  18270. lsx_CFLAGS="-mlsx"
  18271. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18273. /* end confdefs.h. */
  18274. #ifndef __loongarch_sx
  18275. #error Assembler CPP flag not enabled
  18276. #endif
  18277. int
  18278. main (void)
  18279. {
  18280. ;
  18281. return 0;
  18282. }
  18283. _ACEOF
  18284. if ac_fn_c_try_compile "$LINENO"
  18285. then :
  18286. have_gcc_lsx=yes
  18287. fi
  18288. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18290. printf "%s\n" "$have_gcc_lsx" >&6; }
  18291. CFLAGS="$save_CFLAGS"
  18292. if test x$have_gcc_lsx = xyes; then
  18293. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18294. SUMMARY_math="${SUMMARY_math} lsx"
  18295. fi
  18296. fi
  18297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18298. printf %s "checking for lsxintrin.h... " >&6; }
  18299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18300. /* end confdefs.h. */
  18301. #include <lsxintrin.h>
  18302. int
  18303. main (void)
  18304. {
  18305. ;
  18306. return 0;
  18307. }
  18308. _ACEOF
  18309. if ac_fn_c_try_compile "$LINENO"
  18310. then :
  18311. have_lsxintrin_h_hdr=yes
  18312. else $as_nop
  18313. have_lsxintrin_h_hdr=no
  18314. fi
  18315. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18317. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18318. if test x$have_lsxintrin_h_hdr = xyes; then
  18319. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18320. fi
  18321. CheckOSS()
  18322. {
  18323. # Check whether --enable-oss was given.
  18324. if test ${enable_oss+y}
  18325. then :
  18326. enableval=$enable_oss;
  18327. else $as_nop
  18328. enable_oss=maybe
  18329. fi
  18330. if test x$enable_oss = xmaybe; then
  18331. enable_oss=yes
  18332. fi
  18333. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18335. printf %s "checking for OSS audio support... " >&6; }
  18336. have_oss=no
  18337. if test x$have_oss != xyes; then
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. #include <sys/soundcard.h>
  18341. int
  18342. main (void)
  18343. {
  18344. int arg = SNDCTL_DSP_SETFRAGMENT;
  18345. ;
  18346. return 0;
  18347. }
  18348. _ACEOF
  18349. if ac_fn_c_try_compile "$LINENO"
  18350. then :
  18351. have_oss=yes
  18352. fi
  18353. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18354. fi
  18355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18356. printf "%s\n" "$have_oss" >&6; }
  18357. if test x$have_oss = xyes; then
  18358. SUMMARY_audio="${SUMMARY_audio} oss"
  18359. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18360. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18361. have_audio=yes
  18362. # We may need to link with ossaudio emulation library
  18363. case "$host" in
  18364. *-*-netbsd*)
  18365. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18366. esac
  18367. fi
  18368. fi
  18369. }
  18370. CheckALSA()
  18371. {
  18372. # Check whether --enable-alsa was given.
  18373. if test ${enable_alsa+y}
  18374. then :
  18375. enableval=$enable_alsa;
  18376. else $as_nop
  18377. enable_alsa=yes
  18378. fi
  18379. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18380. alsa_save_CFLAGS="$CFLAGS"
  18381. alsa_save_LDFLAGS="$LDFLAGS"
  18382. alsa_save_LIBS="$LIBS"
  18383. alsa_found=yes
  18384. # Check whether --with-alsa-prefix was given.
  18385. if test ${with_alsa_prefix+y}
  18386. then :
  18387. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18388. else $as_nop
  18389. alsa_prefix=""
  18390. fi
  18391. # Check whether --with-alsa-inc-prefix was given.
  18392. if test ${with_alsa_inc_prefix+y}
  18393. then :
  18394. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18395. else $as_nop
  18396. alsa_inc_prefix=""
  18397. fi
  18398. # Check whether --enable-alsatest was given.
  18399. if test ${enable_alsatest+y}
  18400. then :
  18401. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18402. else $as_nop
  18403. enable_alsatest=yes
  18404. fi
  18405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18406. printf %s "checking for ALSA CFLAGS... " >&6; }
  18407. if test "$alsa_inc_prefix" != "" ; then
  18408. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18409. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18410. fi
  18411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18412. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18414. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18415. if test "$alsa_prefix" != "" ; then
  18416. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18417. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18418. fi
  18419. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18420. LIBS=`echo $LIBS | sed 's/-lm//'`
  18421. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18422. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18423. LIBS=`echo $LIBS | sed 's/ //'`
  18424. LIBS="$ALSA_LIBS $LIBS"
  18425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18426. printf "%s\n" "$ALSA_LIBS" >&6; }
  18427. min_alsa_version=1.0.11
  18428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18429. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18430. no_alsa=""
  18431. alsa_min_major_version=`echo $min_alsa_version | \
  18432. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18433. alsa_min_minor_version=`echo $min_alsa_version | \
  18434. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18435. alsa_min_micro_version=`echo $min_alsa_version | \
  18436. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18437. ac_ext=c
  18438. ac_cpp='$CPP $CPPFLAGS'
  18439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18443. /* end confdefs.h. */
  18444. #include <alsa/asoundlib.h>
  18445. int
  18446. main (void)
  18447. {
  18448. /* ensure backward compatibility */
  18449. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18450. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18451. #endif
  18452. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18453. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18454. #endif
  18455. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18456. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18457. #endif
  18458. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18459. exit(0);
  18460. # else
  18461. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18462. # error not present
  18463. # endif
  18464. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18465. exit(0);
  18466. # else
  18467. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18468. # error not present
  18469. # endif
  18470. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18471. # error not present
  18472. # endif
  18473. # endif
  18474. # endif
  18475. exit(0);
  18476. ;
  18477. return 0;
  18478. }
  18479. _ACEOF
  18480. if ac_fn_c_try_compile "$LINENO"
  18481. then :
  18482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18483. printf "%s\n" "found." >&6; }
  18484. else $as_nop
  18485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18486. printf "%s\n" "not present." >&6; }
  18487. alsa_found=no
  18488. fi
  18489. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18490. ac_ext=c
  18491. ac_cpp='$CPP $CPPFLAGS'
  18492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18495. if test "x$enable_alsatest" = "xyes"; then
  18496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18497. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18498. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18499. then :
  18500. printf %s "(cached) " >&6
  18501. else $as_nop
  18502. ac_check_lib_save_LIBS=$LIBS
  18503. LIBS="-lasound $LIBS"
  18504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18505. /* end confdefs.h. */
  18506. /* Override any GCC internal prototype to avoid an error.
  18507. Use char because int might match the return type of a GCC
  18508. builtin and then its argument prototype would still apply. */
  18509. char snd_ctl_open ();
  18510. int
  18511. main (void)
  18512. {
  18513. return snd_ctl_open ();
  18514. ;
  18515. return 0;
  18516. }
  18517. _ACEOF
  18518. if ac_fn_c_try_link "$LINENO"
  18519. then :
  18520. ac_cv_lib_asound_snd_ctl_open=yes
  18521. else $as_nop
  18522. ac_cv_lib_asound_snd_ctl_open=no
  18523. fi
  18524. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18525. conftest$ac_exeext conftest.$ac_ext
  18526. LIBS=$ac_check_lib_save_LIBS
  18527. fi
  18528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18529. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18530. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18531. then :
  18532. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18533. LIBS="-lasound $LIBS"
  18534. else $as_nop
  18535. alsa_found=no
  18536. fi
  18537. fi
  18538. if test "x$alsa_found" = "xyes" ; then
  18539. have_alsa=yes
  18540. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18541. LIBS=`echo $LIBS | sed 's/ //'`
  18542. LIBS="-lasound $LIBS"
  18543. fi
  18544. if test "x$alsa_found" = "xno" ; then
  18545. have_alsa=no
  18546. CFLAGS="$alsa_save_CFLAGS"
  18547. LDFLAGS="$alsa_save_LDFLAGS"
  18548. LIBS="$alsa_save_LIBS"
  18549. ALSA_CFLAGS=""
  18550. ALSA_LIBS=""
  18551. fi
  18552. # Restore all flags from before the ALSA detection runs
  18553. CFLAGS="$alsa_save_CFLAGS"
  18554. LDFLAGS="$alsa_save_LDFLAGS"
  18555. LIBS="$alsa_save_LIBS"
  18556. if test x$have_alsa = xyes; then
  18557. # Check whether --enable-alsa-shared was given.
  18558. if test ${enable_alsa_shared+y}
  18559. then :
  18560. enableval=$enable_alsa_shared;
  18561. else $as_nop
  18562. enable_alsa_shared=yes
  18563. fi
  18564. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18565. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18566. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18567. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18568. if test x$have_loadso != xyes && \
  18569. test x$enable_alsa_shared = xyes; then
  18570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18571. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18572. fi
  18573. if test x$have_loadso = xyes && \
  18574. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18575. echo "-- dynamic libasound -> $alsa_lib"
  18576. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18577. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18578. else
  18579. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18580. SUMMARY_audio="${SUMMARY_audio} alsa"
  18581. fi
  18582. have_audio=yes
  18583. fi
  18584. fi
  18585. }
  18586. CheckJACK()
  18587. {
  18588. # Check whether --enable-jack was given.
  18589. if test ${enable_jack+y}
  18590. then :
  18591. enableval=$enable_jack;
  18592. else $as_nop
  18593. enable_jack=yes
  18594. fi
  18595. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18596. pkg_failed=no
  18597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18598. printf %s "checking for jack >= 0.125... " >&6; }
  18599. if test -n "$JACK_CFLAGS"; then
  18600. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18601. elif test -n "$PKG_CONFIG"; then
  18602. if test -n "$PKG_CONFIG" && \
  18603. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18604. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18605. ac_status=$?
  18606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18607. test $ac_status = 0; }; then
  18608. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18609. test "x$?" != "x0" && pkg_failed=yes
  18610. else
  18611. pkg_failed=yes
  18612. fi
  18613. else
  18614. pkg_failed=untried
  18615. fi
  18616. if test -n "$JACK_LIBS"; then
  18617. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18618. elif test -n "$PKG_CONFIG"; then
  18619. if test -n "$PKG_CONFIG" && \
  18620. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18621. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18622. ac_status=$?
  18623. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18624. test $ac_status = 0; }; then
  18625. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18626. test "x$?" != "x0" && pkg_failed=yes
  18627. else
  18628. pkg_failed=yes
  18629. fi
  18630. else
  18631. pkg_failed=untried
  18632. fi
  18633. if test $pkg_failed = yes; then
  18634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18635. printf "%s\n" "no" >&6; }
  18636. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18637. _pkg_short_errors_supported=yes
  18638. else
  18639. _pkg_short_errors_supported=no
  18640. fi
  18641. if test $_pkg_short_errors_supported = yes; then
  18642. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18643. else
  18644. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18645. fi
  18646. # Put the nasty error message in config.log where it belongs
  18647. echo "$JACK_PKG_ERRORS" >&5
  18648. audio_jack=no
  18649. elif test $pkg_failed = untried; then
  18650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18651. printf "%s\n" "no" >&6; }
  18652. audio_jack=no
  18653. else
  18654. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18655. JACK_LIBS=$pkg_cv_JACK_LIBS
  18656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18657. printf "%s\n" "yes" >&6; }
  18658. audio_jack=yes
  18659. fi
  18660. if test x$audio_jack = xyes; then
  18661. # Check whether --enable-jack-shared was given.
  18662. if test ${enable_jack_shared+y}
  18663. then :
  18664. enableval=$enable_jack_shared;
  18665. else $as_nop
  18666. enable_jack_shared=yes
  18667. fi
  18668. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18669. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18670. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18671. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18672. if test x$have_loadso != xyes && \
  18673. test x$enable_jack_shared = xyes; then
  18674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18675. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18676. fi
  18677. if test x$have_loadso = xyes && \
  18678. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18679. echo "-- dynamic libjack -> $jack_lib"
  18680. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18681. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18682. case "$host" in
  18683. # On Solaris, jack must be linked deferred explicitly
  18684. # to prevent undefined symbol failures.
  18685. *-*-solaris*)
  18686. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18687. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18688. esac
  18689. else
  18690. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18691. SUMMARY_audio="${SUMMARY_audio} jack"
  18692. fi
  18693. have_audio=yes
  18694. fi
  18695. fi
  18696. }
  18697. CheckESD()
  18698. {
  18699. # Check whether --enable-esd was given.
  18700. if test ${enable_esd+y}
  18701. then :
  18702. enableval=$enable_esd;
  18703. else $as_nop
  18704. enable_esd=yes
  18705. fi
  18706. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18707. pkg_failed=no
  18708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18709. printf %s "checking for esound >= 0.2.8... " >&6; }
  18710. if test -n "$ESD_CFLAGS"; then
  18711. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18712. elif test -n "$PKG_CONFIG"; then
  18713. if test -n "$PKG_CONFIG" && \
  18714. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18715. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18716. ac_status=$?
  18717. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18718. test $ac_status = 0; }; then
  18719. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18720. test "x$?" != "x0" && pkg_failed=yes
  18721. else
  18722. pkg_failed=yes
  18723. fi
  18724. else
  18725. pkg_failed=untried
  18726. fi
  18727. if test -n "$ESD_LIBS"; then
  18728. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18729. elif test -n "$PKG_CONFIG"; then
  18730. if test -n "$PKG_CONFIG" && \
  18731. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18732. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18733. ac_status=$?
  18734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18735. test $ac_status = 0; }; then
  18736. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18737. test "x$?" != "x0" && pkg_failed=yes
  18738. else
  18739. pkg_failed=yes
  18740. fi
  18741. else
  18742. pkg_failed=untried
  18743. fi
  18744. if test $pkg_failed = yes; then
  18745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18746. printf "%s\n" "no" >&6; }
  18747. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18748. _pkg_short_errors_supported=yes
  18749. else
  18750. _pkg_short_errors_supported=no
  18751. fi
  18752. if test $_pkg_short_errors_supported = yes; then
  18753. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18754. else
  18755. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18756. fi
  18757. # Put the nasty error message in config.log where it belongs
  18758. echo "$ESD_PKG_ERRORS" >&5
  18759. have_esd=no
  18760. elif test $pkg_failed = untried; then
  18761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18762. printf "%s\n" "no" >&6; }
  18763. have_esd=no
  18764. else
  18765. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18766. ESD_LIBS=$pkg_cv_ESD_LIBS
  18767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18768. printf "%s\n" "yes" >&6; }
  18769. have_esd=yes
  18770. fi
  18771. if test x$have_esd = xno; then
  18772. # Check whether --with-esd-prefix was given.
  18773. if test ${with_esd_prefix+y}
  18774. then :
  18775. withval=$with_esd_prefix; esd_prefix="$withval"
  18776. else $as_nop
  18777. esd_prefix=""
  18778. fi
  18779. # Check whether --with-esd-exec-prefix was given.
  18780. if test ${with_esd_exec_prefix+y}
  18781. then :
  18782. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18783. else $as_nop
  18784. esd_exec_prefix=""
  18785. fi
  18786. # Check whether --enable-esdtest was given.
  18787. if test ${enable_esdtest+y}
  18788. then :
  18789. enableval=$enable_esdtest;
  18790. else $as_nop
  18791. enable_esdtest=yes
  18792. fi
  18793. if test x$esd_exec_prefix != x ; then
  18794. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18795. if test x${ESD_CONFIG+set} != xset ; then
  18796. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18797. fi
  18798. fi
  18799. if test x$esd_prefix != x ; then
  18800. esd_args="$esd_args --prefix=$esd_prefix"
  18801. if test x${ESD_CONFIG+set} != xset ; then
  18802. ESD_CONFIG=$esd_prefix/bin/esd-config
  18803. fi
  18804. fi
  18805. # Extract the first word of "esd-config", so it can be a program name with args.
  18806. set dummy esd-config; ac_word=$2
  18807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18808. printf %s "checking for $ac_word... " >&6; }
  18809. if test ${ac_cv_path_ESD_CONFIG+y}
  18810. then :
  18811. printf %s "(cached) " >&6
  18812. else $as_nop
  18813. case $ESD_CONFIG in
  18814. [\\/]* | ?:[\\/]*)
  18815. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18816. ;;
  18817. *)
  18818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18819. for as_dir in $PATH
  18820. do
  18821. IFS=$as_save_IFS
  18822. case $as_dir in #(((
  18823. '') as_dir=./ ;;
  18824. */) ;;
  18825. *) as_dir=$as_dir/ ;;
  18826. esac
  18827. for ac_exec_ext in '' $ac_executable_extensions; do
  18828. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18829. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18831. break 2
  18832. fi
  18833. done
  18834. done
  18835. IFS=$as_save_IFS
  18836. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18837. ;;
  18838. esac
  18839. fi
  18840. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18841. if test -n "$ESD_CONFIG"; then
  18842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18843. printf "%s\n" "$ESD_CONFIG" >&6; }
  18844. else
  18845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18846. printf "%s\n" "no" >&6; }
  18847. fi
  18848. min_esd_version=0.2.8
  18849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18850. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18851. no_esd=""
  18852. if test "$ESD_CONFIG" = "no" ; then
  18853. no_esd=yes
  18854. else
  18855. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18856. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18857. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18858. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18859. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18860. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18861. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18862. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18863. if test "x$enable_esdtest" = "xyes" ; then
  18864. ac_ext=c
  18865. ac_cpp='$CPP $CPPFLAGS'
  18866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18869. ac_save_CFLAGS="$CFLAGS"
  18870. ac_save_LIBS="$LIBS"
  18871. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18872. LIBS="$LIBS $ESD_LIBS"
  18873. rm -f conf.esdtest
  18874. if test "$cross_compiling" = yes
  18875. then :
  18876. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18877. else $as_nop
  18878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18879. /* end confdefs.h. */
  18880. #include <stdio.h>
  18881. #include <stdlib.h>
  18882. #include <esd.h>
  18883. int main (void)
  18884. {
  18885. int major, minor, micro;
  18886. FILE *fp = fopen("conf.esdtest", "w");
  18887. if (fp) fclose(fp);
  18888. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18889. printf("%s, bad version string\n", "$min_esd_version");
  18890. exit(1);
  18891. }
  18892. if (($esd_major_version > major) ||
  18893. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18894. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18895. {
  18896. return 0;
  18897. }
  18898. else
  18899. {
  18900. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18901. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18902. printf("*** best to upgrade to the required version.\n");
  18903. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18904. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18905. printf("*** config.cache before re-running configure\n");
  18906. return 1;
  18907. }
  18908. }
  18909. _ACEOF
  18910. if ac_fn_c_try_run "$LINENO"
  18911. then :
  18912. else $as_nop
  18913. no_esd=yes
  18914. fi
  18915. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18916. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18917. fi
  18918. CFLAGS="$ac_save_CFLAGS"
  18919. LIBS="$ac_save_LIBS"
  18920. ac_ext=c
  18921. ac_cpp='$CPP $CPPFLAGS'
  18922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18925. fi
  18926. fi
  18927. if test "x$no_esd" = x ; then
  18928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18929. printf "%s\n" "yes" >&6; }
  18930. have_esd=yes
  18931. else
  18932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18933. printf "%s\n" "no" >&6; }
  18934. if test "$ESD_CONFIG" = "no" ; then
  18935. :
  18936. else
  18937. if test -f conf.esdtest ; then
  18938. :
  18939. else
  18940. echo "*** Could not run ESD test program, checking why..."
  18941. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18942. LIBS="$LIBS $ESD_LIBS"
  18943. ac_ext=c
  18944. ac_cpp='$CPP $CPPFLAGS'
  18945. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18946. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18947. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. #include <stdio.h>
  18951. #include <esd.h>
  18952. int
  18953. main (void)
  18954. {
  18955. return 0;
  18956. ;
  18957. return 0;
  18958. }
  18959. _ACEOF
  18960. if ac_fn_c_try_link "$LINENO"
  18961. then :
  18962. echo "*** The test program compiled, but did not run. This usually means"
  18963. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18964. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18965. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18966. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18967. echo "*** is required on your system"
  18968. echo "***"
  18969. echo "*** If you have an old version installed, it is best to remove it, although"
  18970. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18971. else $as_nop
  18972. echo "*** The test program failed to compile or link. See the file config.log for the"
  18973. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18974. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18975. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18976. fi
  18977. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18978. conftest$ac_exeext conftest.$ac_ext
  18979. CFLAGS="$ac_save_CFLAGS"
  18980. LIBS="$ac_save_LIBS"
  18981. ac_ext=c
  18982. ac_cpp='$CPP $CPPFLAGS'
  18983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18986. fi
  18987. fi
  18988. ESD_CFLAGS=""
  18989. ESD_LIBS=""
  18990. have_esd=no
  18991. fi
  18992. rm -f conf.esdtest
  18993. fi
  18994. if test x$have_esd = xyes; then
  18995. # Check whether --enable-esd-shared was given.
  18996. if test ${enable_esd_shared+y}
  18997. then :
  18998. enableval=$enable_esd_shared;
  18999. else $as_nop
  19000. enable_esd_shared=yes
  19001. fi
  19002. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19003. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  19004. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  19005. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  19006. if test x$have_loadso != xyes && \
  19007. test x$enable_esd_shared = xyes; then
  19008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  19009. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  19010. fi
  19011. if test x$have_loadso = xyes && \
  19012. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  19013. echo "-- dynamic libesd -> $esd_lib"
  19014. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  19015. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  19016. else
  19017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  19018. SUMMARY_audio="${SUMMARY_audio} esd"
  19019. fi
  19020. have_audio=yes
  19021. fi
  19022. fi
  19023. }
  19024. CheckPipewire()
  19025. {
  19026. # Check whether --enable-pipewire was given.
  19027. if test ${enable_pipewire+y}
  19028. then :
  19029. enableval=$enable_pipewire;
  19030. else $as_nop
  19031. enable_pipewire=yes
  19032. fi
  19033. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  19034. pkg_failed=no
  19035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  19036. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  19037. if test -n "$PIPEWIRE_CFLAGS"; then
  19038. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  19039. elif test -n "$PKG_CONFIG"; then
  19040. if test -n "$PKG_CONFIG" && \
  19041. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19042. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19043. ac_status=$?
  19044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19045. test $ac_status = 0; }; then
  19046. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19047. test "x$?" != "x0" && pkg_failed=yes
  19048. else
  19049. pkg_failed=yes
  19050. fi
  19051. else
  19052. pkg_failed=untried
  19053. fi
  19054. if test -n "$PIPEWIRE_LIBS"; then
  19055. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  19056. elif test -n "$PKG_CONFIG"; then
  19057. if test -n "$PKG_CONFIG" && \
  19058. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  19059. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  19060. ac_status=$?
  19061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19062. test $ac_status = 0; }; then
  19063. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  19064. test "x$?" != "x0" && pkg_failed=yes
  19065. else
  19066. pkg_failed=yes
  19067. fi
  19068. else
  19069. pkg_failed=untried
  19070. fi
  19071. if test $pkg_failed = yes; then
  19072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19073. printf "%s\n" "no" >&6; }
  19074. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19075. _pkg_short_errors_supported=yes
  19076. else
  19077. _pkg_short_errors_supported=no
  19078. fi
  19079. if test $_pkg_short_errors_supported = yes; then
  19080. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19081. else
  19082. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19083. fi
  19084. # Put the nasty error message in config.log where it belongs
  19085. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19086. audio_pipewire=no
  19087. elif test $pkg_failed = untried; then
  19088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19089. printf "%s\n" "no" >&6; }
  19090. audio_pipewire=no
  19091. else
  19092. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19093. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19095. printf "%s\n" "yes" >&6; }
  19096. audio_pipewire=yes
  19097. fi
  19098. if test x$audio_pipewire = xyes; then
  19099. # Check whether --enable-pipewire-shared was given.
  19100. if test ${enable_pipewire_shared+y}
  19101. then :
  19102. enableval=$enable_pipewire_shared;
  19103. else $as_nop
  19104. enable_pipewire_shared=yes
  19105. fi
  19106. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19107. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19108. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19109. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19110. if test x$have_loadso != xyes && \
  19111. test x$enable_pipewire_shared = xyes; then
  19112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19113. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19114. fi
  19115. if test x$have_loadso = xyes && \
  19116. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19117. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19118. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19119. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19120. else
  19121. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19122. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19123. fi
  19124. have_audio=yes
  19125. fi
  19126. fi
  19127. }
  19128. CheckPulseAudio()
  19129. {
  19130. # Check whether --enable-pulseaudio was given.
  19131. if test ${enable_pulseaudio+y}
  19132. then :
  19133. enableval=$enable_pulseaudio;
  19134. else $as_nop
  19135. enable_pulseaudio=yes
  19136. fi
  19137. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19138. pkg_failed=no
  19139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse >= 0.9.15" >&5
  19140. printf %s "checking for libpulse >= 0.9.15... " >&6; }
  19141. if test -n "$PULSEAUDIO_CFLAGS"; then
  19142. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19143. elif test -n "$PKG_CONFIG"; then
  19144. if test -n "$PKG_CONFIG" && \
  19145. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19146. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19147. ac_status=$?
  19148. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19149. test $ac_status = 0; }; then
  19150. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.15" 2>/dev/null`
  19151. test "x$?" != "x0" && pkg_failed=yes
  19152. else
  19153. pkg_failed=yes
  19154. fi
  19155. else
  19156. pkg_failed=untried
  19157. fi
  19158. if test -n "$PULSEAUDIO_LIBS"; then
  19159. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19160. elif test -n "$PKG_CONFIG"; then
  19161. if test -n "$PKG_CONFIG" && \
  19162. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.15\""; } >&5
  19163. ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.15") 2>&5
  19164. ac_status=$?
  19165. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19166. test $ac_status = 0; }; then
  19167. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.15" 2>/dev/null`
  19168. test "x$?" != "x0" && pkg_failed=yes
  19169. else
  19170. pkg_failed=yes
  19171. fi
  19172. else
  19173. pkg_failed=untried
  19174. fi
  19175. if test $pkg_failed = yes; then
  19176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19177. printf "%s\n" "no" >&6; }
  19178. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19179. _pkg_short_errors_supported=yes
  19180. else
  19181. _pkg_short_errors_supported=no
  19182. fi
  19183. if test $_pkg_short_errors_supported = yes; then
  19184. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19185. else
  19186. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse >= 0.9.15" 2>&1`
  19187. fi
  19188. # Put the nasty error message in config.log where it belongs
  19189. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19190. audio_pulseaudio=no
  19191. elif test $pkg_failed = untried; then
  19192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19193. printf "%s\n" "no" >&6; }
  19194. audio_pulseaudio=no
  19195. else
  19196. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19197. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19199. printf "%s\n" "yes" >&6; }
  19200. audio_pulseaudio=yes
  19201. fi
  19202. if test x$audio_pulseaudio = xyes; then
  19203. # Check whether --enable-pulseaudio-shared was given.
  19204. if test ${enable_pulseaudio_shared+y}
  19205. then :
  19206. enableval=$enable_pulseaudio_shared;
  19207. else $as_nop
  19208. enable_pulseaudio_shared=yes
  19209. fi
  19210. pulseaudio_lib=`find_lib "libpulse.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19211. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19212. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19213. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19214. if test x$have_loadso != xyes && \
  19215. test x$enable_pulseaudio_shared = xyes; then
  19216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19217. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19218. fi
  19219. if test x$have_loadso = xyes && \
  19220. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19221. echo "-- dynamic libpulse -> $pulseaudio_lib"
  19222. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19223. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19224. case "$host" in
  19225. # On Solaris, pulseaudio must be linked deferred explicitly
  19226. # to prevent undefined symbol failures.
  19227. *-*-solaris*)
  19228. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19230. esac
  19231. else
  19232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19233. SUMMARY_audio="${SUMMARY_audio} pulse"
  19234. fi
  19235. have_audio=yes
  19236. fi
  19237. fi
  19238. }
  19239. CheckARTSC()
  19240. {
  19241. # Check whether --enable-arts was given.
  19242. if test ${enable_arts+y}
  19243. then :
  19244. enableval=$enable_arts;
  19245. else $as_nop
  19246. enable_arts=yes
  19247. fi
  19248. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19249. # Extract the first word of "artsc-config", so it can be a program name with args.
  19250. set dummy artsc-config; ac_word=$2
  19251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19252. printf %s "checking for $ac_word... " >&6; }
  19253. if test ${ac_cv_path_ARTSCONFIG+y}
  19254. then :
  19255. printf %s "(cached) " >&6
  19256. else $as_nop
  19257. case $ARTSCONFIG in
  19258. [\\/]* | ?:[\\/]*)
  19259. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19260. ;;
  19261. *)
  19262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19263. for as_dir in $PATH
  19264. do
  19265. IFS=$as_save_IFS
  19266. case $as_dir in #(((
  19267. '') as_dir=./ ;;
  19268. */) ;;
  19269. *) as_dir=$as_dir/ ;;
  19270. esac
  19271. for ac_exec_ext in '' $ac_executable_extensions; do
  19272. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19273. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19274. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19275. break 2
  19276. fi
  19277. done
  19278. done
  19279. IFS=$as_save_IFS
  19280. ;;
  19281. esac
  19282. fi
  19283. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19284. if test -n "$ARTSCONFIG"; then
  19285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19286. printf "%s\n" "$ARTSCONFIG" >&6; }
  19287. else
  19288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19289. printf "%s\n" "no" >&6; }
  19290. fi
  19291. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19292. : # arts isn't installed
  19293. else
  19294. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19295. ARTS_LIBS=`$ARTSCONFIG --libs`
  19296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19297. printf %s "checking for aRts development environment... " >&6; }
  19298. audio_arts=no
  19299. save_CFLAGS="$CFLAGS"
  19300. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19302. /* end confdefs.h. */
  19303. #include <artsc.h>
  19304. int
  19305. main (void)
  19306. {
  19307. arts_stream_t stream;
  19308. ;
  19309. return 0;
  19310. }
  19311. _ACEOF
  19312. if ac_fn_c_try_compile "$LINENO"
  19313. then :
  19314. audio_arts=yes
  19315. fi
  19316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19317. CFLAGS="$save_CFLAGS"
  19318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19319. printf "%s\n" "$audio_arts" >&6; }
  19320. if test x$audio_arts = xyes; then
  19321. # Check whether --enable-arts-shared was given.
  19322. if test ${enable_arts_shared+y}
  19323. then :
  19324. enableval=$enable_arts_shared;
  19325. else $as_nop
  19326. enable_arts_shared=yes
  19327. fi
  19328. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19329. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19330. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19331. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19332. if test x$have_loadso != xyes && \
  19333. test x$enable_arts_shared = xyes; then
  19334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19335. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19336. fi
  19337. if test x$have_loadso = xyes && \
  19338. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19339. echo "-- dynamic libartsc -> $arts_lib"
  19340. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19341. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19342. else
  19343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19344. SUMMARY_audio="${SUMMARY_audio} arts"
  19345. fi
  19346. have_audio=yes
  19347. fi
  19348. fi
  19349. fi
  19350. }
  19351. CheckNAS()
  19352. {
  19353. # Check whether --enable-nas was given.
  19354. if test ${enable_nas+y}
  19355. then :
  19356. enableval=$enable_nas;
  19357. else $as_nop
  19358. enable_nas=yes
  19359. fi
  19360. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19361. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19362. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19363. then :
  19364. have_nas_hdr=yes
  19365. fi
  19366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19367. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19368. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19369. then :
  19370. printf %s "(cached) " >&6
  19371. else $as_nop
  19372. ac_check_lib_save_LIBS=$LIBS
  19373. LIBS="-laudio $LIBS"
  19374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19375. /* end confdefs.h. */
  19376. /* Override any GCC internal prototype to avoid an error.
  19377. Use char because int might match the return type of a GCC
  19378. builtin and then its argument prototype would still apply. */
  19379. char AuOpenServer ();
  19380. int
  19381. main (void)
  19382. {
  19383. return AuOpenServer ();
  19384. ;
  19385. return 0;
  19386. }
  19387. _ACEOF
  19388. if ac_fn_c_try_link "$LINENO"
  19389. then :
  19390. ac_cv_lib_audio_AuOpenServer=yes
  19391. else $as_nop
  19392. ac_cv_lib_audio_AuOpenServer=no
  19393. fi
  19394. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19395. conftest$ac_exeext conftest.$ac_ext
  19396. LIBS=$ac_check_lib_save_LIBS
  19397. fi
  19398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19399. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19400. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19401. then :
  19402. have_nas_lib=yes
  19403. fi
  19404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19405. printf %s "checking for NAS audio support... " >&6; }
  19406. have_nas=no
  19407. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19408. have_nas=yes
  19409. NAS_LIBS="-laudio"
  19410. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19411. have_nas=yes
  19412. NAS_CFLAGS="-I/usr/X11R6/include/"
  19413. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19414. fi
  19415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19416. printf "%s\n" "$have_nas" >&6; }
  19417. if test x$have_nas = xyes; then
  19418. # Check whether --enable-nas-shared was given.
  19419. if test ${enable_nas_shared+y}
  19420. then :
  19421. enableval=$enable_nas_shared;
  19422. else $as_nop
  19423. enable_nas_shared=yes
  19424. fi
  19425. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19426. if test x$have_loadso != xyes && \
  19427. test x$enable_nas_shared = xyes; then
  19428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19429. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19430. fi
  19431. if test x$have_loadso = xyes && \
  19432. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19433. echo "-- dynamic libaudio -> $nas_lib"
  19434. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19435. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19436. else
  19437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19438. SUMMARY_audio="${SUMMARY_audio} nas"
  19439. fi
  19440. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19441. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19442. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19443. have_audio=yes
  19444. fi
  19445. fi
  19446. }
  19447. CheckSNDIO()
  19448. {
  19449. # Check whether --enable-sndio was given.
  19450. if test ${enable_sndio+y}
  19451. then :
  19452. enableval=$enable_sndio;
  19453. else $as_nop
  19454. enable_sndio=yes
  19455. fi
  19456. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19457. pkg_failed=no
  19458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19459. printf %s "checking for sndio... " >&6; }
  19460. if test -n "$SNDIO_CFLAGS"; then
  19461. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19462. elif test -n "$PKG_CONFIG"; then
  19463. if test -n "$PKG_CONFIG" && \
  19464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19465. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19466. ac_status=$?
  19467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19468. test $ac_status = 0; }; then
  19469. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19470. test "x$?" != "x0" && pkg_failed=yes
  19471. else
  19472. pkg_failed=yes
  19473. fi
  19474. else
  19475. pkg_failed=untried
  19476. fi
  19477. if test -n "$SNDIO_LIBS"; then
  19478. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19479. elif test -n "$PKG_CONFIG"; then
  19480. if test -n "$PKG_CONFIG" && \
  19481. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19482. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19483. ac_status=$?
  19484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19485. test $ac_status = 0; }; then
  19486. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19487. test "x$?" != "x0" && pkg_failed=yes
  19488. else
  19489. pkg_failed=yes
  19490. fi
  19491. else
  19492. pkg_failed=untried
  19493. fi
  19494. if test $pkg_failed = yes; then
  19495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19496. printf "%s\n" "no" >&6; }
  19497. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19498. _pkg_short_errors_supported=yes
  19499. else
  19500. _pkg_short_errors_supported=no
  19501. fi
  19502. if test $_pkg_short_errors_supported = yes; then
  19503. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19504. else
  19505. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19506. fi
  19507. # Put the nasty error message in config.log where it belongs
  19508. echo "$SNDIO_PKG_ERRORS" >&5
  19509. audio_sndio=no
  19510. elif test $pkg_failed = untried; then
  19511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19512. printf "%s\n" "no" >&6; }
  19513. audio_sndio=no
  19514. else
  19515. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19516. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19518. printf "%s\n" "yes" >&6; }
  19519. audio_sndio=yes
  19520. fi
  19521. if test x$audio_sndio = xyes; then
  19522. # Check whether --enable-sndio-shared was given.
  19523. if test ${enable_sndio_shared+y}
  19524. then :
  19525. enableval=$enable_sndio_shared;
  19526. else $as_nop
  19527. enable_sndio_shared=yes
  19528. fi
  19529. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19530. if test x$have_loadso != xyes && \
  19531. test x$enable_sndio_shared = xyes; then
  19532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19533. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19534. fi
  19535. if test x$have_loadso = xyes && \
  19536. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19537. echo "-- dynamic libsndio -> $sndio_lib"
  19538. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19539. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19540. else
  19541. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19542. SUMMARY_audio="${SUMMARY_audio} sndio"
  19543. fi
  19544. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19545. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19546. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19547. have_audio=yes
  19548. fi
  19549. fi
  19550. }
  19551. CheckFusionSound()
  19552. {
  19553. # Check whether --enable-fusionsound was given.
  19554. if test ${enable_fusionsound+y}
  19555. then :
  19556. enableval=$enable_fusionsound;
  19557. else $as_nop
  19558. enable_fusionsound=no
  19559. fi
  19560. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19561. pkg_failed=no
  19562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19563. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19564. if test -n "$FUSIONSOUND_CFLAGS"; then
  19565. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19566. elif test -n "$PKG_CONFIG"; then
  19567. if test -n "$PKG_CONFIG" && \
  19568. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19569. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19570. ac_status=$?
  19571. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19572. test $ac_status = 0; }; then
  19573. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19574. test "x$?" != "x0" && pkg_failed=yes
  19575. else
  19576. pkg_failed=yes
  19577. fi
  19578. else
  19579. pkg_failed=untried
  19580. fi
  19581. if test -n "$FUSIONSOUND_LIBS"; then
  19582. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19583. elif test -n "$PKG_CONFIG"; then
  19584. if test -n "$PKG_CONFIG" && \
  19585. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19586. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19587. ac_status=$?
  19588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19589. test $ac_status = 0; }; then
  19590. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19591. test "x$?" != "x0" && pkg_failed=yes
  19592. else
  19593. pkg_failed=yes
  19594. fi
  19595. else
  19596. pkg_failed=untried
  19597. fi
  19598. if test $pkg_failed = yes; then
  19599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19600. printf "%s\n" "no" >&6; }
  19601. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19602. _pkg_short_errors_supported=yes
  19603. else
  19604. _pkg_short_errors_supported=no
  19605. fi
  19606. if test $_pkg_short_errors_supported = yes; then
  19607. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19608. else
  19609. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19610. fi
  19611. # Put the nasty error message in config.log where it belongs
  19612. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19613. fusionsound=no
  19614. elif test $pkg_failed = untried; then
  19615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19616. printf "%s\n" "no" >&6; }
  19617. fusionsound=no
  19618. else
  19619. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19620. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19622. printf "%s\n" "yes" >&6; }
  19623. fusionsound=yes
  19624. fi
  19625. if test x$fusionsound = xyes; then
  19626. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19627. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19628. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19629. # Check whether --enable-fusionsound-shared was given.
  19630. if test ${enable_fusionsound_shared+y}
  19631. then :
  19632. enableval=$enable_fusionsound_shared;
  19633. else $as_nop
  19634. enable_fusionsound_shared=yes
  19635. fi
  19636. fusionsound_shared=no
  19637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19638. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19639. if test x$have_loadso != xyes && \
  19640. test x$enable_fusionsound_shared = xyes; then
  19641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19642. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19643. fi
  19644. if test x$have_loadso = xyes && \
  19645. test x$enable_fusionsound_shared = xyes; then
  19646. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19647. fusionsound_shared=yes
  19648. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19649. else
  19650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19651. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19652. fi
  19653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19654. printf "%s\n" "$fusionsound_shared" >&6; }
  19655. have_audio=yes
  19656. fi
  19657. fi
  19658. }
  19659. CheckDiskAudio()
  19660. {
  19661. # Check whether --enable-diskaudio was given.
  19662. if test ${enable_diskaudio+y}
  19663. then :
  19664. enableval=$enable_diskaudio;
  19665. else $as_nop
  19666. enable_diskaudio=yes
  19667. fi
  19668. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19669. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19670. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19671. SUMMARY_audio="${SUMMARY_audio} disk"
  19672. have_audio=yes
  19673. fi
  19674. }
  19675. CheckDummyAudio()
  19676. {
  19677. # Check whether --enable-dummyaudio was given.
  19678. if test ${enable_dummyaudio+y}
  19679. then :
  19680. enableval=$enable_dummyaudio;
  19681. else $as_nop
  19682. enable_dummyaudio=yes
  19683. fi
  19684. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19685. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19686. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19687. SUMMARY_audio="${SUMMARY_audio} dummy"
  19688. have_audio=yes
  19689. fi
  19690. }
  19691. CheckLibSampleRate()
  19692. {
  19693. # Check whether --enable-libsamplerate was given.
  19694. if test ${enable_libsamplerate+y}
  19695. then :
  19696. enableval=$enable_libsamplerate;
  19697. else $as_nop
  19698. enable_libsamplerate=yes
  19699. fi
  19700. if test x$enable_libsamplerate = xyes; then
  19701. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19702. if test "x$ac_cv_header_samplerate_h" = xyes
  19703. then :
  19704. have_samplerate_h_hdr=yes
  19705. else $as_nop
  19706. have_samplerate_h_hdr=no
  19707. fi
  19708. if test x$have_samplerate_h_hdr = xyes; then
  19709. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19710. # Check whether --enable-libsamplerate-shared was given.
  19711. if test ${enable_libsamplerate_shared+y}
  19712. then :
  19713. enableval=$enable_libsamplerate_shared;
  19714. else $as_nop
  19715. enable_libsamplerate_shared=yes
  19716. fi
  19717. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19718. if test x$have_loadso != xyes && \
  19719. test x$enable_libsamplerate_shared = xyes; then
  19720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19721. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19722. fi
  19723. if test x$have_loadso = xyes && \
  19724. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19725. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19726. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19727. else
  19728. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19729. fi
  19730. fi
  19731. fi
  19732. }
  19733. CheckARM()
  19734. {
  19735. # Check whether --enable-arm-simd was given.
  19736. if test ${enable_arm_simd+y}
  19737. then :
  19738. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19739. else $as_nop
  19740. enable_arm_simd=no
  19741. fi
  19742. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19743. save_CFLAGS="$CFLAGS"
  19744. have_arm_simd=no
  19745. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19747. printf %s "checking for ARM SIMD... " >&6; }
  19748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19749. /* end confdefs.h. */
  19750. .text
  19751. .arch armv6
  19752. .object_arch armv4
  19753. .arm
  19754. .altmacro
  19755. #ifndef __ARM_EABI__
  19756. #error EABI is required (to be sure that calling conventions are compatible)
  19757. #endif
  19758. pld [r0]
  19759. uqadd8 r0, r0, r0
  19760. _ACEOF
  19761. if ac_fn_c_try_compile "$LINENO"
  19762. then :
  19763. have_arm_simd=yes
  19764. fi
  19765. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19767. printf "%s\n" "$have_arm_simd" >&6; }
  19768. CFLAGS="$save_CFLAGS"
  19769. if test x$have_arm_simd = xyes; then
  19770. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19771. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19772. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19773. fi
  19774. fi
  19775. }
  19776. CheckNEON()
  19777. {
  19778. # Check whether --enable-arm-neon was given.
  19779. if test ${enable_arm_neon+y}
  19780. then :
  19781. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19782. else $as_nop
  19783. enable_arm_neon=no
  19784. fi
  19785. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19786. save_CFLAGS="$CFLAGS"
  19787. have_arm_neon=no
  19788. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19790. printf %s "checking for ARM NEON... " >&6; }
  19791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19792. /* end confdefs.h. */
  19793. .text
  19794. .fpu neon
  19795. .arch armv7a
  19796. .object_arch armv4
  19797. .eabi_attribute 10, 0
  19798. .arm
  19799. .altmacro
  19800. #ifndef __ARM_EABI__
  19801. #error EABI is required (to be sure that calling conventions are compatible)
  19802. #endif
  19803. pld [r0]
  19804. vmovn.u16 d0, q0
  19805. _ACEOF
  19806. if ac_fn_c_try_compile "$LINENO"
  19807. then :
  19808. have_arm_neon=yes
  19809. fi
  19810. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19812. printf "%s\n" "$have_arm_neon" >&6; }
  19813. CFLAGS="$save_CFLAGS"
  19814. if test x$have_arm_neon = xyes; then
  19815. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19816. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19817. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19818. fi
  19819. fi
  19820. }
  19821. CheckObjectiveCARC()
  19822. {
  19823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19824. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19825. have_clang_objc_arc=no
  19826. save_CFLAGS="$CFLAGS"
  19827. CFLAGS="$save_CFLAGS -fobjc-arc"
  19828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19829. /* end confdefs.h. */
  19830. int x = 0;
  19831. int
  19832. main (void)
  19833. {
  19834. ;
  19835. return 0;
  19836. }
  19837. _ACEOF
  19838. if ac_fn_c_try_compile "$LINENO"
  19839. then :
  19840. have_clang_objc_arc=yes
  19841. fi
  19842. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19844. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19845. CFLAGS="$save_CFLAGS"
  19846. if test x$have_clang_objc_arc = xyes; then
  19847. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19848. fi
  19849. }
  19850. CheckGDwarf4()
  19851. {
  19852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19853. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19854. have_gcc_gdwarf4=no
  19855. save_CFLAGS="$CFLAGS"
  19856. CFLAGS="$save_CFLAGS -gdwarf-4"
  19857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19858. /* end confdefs.h. */
  19859. int x = 0;
  19860. int
  19861. main (void)
  19862. {
  19863. ;
  19864. return 0;
  19865. }
  19866. _ACEOF
  19867. if ac_fn_c_try_compile "$LINENO"
  19868. then :
  19869. have_gcc_gdwarf4=yes
  19870. fi
  19871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19873. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19874. CFLAGS="$save_CFLAGS"
  19875. if test x$have_gcc_gdwarf4 = xyes; then
  19876. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19877. fi
  19878. }
  19879. CheckVisibilityHidden()
  19880. {
  19881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19882. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19883. have_gcc_fvisibility=no
  19884. visibility_CFLAGS="-fvisibility=hidden"
  19885. save_CFLAGS="$CFLAGS"
  19886. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19888. /* end confdefs.h. */
  19889. #if !defined(__GNUC__) || __GNUC__ < 4
  19890. #error SDL only uses visibility attributes in GCC 4 or newer
  19891. #endif
  19892. int
  19893. main (void)
  19894. {
  19895. ;
  19896. return 0;
  19897. }
  19898. _ACEOF
  19899. if ac_fn_c_try_compile "$LINENO"
  19900. then :
  19901. have_gcc_fvisibility=yes
  19902. fi
  19903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19905. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19906. CFLAGS="$save_CFLAGS"
  19907. if test x$have_gcc_fvisibility = xyes; then
  19908. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19909. fi
  19910. }
  19911. CheckNoStrictAliasing()
  19912. {
  19913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19914. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19915. have_gcc_no_strict_aliasing=no
  19916. save_CFLAGS="$CFLAGS"
  19917. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19919. /* end confdefs.h. */
  19920. int x = 0;
  19921. int
  19922. main (void)
  19923. {
  19924. ;
  19925. return 0;
  19926. }
  19927. _ACEOF
  19928. if ac_fn_c_try_compile "$LINENO"
  19929. then :
  19930. have_gcc_no_strict_aliasing=yes
  19931. fi
  19932. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19934. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19935. CFLAGS="$save_CFLAGS"
  19936. if test x$have_gcc_no_strict_aliasing = xyes; then
  19937. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19938. fi
  19939. }
  19940. CheckWerror()
  19941. {
  19942. # Check whether --enable-werror was given.
  19943. if test ${enable_werror+y}
  19944. then :
  19945. enableval=$enable_werror; enable_werror=$enableval
  19946. else $as_nop
  19947. enable_werror=no
  19948. fi
  19949. if test x$enable_werror = xyes; then
  19950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19951. printf %s "checking for GCC -Werror option... " >&6; }
  19952. have_gcc_werror=no
  19953. save_CFLAGS="$CFLAGS"
  19954. CFLAGS="$save_CFLAGS -Werror"
  19955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19956. /* end confdefs.h. */
  19957. int x = 0;
  19958. int
  19959. main (void)
  19960. {
  19961. ;
  19962. return 0;
  19963. }
  19964. _ACEOF
  19965. if ac_fn_c_try_compile "$LINENO"
  19966. then :
  19967. have_gcc_werror=yes
  19968. fi
  19969. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19971. printf "%s\n" "$have_gcc_werror" >&6; }
  19972. CFLAGS="$save_CFLAGS"
  19973. if test x$have_gcc_werror = xyes; then
  19974. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19975. fi
  19976. fi
  19977. }
  19978. CheckNoErrorDeprecatedDeclarationsWerror()
  19979. {
  19980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19981. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19982. have_gcc_no_werror_deprecated_declarations=no
  19983. save_CFLAGS="$CFLAGS"
  19984. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19986. /* end confdefs.h. */
  19987. int x = 0;
  19988. int
  19989. main (void)
  19990. {
  19991. ;
  19992. return 0;
  19993. }
  19994. _ACEOF
  19995. if ac_fn_c_try_compile "$LINENO"
  19996. then :
  19997. have_gcc_no_werror_deprecated_declarations=yes
  19998. fi
  19999. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  20001. printf "%s\n" "$have_gcc_werror" >&6; }
  20002. CFLAGS="$save_CFLAGS"
  20003. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  20004. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  20005. fi
  20006. }
  20007. CheckDeclarationAfterStatement()
  20008. {
  20009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  20010. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  20011. have_gcc_declaration_after_statement=no
  20012. save_CFLAGS="$CFLAGS"
  20013. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20015. /* end confdefs.h. */
  20016. int x = 0;
  20017. int
  20018. main (void)
  20019. {
  20020. ;
  20021. return 0;
  20022. }
  20023. _ACEOF
  20024. if ac_fn_c_try_compile "$LINENO"
  20025. then :
  20026. have_gcc_declaration_after_statement=yes
  20027. fi
  20028. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  20030. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  20031. CFLAGS="$save_CFLAGS"
  20032. if test x$have_gcc_declaration_after_statement = xyes; then
  20033. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  20034. fi
  20035. }
  20036. CheckWarnAll()
  20037. {
  20038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  20039. printf %s "checking for GCC -Wall option... " >&6; }
  20040. have_gcc_Wall=no
  20041. save_CFLAGS="$CFLAGS"
  20042. CFLAGS="$save_CFLAGS -Wall"
  20043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20044. /* end confdefs.h. */
  20045. int x = 0;
  20046. int
  20047. main (void)
  20048. {
  20049. ;
  20050. return 0;
  20051. }
  20052. _ACEOF
  20053. if ac_fn_c_try_compile "$LINENO"
  20054. then :
  20055. have_gcc_Wall=yes
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  20059. printf "%s\n" "$have_gcc_Wall" >&6; }
  20060. CFLAGS="$save_CFLAGS"
  20061. if test x$have_gcc_Wall = xyes; then
  20062. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  20063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  20064. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  20065. need_gcc_Wno_multichar=no
  20066. case "$host" in
  20067. *-*-haiku*)
  20068. need_gcc_Wno_multichar=yes
  20069. ;;
  20070. esac
  20071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  20072. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  20073. if test x$need_gcc_Wno_multichar = xyes; then
  20074. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20075. fi
  20076. fi
  20077. }
  20078. CheckUnusedLocalTypedefs()
  20079. {
  20080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wunused-local-typedefs option" >&5
  20081. printf %s "checking for GCC -Wunused-local-typedefs option... " >&6; }
  20082. have_gcc_unused_local_typedefs=no
  20083. save_CFLAGS="$CFLAGS"
  20084. CFLAGS="$save_CFLAGS -Wunused-local-typedefs"
  20085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20086. /* end confdefs.h. */
  20087. int x = 0;
  20088. int
  20089. main (void)
  20090. {
  20091. ;
  20092. return 0;
  20093. }
  20094. _ACEOF
  20095. if ac_fn_c_try_compile "$LINENO"
  20096. then :
  20097. have_gcc_unused_local_typedefs=yes
  20098. fi
  20099. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_unused_local_typedefs" >&5
  20101. printf "%s\n" "$have_gcc_unused_local_typedefs" >&6; }
  20102. CFLAGS="$save_CFLAGS"
  20103. if test x$have_gcc_unused_local_typedefs = xyes; then
  20104. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-unused-local-typedefs"
  20105. fi
  20106. }
  20107. CheckWayland()
  20108. {
  20109. # Check whether --enable-video-wayland was given.
  20110. if test ${enable_video_wayland+y}
  20111. then :
  20112. enableval=$enable_video_wayland;
  20113. else $as_nop
  20114. enable_video_wayland=yes
  20115. fi
  20116. # Check whether --enable-video-wayland-qt-touch was given.
  20117. if test ${enable_video_wayland_qt_touch+y}
  20118. then :
  20119. enableval=$enable_video_wayland_qt_touch;
  20120. else $as_nop
  20121. enable_video_wayland_qt_touch=yes
  20122. fi
  20123. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20125. printf %s "checking for Wayland support... " >&6; }
  20126. video_wayland=no
  20127. if test x$video_opengl_egl = xyes && \
  20128. test x$video_opengles_v2 = xyes; then
  20129. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20130. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20131. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20132. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20133. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20134. then :
  20135. WAYLAND_SCANNER_CODE_MODE=private-code
  20136. else $as_nop
  20137. WAYLAND_SCANNER_CODE_MODE=code
  20138. fi
  20139. video_wayland=yes
  20140. fi
  20141. fi
  20142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20143. printf "%s\n" "$video_wayland" >&6; }
  20144. if test x$video_wayland = xyes; then
  20145. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20146. if test x$enable_video_wayland_qt_touch = xyes; then
  20147. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20148. fi
  20149. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20150. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20151. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20152. # Check whether --enable-wayland-shared was given.
  20153. if test ${enable_wayland_shared+y}
  20154. then :
  20155. enableval=$enable_wayland_shared;
  20156. else $as_nop
  20157. enable_wayland_shared=maybe
  20158. fi
  20159. case "$host" in
  20160. *)
  20161. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20162. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20163. if test x$wayland_egl_lib = x; then
  20164. # This works in Ubuntu 13.10, maybe others
  20165. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20166. fi
  20167. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20168. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20169. ;;
  20170. esac
  20171. if test x$enable_wayland_shared = xmaybe; then
  20172. enable_wayland_shared=yes
  20173. fi
  20174. if test x$have_loadso != xyes && \
  20175. test x$enable_wayland_shared = xyes; then
  20176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20177. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20178. enable_wayland_shared=no
  20179. fi
  20180. if test x$have_loadso = xyes && \
  20181. test x$enable_wayland_shared = xyes && \
  20182. test x$wayland_client_lib != x && \
  20183. test x$wayland_egl_lib != x && \
  20184. test x$wayland_cursor_lib != x && \
  20185. test x$xkbcommon_lib != x; then
  20186. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20187. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20188. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20189. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20190. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20191. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20192. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20193. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20194. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20195. else
  20196. enable_wayland_shared=no
  20197. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20198. SUMMARY_video="${SUMMARY_video} wayland"
  20199. fi
  20200. have_video=yes
  20201. # Check whether --enable-libdecor was given.
  20202. if test ${enable_libdecor+y}
  20203. then :
  20204. enableval=$enable_libdecor;
  20205. else $as_nop
  20206. enable_libdecor=yes
  20207. fi
  20208. if test x$enable_libdecor = xyes; then
  20209. pkg_failed=no
  20210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20211. printf %s "checking for libdecor-0... " >&6; }
  20212. if test -n "$DECOR_CFLAGS"; then
  20213. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20214. elif test -n "$PKG_CONFIG"; then
  20215. if test -n "$PKG_CONFIG" && \
  20216. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20217. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20218. ac_status=$?
  20219. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20220. test $ac_status = 0; }; then
  20221. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20222. test "x$?" != "x0" && pkg_failed=yes
  20223. else
  20224. pkg_failed=yes
  20225. fi
  20226. else
  20227. pkg_failed=untried
  20228. fi
  20229. if test -n "$DECOR_LIBS"; then
  20230. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20231. elif test -n "$PKG_CONFIG"; then
  20232. if test -n "$PKG_CONFIG" && \
  20233. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20234. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20235. ac_status=$?
  20236. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20237. test $ac_status = 0; }; then
  20238. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20239. test "x$?" != "x0" && pkg_failed=yes
  20240. else
  20241. pkg_failed=yes
  20242. fi
  20243. else
  20244. pkg_failed=untried
  20245. fi
  20246. if test $pkg_failed = yes; then
  20247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20248. printf "%s\n" "no" >&6; }
  20249. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20250. _pkg_short_errors_supported=yes
  20251. else
  20252. _pkg_short_errors_supported=no
  20253. fi
  20254. if test $_pkg_short_errors_supported = yes; then
  20255. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20256. else
  20257. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20258. fi
  20259. # Put the nasty error message in config.log where it belongs
  20260. echo "$DECOR_PKG_ERRORS" >&5
  20261. video_libdecor=no
  20262. elif test $pkg_failed = untried; then
  20263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20264. printf "%s\n" "no" >&6; }
  20265. video_libdecor=no
  20266. else
  20267. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20268. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20270. printf "%s\n" "yes" >&6; }
  20271. video_libdecor=yes
  20272. fi
  20273. if test x$video_libdecor = xyes; then
  20274. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20275. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20276. # Check whether --enable-libdecor-shared was given.
  20277. if test ${enable_libdecor_shared+y}
  20278. then :
  20279. enableval=$enable_libdecor_shared;
  20280. else $as_nop
  20281. enable_libdecor_shared=yes
  20282. fi
  20283. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20284. if test x$enable_wayland_shared != xyes; then
  20285. enable_libdecor_shared=no
  20286. fi
  20287. if test x$have_loadso != xyes && \
  20288. test x$enable_libdecor_shared = xyes; then
  20289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20290. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20291. fi
  20292. if test x$have_loadso = xyes && \
  20293. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20294. echo "-- dynamic libdecor -> $decor_lib"
  20295. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20296. else
  20297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20298. fi
  20299. saved_cflags=$CFLAGS
  20300. CFLAGS="$CFLAGS $DECOR_CFLAGS"
  20301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  20302. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  20303. if test ${ac_cv_c_undeclared_builtin_options+y}
  20304. then :
  20305. printf %s "(cached) " >&6
  20306. else $as_nop
  20307. ac_save_CFLAGS=$CFLAGS
  20308. ac_cv_c_undeclared_builtin_options='cannot detect'
  20309. for ac_arg in '' -fno-builtin; do
  20310. CFLAGS="$ac_save_CFLAGS $ac_arg"
  20311. # This test program should *not* compile successfully.
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. int
  20315. main (void)
  20316. {
  20317. (void) strchr;
  20318. ;
  20319. return 0;
  20320. }
  20321. _ACEOF
  20322. if ac_fn_c_try_compile "$LINENO"
  20323. then :
  20324. else $as_nop
  20325. # This test program should compile successfully.
  20326. # No library function is consistently available on
  20327. # freestanding implementations, so test against a dummy
  20328. # declaration. Include always-available headers on the
  20329. # off chance that they somehow elicit warnings.
  20330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20331. /* end confdefs.h. */
  20332. #include <float.h>
  20333. #include <limits.h>
  20334. #include <stdarg.h>
  20335. #include <stddef.h>
  20336. extern void ac_decl (int, char *);
  20337. int
  20338. main (void)
  20339. {
  20340. (void) ac_decl (0, (char *) 0);
  20341. (void) ac_decl;
  20342. ;
  20343. return 0;
  20344. }
  20345. _ACEOF
  20346. if ac_fn_c_try_compile "$LINENO"
  20347. then :
  20348. if test x"$ac_arg" = x
  20349. then :
  20350. ac_cv_c_undeclared_builtin_options='none needed'
  20351. else $as_nop
  20352. ac_cv_c_undeclared_builtin_options=$ac_arg
  20353. fi
  20354. break
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20357. fi
  20358. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20359. done
  20360. CFLAGS=$ac_save_CFLAGS
  20361. fi
  20362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  20363. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  20364. case $ac_cv_c_undeclared_builtin_options in #(
  20365. 'cannot detect') :
  20366. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20367. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  20368. as_fn_error $? "cannot make $CC report undeclared builtins
  20369. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  20370. 'none needed') :
  20371. ac_c_undeclared_builtin_options='' ;; #(
  20372. *) :
  20373. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  20374. esac
  20375. ac_fn_check_decl "$LINENO" "libdecor_frame_get_min_content_size" "ac_cv_have_decl_libdecor_frame_get_min_content_size" "#include <libdecor.h>
  20376. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20377. if test "x$ac_cv_have_decl_libdecor_frame_get_min_content_size" = xyes
  20378. then :
  20379. ac_have_decl=1
  20380. else $as_nop
  20381. ac_have_decl=0
  20382. fi
  20383. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MIN_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20384. if test $ac_have_decl = 1
  20385. then :
  20386. libdecor_get_min_max=yes
  20387. fi
  20388. ac_fn_check_decl "$LINENO" "libdecor_frame_get_max_content_size" "ac_cv_have_decl_libdecor_frame_get_max_content_size" "#include <libdecor.h>
  20389. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  20390. if test "x$ac_cv_have_decl_libdecor_frame_get_max_content_size" = xyes
  20391. then :
  20392. ac_have_decl=1
  20393. else $as_nop
  20394. ac_have_decl=0
  20395. fi
  20396. printf "%s\n" "#define HAVE_DECL_LIBDECOR_FRAME_GET_MAX_CONTENT_SIZE $ac_have_decl" >>confdefs.h
  20397. if test $ac_have_decl = 1
  20398. then :
  20399. libdecor_get_min_max=yes
  20400. fi
  20401. if test x$libdecor_get_min_max = xyes; then
  20402. printf "%s\n" "#define SDL_HAVE_LIBDECOR_GET_MIN_MAX 1" >>confdefs.h
  20403. fi
  20404. CFLAGS="$saved_cflags"
  20405. fi
  20406. fi
  20407. fi
  20408. fi
  20409. }
  20410. CheckNativeClient()
  20411. {
  20412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20413. /* end confdefs.h. */
  20414. #if !defined(__native_client__)
  20415. #error "NO NACL"
  20416. #endif
  20417. int
  20418. main (void)
  20419. {
  20420. ;
  20421. return 0;
  20422. }
  20423. _ACEOF
  20424. if ac_fn_c_try_compile "$LINENO"
  20425. then :
  20426. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20427. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20428. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20429. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20430. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20431. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20432. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20433. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20434. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20435. SUMMARY_audio="${SUMMARY_audio} nacl"
  20436. have_audio=yes
  20437. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20438. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20439. have_video=yes
  20440. fi
  20441. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20442. }
  20443. CheckRPI()
  20444. {
  20445. # Check whether --enable-video-rpi was given.
  20446. if test ${enable_video_rpi+y}
  20447. then :
  20448. enableval=$enable_video_rpi;
  20449. else $as_nop
  20450. enable_video_rpi=yes
  20451. fi
  20452. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20453. pkg_failed=no
  20454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20455. printf %s "checking for bcm_host brcmegl... " >&6; }
  20456. if test -n "$RPI_CFLAGS"; then
  20457. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20458. elif test -n "$PKG_CONFIG"; then
  20459. if test -n "$PKG_CONFIG" && \
  20460. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20461. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20462. ac_status=$?
  20463. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20464. test $ac_status = 0; }; then
  20465. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20466. test "x$?" != "x0" && pkg_failed=yes
  20467. else
  20468. pkg_failed=yes
  20469. fi
  20470. else
  20471. pkg_failed=untried
  20472. fi
  20473. if test -n "$RPI_LIBS"; then
  20474. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20475. elif test -n "$PKG_CONFIG"; then
  20476. if test -n "$PKG_CONFIG" && \
  20477. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20478. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20479. ac_status=$?
  20480. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20481. test $ac_status = 0; }; then
  20482. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20483. test "x$?" != "x0" && pkg_failed=yes
  20484. else
  20485. pkg_failed=yes
  20486. fi
  20487. else
  20488. pkg_failed=untried
  20489. fi
  20490. if test $pkg_failed = yes; then
  20491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20492. printf "%s\n" "no" >&6; }
  20493. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20494. _pkg_short_errors_supported=yes
  20495. else
  20496. _pkg_short_errors_supported=no
  20497. fi
  20498. if test $_pkg_short_errors_supported = yes; then
  20499. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20500. else
  20501. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20502. fi
  20503. # Put the nasty error message in config.log where it belongs
  20504. echo "$RPI_PKG_ERRORS" >&5
  20505. video_rpi=no
  20506. elif test $pkg_failed = untried; then
  20507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20508. printf "%s\n" "no" >&6; }
  20509. video_rpi=no
  20510. else
  20511. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20512. RPI_LIBS=$pkg_cv_RPI_LIBS
  20513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20514. printf "%s\n" "yes" >&6; }
  20515. video_rpi=yes
  20516. fi
  20517. if test x$video_rpi = xno; then
  20518. if test x$ARCH = xnetbsd; then
  20519. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20520. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20521. else
  20522. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20523. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20524. fi
  20525. fi
  20526. # Save the original compiler flags and libraries
  20527. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20528. # Add the Raspberry Pi compiler flags and libraries
  20529. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20531. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20532. have_video_rpi=no
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. #include <bcm_host.h>
  20536. #include <EGL/eglplatform.h>
  20537. int
  20538. main (void)
  20539. {
  20540. EGL_DISPMANX_WINDOW_T window;
  20541. bcm_host_init();
  20542. ;
  20543. return 0;
  20544. }
  20545. _ACEOF
  20546. if ac_fn_c_try_link "$LINENO"
  20547. then :
  20548. have_video_rpi=yes
  20549. fi
  20550. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20551. conftest$ac_exeext conftest.$ac_ext
  20552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20553. printf "%s\n" "$have_video_rpi" >&6; }
  20554. # Restore the compiler flags and libraries
  20555. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20556. if test x$have_video_rpi = xyes; then
  20557. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20558. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20559. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20560. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20561. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20562. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20563. SUMMARY_video="${SUMMARY_video} rpi"
  20564. have_video=yes
  20565. fi
  20566. fi
  20567. }
  20568. CheckX11()
  20569. {
  20570. # Check whether --enable-video-x11 was given.
  20571. if test ${enable_video_x11+y}
  20572. then :
  20573. enableval=$enable_video_x11;
  20574. else $as_nop
  20575. enable_video_x11=yes
  20576. case "$host" in
  20577. *-*-darwin*|*-ios-*)
  20578. enable_video_x11=no
  20579. ;;
  20580. esac
  20581. fi
  20582. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20583. case "$host" in
  20584. *-*-darwin*)
  20585. # This isn't necessary for X11, but fixes GLX detection
  20586. if test "x$x_includes" = xNONE && \
  20587. test "x$x_libraries" = xNONE && \
  20588. test -d /opt/X11/include && \
  20589. test -d /opt/X11/lib; then
  20590. x_includes="/opt/X11/include"
  20591. x_libraries="/opt/X11/lib"
  20592. fi
  20593. ;;
  20594. esac
  20595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20596. printf %s "checking for X... " >&6; }
  20597. # Check whether --with-x was given.
  20598. if test ${with_x+y}
  20599. then :
  20600. withval=$with_x;
  20601. fi
  20602. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20603. if test "x$with_x" = xno; then
  20604. # The user explicitly disabled X.
  20605. have_x=disabled
  20606. else
  20607. case $x_includes,$x_libraries in #(
  20608. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20609. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20610. then :
  20611. printf %s "(cached) " >&6
  20612. else $as_nop
  20613. # One or both of the vars are not set, and there is no cached value.
  20614. ac_x_includes=no
  20615. ac_x_libraries=no
  20616. # Do we need to do anything special at all?
  20617. ac_save_LIBS=$LIBS
  20618. LIBS="-lX11 $LIBS"
  20619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20620. /* end confdefs.h. */
  20621. #include <X11/Xlib.h>
  20622. int
  20623. main (void)
  20624. {
  20625. XrmInitialize ()
  20626. ;
  20627. return 0;
  20628. }
  20629. _ACEOF
  20630. if ac_fn_c_try_link "$LINENO"
  20631. then :
  20632. # We can compile and link X programs with no special options.
  20633. ac_x_includes=
  20634. ac_x_libraries=
  20635. fi
  20636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20637. conftest$ac_exeext conftest.$ac_ext
  20638. LIBS="$ac_save_LIBS"
  20639. # If that didn't work, only try xmkmf and file system searches
  20640. # for native compilation.
  20641. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20642. then :
  20643. rm -f -r conftest.dir
  20644. if mkdir conftest.dir; then
  20645. cd conftest.dir
  20646. cat >Imakefile <<'_ACEOF'
  20647. incroot:
  20648. @echo incroot='${INCROOT}'
  20649. usrlibdir:
  20650. @echo usrlibdir='${USRLIBDIR}'
  20651. libdir:
  20652. @echo libdir='${LIBDIR}'
  20653. _ACEOF
  20654. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20655. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20656. for ac_var in incroot usrlibdir libdir; do
  20657. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20658. done
  20659. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20660. for ac_extension in a so sl dylib la dll; do
  20661. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20662. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20663. ac_im_usrlibdir=$ac_im_libdir; break
  20664. fi
  20665. done
  20666. # Screen out bogus values from the imake configuration. They are
  20667. # bogus both because they are the default anyway, and because
  20668. # using them would break gcc on systems where it needs fixed includes.
  20669. case $ac_im_incroot in
  20670. /usr/include) ac_x_includes= ;;
  20671. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20672. esac
  20673. case $ac_im_usrlibdir in
  20674. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20675. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20676. esac
  20677. fi
  20678. cd ..
  20679. rm -f -r conftest.dir
  20680. fi
  20681. # Standard set of common directories for X headers.
  20682. # Check X11 before X11Rn because it is often a symlink to the current release.
  20683. ac_x_header_dirs='
  20684. /usr/X11/include
  20685. /usr/X11R7/include
  20686. /usr/X11R6/include
  20687. /usr/X11R5/include
  20688. /usr/X11R4/include
  20689. /usr/include/X11
  20690. /usr/include/X11R7
  20691. /usr/include/X11R6
  20692. /usr/include/X11R5
  20693. /usr/include/X11R4
  20694. /usr/local/X11/include
  20695. /usr/local/X11R7/include
  20696. /usr/local/X11R6/include
  20697. /usr/local/X11R5/include
  20698. /usr/local/X11R4/include
  20699. /usr/local/include/X11
  20700. /usr/local/include/X11R7
  20701. /usr/local/include/X11R6
  20702. /usr/local/include/X11R5
  20703. /usr/local/include/X11R4
  20704. /opt/X11/include
  20705. /usr/X386/include
  20706. /usr/x386/include
  20707. /usr/XFree86/include/X11
  20708. /usr/include
  20709. /usr/local/include
  20710. /usr/unsupported/include
  20711. /usr/athena/include
  20712. /usr/local/x11r5/include
  20713. /usr/lpp/Xamples/include
  20714. /usr/openwin/include
  20715. /usr/openwin/share/include'
  20716. if test "$ac_x_includes" = no; then
  20717. # Guess where to find include files, by looking for Xlib.h.
  20718. # First, try using that file with no special directory specified.
  20719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20720. /* end confdefs.h. */
  20721. #include <X11/Xlib.h>
  20722. _ACEOF
  20723. if ac_fn_c_try_cpp "$LINENO"
  20724. then :
  20725. # We can compile using X headers with no special include directory.
  20726. ac_x_includes=
  20727. else $as_nop
  20728. for ac_dir in $ac_x_header_dirs; do
  20729. if test -r "$ac_dir/X11/Xlib.h"; then
  20730. ac_x_includes=$ac_dir
  20731. break
  20732. fi
  20733. done
  20734. fi
  20735. rm -f conftest.err conftest.i conftest.$ac_ext
  20736. fi # $ac_x_includes = no
  20737. if test "$ac_x_libraries" = no; then
  20738. # Check for the libraries.
  20739. # See if we find them without any special options.
  20740. # Don't add to $LIBS permanently.
  20741. ac_save_LIBS=$LIBS
  20742. LIBS="-lX11 $LIBS"
  20743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20744. /* end confdefs.h. */
  20745. #include <X11/Xlib.h>
  20746. int
  20747. main (void)
  20748. {
  20749. XrmInitialize ()
  20750. ;
  20751. return 0;
  20752. }
  20753. _ACEOF
  20754. if ac_fn_c_try_link "$LINENO"
  20755. then :
  20756. LIBS=$ac_save_LIBS
  20757. # We can link X programs with no special library path.
  20758. ac_x_libraries=
  20759. else $as_nop
  20760. LIBS=$ac_save_LIBS
  20761. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20762. do
  20763. # Don't even attempt the hair of trying to link an X program!
  20764. for ac_extension in a so sl dylib la dll; do
  20765. if test -r "$ac_dir/libX11.$ac_extension"; then
  20766. ac_x_libraries=$ac_dir
  20767. break 2
  20768. fi
  20769. done
  20770. done
  20771. fi
  20772. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20773. conftest$ac_exeext conftest.$ac_ext
  20774. fi # $ac_x_libraries = no
  20775. fi
  20776. # Record the results.
  20777. case $ac_x_includes,$ac_x_libraries in #(
  20778. no,* | *,no | *\'*) :
  20779. # Didn't find X, or a directory has "'" in its name.
  20780. ac_cv_have_x="have_x=no" ;; #(
  20781. *) :
  20782. # Record where we found X for the cache.
  20783. ac_cv_have_x="have_x=yes\
  20784. ac_x_includes='$ac_x_includes'\
  20785. ac_x_libraries='$ac_x_libraries'" ;;
  20786. esac
  20787. fi
  20788. ;; #(
  20789. *) have_x=yes;;
  20790. esac
  20791. eval "$ac_cv_have_x"
  20792. fi # $with_x != no
  20793. if test "$have_x" != yes; then
  20794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20795. printf "%s\n" "$have_x" >&6; }
  20796. no_x=yes
  20797. else
  20798. # If each of the values was on the command line, it overrides each guess.
  20799. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20800. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20801. # Update the cache value to reflect the command line values.
  20802. ac_cv_have_x="have_x=yes\
  20803. ac_x_includes='$x_includes'\
  20804. ac_x_libraries='$x_libraries'"
  20805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20806. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20807. fi
  20808. if test "$no_x" = yes; then
  20809. # Not all programs may use this symbol, but it does not hurt to define it.
  20810. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20811. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20812. else
  20813. if test -n "$x_includes"; then
  20814. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20815. fi
  20816. # It would also be nice to do this for all -L options, not just this one.
  20817. if test -n "$x_libraries"; then
  20818. X_LIBS="$X_LIBS -L$x_libraries"
  20819. # For Solaris; some versions of Sun CC require a space after -R and
  20820. # others require no space. Words are not sufficient . . . .
  20821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20822. printf %s "checking whether -R must be followed by a space... " >&6; }
  20823. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20824. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20825. ac_c_werror_flag=yes
  20826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20827. /* end confdefs.h. */
  20828. int
  20829. main (void)
  20830. {
  20831. ;
  20832. return 0;
  20833. }
  20834. _ACEOF
  20835. if ac_fn_c_try_link "$LINENO"
  20836. then :
  20837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20838. printf "%s\n" "no" >&6; }
  20839. X_LIBS="$X_LIBS -R$x_libraries"
  20840. else $as_nop
  20841. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20843. /* end confdefs.h. */
  20844. int
  20845. main (void)
  20846. {
  20847. ;
  20848. return 0;
  20849. }
  20850. _ACEOF
  20851. if ac_fn_c_try_link "$LINENO"
  20852. then :
  20853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20854. printf "%s\n" "yes" >&6; }
  20855. X_LIBS="$X_LIBS -R $x_libraries"
  20856. else $as_nop
  20857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20858. printf "%s\n" "neither works" >&6; }
  20859. fi
  20860. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20861. conftest$ac_exeext conftest.$ac_ext
  20862. fi
  20863. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20864. conftest$ac_exeext conftest.$ac_ext
  20865. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20866. LIBS=$ac_xsave_LIBS
  20867. fi
  20868. # Check for system-dependent libraries X programs must link with.
  20869. # Do this before checking for the system-independent R6 libraries
  20870. # (-lICE), since we may need -lsocket or whatever for X linking.
  20871. if test "$ISC" = yes; then
  20872. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20873. else
  20874. # Martyn Johnson says this is needed for Ultrix, if the X
  20875. # libraries were built with DECnet support. And Karl Berry says
  20876. # the Alpha needs dnet_stub (dnet does not exist).
  20877. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20879. /* end confdefs.h. */
  20880. /* Override any GCC internal prototype to avoid an error.
  20881. Use char because int might match the return type of a GCC
  20882. builtin and then its argument prototype would still apply. */
  20883. char XOpenDisplay ();
  20884. int
  20885. main (void)
  20886. {
  20887. return XOpenDisplay ();
  20888. ;
  20889. return 0;
  20890. }
  20891. _ACEOF
  20892. if ac_fn_c_try_link "$LINENO"
  20893. then :
  20894. else $as_nop
  20895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20896. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20897. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20898. then :
  20899. printf %s "(cached) " >&6
  20900. else $as_nop
  20901. ac_check_lib_save_LIBS=$LIBS
  20902. LIBS="-ldnet $LIBS"
  20903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20904. /* end confdefs.h. */
  20905. /* Override any GCC internal prototype to avoid an error.
  20906. Use char because int might match the return type of a GCC
  20907. builtin and then its argument prototype would still apply. */
  20908. char dnet_ntoa ();
  20909. int
  20910. main (void)
  20911. {
  20912. return dnet_ntoa ();
  20913. ;
  20914. return 0;
  20915. }
  20916. _ACEOF
  20917. if ac_fn_c_try_link "$LINENO"
  20918. then :
  20919. ac_cv_lib_dnet_dnet_ntoa=yes
  20920. else $as_nop
  20921. ac_cv_lib_dnet_dnet_ntoa=no
  20922. fi
  20923. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20924. conftest$ac_exeext conftest.$ac_ext
  20925. LIBS=$ac_check_lib_save_LIBS
  20926. fi
  20927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20928. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20929. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20930. then :
  20931. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20932. fi
  20933. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20935. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20936. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20937. then :
  20938. printf %s "(cached) " >&6
  20939. else $as_nop
  20940. ac_check_lib_save_LIBS=$LIBS
  20941. LIBS="-ldnet_stub $LIBS"
  20942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20943. /* end confdefs.h. */
  20944. /* Override any GCC internal prototype to avoid an error.
  20945. Use char because int might match the return type of a GCC
  20946. builtin and then its argument prototype would still apply. */
  20947. char dnet_ntoa ();
  20948. int
  20949. main (void)
  20950. {
  20951. return dnet_ntoa ();
  20952. ;
  20953. return 0;
  20954. }
  20955. _ACEOF
  20956. if ac_fn_c_try_link "$LINENO"
  20957. then :
  20958. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20959. else $as_nop
  20960. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20961. fi
  20962. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20963. conftest$ac_exeext conftest.$ac_ext
  20964. LIBS=$ac_check_lib_save_LIBS
  20965. fi
  20966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20967. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20968. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20969. then :
  20970. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20971. fi
  20972. fi
  20973. fi
  20974. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20975. conftest$ac_exeext conftest.$ac_ext
  20976. LIBS="$ac_xsave_LIBS"
  20977. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20978. # to get the SysV transport functions.
  20979. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20980. # needs -lnsl.
  20981. # The nsl library prevents programs from opening the X display
  20982. # on Irix 5.2, according to T.E. Dickey.
  20983. # The functions gethostbyname, getservbyname, and inet_addr are
  20984. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20985. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20986. if test "x$ac_cv_func_gethostbyname" = xyes
  20987. then :
  20988. fi
  20989. if test $ac_cv_func_gethostbyname = no; then
  20990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20991. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20992. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20993. then :
  20994. printf %s "(cached) " >&6
  20995. else $as_nop
  20996. ac_check_lib_save_LIBS=$LIBS
  20997. LIBS="-lnsl $LIBS"
  20998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20999. /* end confdefs.h. */
  21000. /* Override any GCC internal prototype to avoid an error.
  21001. Use char because int might match the return type of a GCC
  21002. builtin and then its argument prototype would still apply. */
  21003. char gethostbyname ();
  21004. int
  21005. main (void)
  21006. {
  21007. return gethostbyname ();
  21008. ;
  21009. return 0;
  21010. }
  21011. _ACEOF
  21012. if ac_fn_c_try_link "$LINENO"
  21013. then :
  21014. ac_cv_lib_nsl_gethostbyname=yes
  21015. else $as_nop
  21016. ac_cv_lib_nsl_gethostbyname=no
  21017. fi
  21018. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21019. conftest$ac_exeext conftest.$ac_ext
  21020. LIBS=$ac_check_lib_save_LIBS
  21021. fi
  21022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21023. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  21024. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  21025. then :
  21026. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  21027. fi
  21028. if test $ac_cv_lib_nsl_gethostbyname = no; then
  21029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  21030. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  21031. if test ${ac_cv_lib_bsd_gethostbyname+y}
  21032. then :
  21033. printf %s "(cached) " >&6
  21034. else $as_nop
  21035. ac_check_lib_save_LIBS=$LIBS
  21036. LIBS="-lbsd $LIBS"
  21037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21038. /* end confdefs.h. */
  21039. /* Override any GCC internal prototype to avoid an error.
  21040. Use char because int might match the return type of a GCC
  21041. builtin and then its argument prototype would still apply. */
  21042. char gethostbyname ();
  21043. int
  21044. main (void)
  21045. {
  21046. return gethostbyname ();
  21047. ;
  21048. return 0;
  21049. }
  21050. _ACEOF
  21051. if ac_fn_c_try_link "$LINENO"
  21052. then :
  21053. ac_cv_lib_bsd_gethostbyname=yes
  21054. else $as_nop
  21055. ac_cv_lib_bsd_gethostbyname=no
  21056. fi
  21057. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21058. conftest$ac_exeext conftest.$ac_ext
  21059. LIBS=$ac_check_lib_save_LIBS
  21060. fi
  21061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  21062. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  21063. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  21064. then :
  21065. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  21066. fi
  21067. fi
  21068. fi
  21069. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  21070. # socket/setsockopt and other routines are undefined under SCO ODT
  21071. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  21072. # on later versions), says Simon Leinen: it contains gethostby*
  21073. # variants that don't use the name server (or something). -lsocket
  21074. # must be given before -lnsl if both are needed. We assume that
  21075. # if connect needs -lnsl, so does gethostbyname.
  21076. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  21077. if test "x$ac_cv_func_connect" = xyes
  21078. then :
  21079. fi
  21080. if test $ac_cv_func_connect = no; then
  21081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  21082. printf %s "checking for connect in -lsocket... " >&6; }
  21083. if test ${ac_cv_lib_socket_connect+y}
  21084. then :
  21085. printf %s "(cached) " >&6
  21086. else $as_nop
  21087. ac_check_lib_save_LIBS=$LIBS
  21088. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  21089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21090. /* end confdefs.h. */
  21091. /* Override any GCC internal prototype to avoid an error.
  21092. Use char because int might match the return type of a GCC
  21093. builtin and then its argument prototype would still apply. */
  21094. char connect ();
  21095. int
  21096. main (void)
  21097. {
  21098. return connect ();
  21099. ;
  21100. return 0;
  21101. }
  21102. _ACEOF
  21103. if ac_fn_c_try_link "$LINENO"
  21104. then :
  21105. ac_cv_lib_socket_connect=yes
  21106. else $as_nop
  21107. ac_cv_lib_socket_connect=no
  21108. fi
  21109. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21110. conftest$ac_exeext conftest.$ac_ext
  21111. LIBS=$ac_check_lib_save_LIBS
  21112. fi
  21113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  21114. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  21115. if test "x$ac_cv_lib_socket_connect" = xyes
  21116. then :
  21117. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  21118. fi
  21119. fi
  21120. # Guillermo Gomez says -lposix is necessary on A/UX.
  21121. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  21122. if test "x$ac_cv_func_remove" = xyes
  21123. then :
  21124. fi
  21125. if test $ac_cv_func_remove = no; then
  21126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  21127. printf %s "checking for remove in -lposix... " >&6; }
  21128. if test ${ac_cv_lib_posix_remove+y}
  21129. then :
  21130. printf %s "(cached) " >&6
  21131. else $as_nop
  21132. ac_check_lib_save_LIBS=$LIBS
  21133. LIBS="-lposix $LIBS"
  21134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21135. /* end confdefs.h. */
  21136. /* Override any GCC internal prototype to avoid an error.
  21137. Use char because int might match the return type of a GCC
  21138. builtin and then its argument prototype would still apply. */
  21139. char remove ();
  21140. int
  21141. main (void)
  21142. {
  21143. return remove ();
  21144. ;
  21145. return 0;
  21146. }
  21147. _ACEOF
  21148. if ac_fn_c_try_link "$LINENO"
  21149. then :
  21150. ac_cv_lib_posix_remove=yes
  21151. else $as_nop
  21152. ac_cv_lib_posix_remove=no
  21153. fi
  21154. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21155. conftest$ac_exeext conftest.$ac_ext
  21156. LIBS=$ac_check_lib_save_LIBS
  21157. fi
  21158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  21159. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  21160. if test "x$ac_cv_lib_posix_remove" = xyes
  21161. then :
  21162. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  21163. fi
  21164. fi
  21165. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  21166. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  21167. if test "x$ac_cv_func_shmat" = xyes
  21168. then :
  21169. fi
  21170. if test $ac_cv_func_shmat = no; then
  21171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  21172. printf %s "checking for shmat in -lipc... " >&6; }
  21173. if test ${ac_cv_lib_ipc_shmat+y}
  21174. then :
  21175. printf %s "(cached) " >&6
  21176. else $as_nop
  21177. ac_check_lib_save_LIBS=$LIBS
  21178. LIBS="-lipc $LIBS"
  21179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21180. /* end confdefs.h. */
  21181. /* Override any GCC internal prototype to avoid an error.
  21182. Use char because int might match the return type of a GCC
  21183. builtin and then its argument prototype would still apply. */
  21184. char shmat ();
  21185. int
  21186. main (void)
  21187. {
  21188. return shmat ();
  21189. ;
  21190. return 0;
  21191. }
  21192. _ACEOF
  21193. if ac_fn_c_try_link "$LINENO"
  21194. then :
  21195. ac_cv_lib_ipc_shmat=yes
  21196. else $as_nop
  21197. ac_cv_lib_ipc_shmat=no
  21198. fi
  21199. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21200. conftest$ac_exeext conftest.$ac_ext
  21201. LIBS=$ac_check_lib_save_LIBS
  21202. fi
  21203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  21204. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  21205. if test "x$ac_cv_lib_ipc_shmat" = xyes
  21206. then :
  21207. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  21208. fi
  21209. fi
  21210. fi
  21211. # Check for libraries that X11R6 Xt/Xaw programs need.
  21212. ac_save_LDFLAGS=$LDFLAGS
  21213. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21214. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21215. # check for ICE first), but we must link in the order -lSM -lICE or
  21216. # we get undefined symbols. So assume we have SM if we have ICE.
  21217. # These have to be linked with before -lX11, unlike the other
  21218. # libraries we check for below, so use a different variable.
  21219. # John Interrante, Karl Berry
  21220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21221. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21222. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21223. then :
  21224. printf %s "(cached) " >&6
  21225. else $as_nop
  21226. ac_check_lib_save_LIBS=$LIBS
  21227. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21229. /* end confdefs.h. */
  21230. /* Override any GCC internal prototype to avoid an error.
  21231. Use char because int might match the return type of a GCC
  21232. builtin and then its argument prototype would still apply. */
  21233. char IceConnectionNumber ();
  21234. int
  21235. main (void)
  21236. {
  21237. return IceConnectionNumber ();
  21238. ;
  21239. return 0;
  21240. }
  21241. _ACEOF
  21242. if ac_fn_c_try_link "$LINENO"
  21243. then :
  21244. ac_cv_lib_ICE_IceConnectionNumber=yes
  21245. else $as_nop
  21246. ac_cv_lib_ICE_IceConnectionNumber=no
  21247. fi
  21248. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21249. conftest$ac_exeext conftest.$ac_ext
  21250. LIBS=$ac_check_lib_save_LIBS
  21251. fi
  21252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21253. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21254. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21255. then :
  21256. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21257. fi
  21258. LDFLAGS=$ac_save_LDFLAGS
  21259. fi
  21260. if test x$have_x = xyes; then
  21261. # Check whether --enable-x11-shared was given.
  21262. if test ${enable_x11_shared+y}
  21263. then :
  21264. enableval=$enable_x11_shared;
  21265. else $as_nop
  21266. enable_x11_shared=maybe
  21267. fi
  21268. case "$host" in
  21269. *-*-darwin*)
  21270. # Apple now puts this in /opt/X11
  21271. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21272. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21273. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21274. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21275. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21276. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21277. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21278. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21279. ;;
  21280. *-*-openbsd*)
  21281. x11_lib='libX11.so'
  21282. x11ext_lib='libXext.so'
  21283. xcursor_lib='libXcursor.so'
  21284. xinput_lib='libXi.so'
  21285. xfixes_lib='libXfixes.so'
  21286. xrandr_lib='libXrandr.so'
  21287. xrender_lib='libXrender.so'
  21288. xss_lib='libXss.so'
  21289. ;;
  21290. *)
  21291. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21292. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21293. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21294. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21295. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21296. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21297. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21298. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21299. ;;
  21300. esac
  21301. if test x$ac_cv_func_shmat != xyes; then
  21302. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21303. fi
  21304. CFLAGS="$CFLAGS $X_CFLAGS"
  21305. LDFLAGS="$LDFLAGS $X_LIBS"
  21306. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21307. #include <X11/Xproto.h>
  21308. "
  21309. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21310. then :
  21311. have_xext_h_hdr=yes
  21312. else $as_nop
  21313. have_xext_h_hdr=no
  21314. fi
  21315. if test x$have_xext_h_hdr != xyes; then
  21316. as_fn_error $? "
  21317. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21318. " "$LINENO" 5
  21319. fi
  21320. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21321. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21322. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21323. # Needed so SDL applications can include SDL_syswm.h
  21324. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21325. if test x$enable_x11_shared = xmaybe; then
  21326. enable_x11_shared=yes
  21327. fi
  21328. if test x$have_loadso != xyes && \
  21329. test x$enable_x11_shared = xyes; then
  21330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21331. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21332. enable_x11_shared=no
  21333. fi
  21334. if test x$have_loadso = xyes && \
  21335. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21336. echo "-- dynamic libX11 -> $x11_lib"
  21337. echo "-- dynamic libX11ext -> $x11ext_lib"
  21338. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21339. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21340. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21341. else
  21342. enable_x11_shared=no
  21343. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21344. SUMMARY_video="${SUMMARY_video} x11"
  21345. fi
  21346. have_video=yes
  21347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21348. printf %s "checking for XGenericEvent... " >&6; }
  21349. have_XGenericEvent=no
  21350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21351. /* end confdefs.h. */
  21352. #include <X11/Xlib.h>
  21353. int
  21354. main (void)
  21355. {
  21356. Display *display;
  21357. XEvent event;
  21358. XGenericEventCookie *cookie = &event.xcookie;
  21359. XNextEvent(display, &event);
  21360. XGetEventData(display, cookie);
  21361. XFreeEventData(display, cookie);
  21362. ;
  21363. return 0;
  21364. }
  21365. _ACEOF
  21366. if ac_fn_c_try_compile "$LINENO"
  21367. then :
  21368. have_XGenericEvent=yes
  21369. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21370. fi
  21371. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21373. printf "%s\n" "$have_XGenericEvent" >&6; }
  21374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21375. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21376. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21377. then :
  21378. printf %s "(cached) " >&6
  21379. else $as_nop
  21380. ac_check_lib_save_LIBS=$LIBS
  21381. LIBS="-lX11 $LIBS"
  21382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21383. /* end confdefs.h. */
  21384. /* Override any GCC internal prototype to avoid an error.
  21385. Use char because int might match the return type of a GCC
  21386. builtin and then its argument prototype would still apply. */
  21387. char XkbKeycodeToKeysym ();
  21388. int
  21389. main (void)
  21390. {
  21391. return XkbKeycodeToKeysym ();
  21392. ;
  21393. return 0;
  21394. }
  21395. _ACEOF
  21396. if ac_fn_c_try_link "$LINENO"
  21397. then :
  21398. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21399. else $as_nop
  21400. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21401. fi
  21402. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21403. conftest$ac_exeext conftest.$ac_ext
  21404. LIBS=$ac_check_lib_save_LIBS
  21405. fi
  21406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21407. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21408. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21409. then :
  21410. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21411. fi
  21412. # Check whether --enable-video-x11-xcursor was given.
  21413. if test ${enable_video_x11_xcursor+y}
  21414. then :
  21415. enableval=$enable_video_x11_xcursor;
  21416. else $as_nop
  21417. enable_video_x11_xcursor=yes
  21418. fi
  21419. if test x$enable_video_x11_xcursor = xyes; then
  21420. definitely_enable_video_x11_xcursor=no
  21421. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21422. "
  21423. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21424. then :
  21425. have_xcursor_h_hdr=yes
  21426. else $as_nop
  21427. have_xcursor_h_hdr=no
  21428. fi
  21429. if test x$have_xcursor_h_hdr = xyes; then
  21430. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21431. echo "-- dynamic libXcursor -> $xcursor_lib"
  21432. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21433. definitely_enable_video_x11_xcursor=yes
  21434. else
  21435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21436. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21437. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21438. then :
  21439. printf %s "(cached) " >&6
  21440. else $as_nop
  21441. ac_check_lib_save_LIBS=$LIBS
  21442. LIBS="-lXcursor $LIBS"
  21443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21444. /* end confdefs.h. */
  21445. /* Override any GCC internal prototype to avoid an error.
  21446. Use char because int might match the return type of a GCC
  21447. builtin and then its argument prototype would still apply. */
  21448. char XcursorImageCreate ();
  21449. int
  21450. main (void)
  21451. {
  21452. return XcursorImageCreate ();
  21453. ;
  21454. return 0;
  21455. }
  21456. _ACEOF
  21457. if ac_fn_c_try_link "$LINENO"
  21458. then :
  21459. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21460. else $as_nop
  21461. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21462. fi
  21463. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21464. conftest$ac_exeext conftest.$ac_ext
  21465. LIBS=$ac_check_lib_save_LIBS
  21466. fi
  21467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21468. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21469. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21470. then :
  21471. have_xcursor_lib=yes
  21472. fi
  21473. if test x$have_xcursor_lib = xyes ; then
  21474. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21475. definitely_enable_video_x11_xcursor=yes
  21476. fi
  21477. fi
  21478. fi
  21479. fi
  21480. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21481. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21482. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21483. fi
  21484. # Check whether --enable-video-x11-xdbe was given.
  21485. if test ${enable_video_x11_xdbe+y}
  21486. then :
  21487. enableval=$enable_video_x11_xdbe;
  21488. else $as_nop
  21489. enable_video_x11_xdbe=yes
  21490. fi
  21491. if test x$enable_video_x11_xdbe = xyes; then
  21492. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21493. "
  21494. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21495. then :
  21496. have_dbe_h_hdr=yes
  21497. else $as_nop
  21498. have_dbe_h_hdr=no
  21499. fi
  21500. if test x$have_dbe_h_hdr = xyes; then
  21501. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21502. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21503. fi
  21504. fi
  21505. # Check whether --enable-video-x11-xinput was given.
  21506. if test ${enable_video_x11_xinput+y}
  21507. then :
  21508. enableval=$enable_video_x11_xinput;
  21509. else $as_nop
  21510. enable_video_x11_xinput=yes
  21511. fi
  21512. if test x$enable_video_x11_xinput = xyes; then
  21513. definitely_enable_video_x11_xinput=no
  21514. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21515. "
  21516. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21517. then :
  21518. have_xinput_h_hdr=yes
  21519. else $as_nop
  21520. have_xinput_h_hdr=no
  21521. fi
  21522. if test x$have_xinput_h_hdr = xyes; then
  21523. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21524. echo "-- dynamic libXi -> $xinput_lib"
  21525. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21526. definitely_enable_video_x11_xinput=yes
  21527. else
  21528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21529. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21530. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21531. then :
  21532. printf %s "(cached) " >&6
  21533. else $as_nop
  21534. ac_check_lib_save_LIBS=$LIBS
  21535. LIBS="-lXi $LIBS"
  21536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21537. /* end confdefs.h. */
  21538. /* Override any GCC internal prototype to avoid an error.
  21539. Use char because int might match the return type of a GCC
  21540. builtin and then its argument prototype would still apply. */
  21541. char XOpenDevice ();
  21542. int
  21543. main (void)
  21544. {
  21545. return XOpenDevice ();
  21546. ;
  21547. return 0;
  21548. }
  21549. _ACEOF
  21550. if ac_fn_c_try_link "$LINENO"
  21551. then :
  21552. ac_cv_lib_Xi_XOpenDevice=yes
  21553. else $as_nop
  21554. ac_cv_lib_Xi_XOpenDevice=no
  21555. fi
  21556. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21557. conftest$ac_exeext conftest.$ac_ext
  21558. LIBS=$ac_check_lib_save_LIBS
  21559. fi
  21560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21561. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21562. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21563. then :
  21564. have_xinput_lib=yes
  21565. fi
  21566. if test x$have_xinput_lib = xyes ; then
  21567. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21568. definitely_enable_video_x11_xinput=yes
  21569. fi
  21570. fi
  21571. fi
  21572. fi
  21573. if test x$definitely_enable_video_x11_xinput = xyes; then
  21574. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21575. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21577. printf %s "checking for xinput2 multitouch... " >&6; }
  21578. have_xinput2_multitouch=no
  21579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21580. /* end confdefs.h. */
  21581. #include <X11/Xlib.h>
  21582. #include <X11/Xproto.h>
  21583. #include <X11/extensions/XInput2.h>
  21584. int
  21585. main (void)
  21586. {
  21587. int event_type = XI_TouchBegin;
  21588. XITouchClassInfo *t;
  21589. ;
  21590. return 0;
  21591. }
  21592. _ACEOF
  21593. if ac_fn_c_try_compile "$LINENO"
  21594. then :
  21595. have_xinput2_multitouch=yes
  21596. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21597. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21598. fi
  21599. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21601. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21602. fi
  21603. # Check whether --enable-video-x11-xfixes was given.
  21604. if test ${enable_video_x11_xfixes+y}
  21605. then :
  21606. enableval=$enable_video_x11_xfixes;
  21607. else $as_nop
  21608. enable_video_x11_xfixes=yes
  21609. fi
  21610. if test x$enable_video_x11_xfixes = xyes; then
  21611. definitely_enable_video_x11_xfixes=no
  21612. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21614. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21616. /* end confdefs.h. */
  21617. #include <X11/Xlib.h>
  21618. #include <X11/Xproto.h>
  21619. #include <X11/extensions/XInput2.h>
  21620. #include <X11/extensions/Xfixes.h>
  21621. int
  21622. main (void)
  21623. {
  21624. BarrierEventID b;
  21625. ;
  21626. return 0;
  21627. }
  21628. _ACEOF
  21629. if ac_fn_c_try_compile "$LINENO"
  21630. then :
  21631. have_xfixes_h_hdr=yes
  21632. else $as_nop
  21633. have_xfixes_h_hdr=no
  21634. fi
  21635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21637. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21638. if test x$have_xfixes_h_hdr = xyes; then
  21639. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21640. echo "-- dynamic libXfixes -> $xfixes_lib"
  21641. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21642. definitely_enable_video_x11_xfixes=yes
  21643. else
  21644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21645. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21646. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21647. then :
  21648. printf %s "(cached) " >&6
  21649. else $as_nop
  21650. ac_check_lib_save_LIBS=$LIBS
  21651. LIBS="-lXfixes $LIBS"
  21652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21653. /* end confdefs.h. */
  21654. /* Override any GCC internal prototype to avoid an error.
  21655. Use char because int might match the return type of a GCC
  21656. builtin and then its argument prototype would still apply. */
  21657. char XFixesCreatePointerBarrier ();
  21658. int
  21659. main (void)
  21660. {
  21661. return XFixesCreatePointerBarrier ();
  21662. ;
  21663. return 0;
  21664. }
  21665. _ACEOF
  21666. if ac_fn_c_try_link "$LINENO"
  21667. then :
  21668. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21669. else $as_nop
  21670. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21671. fi
  21672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21673. conftest$ac_exeext conftest.$ac_ext
  21674. LIBS=$ac_check_lib_save_LIBS
  21675. fi
  21676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21677. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21678. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21679. then :
  21680. have_xfixes_lib=yes
  21681. fi
  21682. if test x$have_xfixes_lib = xyes ; then
  21683. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21684. definitely_enable_video_x11_xfixes=yes
  21685. fi
  21686. fi
  21687. fi
  21688. fi
  21689. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21690. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21691. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21692. fi
  21693. # Check whether --enable-video-x11-xrandr was given.
  21694. if test ${enable_video_x11_xrandr+y}
  21695. then :
  21696. enableval=$enable_video_x11_xrandr;
  21697. else $as_nop
  21698. enable_video_x11_xrandr=yes
  21699. fi
  21700. if test x$enable_video_x11_xrandr = xyes; then
  21701. definitely_enable_video_x11_xrandr=no
  21702. have_xrandr_h_hdr=no
  21703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21704. /* end confdefs.h. */
  21705. #include <X11/Xlib.h>
  21706. #include <X11/extensions/Xrandr.h>
  21707. int
  21708. main (void)
  21709. {
  21710. XRRScreenResources *res = NULL;
  21711. ;
  21712. return 0;
  21713. }
  21714. _ACEOF
  21715. if ac_fn_c_try_compile "$LINENO"
  21716. then :
  21717. have_xrandr_h_hdr=yes
  21718. fi
  21719. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21720. if test x$have_xrandr_h_hdr = xyes; then
  21721. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21722. echo "-- dynamic libXrandr -> $xrandr_lib"
  21723. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21724. definitely_enable_video_x11_xrandr=yes
  21725. else
  21726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21727. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21728. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21729. then :
  21730. printf %s "(cached) " >&6
  21731. else $as_nop
  21732. ac_check_lib_save_LIBS=$LIBS
  21733. LIBS="-lXrandr $LIBS"
  21734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21735. /* end confdefs.h. */
  21736. /* Override any GCC internal prototype to avoid an error.
  21737. Use char because int might match the return type of a GCC
  21738. builtin and then its argument prototype would still apply. */
  21739. char XRRQueryExtension ();
  21740. int
  21741. main (void)
  21742. {
  21743. return XRRQueryExtension ();
  21744. ;
  21745. return 0;
  21746. }
  21747. _ACEOF
  21748. if ac_fn_c_try_link "$LINENO"
  21749. then :
  21750. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21751. else $as_nop
  21752. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21753. fi
  21754. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21755. conftest$ac_exeext conftest.$ac_ext
  21756. LIBS=$ac_check_lib_save_LIBS
  21757. fi
  21758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21759. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21760. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21761. then :
  21762. have_xrandr_lib=yes
  21763. fi
  21764. if test x$have_xrandr_lib = xyes ; then
  21765. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21766. definitely_enable_video_x11_xrandr=yes
  21767. fi
  21768. fi
  21769. fi
  21770. fi
  21771. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21772. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21773. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21774. fi
  21775. # Check whether --enable-video-x11-scrnsaver was given.
  21776. if test ${enable_video_x11_scrnsaver+y}
  21777. then :
  21778. enableval=$enable_video_x11_scrnsaver;
  21779. else $as_nop
  21780. enable_video_x11_scrnsaver=yes
  21781. fi
  21782. if test x$enable_video_x11_scrnsaver = xyes; then
  21783. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21784. "
  21785. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21786. then :
  21787. have_scrnsaver_h_hdr=yes
  21788. else $as_nop
  21789. have_scrnsaver_h_hdr=no
  21790. fi
  21791. if test x$have_scrnsaver_h_hdr = xyes; then
  21792. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21793. echo "-- dynamic libXss -> $xss_lib"
  21794. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21795. definitely_enable_video_x11_scrnsaver=yes
  21796. else
  21797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21798. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21799. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21800. then :
  21801. printf %s "(cached) " >&6
  21802. else $as_nop
  21803. ac_check_lib_save_LIBS=$LIBS
  21804. LIBS="-lXss $LIBS"
  21805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21806. /* end confdefs.h. */
  21807. /* Override any GCC internal prototype to avoid an error.
  21808. Use char because int might match the return type of a GCC
  21809. builtin and then its argument prototype would still apply. */
  21810. char XScreenSaverSuspend ();
  21811. int
  21812. main (void)
  21813. {
  21814. return XScreenSaverSuspend ();
  21815. ;
  21816. return 0;
  21817. }
  21818. _ACEOF
  21819. if ac_fn_c_try_link "$LINENO"
  21820. then :
  21821. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21822. else $as_nop
  21823. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21824. fi
  21825. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21826. conftest$ac_exeext conftest.$ac_ext
  21827. LIBS=$ac_check_lib_save_LIBS
  21828. fi
  21829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21830. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21831. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21832. then :
  21833. have_xss_lib=yes
  21834. fi
  21835. if test x$have_xss_lib = xyes ; then
  21836. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21837. definitely_enable_video_x11_scrnsaver=yes
  21838. fi
  21839. fi
  21840. fi
  21841. fi
  21842. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21843. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21844. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21845. fi
  21846. # Check whether --enable-video-x11-xshape was given.
  21847. if test ${enable_video_x11_xshape+y}
  21848. then :
  21849. enableval=$enable_video_x11_xshape;
  21850. else $as_nop
  21851. enable_video_x11_xshape=yes
  21852. fi
  21853. if test x$enable_video_x11_xshape = xyes; then
  21854. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21855. "
  21856. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21857. then :
  21858. have_shape_h_hdr=yes
  21859. else $as_nop
  21860. have_shape_h_hdr=no
  21861. fi
  21862. if test x$have_shape_h_hdr = xyes; then
  21863. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21864. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21865. fi
  21866. fi
  21867. fi
  21868. fi
  21869. if test x$have_x != xyes; then
  21870. # Prevent Mesa from including X11 headers
  21871. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21872. fi
  21873. }
  21874. CheckVivanteVideo()
  21875. {
  21876. # Check whether --enable-video-vivante was given.
  21877. if test ${enable_video_vivante+y}
  21878. then :
  21879. enableval=$enable_video_vivante;
  21880. else $as_nop
  21881. enable_video_vivante=yes
  21882. fi
  21883. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21885. printf %s "checking for Vivante VDK API... " >&6; }
  21886. have_vivante_vdk=no
  21887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21888. /* end confdefs.h. */
  21889. #define LINUX
  21890. #define EGL_API_FB
  21891. #include <gc_vdk.h>
  21892. int
  21893. main (void)
  21894. {
  21895. ;
  21896. return 0;
  21897. }
  21898. _ACEOF
  21899. if ac_fn_c_try_compile "$LINENO"
  21900. then :
  21901. have_vivante_vdk=yes
  21902. fi
  21903. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21905. printf "%s\n" "$have_vivante_vdk" >&6; }
  21906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21907. printf %s "checking for Vivante FB API... " >&6; }
  21908. have_vivante_egl=no
  21909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21910. /* end confdefs.h. */
  21911. #define LINUX
  21912. #define EGL_API_FB
  21913. #include <EGL/eglvivante.h>
  21914. int
  21915. main (void)
  21916. {
  21917. ;
  21918. return 0;
  21919. }
  21920. _ACEOF
  21921. if ac_fn_c_try_compile "$LINENO"
  21922. then :
  21923. have_vivante_egl=yes
  21924. fi
  21925. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21927. printf "%s\n" "$have_vivante_egl" >&6; }
  21928. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21929. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21930. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21931. if test x$have_vivante_vdk = xyes; then
  21932. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21934. fi
  21935. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21936. SUMMARY_video="${SUMMARY_video} vivante"
  21937. have_video=yes
  21938. fi
  21939. fi
  21940. }
  21941. CheckHaikuVideo()
  21942. {
  21943. if test x$enable_video = xyes; then
  21944. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21945. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21946. have_video=yes
  21947. SUMMARY_video="${SUMMARY_video} haiku"
  21948. fi
  21949. }
  21950. CheckCOCOA()
  21951. {
  21952. # Check whether --enable-video-cocoa was given.
  21953. if test ${enable_video_cocoa+y}
  21954. then :
  21955. enableval=$enable_video_cocoa;
  21956. else $as_nop
  21957. enable_video_cocoa=yes
  21958. fi
  21959. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21960. save_CFLAGS="$CFLAGS"
  21961. CFLAGS="$CFLAGS -x objective-c"
  21962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21963. printf %s "checking for Cocoa framework... " >&6; }
  21964. have_cocoa=no
  21965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21966. /* end confdefs.h. */
  21967. #import <Cocoa/Cocoa.h>
  21968. int
  21969. main (void)
  21970. {
  21971. ;
  21972. return 0;
  21973. }
  21974. _ACEOF
  21975. if ac_fn_c_try_compile "$LINENO"
  21976. then :
  21977. have_cocoa=yes
  21978. fi
  21979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21981. printf "%s\n" "$have_cocoa" >&6; }
  21982. CFLAGS="$save_CFLAGS"
  21983. if test x$have_cocoa = xyes; then
  21984. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21985. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21986. SUMMARY_video="${SUMMARY_video} cocoa"
  21987. have_video=yes
  21988. fi
  21989. fi
  21990. }
  21991. CheckMETAL()
  21992. {
  21993. # Check whether --enable-video-metal was given.
  21994. if test ${enable_video_metal+y}
  21995. then :
  21996. enableval=$enable_video_metal;
  21997. else $as_nop
  21998. enable_video_metal=yes
  21999. fi
  22000. # Check whether --enable-render-metal was given.
  22001. if test ${enable_render_metal+y}
  22002. then :
  22003. enableval=$enable_render_metal;
  22004. else $as_nop
  22005. enable_render_metal=yes
  22006. fi
  22007. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  22008. save_CFLAGS="$CFLAGS"
  22009. CFLAGS="$CFLAGS -x objective-c"
  22010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  22011. printf %s "checking for Metal framework... " >&6; }
  22012. have_metal=no
  22013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22014. /* end confdefs.h. */
  22015. #import <Cocoa/Cocoa.h>
  22016. #import <Metal/Metal.h>
  22017. #import <QuartzCore/CAMetalLayer.h>
  22018. #if TARGET_CPU_X86
  22019. #error Metal doesn't work on this configuration
  22020. #endif
  22021. int
  22022. main (void)
  22023. {
  22024. ;
  22025. return 0;
  22026. }
  22027. _ACEOF
  22028. if ac_fn_c_try_compile "$LINENO"
  22029. then :
  22030. have_metal=yes
  22031. fi
  22032. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22033. CFLAGS="$save_CFLAGS"
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  22035. printf "%s\n" "$have_metal" >&6; }
  22036. if test x$have_metal = xyes; then
  22037. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  22038. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  22039. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  22040. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  22041. fi
  22042. SUMMARY_video="${SUMMARY_video} metal"
  22043. else
  22044. enable_video_metal=no
  22045. enable_render_metal=no
  22046. fi
  22047. fi
  22048. }
  22049. CheckDirectFB()
  22050. {
  22051. # Check whether --enable-video-directfb was given.
  22052. if test ${enable_video_directfb+y}
  22053. then :
  22054. enableval=$enable_video_directfb;
  22055. else $as_nop
  22056. enable_video_directfb=no
  22057. fi
  22058. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  22059. pkg_failed=no
  22060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  22061. printf %s "checking for directfb >= 1.0.0... " >&6; }
  22062. if test -n "$DIRECTFB_CFLAGS"; then
  22063. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  22064. elif test -n "$PKG_CONFIG"; then
  22065. if test -n "$PKG_CONFIG" && \
  22066. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22067. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22068. ac_status=$?
  22069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22070. test $ac_status = 0; }; then
  22071. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  22072. test "x$?" != "x0" && pkg_failed=yes
  22073. else
  22074. pkg_failed=yes
  22075. fi
  22076. else
  22077. pkg_failed=untried
  22078. fi
  22079. if test -n "$DIRECTFB_LIBS"; then
  22080. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  22081. elif test -n "$PKG_CONFIG"; then
  22082. if test -n "$PKG_CONFIG" && \
  22083. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  22084. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  22085. ac_status=$?
  22086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22087. test $ac_status = 0; }; then
  22088. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  22089. test "x$?" != "x0" && pkg_failed=yes
  22090. else
  22091. pkg_failed=yes
  22092. fi
  22093. else
  22094. pkg_failed=untried
  22095. fi
  22096. if test $pkg_failed = yes; then
  22097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22098. printf "%s\n" "no" >&6; }
  22099. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22100. _pkg_short_errors_supported=yes
  22101. else
  22102. _pkg_short_errors_supported=no
  22103. fi
  22104. if test $_pkg_short_errors_supported = yes; then
  22105. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22106. else
  22107. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  22108. fi
  22109. # Put the nasty error message in config.log where it belongs
  22110. echo "$DIRECTFB_PKG_ERRORS" >&5
  22111. video_directfb=no
  22112. elif test $pkg_failed = untried; then
  22113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22114. printf "%s\n" "no" >&6; }
  22115. video_directfb=no
  22116. else
  22117. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  22118. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  22119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22120. printf "%s\n" "yes" >&6; }
  22121. video_directfb=yes
  22122. fi
  22123. if test x$video_directfb = xyes; then
  22124. # SuSE 11.1 installs directfb-config without directfb-devel
  22125. save_CPPFLAGS="$CPPFLAGS"
  22126. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  22127. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  22128. if test "x$ac_cv_header_directfb_h" = xyes
  22129. then :
  22130. have_directfb_hdr=yes
  22131. else $as_nop
  22132. have_directfb_hdr=no
  22133. fi
  22134. CPPFLAGS="$save_CPPFLAGS"
  22135. video_directfb=$have_directfb_hdr
  22136. fi
  22137. if test x$video_directfb = xyes; then
  22138. # Check whether --enable-directfb-shared was given.
  22139. if test ${enable_directfb_shared+y}
  22140. then :
  22141. enableval=$enable_directfb_shared;
  22142. else $as_nop
  22143. enable_directfb_shared=yes
  22144. fi
  22145. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  22146. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  22147. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  22148. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  22149. directfb_shared=no
  22150. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  22151. if test x$have_loadso != xyes && \
  22152. test x$enable_directfb_shared = xyes; then
  22153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  22154. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  22155. fi
  22156. if test x$have_loadso = xyes && \
  22157. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  22158. directfb_shared=yes
  22159. echo "-- dynamic libdirectfb -> $directfb_lib"
  22160. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  22161. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  22162. else
  22163. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  22164. SUMMARY_video="${SUMMARY_video} directfb"
  22165. fi
  22166. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  22167. have_video=yes
  22168. fi
  22169. fi
  22170. }
  22171. CheckKMSDRM()
  22172. {
  22173. # Check whether --enable-video-kmsdrm was given.
  22174. if test ${enable_video_kmsdrm+y}
  22175. then :
  22176. enableval=$enable_video_kmsdrm;
  22177. else $as_nop
  22178. enable_video_kmsdrm=yes
  22179. fi
  22180. if test x$enable_video = xyes && \
  22181. test x$enable_video_kmsdrm = xyes && \
  22182. test x$video_opengl_egl = xyes; then
  22183. video_kmsdrm=no
  22184. pkg_failed=no
  22185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  22186. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  22187. if test -n "$LIBDRM_CFLAGS"; then
  22188. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  22189. elif test -n "$PKG_CONFIG"; then
  22190. if test -n "$PKG_CONFIG" && \
  22191. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22192. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22193. ac_status=$?
  22194. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22195. test $ac_status = 0; }; then
  22196. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  22197. test "x$?" != "x0" && pkg_failed=yes
  22198. else
  22199. pkg_failed=yes
  22200. fi
  22201. else
  22202. pkg_failed=untried
  22203. fi
  22204. if test -n "$LIBDRM_LIBS"; then
  22205. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  22206. elif test -n "$PKG_CONFIG"; then
  22207. if test -n "$PKG_CONFIG" && \
  22208. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  22209. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22210. ac_status=$?
  22211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22212. test $ac_status = 0; }; then
  22213. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22214. test "x$?" != "x0" && pkg_failed=yes
  22215. else
  22216. pkg_failed=yes
  22217. fi
  22218. else
  22219. pkg_failed=untried
  22220. fi
  22221. if test $pkg_failed = yes; then
  22222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22223. printf "%s\n" "no" >&6; }
  22224. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22225. _pkg_short_errors_supported=yes
  22226. else
  22227. _pkg_short_errors_supported=no
  22228. fi
  22229. if test $_pkg_short_errors_supported = yes; then
  22230. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22231. else
  22232. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22233. fi
  22234. # Put the nasty error message in config.log where it belongs
  22235. echo "$LIBDRM_PKG_ERRORS" >&5
  22236. libdrm_avail=no
  22237. elif test $pkg_failed = untried; then
  22238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22239. printf "%s\n" "no" >&6; }
  22240. libdrm_avail=no
  22241. else
  22242. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22243. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22245. printf "%s\n" "yes" >&6; }
  22246. libdrm_avail=yes
  22247. fi
  22248. pkg_failed=no
  22249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22250. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22251. if test -n "$LIBGBM_CFLAGS"; then
  22252. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22253. elif test -n "$PKG_CONFIG"; then
  22254. if test -n "$PKG_CONFIG" && \
  22255. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22256. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22257. ac_status=$?
  22258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22259. test $ac_status = 0; }; then
  22260. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22261. test "x$?" != "x0" && pkg_failed=yes
  22262. else
  22263. pkg_failed=yes
  22264. fi
  22265. else
  22266. pkg_failed=untried
  22267. fi
  22268. if test -n "$LIBGBM_LIBS"; then
  22269. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22270. elif test -n "$PKG_CONFIG"; then
  22271. if test -n "$PKG_CONFIG" && \
  22272. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22273. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22274. ac_status=$?
  22275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22276. test $ac_status = 0; }; then
  22277. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22278. test "x$?" != "x0" && pkg_failed=yes
  22279. else
  22280. pkg_failed=yes
  22281. fi
  22282. else
  22283. pkg_failed=untried
  22284. fi
  22285. if test $pkg_failed = yes; then
  22286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22287. printf "%s\n" "no" >&6; }
  22288. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22289. _pkg_short_errors_supported=yes
  22290. else
  22291. _pkg_short_errors_supported=no
  22292. fi
  22293. if test $_pkg_short_errors_supported = yes; then
  22294. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22295. else
  22296. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22297. fi
  22298. # Put the nasty error message in config.log where it belongs
  22299. echo "$LIBGBM_PKG_ERRORS" >&5
  22300. libgbm_avail=no
  22301. elif test $pkg_failed = untried; then
  22302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22303. printf "%s\n" "no" >&6; }
  22304. libgbm_avail=no
  22305. else
  22306. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22307. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22309. printf "%s\n" "yes" >&6; }
  22310. libgbm_avail=yes
  22311. fi
  22312. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22313. video_kmsdrm=yes
  22314. fi
  22315. if test x$video_kmsdrm = xyes; then
  22316. # Check whether --enable-kmsdrm-shared was given.
  22317. if test ${enable_kmsdrm_shared+y}
  22318. then :
  22319. enableval=$enable_kmsdrm_shared;
  22320. else $as_nop
  22321. enable_kmsdrm_shared=yes
  22322. fi
  22323. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22324. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22325. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22327. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22328. kmsdrm_shared=no
  22329. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22330. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22331. if test x$have_loadso != xyes && \
  22332. test x$enable_kmsdrm_shared = xyes; then
  22333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22334. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22335. fi
  22336. if test x$have_loadso = xyes && \
  22337. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22338. kmsdrm_shared=yes
  22339. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22340. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22341. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22342. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22343. else
  22344. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22345. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22346. fi
  22347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22348. printf "%s\n" "$kmsdrm_shared" >&6; }
  22349. if test x$kmsdrm_shared = xyes; then
  22350. echo "-- dynamic libdrm -> $drm_lib"
  22351. echo "-- dynamic libgbm -> $gbm_lib"
  22352. fi
  22353. have_video=yes
  22354. fi
  22355. fi
  22356. }
  22357. CheckDummyVideo()
  22358. {
  22359. # Check whether --enable-video-dummy was given.
  22360. if test ${enable_video_dummy+y}
  22361. then :
  22362. enableval=$enable_video_dummy;
  22363. else $as_nop
  22364. enable_video_dummy=yes
  22365. fi
  22366. if test x$enable_video_dummy = xyes; then
  22367. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22368. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22369. have_video=yes
  22370. SUMMARY_video="${SUMMARY_video} dummy"
  22371. fi
  22372. }
  22373. CheckOffscreenVideo()
  22374. {
  22375. # Check whether --enable-video-offscreen was given.
  22376. if test ${enable_video_offscreen+y}
  22377. then :
  22378. enableval=$enable_video_offscreen;
  22379. else $as_nop
  22380. enable_video_offscreen=yes
  22381. fi
  22382. if test x$enable_video_offscreen = xyes; then
  22383. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22384. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22385. have_video=yes
  22386. SUMMARY_video="${SUMMARY_video} offscreen"
  22387. fi
  22388. }
  22389. CheckQNXVideo()
  22390. {
  22391. if test x$enable_video = xyes; then
  22392. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22393. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22394. have_video=yes
  22395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22396. SUMMARY_video="${SUMMARY_video} qnx"
  22397. fi
  22398. }
  22399. CheckQNXAudio()
  22400. {
  22401. if test x$enable_audio = xyes; then
  22402. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22403. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22404. have_audio=yes
  22405. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22406. SUMMARY_audio="${SUMMARY_audio} qsa"
  22407. fi
  22408. }
  22409. # Check whether --enable-video-opengl was given.
  22410. if test ${enable_video_opengl+y}
  22411. then :
  22412. enableval=$enable_video_opengl;
  22413. else $as_nop
  22414. enable_video_opengl=yes
  22415. fi
  22416. CheckGLX()
  22417. {
  22418. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22420. printf %s "checking for GLX support... " >&6; }
  22421. video_opengl_glx=no
  22422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22423. /* end confdefs.h. */
  22424. #include <GL/glx.h>
  22425. int
  22426. main (void)
  22427. {
  22428. ;
  22429. return 0;
  22430. }
  22431. _ACEOF
  22432. if ac_fn_c_try_compile "$LINENO"
  22433. then :
  22434. video_opengl_glx=yes
  22435. fi
  22436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22438. printf "%s\n" "$video_opengl_glx" >&6; }
  22439. if test x$video_opengl_glx = xyes; then
  22440. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22441. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22442. fi
  22443. fi
  22444. }
  22445. # Check whether --enable-video-opengles was given.
  22446. if test ${enable_video_opengles+y}
  22447. then :
  22448. enableval=$enable_video_opengles;
  22449. else $as_nop
  22450. enable_video_opengles=yes
  22451. fi
  22452. # Check whether --enable-video-opengles1 was given.
  22453. if test ${enable_video_opengles1+y}
  22454. then :
  22455. enableval=$enable_video_opengles1;
  22456. else $as_nop
  22457. enable_video_opengles1=yes
  22458. fi
  22459. # Check whether --enable-video-opengles2 was given.
  22460. if test ${enable_video_opengles2+y}
  22461. then :
  22462. enableval=$enable_video_opengles2;
  22463. else $as_nop
  22464. enable_video_opengles2=yes
  22465. fi
  22466. CheckEGL()
  22467. {
  22468. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22470. printf %s "checking for EGL support... " >&6; }
  22471. video_opengl_egl=no
  22472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22473. /* end confdefs.h. */
  22474. #define LINUX
  22475. #define EGL_API_FB
  22476. #define MESA_EGL_NO_X11_HEADERS
  22477. #define EGL_NO_X11
  22478. #include <EGL/egl.h>
  22479. #include <EGL/eglext.h>
  22480. int
  22481. main (void)
  22482. {
  22483. ;
  22484. return 0;
  22485. }
  22486. _ACEOF
  22487. if ac_fn_c_try_compile "$LINENO"
  22488. then :
  22489. video_opengl_egl=yes
  22490. fi
  22491. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22493. printf "%s\n" "$video_opengl_egl" >&6; }
  22494. if test x$video_opengl_egl = xyes; then
  22495. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22496. fi
  22497. fi
  22498. }
  22499. CheckOpenGL()
  22500. {
  22501. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22503. printf %s "checking for OpenGL headers... " >&6; }
  22504. video_opengl=no
  22505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22506. /* end confdefs.h. */
  22507. #include <GL/gl.h>
  22508. #include <GL/glext.h>
  22509. int
  22510. main (void)
  22511. {
  22512. ;
  22513. return 0;
  22514. }
  22515. _ACEOF
  22516. if ac_fn_c_try_compile "$LINENO"
  22517. then :
  22518. video_opengl=yes
  22519. fi
  22520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22522. printf "%s\n" "$video_opengl" >&6; }
  22523. if test x$video_opengl = xyes; then
  22524. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22525. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22526. SUMMARY_video="${SUMMARY_video} opengl"
  22527. fi
  22528. fi
  22529. }
  22530. CheckOpenGLES()
  22531. {
  22532. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22533. if test x$enable_video_opengles1 = xyes; then
  22534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22535. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22536. video_opengles_v1=no
  22537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22538. /* end confdefs.h. */
  22539. #include <GLES/gl.h>
  22540. #include <GLES/glext.h>
  22541. int
  22542. main (void)
  22543. {
  22544. ;
  22545. return 0;
  22546. }
  22547. _ACEOF
  22548. if ac_fn_c_try_compile "$LINENO"
  22549. then :
  22550. video_opengles_v1=yes
  22551. fi
  22552. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22554. printf "%s\n" "$video_opengles_v1" >&6; }
  22555. if test x$video_opengles_v1 = xyes; then
  22556. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22557. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22558. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22559. fi
  22560. fi
  22561. if test x$enable_video_opengles2 = xyes; then
  22562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22563. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22564. video_opengles_v2=no
  22565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22566. /* end confdefs.h. */
  22567. #include <GLES2/gl2.h>
  22568. #include <GLES2/gl2ext.h>
  22569. int
  22570. main (void)
  22571. {
  22572. ;
  22573. return 0;
  22574. }
  22575. _ACEOF
  22576. if ac_fn_c_try_compile "$LINENO"
  22577. then :
  22578. video_opengles_v2=yes
  22579. fi
  22580. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22582. printf "%s\n" "$video_opengles_v2" >&6; }
  22583. if test x$video_opengles_v2 = xyes; then
  22584. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22585. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22586. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22587. fi
  22588. fi
  22589. fi
  22590. }
  22591. CheckWINDOWSGL()
  22592. {
  22593. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22594. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22595. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22596. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22597. SUMMARY_video="${SUMMARY_video} opengl"
  22598. fi
  22599. }
  22600. CheckWINDOWSGLES()
  22601. {
  22602. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22604. printf %s "checking for EGL support... " >&6; }
  22605. video_opengl_egl=no
  22606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22607. /* end confdefs.h. */
  22608. #include <EGL/egl.h>
  22609. int
  22610. main (void)
  22611. {
  22612. ;
  22613. return 0;
  22614. }
  22615. _ACEOF
  22616. if ac_fn_c_try_compile "$LINENO"
  22617. then :
  22618. video_opengl_egl=yes
  22619. fi
  22620. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22622. printf "%s\n" "$video_opengl_egl" >&6; }
  22623. if test x$video_opengl_egl = xyes; then
  22624. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22625. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22626. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22627. fi
  22628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22629. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22630. video_opengles_v2=no
  22631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22632. /* end confdefs.h. */
  22633. #include <GLES2/gl2.h>
  22634. #include <GLES2/gl2ext.h>
  22635. int
  22636. main (void)
  22637. {
  22638. ;
  22639. return 0;
  22640. }
  22641. _ACEOF
  22642. if ac_fn_c_try_compile "$LINENO"
  22643. then :
  22644. video_opengles_v2=yes
  22645. fi
  22646. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22648. printf "%s\n" "$video_opengles_v2" >&6; }
  22649. if test x$video_opengles_v2 = xyes; then
  22650. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22651. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22652. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22653. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22654. fi
  22655. fi
  22656. }
  22657. CheckHaikuGL()
  22658. {
  22659. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22660. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22661. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22662. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22663. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22664. SUMMARY_video="${SUMMARY_video} opengl"
  22665. fi
  22666. }
  22667. CheckMacGL()
  22668. {
  22669. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22670. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22671. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22672. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22673. SUMMARY_video="${SUMMARY_video} opengl"
  22674. fi
  22675. }
  22676. CheckMacGLES()
  22677. {
  22678. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22679. video_opengl_egl=yes
  22680. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22681. video_opengles_v2=yes
  22682. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22683. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22684. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22685. fi
  22686. }
  22687. CheckEmscriptenGLES()
  22688. {
  22689. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22691. printf %s "checking for EGL support... " >&6; }
  22692. video_opengl_egl=no
  22693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22694. /* end confdefs.h. */
  22695. #include <EGL/egl.h>
  22696. int
  22697. main (void)
  22698. {
  22699. ;
  22700. return 0;
  22701. }
  22702. _ACEOF
  22703. if ac_fn_c_try_compile "$LINENO"
  22704. then :
  22705. video_opengl_egl=yes
  22706. fi
  22707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22709. printf "%s\n" "$video_opengl_egl" >&6; }
  22710. if test x$video_opengl_egl = xyes; then
  22711. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22712. fi
  22713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22714. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22715. video_opengles_v2=no
  22716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22717. /* end confdefs.h. */
  22718. #include <GLES2/gl2.h>
  22719. #include <GLES2/gl2ext.h>
  22720. int
  22721. main (void)
  22722. {
  22723. ;
  22724. return 0;
  22725. }
  22726. _ACEOF
  22727. if ac_fn_c_try_compile "$LINENO"
  22728. then :
  22729. video_opengles_v2=yes
  22730. fi
  22731. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22733. printf "%s\n" "$video_opengles_v2" >&6; }
  22734. if test x$video_opengles_v2 = xyes; then
  22735. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22736. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22737. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22738. fi
  22739. fi
  22740. }
  22741. # Check whether --enable-video-vulkan was given.
  22742. if test ${enable_video_vulkan+y}
  22743. then :
  22744. enableval=$enable_video_vulkan;
  22745. else $as_nop
  22746. enable_video_vulkan=yes
  22747. fi
  22748. CheckVulkan()
  22749. {
  22750. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22751. case "$host" in
  22752. *-*-android*)
  22753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22754. /* end confdefs.h. */
  22755. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22756. #error Vulkan doesn't work on this configuration
  22757. #endif
  22758. int
  22759. main (void)
  22760. {
  22761. ;
  22762. return 0;
  22763. }
  22764. _ACEOF
  22765. if ac_fn_c_try_compile "$LINENO"
  22766. then :
  22767. else $as_nop
  22768. enable_video_vulkan=no
  22769. fi
  22770. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22771. ;;
  22772. *-*-darwin*)
  22773. save_CFLAGS="$CFLAGS"
  22774. CFLAGS="$CFLAGS -x objective-c"
  22775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22776. /* end confdefs.h. */
  22777. #include <Cocoa/Cocoa.h>
  22778. #include <Metal/Metal.h>
  22779. #include <QuartzCore/CAMetalLayer.h>
  22780. #if TARGET_CPU_X86
  22781. #error Vulkan doesn't work on this configuration
  22782. #endif
  22783. int
  22784. main (void)
  22785. {
  22786. ;
  22787. return 0;
  22788. }
  22789. _ACEOF
  22790. if ac_fn_c_try_compile "$LINENO"
  22791. then :
  22792. else $as_nop
  22793. enable_video_vulkan=no
  22794. fi
  22795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22796. CFLAGS="$save_CFLAGS"
  22797. ;;
  22798. *)
  22799. ;;
  22800. esac
  22801. if test x$enable_video_vulkan = xno; then
  22802. # For reasons I am totally unable to see, I get an undefined macro error if
  22803. # I put this in the AC_TRY_COMPILE.
  22804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22805. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22806. fi
  22807. fi
  22808. if test x$have_loadso != xyes; then
  22809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22810. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22811. enable_video_vulkan=no
  22812. fi
  22813. if test x$enable_video_vulkan = xyes; then
  22814. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22815. SUMMARY_video="${SUMMARY_video} vulkan"
  22816. fi
  22817. }
  22818. CheckInputEvents()
  22819. {
  22820. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  22821. if test "x$ac_cv_header_linux_input_h" = xyes
  22822. then :
  22823. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  22824. fi
  22825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22826. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22827. use_input_events=no
  22828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22829. /* end confdefs.h. */
  22830. #include <linux/input.h>
  22831. int
  22832. main (void)
  22833. {
  22834. #ifndef EVIOCGNAME
  22835. #error EVIOCGNAME() ioctl not available
  22836. #endif
  22837. ;
  22838. return 0;
  22839. }
  22840. _ACEOF
  22841. if ac_fn_c_try_compile "$LINENO"
  22842. then :
  22843. use_input_events=yes
  22844. fi
  22845. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22847. printf "%s\n" "$use_input_events" >&6; }
  22848. if test x$use_input_events = xyes; then
  22849. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22850. SUMMARY_input="${SUMMARY_input} linuxev"
  22851. fi
  22852. }
  22853. CheckInputKD()
  22854. {
  22855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22856. printf %s "checking for Linux kd.h... " >&6; }
  22857. use_input_kd=no
  22858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22859. /* end confdefs.h. */
  22860. #include <linux/kd.h>
  22861. #include <linux/keyboard.h>
  22862. #include <sys/ioctl.h>
  22863. int
  22864. main (void)
  22865. {
  22866. struct kbentry kbe;
  22867. kbe.kb_table = KG_CTRL;
  22868. ioctl(0, KDGKBENT, &kbe);
  22869. ;
  22870. return 0;
  22871. }
  22872. _ACEOF
  22873. if ac_fn_c_try_compile "$LINENO"
  22874. then :
  22875. use_input_kd=yes
  22876. fi
  22877. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22879. printf "%s\n" "$use_input_kd" >&6; }
  22880. if test x$use_input_kd = xyes; then
  22881. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22882. SUMMARY_input="${SUMMARY_input} linuxkd"
  22883. fi
  22884. }
  22885. CheckInputKBIO()
  22886. {
  22887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22888. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22889. use_input_kbio=no
  22890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22891. /* end confdefs.h. */
  22892. #include <sys/kbio.h>
  22893. #include <sys/ioctl.h>
  22894. int
  22895. main (void)
  22896. {
  22897. accentmap_t accTable;
  22898. ioctl(0, KDENABIO, 1);
  22899. ;
  22900. return 0;
  22901. }
  22902. _ACEOF
  22903. if ac_fn_c_try_compile "$LINENO"
  22904. then :
  22905. use_input_kbio=yes
  22906. fi
  22907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22909. printf "%s\n" "$use_input_kbio" >&6; }
  22910. if test x$use_input_kbio = xyes; then
  22911. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22912. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22913. fi
  22914. }
  22915. CheckInputWSCONS()
  22916. {
  22917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22918. printf %s "checking for OpenBSD wscons... " >&6; }
  22919. use_input_wscons=no
  22920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22921. /* end confdefs.h. */
  22922. #include <sys/time.h>
  22923. #include <dev/wscons/wsconsio.h>
  22924. #include <dev/wscons/wsksymdef.h>
  22925. #include <dev/wscons/wsksymvar.h>
  22926. #include <sys/ioctl.h>
  22927. int
  22928. main (void)
  22929. {
  22930. struct wskbd_map_data data;
  22931. ioctl(0, WSKBDIO_GETMAP, &data);
  22932. ;
  22933. return 0;
  22934. }
  22935. _ACEOF
  22936. if ac_fn_c_try_compile "$LINENO"
  22937. then :
  22938. use_input_wscons=yes
  22939. fi
  22940. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22942. printf "%s\n" "$use_input_wscons" >&6; }
  22943. if test x$use_input_wscons = xyes; then
  22944. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22945. SUMMARY_input="${SUMMARY_input} wscons"
  22946. fi
  22947. }
  22948. CheckLibUDev()
  22949. {
  22950. # Check whether --enable-libudev was given.
  22951. if test ${enable_libudev+y}
  22952. then :
  22953. enableval=$enable_libudev;
  22954. else $as_nop
  22955. enable_libudev=yes
  22956. fi
  22957. if test x$enable_libudev = xyes; then
  22958. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22959. if test "x$ac_cv_header_libudev_h" = xyes
  22960. then :
  22961. have_libudev_h_hdr=yes
  22962. else $as_nop
  22963. have_libudev_h_hdr=no
  22964. fi
  22965. if test x$have_libudev_h_hdr = xyes; then
  22966. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22967. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22968. if test x$udev_lib != x; then
  22969. echo "-- dynamic udev -> $udev_lib"
  22970. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22971. fi
  22972. fi
  22973. fi
  22974. }
  22975. CheckDBus()
  22976. {
  22977. # Check whether --enable-dbus was given.
  22978. if test ${enable_dbus+y}
  22979. then :
  22980. enableval=$enable_dbus;
  22981. else $as_nop
  22982. enable_dbus=yes
  22983. fi
  22984. if test x$enable_dbus = xyes; then
  22985. pkg_failed=no
  22986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22987. printf %s "checking for dbus-1... " >&6; }
  22988. if test -n "$DBUS_CFLAGS"; then
  22989. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22990. elif test -n "$PKG_CONFIG"; then
  22991. if test -n "$PKG_CONFIG" && \
  22992. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22993. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22994. ac_status=$?
  22995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22996. test $ac_status = 0; }; then
  22997. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22998. test "x$?" != "x0" && pkg_failed=yes
  22999. else
  23000. pkg_failed=yes
  23001. fi
  23002. else
  23003. pkg_failed=untried
  23004. fi
  23005. if test -n "$DBUS_LIBS"; then
  23006. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  23007. elif test -n "$PKG_CONFIG"; then
  23008. if test -n "$PKG_CONFIG" && \
  23009. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  23010. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  23011. ac_status=$?
  23012. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23013. test $ac_status = 0; }; then
  23014. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  23015. test "x$?" != "x0" && pkg_failed=yes
  23016. else
  23017. pkg_failed=yes
  23018. fi
  23019. else
  23020. pkg_failed=untried
  23021. fi
  23022. if test $pkg_failed = yes; then
  23023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23024. printf "%s\n" "no" >&6; }
  23025. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23026. _pkg_short_errors_supported=yes
  23027. else
  23028. _pkg_short_errors_supported=no
  23029. fi
  23030. if test $_pkg_short_errors_supported = yes; then
  23031. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  23032. else
  23033. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  23034. fi
  23035. # Put the nasty error message in config.log where it belongs
  23036. echo "$DBUS_PKG_ERRORS" >&5
  23037. have_dbus=no
  23038. elif test $pkg_failed = untried; then
  23039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23040. printf "%s\n" "no" >&6; }
  23041. have_dbus=no
  23042. else
  23043. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  23044. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  23045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23046. printf "%s\n" "yes" >&6; }
  23047. have_dbus=yes
  23048. fi
  23049. save_CPPFLAGS="$CPPFLAGS"
  23050. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  23051. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  23052. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  23053. then :
  23054. have_dbus_dbus_h_hdr=yes
  23055. else $as_nop
  23056. have_dbus_dbus_h_hdr=no
  23057. fi
  23058. CPPFLAGS="$save_CPPFLAGS"
  23059. if test x$have_dbus_dbus_h_hdr = xyes; then
  23060. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  23061. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  23062. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  23063. fi
  23064. fi
  23065. }
  23066. CheckIME()
  23067. {
  23068. # Check whether --enable-ime was given.
  23069. if test ${enable_ime+y}
  23070. then :
  23071. enableval=$enable_ime;
  23072. else $as_nop
  23073. enable_ime=yes
  23074. fi
  23075. if test x$enable_ime = xyes; then
  23076. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  23077. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  23078. fi
  23079. }
  23080. CheckInotify()
  23081. {
  23082. save_LIBS="$LIBS"
  23083. case "$host" in
  23084. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  23085. ;;
  23086. esac
  23087. for ac_header in sys/inotify.h
  23088. do :
  23089. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  23090. if test "x$ac_cv_header_sys_inotify_h" = xyes
  23091. then :
  23092. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  23093. have_inotify_inotify_h_hdr=yes
  23094. fi
  23095. done
  23096. for ac_func in inotify_init
  23097. do :
  23098. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  23099. if test "x$ac_cv_func_inotify_init" = xyes
  23100. then :
  23101. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  23102. have_inotify=yes
  23103. fi
  23104. done
  23105. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  23106. if test "x$ac_cv_func_inotify_init1" = xyes
  23107. then :
  23108. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  23109. fi
  23110. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  23111. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  23112. case "$host" in
  23113. *-*-freebsd*|*-*-dragonfly*)
  23114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  23115. ;;
  23116. esac
  23117. fi
  23118. LIBS="$save_LIBS"
  23119. }
  23120. CheckIBus()
  23121. {
  23122. # Check whether --enable-ibus was given.
  23123. if test ${enable_ibus+y}
  23124. then :
  23125. enableval=$enable_ibus;
  23126. else $as_nop
  23127. enable_ibus=yes
  23128. fi
  23129. if test x$enable_ibus = xyes; then
  23130. pkg_failed=no
  23131. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  23132. printf %s "checking for ibus-1.0... " >&6; }
  23133. if test -n "$IBUS_CFLAGS"; then
  23134. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  23135. elif test -n "$PKG_CONFIG"; then
  23136. if test -n "$PKG_CONFIG" && \
  23137. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23138. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23139. ac_status=$?
  23140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23141. test $ac_status = 0; }; then
  23142. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  23143. test "x$?" != "x0" && pkg_failed=yes
  23144. else
  23145. pkg_failed=yes
  23146. fi
  23147. else
  23148. pkg_failed=untried
  23149. fi
  23150. if test -n "$IBUS_LIBS"; then
  23151. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  23152. elif test -n "$PKG_CONFIG"; then
  23153. if test -n "$PKG_CONFIG" && \
  23154. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  23155. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  23156. ac_status=$?
  23157. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23158. test $ac_status = 0; }; then
  23159. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  23160. test "x$?" != "x0" && pkg_failed=yes
  23161. else
  23162. pkg_failed=yes
  23163. fi
  23164. else
  23165. pkg_failed=untried
  23166. fi
  23167. if test $pkg_failed = yes; then
  23168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23169. printf "%s\n" "no" >&6; }
  23170. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23171. _pkg_short_errors_supported=yes
  23172. else
  23173. _pkg_short_errors_supported=no
  23174. fi
  23175. if test $_pkg_short_errors_supported = yes; then
  23176. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23177. else
  23178. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  23179. fi
  23180. # Put the nasty error message in config.log where it belongs
  23181. echo "$IBUS_PKG_ERRORS" >&5
  23182. have_ibus=no
  23183. elif test $pkg_failed = untried; then
  23184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23185. printf "%s\n" "no" >&6; }
  23186. have_ibus=no
  23187. else
  23188. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  23189. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  23190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23191. printf "%s\n" "yes" >&6; }
  23192. have_ibus=yes
  23193. fi
  23194. save_CPPFLAGS="$CPPFLAGS"
  23195. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  23196. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  23197. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  23198. then :
  23199. have_ibus_ibus_h_hdr=yes
  23200. else $as_nop
  23201. have_ibus_ibus_h_hdr=no
  23202. fi
  23203. CPPFLAGS="$save_CPPFLAGS"
  23204. if test x$have_ibus_ibus_h_hdr = xyes; then
  23205. if test x$enable_ime != xyes; then
  23206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  23207. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  23208. have_ibus_ibus_h_hdr=no
  23209. elif test x$enable_dbus != xyes; then
  23210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  23211. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  23212. have_ibus_ibus_h_hdr=no
  23213. elif test x$have_inotify_inotify_h_hdr != xyes; then
  23214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23215. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23216. have_ibus_ibus_h_hdr=no
  23217. else
  23218. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23219. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23220. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23221. fi
  23222. fi
  23223. fi
  23224. }
  23225. CheckFcitx()
  23226. {
  23227. # Check whether --enable-fcitx was given.
  23228. if test ${enable_fcitx+y}
  23229. then :
  23230. enableval=$enable_fcitx;
  23231. else $as_nop
  23232. enable_fcitx=yes
  23233. fi
  23234. if test x$enable_fcitx = xyes; then
  23235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23236. printf %s "checking for fcitx support... " >&6; }
  23237. have_fcitx=no
  23238. if test x$enable_ime != xyes; then
  23239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23240. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23241. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23243. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23244. else
  23245. have_fcitx=yes
  23246. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23247. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23248. fi
  23249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23250. printf "%s\n" "$have_fcitx" >&6; }
  23251. fi
  23252. }
  23253. CheckJoystickMFI()
  23254. {
  23255. # Check whether --enable-joystick-mfi was given.
  23256. if test ${enable_joystick_mfi+y}
  23257. then :
  23258. enableval=$enable_joystick_mfi;
  23259. else $as_nop
  23260. enable_joystick_mfi=yes
  23261. fi
  23262. if test x$enable_joystick_mfi = xyes; then
  23263. save_CFLAGS="$CFLAGS"
  23264. save_LDFLAGS="$LDFLAGS"
  23265. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23266. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23268. printf %s "checking for GameController framework... " >&6; }
  23269. enable_joystick_mfi=no
  23270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23271. /* end confdefs.h. */
  23272. #include <AvailabilityMacros.h>
  23273. #include <TargetConditionals.h>
  23274. #import <GameController/GameController.h>
  23275. int
  23276. main (void)
  23277. {
  23278. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23279. #error GameController framework doesn't work on this configuration
  23280. #endif
  23281. #if TARGET_CPU_X86
  23282. #error GameController framework doesn't work on this configuration
  23283. #endif
  23284. ;
  23285. return 0;
  23286. }
  23287. _ACEOF
  23288. if ac_fn_c_try_link "$LINENO"
  23289. then :
  23290. enable_joystick_mfi=yes
  23291. fi
  23292. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23293. conftest$ac_exeext conftest.$ac_ext
  23294. CFLAGS="$save_CFLAGS"
  23295. LDFLAGS="$save_LDFLAGS"
  23296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23297. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23298. if test x$enable_joystick_mfi = xyes; then
  23299. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23300. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23302. fi
  23303. fi
  23304. }
  23305. CheckPTHREAD()
  23306. {
  23307. case "$host" in
  23308. *-*-emscripten*)
  23309. enable_pthreads_default=no
  23310. ;;
  23311. *)
  23312. enable_pthreads_default=yes
  23313. ;;
  23314. esac
  23315. # Check whether --enable-pthreads was given.
  23316. if test ${enable_pthreads+y}
  23317. then :
  23318. enableval=$enable_pthreads;
  23319. else $as_nop
  23320. enable_pthreads=maybe
  23321. fi
  23322. # Check whether --enable-pthread-sem was given.
  23323. if test ${enable_pthread_sem+y}
  23324. then :
  23325. enableval=$enable_pthread_sem;
  23326. else $as_nop
  23327. enable_pthread_sem=maybe
  23328. fi
  23329. if test x$enable_pthreads = xmaybe; then
  23330. enable_pthreads=$enable_pthreads_default
  23331. fi
  23332. if test x$enable_pthread_sem = xmaybe; then
  23333. enable_pthread_sem=$enable_pthreads
  23334. fi
  23335. case "$host" in
  23336. *-*-android*)
  23337. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23338. pthread_lib=""
  23339. ;;
  23340. *-*-linux*|*-*-uclinux*)
  23341. pthread_cflags="-D_REENTRANT"
  23342. pthread_lib="-lpthread"
  23343. ;;
  23344. *-*-bsdi*)
  23345. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23346. pthread_lib=""
  23347. ;;
  23348. *-*-darwin*)
  23349. pthread_cflags="-D_THREAD_SAFE"
  23350. # causes Carbon.p complaints?
  23351. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23352. ;;
  23353. *-*-freebsd*|*-*-dragonfly*)
  23354. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23355. pthread_lib="-pthread"
  23356. ;;
  23357. *-*-netbsd*)
  23358. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23359. pthread_lib="-lpthread"
  23360. ;;
  23361. *-*-openbsd*)
  23362. pthread_cflags="-D_REENTRANT"
  23363. pthread_lib="-lpthread"
  23364. ;;
  23365. *-*-solaris2.9)
  23366. # From Solaris 9+, posix4's preferred name is rt.
  23367. pthread_cflags="-D_REENTRANT"
  23368. pthread_lib="-lpthread -lrt"
  23369. ;;
  23370. *-*-solaris2.10)
  23371. # Solaris 10+ merged pthread into libc.
  23372. pthread_cflags="-D_REENTRANT"
  23373. pthread_lib="-lrt"
  23374. ;;
  23375. *-*-solaris*)
  23376. # Solaris 11+ merged rt into libc.
  23377. pthread_cflags="-D_REENTRANT"
  23378. pthread_lib=""
  23379. ;;
  23380. *-*-sysv5*)
  23381. pthread_cflags="-D_REENTRANT -Kthread"
  23382. pthread_lib=""
  23383. ;;
  23384. *-*-aix*)
  23385. pthread_cflags="-D_REENTRANT -mthreads"
  23386. pthread_lib="-lpthread"
  23387. ;;
  23388. *-*-hpux11*)
  23389. pthread_cflags="-D_REENTRANT"
  23390. pthread_lib="-L/usr/lib -lpthread"
  23391. ;;
  23392. *-*-haiku*)
  23393. pthread_cflags="-D_REENTRANT"
  23394. pthread_lib=""
  23395. ;;
  23396. *-*-nto*)
  23397. pthread_cflags="-D_REENTRANT"
  23398. pthread_lib=""
  23399. ;;
  23400. *-*-emscripten*)
  23401. pthread_cflags="-D_REENTRANT -pthread"
  23402. pthread_lib="-pthread"
  23403. ;;
  23404. *)
  23405. pthread_cflags="-D_REENTRANT"
  23406. pthread_lib="-lpthread"
  23407. ;;
  23408. esac
  23409. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23410. # Save the original compiler flags and libraries
  23411. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23412. # Add the pthread compiler flags and libraries
  23413. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23414. # Check to see if we have pthread support on this system
  23415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23416. printf %s "checking for pthreads... " >&6; }
  23417. use_pthreads=no
  23418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23419. /* end confdefs.h. */
  23420. #include <pthread.h>
  23421. int
  23422. main (void)
  23423. {
  23424. pthread_attr_t type;
  23425. pthread_attr_init(&type);
  23426. ;
  23427. return 0;
  23428. }
  23429. _ACEOF
  23430. if ac_fn_c_try_link "$LINENO"
  23431. then :
  23432. use_pthreads=yes
  23433. fi
  23434. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23435. conftest$ac_exeext conftest.$ac_ext
  23436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23437. printf "%s\n" "$use_pthreads" >&6; }
  23438. # Restore the compiler flags and libraries
  23439. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23440. # Do futher testing if we have pthread support...
  23441. if test x$use_pthreads = xyes; then
  23442. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23443. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23444. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23445. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23446. # Save the original compiler flags and libraries
  23447. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23448. # Add the pthread compiler flags and libraries
  23449. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23450. # Check to see if recursive mutexes are available
  23451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23452. printf %s "checking for recursive mutexes... " >&6; }
  23453. has_recursive_mutexes=no
  23454. if test x$has_recursive_mutexes = xno; then
  23455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23456. /* end confdefs.h. */
  23457. #define _GNU_SOURCE 1
  23458. #include <pthread.h>
  23459. int
  23460. main (void)
  23461. {
  23462. pthread_mutexattr_t attr;
  23463. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23464. ;
  23465. return 0;
  23466. }
  23467. _ACEOF
  23468. if ac_fn_c_try_link "$LINENO"
  23469. then :
  23470. has_recursive_mutexes=yes
  23471. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23472. fi
  23473. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23474. conftest$ac_exeext conftest.$ac_ext
  23475. fi
  23476. if test x$has_recursive_mutexes = xno; then
  23477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23478. /* end confdefs.h. */
  23479. #define _GNU_SOURCE 1
  23480. #include <pthread.h>
  23481. int
  23482. main (void)
  23483. {
  23484. pthread_mutexattr_t attr;
  23485. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23486. ;
  23487. return 0;
  23488. }
  23489. _ACEOF
  23490. if ac_fn_c_try_link "$LINENO"
  23491. then :
  23492. has_recursive_mutexes=yes
  23493. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23494. fi
  23495. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23496. conftest$ac_exeext conftest.$ac_ext
  23497. fi
  23498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23499. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23500. # Check to see if pthread semaphore support is missing
  23501. if test x$enable_pthread_sem = xyes; then
  23502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23503. printf %s "checking for pthread semaphores... " >&6; }
  23504. have_pthread_sem=no
  23505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23506. /* end confdefs.h. */
  23507. #include <pthread.h>
  23508. #include <semaphore.h>
  23509. int
  23510. main (void)
  23511. {
  23512. ;
  23513. return 0;
  23514. }
  23515. _ACEOF
  23516. if ac_fn_c_try_compile "$LINENO"
  23517. then :
  23518. have_pthread_sem=yes
  23519. fi
  23520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23522. printf "%s\n" "$have_pthread_sem" >&6; }
  23523. fi
  23524. if test x$have_pthread_sem = xyes; then
  23525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23526. printf %s "checking for sem_timedwait... " >&6; }
  23527. have_sem_timedwait=no
  23528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23529. /* end confdefs.h. */
  23530. #include <pthread.h>
  23531. #include <semaphore.h>
  23532. int
  23533. main (void)
  23534. {
  23535. sem_timedwait(NULL, NULL);
  23536. ;
  23537. return 0;
  23538. }
  23539. _ACEOF
  23540. if ac_fn_c_try_link "$LINENO"
  23541. then :
  23542. have_sem_timedwait=yes
  23543. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23544. fi
  23545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23546. conftest$ac_exeext conftest.$ac_ext
  23547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23548. printf "%s\n" "$have_sem_timedwait" >&6; }
  23549. fi
  23550. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23551. "
  23552. if test "x$ac_cv_header_pthread_np_h" = xyes
  23553. then :
  23554. have_pthread_np_h=yes
  23555. else $as_nop
  23556. have_pthread_np_h=no
  23557. fi
  23558. if test x$have_pthread_np_h = xyes; then
  23559. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23560. fi
  23561. # Check to see if pthread naming is available
  23562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23563. printf %s "checking for pthread_setname_np... " >&6; }
  23564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23565. /* end confdefs.h. */
  23566. /* Override any GCC internal prototype to avoid an error.
  23567. Use char because int might match the return type of a GCC
  23568. builtin and then its argument prototype would still apply. */
  23569. char pthread_setname_np ();
  23570. int
  23571. main (void)
  23572. {
  23573. return pthread_setname_np ();
  23574. ;
  23575. return 0;
  23576. }
  23577. _ACEOF
  23578. if ac_fn_c_try_link "$LINENO"
  23579. then :
  23580. has_pthread_setname_np=yes
  23581. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23582. else $as_nop
  23583. has_pthread_setname_np=no
  23584. fi
  23585. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23586. conftest$ac_exeext conftest.$ac_ext
  23587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23588. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23590. printf %s "checking for pthread_set_name_np... " >&6; }
  23591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23592. /* end confdefs.h. */
  23593. /* Override any GCC internal prototype to avoid an error.
  23594. Use char because int might match the return type of a GCC
  23595. builtin and then its argument prototype would still apply. */
  23596. char pthread_set_name_np ();
  23597. int
  23598. main (void)
  23599. {
  23600. return pthread_set_name_np ();
  23601. ;
  23602. return 0;
  23603. }
  23604. _ACEOF
  23605. if ac_fn_c_try_link "$LINENO"
  23606. then :
  23607. has_pthread_set_name_np=yes
  23608. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23609. else $as_nop
  23610. has_pthread_set_name_np=no
  23611. fi
  23612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23613. conftest$ac_exeext conftest.$ac_ext
  23614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23615. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23616. # Restore the compiler flags and libraries
  23617. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23618. # Basic thread creation functions
  23619. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23620. # Semaphores
  23621. # We can fake these with mutexes and condition variables if necessary
  23622. if test x$have_pthread_sem = xyes; then
  23623. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23624. else
  23625. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23626. fi
  23627. # Mutexes
  23628. # We can fake these with semaphores if necessary
  23629. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23630. # Condition variables
  23631. # We can fake these with semaphores and mutexes if necessary
  23632. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23633. # Thread local storage
  23634. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23635. have_threads=yes
  23636. fi
  23637. fi
  23638. }
  23639. CheckWINDOWS()
  23640. {
  23641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23642. printf %s "checking Windows compiler... " >&6; }
  23643. have_win32_gcc=no
  23644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23645. /* end confdefs.h. */
  23646. #include <windows.h>
  23647. int
  23648. main (void)
  23649. {
  23650. ;
  23651. return 0;
  23652. }
  23653. _ACEOF
  23654. if ac_fn_c_try_compile "$LINENO"
  23655. then :
  23656. have_win32_gcc=yes
  23657. fi
  23658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23660. printf "%s\n" "$have_win32_gcc" >&6; }
  23661. if test x$have_win32_gcc != xyes; then
  23662. as_fn_error $? "
  23663. *** Your compiler ($CC) does not produce Windows executables!
  23664. " "$LINENO" 5
  23665. fi
  23666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23667. printf %s "checking Windows CE... " >&6; }
  23668. have_wince=no
  23669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23670. /* end confdefs.h. */
  23671. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23672. #error This is not Windows CE
  23673. #endif
  23674. int
  23675. main (void)
  23676. {
  23677. ;
  23678. return 0;
  23679. }
  23680. _ACEOF
  23681. if ac_fn_c_try_compile "$LINENO"
  23682. then :
  23683. have_wince=yes
  23684. as_fn_error $? "
  23685. *** Sorry, Windows CE is no longer supported.
  23686. " "$LINENO" 5
  23687. fi
  23688. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23690. printf "%s\n" "$have_wince" >&6; }
  23691. # headers needed elsewhere
  23692. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23693. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23694. then :
  23695. have_tpcshrd_h=yes
  23696. fi
  23697. if test x$have_tpcshrd_h = xyes; then
  23698. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23699. fi
  23700. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23701. if test "x$ac_cv_header_roapi_h" = xyes
  23702. then :
  23703. have_roapi_h=yes
  23704. fi
  23705. if test x$have_roapi_h = xyes; then
  23706. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23707. fi
  23708. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23709. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23710. then :
  23711. have_shellscalingapi_h=yes
  23712. fi
  23713. if test x$shellscalingapi_h = xyes; then
  23714. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23715. fi
  23716. }
  23717. CheckOS2()
  23718. {
  23719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23720. printf %s "checking OS/2 compiler... " >&6; }
  23721. have_os2_gcc=no
  23722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23723. /* end confdefs.h. */
  23724. #include <os2.h>
  23725. int
  23726. main (void)
  23727. {
  23728. ;
  23729. return 0;
  23730. }
  23731. _ACEOF
  23732. if ac_fn_c_try_compile "$LINENO"
  23733. then :
  23734. have_os2_gcc=yes
  23735. fi
  23736. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23738. printf "%s\n" "$have_os2_gcc" >&6; }
  23739. if test x$have_os2_gcc != xyes; then
  23740. as_fn_error $? "
  23741. *** Your compiler ($CC) does not produce OS/2 executables!
  23742. " "$LINENO" 5
  23743. fi
  23744. }
  23745. CheckDIRECTX()
  23746. {
  23747. # Check whether --enable-directx was given.
  23748. if test ${enable_directx+y}
  23749. then :
  23750. enableval=$enable_directx;
  23751. else $as_nop
  23752. enable_directx=yes
  23753. fi
  23754. if test x$enable_directx = xyes; then
  23755. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23756. if test "x$ac_cv_header_d3d9_h" = xyes
  23757. then :
  23758. have_d3d=yes
  23759. fi
  23760. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23761. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23762. then :
  23763. have_d3d11=yes
  23764. fi
  23765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compatible d3d12 headers" >&5
  23766. printf %s "checking for compatible d3d12 headers... " >&6; }
  23767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23768. /* end confdefs.h. */
  23769. #include <d3d12.h>
  23770. #include <d3d12sdklayers.h>
  23771. ID3D12Device1 *device;
  23772. int
  23773. main (void)
  23774. {
  23775. ;
  23776. return 0;
  23777. }
  23778. _ACEOF
  23779. if ac_fn_c_try_compile "$LINENO"
  23780. then :
  23781. have_d3d12=yes
  23782. else $as_nop
  23783. have_d3d12=no
  23784. fi
  23785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23787. printf "%s\n" "$have_d3d12" >&6; }
  23788. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23789. if test "x$ac_cv_header_ddraw_h" = xyes
  23790. then :
  23791. have_ddraw=yes
  23792. fi
  23793. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23794. if test "x$ac_cv_header_dsound_h" = xyes
  23795. then :
  23796. have_dsound=yes
  23797. fi
  23798. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23799. if test "x$ac_cv_header_dinput_h" = xyes
  23800. then :
  23801. have_dinput=yes
  23802. fi
  23803. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23804. if test "x$ac_cv_header_dxgi_h" = xyes
  23805. then :
  23806. have_dxgi=yes
  23807. fi
  23808. if test x$have_ddraw = xyes; then
  23809. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23810. fi
  23811. if test x$have_dinput = xyes; then
  23812. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23813. fi
  23814. if test x$have_dsound = xyes; then
  23815. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23816. fi
  23817. if test x$have_dxgi = xyes; then
  23818. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23819. fi
  23820. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23821. # FIXME: ...so force it off for now.
  23822. case "$host" in
  23823. *-*-cygwin*)
  23824. have_dinput=false
  23825. ;;
  23826. esac
  23827. fi
  23828. # Check whether --enable-xinput was given.
  23829. if test ${enable_xinput+y}
  23830. then :
  23831. enableval=$enable_xinput;
  23832. else $as_nop
  23833. enable_xinput=yes
  23834. fi
  23835. if test x$enable_xinput = xyes; then
  23836. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23837. if test "x$ac_cv_header_xinput_h" = xyes
  23838. then :
  23839. have_xinput=yes
  23840. fi
  23841. if test x$have_xinput = xyes; then
  23842. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23843. fi
  23844. fi
  23845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23846. printf %s "checking for windows.gaming.input.h... " >&6; }
  23847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23848. /* end confdefs.h. */
  23849. #define COBJMACROS
  23850. #include <windows.gaming.input.h>
  23851. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23852. int
  23853. main (void)
  23854. {
  23855. ;
  23856. return 0;
  23857. }
  23858. _ACEOF
  23859. if ac_fn_c_try_compile "$LINENO"
  23860. then :
  23861. have_wgi=yes
  23862. else $as_nop
  23863. have_wgi=no
  23864. fi
  23865. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23867. printf "%s\n" "$have_wgi" >&6; }
  23868. if test x$have_wgi = xyes; then
  23869. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23870. fi
  23871. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23872. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23873. then :
  23874. have_wasapi=yes
  23875. fi
  23876. if test x$have_wasapi = xyes; then
  23877. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23878. fi
  23879. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23880. if test "x$ac_cv_header_audioclient_h" = xyes
  23881. then :
  23882. else $as_nop
  23883. have_wasapi=no
  23884. fi
  23885. if test x$have_wasapi = xyes; then
  23886. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23887. fi
  23888. # Check whether --enable-wasapi was given.
  23889. if test ${enable_wasapi+y}
  23890. then :
  23891. enableval=$enable_wasapi;
  23892. else $as_nop
  23893. enable_wasapi=yes
  23894. fi
  23895. }
  23896. CheckDLOPEN()
  23897. {
  23898. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23899. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23900. if test "x$ac_cv_header_dlfcn_h" = xyes
  23901. then :
  23902. have_dlfcn_h=yes
  23903. else $as_nop
  23904. have_dlfcn_h=no
  23905. fi
  23906. have_dlopen=no
  23907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23908. printf %s "checking for dlopen in -lc... " >&6; }
  23909. if test ${ac_cv_lib_c_dlopen+y}
  23910. then :
  23911. printf %s "(cached) " >&6
  23912. else $as_nop
  23913. ac_check_lib_save_LIBS=$LIBS
  23914. LIBS="-lc $LIBS"
  23915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23916. /* end confdefs.h. */
  23917. /* Override any GCC internal prototype to avoid an error.
  23918. Use char because int might match the return type of a GCC
  23919. builtin and then its argument prototype would still apply. */
  23920. char dlopen ();
  23921. int
  23922. main (void)
  23923. {
  23924. return dlopen ();
  23925. ;
  23926. return 0;
  23927. }
  23928. _ACEOF
  23929. if ac_fn_c_try_link "$LINENO"
  23930. then :
  23931. ac_cv_lib_c_dlopen=yes
  23932. else $as_nop
  23933. ac_cv_lib_c_dlopen=no
  23934. fi
  23935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23936. conftest$ac_exeext conftest.$ac_ext
  23937. LIBS=$ac_check_lib_save_LIBS
  23938. fi
  23939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23940. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23941. if test "x$ac_cv_lib_c_dlopen" = xyes
  23942. then :
  23943. have_dlopen=yes
  23944. else $as_nop
  23945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23946. printf %s "checking for dlopen in -ldl... " >&6; }
  23947. if test ${ac_cv_lib_dl_dlopen+y}
  23948. then :
  23949. printf %s "(cached) " >&6
  23950. else $as_nop
  23951. ac_check_lib_save_LIBS=$LIBS
  23952. LIBS="-ldl $LIBS"
  23953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23954. /* end confdefs.h. */
  23955. /* Override any GCC internal prototype to avoid an error.
  23956. Use char because int might match the return type of a GCC
  23957. builtin and then its argument prototype would still apply. */
  23958. char dlopen ();
  23959. int
  23960. main (void)
  23961. {
  23962. return dlopen ();
  23963. ;
  23964. return 0;
  23965. }
  23966. _ACEOF
  23967. if ac_fn_c_try_link "$LINENO"
  23968. then :
  23969. ac_cv_lib_dl_dlopen=yes
  23970. else $as_nop
  23971. ac_cv_lib_dl_dlopen=no
  23972. fi
  23973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23974. conftest$ac_exeext conftest.$ac_ext
  23975. LIBS=$ac_check_lib_save_LIBS
  23976. fi
  23977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23978. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23979. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23980. then :
  23981. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23982. fi
  23983. fi
  23984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23985. printf %s "checking for dlopen... " >&6; }
  23986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23987. printf "%s\n" "$have_dlopen" >&6; }
  23988. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23989. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23990. if test x$enable_loadso = xyes; then
  23991. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23992. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23993. have_loadso=yes
  23994. fi
  23995. fi
  23996. }
  23997. CheckO_CLOEXEC()
  23998. {
  23999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  24000. printf %s "checking for O_CLOEXEC... " >&6; }
  24001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24002. /* end confdefs.h. */
  24003. #include <fcntl.h>
  24004. int flag = O_CLOEXEC;
  24005. int
  24006. main (void)
  24007. {
  24008. ;
  24009. return 0;
  24010. }
  24011. _ACEOF
  24012. if ac_fn_c_try_compile "$LINENO"
  24013. then :
  24014. have_o_cloexec=yes
  24015. else $as_nop
  24016. have_o_cloexec=no
  24017. fi
  24018. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  24020. printf "%s\n" "$have_o_cloexec" >&6; }
  24021. if test $have_o_cloexec = yes; then
  24022. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  24023. fi
  24024. }
  24025. CheckUSBHID()
  24026. {
  24027. case "$host" in
  24028. *-*-*bsd*|*-*-dragonfly*)
  24029. if test x$enable_joystick = xyes; then
  24030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  24031. printf %s "checking for hid_init in -lusbhid... " >&6; }
  24032. if test ${ac_cv_lib_usbhid_hid_init+y}
  24033. then :
  24034. printf %s "(cached) " >&6
  24035. else $as_nop
  24036. ac_check_lib_save_LIBS=$LIBS
  24037. LIBS="-lusbhid $LIBS"
  24038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24039. /* end confdefs.h. */
  24040. /* Override any GCC internal prototype to avoid an error.
  24041. Use char because int might match the return type of a GCC
  24042. builtin and then its argument prototype would still apply. */
  24043. char hid_init ();
  24044. int
  24045. main (void)
  24046. {
  24047. return hid_init ();
  24048. ;
  24049. return 0;
  24050. }
  24051. _ACEOF
  24052. if ac_fn_c_try_link "$LINENO"
  24053. then :
  24054. ac_cv_lib_usbhid_hid_init=yes
  24055. else $as_nop
  24056. ac_cv_lib_usbhid_hid_init=no
  24057. fi
  24058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24059. conftest$ac_exeext conftest.$ac_ext
  24060. LIBS=$ac_check_lib_save_LIBS
  24061. fi
  24062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  24063. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  24064. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  24065. then :
  24066. have_libusbhid=yes
  24067. fi
  24068. if test x$have_libusbhid = xyes; then
  24069. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  24070. if test "x$ac_cv_header_usbhid_h" = xyes
  24071. then :
  24072. USB_CFLAGS="-DHAVE_USBHID_H"
  24073. fi
  24074. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  24075. if test "x$ac_cv_header_libusbhid_h" = xyes
  24076. then :
  24077. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  24078. fi
  24079. USB_LIBS="$USB_LIBS -lusbhid"
  24080. else
  24081. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  24082. if test "x$ac_cv_header_usb_h" = xyes
  24083. then :
  24084. USB_CFLAGS="-DHAVE_USB_H"
  24085. fi
  24086. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24087. if test "x$ac_cv_header_libusb_h" = xyes
  24088. then :
  24089. USB_CFLAGS="-DHAVE_LIBUSB_H"
  24090. fi
  24091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  24092. printf %s "checking for hid_init in -lusb... " >&6; }
  24093. if test ${ac_cv_lib_usb_hid_init+y}
  24094. then :
  24095. printf %s "(cached) " >&6
  24096. else $as_nop
  24097. ac_check_lib_save_LIBS=$LIBS
  24098. LIBS="-lusb $LIBS"
  24099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24100. /* end confdefs.h. */
  24101. /* Override any GCC internal prototype to avoid an error.
  24102. Use char because int might match the return type of a GCC
  24103. builtin and then its argument prototype would still apply. */
  24104. char hid_init ();
  24105. int
  24106. main (void)
  24107. {
  24108. return hid_init ();
  24109. ;
  24110. return 0;
  24111. }
  24112. _ACEOF
  24113. if ac_fn_c_try_link "$LINENO"
  24114. then :
  24115. ac_cv_lib_usb_hid_init=yes
  24116. else $as_nop
  24117. ac_cv_lib_usb_hid_init=no
  24118. fi
  24119. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24120. conftest$ac_exeext conftest.$ac_ext
  24121. LIBS=$ac_check_lib_save_LIBS
  24122. fi
  24123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  24124. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  24125. if test "x$ac_cv_lib_usb_hid_init" = xyes
  24126. then :
  24127. USB_LIBS="$USB_LIBS -lusb"
  24128. fi
  24129. fi
  24130. save_CFLAGS="$CFLAGS"
  24131. CFLAGS="$CFLAGS $USB_CFLAGS"
  24132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  24133. printf %s "checking for usbhid... " >&6; }
  24134. have_usbhid=no
  24135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24136. /* end confdefs.h. */
  24137. #include <sys/types.h>
  24138. #if defined(HAVE_USB_H)
  24139. #include <usb.h>
  24140. #endif
  24141. #ifdef __DragonFly__
  24142. # include <bus/u4b/usb.h>
  24143. # include <bus/u4b/usbhid.h>
  24144. #else
  24145. # include <dev/usb/usb.h>
  24146. # include <dev/usb/usbhid.h>
  24147. #endif
  24148. #if defined(HAVE_USBHID_H)
  24149. #include <usbhid.h>
  24150. #elif defined(HAVE_LIBUSB_H)
  24151. #include <libusb.h>
  24152. #elif defined(HAVE_LIBUSBHID_H)
  24153. #include <libusbhid.h>
  24154. #endif
  24155. int
  24156. main (void)
  24157. {
  24158. struct report_desc *repdesc;
  24159. struct usb_ctl_report *repbuf;
  24160. hid_kind_t hidkind;
  24161. ;
  24162. return 0;
  24163. }
  24164. _ACEOF
  24165. if ac_fn_c_try_compile "$LINENO"
  24166. then :
  24167. have_usbhid=yes
  24168. fi
  24169. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24171. printf "%s\n" "$have_usbhid" >&6; }
  24172. if test x$have_usbhid = xyes; then
  24173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24174. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24175. have_usbhid_ucr_data=no
  24176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24177. /* end confdefs.h. */
  24178. #include <sys/types.h>
  24179. #if defined(HAVE_USB_H)
  24180. #include <usb.h>
  24181. #endif
  24182. #ifdef __DragonFly__
  24183. # include <bus/u4b/usb.h>
  24184. # include <bus/u4b/usbhid.h>
  24185. #else
  24186. # include <dev/usb/usb.h>
  24187. # include <dev/usb/usbhid.h>
  24188. #endif
  24189. #if defined(HAVE_USBHID_H)
  24190. #include <usbhid.h>
  24191. #elif defined(HAVE_LIBUSB_H)
  24192. #include <libusb.h>
  24193. #elif defined(HAVE_LIBUSBHID_H)
  24194. #include <libusbhid.h>
  24195. #endif
  24196. int
  24197. main (void)
  24198. {
  24199. struct usb_ctl_report buf;
  24200. if (buf.ucr_data) { }
  24201. ;
  24202. return 0;
  24203. }
  24204. _ACEOF
  24205. if ac_fn_c_try_compile "$LINENO"
  24206. then :
  24207. have_usbhid_ucr_data=yes
  24208. fi
  24209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24210. if test x$have_usbhid_ucr_data = xyes; then
  24211. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24212. fi
  24213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24214. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24216. printf %s "checking for new usbhid API... " >&6; }
  24217. have_usbhid_new=no
  24218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24219. /* end confdefs.h. */
  24220. #include <sys/types.h>
  24221. #if defined(HAVE_USB_H)
  24222. #include <usb.h>
  24223. #endif
  24224. #ifdef __DragonFly__
  24225. #include <bus/u4b/usb.h>
  24226. #include <bus/u4b/usbhid.h>
  24227. #else
  24228. #include <dev/usb/usb.h>
  24229. #include <dev/usb/usbhid.h>
  24230. #endif
  24231. #if defined(HAVE_USBHID_H)
  24232. #include <usbhid.h>
  24233. #elif defined(HAVE_LIBUSB_H)
  24234. #include <libusb.h>
  24235. #elif defined(HAVE_LIBUSBHID_H)
  24236. #include <libusbhid.h>
  24237. #endif
  24238. int
  24239. main (void)
  24240. {
  24241. report_desc_t d;
  24242. hid_start_parse(d, 1, 1);
  24243. ;
  24244. return 0;
  24245. }
  24246. _ACEOF
  24247. if ac_fn_c_try_compile "$LINENO"
  24248. then :
  24249. have_usbhid_new=yes
  24250. fi
  24251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24252. if test x$have_usbhid_new = xyes; then
  24253. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24254. fi
  24255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24256. printf "%s\n" "$have_usbhid_new" >&6; }
  24257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24258. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24259. have_machine_joystick=no
  24260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24261. /* end confdefs.h. */
  24262. #include <machine/joystick.h>
  24263. int
  24264. main (void)
  24265. {
  24266. struct joystick t;
  24267. ;
  24268. return 0;
  24269. }
  24270. _ACEOF
  24271. if ac_fn_c_try_compile "$LINENO"
  24272. then :
  24273. have_machine_joystick=yes
  24274. fi
  24275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24276. if test x$have_machine_joystick = xyes; then
  24277. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24278. fi
  24279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24280. printf "%s\n" "$have_machine_joystick" >&6; }
  24281. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24282. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24283. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24284. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24285. have_joystick=yes
  24286. fi
  24287. CFLAGS="$save_CFLAGS"
  24288. fi
  24289. ;;
  24290. esac
  24291. }
  24292. CheckHIDAPI()
  24293. {
  24294. # Check whether --enable-hidapi-joystick was given.
  24295. if test ${enable_hidapi_joystick+y}
  24296. then :
  24297. enableval=$enable_hidapi_joystick;
  24298. else $as_nop
  24299. enable_hidapi_joystick=yes
  24300. fi
  24301. # Check whether --enable-hidapi-libusb was given.
  24302. if test ${enable_hidapi_libusb+y}
  24303. then :
  24304. enableval=$enable_hidapi_libusb;
  24305. else $as_nop
  24306. enable_hidapi_libusb=maybe
  24307. fi
  24308. if test x$enable_hidapi = xyes; then
  24309. case "$host" in
  24310. # libusb does not support iOS
  24311. *-ios-* )
  24312. enable_hidapi_libusb=no
  24313. ;;
  24314. # On the other hand, *BSD specifically uses libusb only
  24315. *-*-*bsd* )
  24316. enable_hidapi_libusb=yes
  24317. require_hidapi_libusb=yes
  24318. ;;
  24319. *-*-os2* )
  24320. enable_hidapi_libusb=yes
  24321. ;;
  24322. esac
  24323. hidapi_support=yes
  24324. if test x$enable_hidapi_libusb = xyes; then
  24325. pkg_failed=no
  24326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24327. printf %s "checking for libusb-1.0... " >&6; }
  24328. if test -n "$LIBUSB_CFLAGS"; then
  24329. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24330. elif test -n "$PKG_CONFIG"; then
  24331. if test -n "$PKG_CONFIG" && \
  24332. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24333. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24334. ac_status=$?
  24335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24336. test $ac_status = 0; }; then
  24337. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24338. test "x$?" != "x0" && pkg_failed=yes
  24339. else
  24340. pkg_failed=yes
  24341. fi
  24342. else
  24343. pkg_failed=untried
  24344. fi
  24345. if test -n "$LIBUSB_LIBS"; then
  24346. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24347. elif test -n "$PKG_CONFIG"; then
  24348. if test -n "$PKG_CONFIG" && \
  24349. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24350. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24351. ac_status=$?
  24352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24353. test $ac_status = 0; }; then
  24354. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24355. test "x$?" != "x0" && pkg_failed=yes
  24356. else
  24357. pkg_failed=yes
  24358. fi
  24359. else
  24360. pkg_failed=untried
  24361. fi
  24362. if test $pkg_failed = yes; then
  24363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24364. printf "%s\n" "no" >&6; }
  24365. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24366. _pkg_short_errors_supported=yes
  24367. else
  24368. _pkg_short_errors_supported=no
  24369. fi
  24370. if test $_pkg_short_errors_supported = yes; then
  24371. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24372. else
  24373. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24374. fi
  24375. # Put the nasty error message in config.log where it belongs
  24376. echo "$LIBUSB_PKG_ERRORS" >&5
  24377. have_libusb=no
  24378. elif test $pkg_failed = untried; then
  24379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24380. printf "%s\n" "no" >&6; }
  24381. have_libusb=no
  24382. else
  24383. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24384. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24386. printf "%s\n" "yes" >&6; }
  24387. have_libusb=yes
  24388. fi
  24389. save_CPPFLAGS="$CPPFLAGS"
  24390. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24391. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24392. if test "x$ac_cv_header_libusb_h" = xyes
  24393. then :
  24394. have_libusb_h=yes
  24395. else $as_nop
  24396. have_libusb_h=no
  24397. fi
  24398. CPPFLAGS="$save_CPPFLAGS"
  24399. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24400. hidapi_support=no
  24401. fi
  24402. fi
  24403. if test x$hidapi_support = xyes; then
  24404. if test x$have_libusb_h = xyes; then
  24405. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24406. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24407. if test x$require_hidapi_libusb = xyes; then
  24408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24409. else
  24410. if test x$have_loadso != xyes; then
  24411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24412. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24413. fi
  24414. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24415. libusb_lib=""
  24416. case "$host" in
  24417. *-*-darwin* )
  24418. libusb_lib="libusb-1.0.0.dylib"
  24419. ;;
  24420. *-*-cygwin* | *-*-mingw* )
  24421. libusb_lib="libusb-1.0.dll"
  24422. ;;
  24423. *-*-os2* )
  24424. libusb_lib="usb100.dll"
  24425. ;;
  24426. esac
  24427. if test x$libusb_lib = x; then
  24428. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24429. fi
  24430. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24431. fi
  24432. fi
  24433. fi
  24434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24435. printf %s "checking for hidapi joystick support... " >&6; }
  24436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24437. printf "%s\n" "$hidapi_support" >&6; }
  24438. fi
  24439. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24440. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24441. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24442. fi
  24443. }
  24444. CheckClockGettime()
  24445. {
  24446. # Check whether --enable-clock_gettime was given.
  24447. if test ${enable_clock_gettime+y}
  24448. then :
  24449. enableval=$enable_clock_gettime;
  24450. else $as_nop
  24451. enable_clock_gettime=yes
  24452. fi
  24453. if test x$enable_clock_gettime = xyes; then
  24454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24455. printf %s "checking for clock_gettime in -lc... " >&6; }
  24456. if test ${ac_cv_lib_c_clock_gettime+y}
  24457. then :
  24458. printf %s "(cached) " >&6
  24459. else $as_nop
  24460. ac_check_lib_save_LIBS=$LIBS
  24461. LIBS="-lc $LIBS"
  24462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24463. /* end confdefs.h. */
  24464. /* Override any GCC internal prototype to avoid an error.
  24465. Use char because int might match the return type of a GCC
  24466. builtin and then its argument prototype would still apply. */
  24467. char clock_gettime ();
  24468. int
  24469. main (void)
  24470. {
  24471. return clock_gettime ();
  24472. ;
  24473. return 0;
  24474. }
  24475. _ACEOF
  24476. if ac_fn_c_try_link "$LINENO"
  24477. then :
  24478. ac_cv_lib_c_clock_gettime=yes
  24479. else $as_nop
  24480. ac_cv_lib_c_clock_gettime=no
  24481. fi
  24482. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24483. conftest$ac_exeext conftest.$ac_ext
  24484. LIBS=$ac_check_lib_save_LIBS
  24485. fi
  24486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24487. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24488. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24489. then :
  24490. have_clock_gettime=yes
  24491. fi
  24492. if test x$have_clock_gettime = xyes; then
  24493. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24494. else
  24495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24496. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24497. if test ${ac_cv_lib_rt_clock_gettime+y}
  24498. then :
  24499. printf %s "(cached) " >&6
  24500. else $as_nop
  24501. ac_check_lib_save_LIBS=$LIBS
  24502. LIBS="-lrt $LIBS"
  24503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24504. /* end confdefs.h. */
  24505. /* Override any GCC internal prototype to avoid an error.
  24506. Use char because int might match the return type of a GCC
  24507. builtin and then its argument prototype would still apply. */
  24508. char clock_gettime ();
  24509. int
  24510. main (void)
  24511. {
  24512. return clock_gettime ();
  24513. ;
  24514. return 0;
  24515. }
  24516. _ACEOF
  24517. if ac_fn_c_try_link "$LINENO"
  24518. then :
  24519. ac_cv_lib_rt_clock_gettime=yes
  24520. else $as_nop
  24521. ac_cv_lib_rt_clock_gettime=no
  24522. fi
  24523. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24524. conftest$ac_exeext conftest.$ac_ext
  24525. LIBS=$ac_check_lib_save_LIBS
  24526. fi
  24527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24528. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24529. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24530. then :
  24531. have_clock_gettime=yes
  24532. fi
  24533. if test x$have_clock_gettime = xyes; then
  24534. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24535. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24536. fi
  24537. fi
  24538. fi
  24539. }
  24540. CheckLinuxVersion()
  24541. {
  24542. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24543. if test "x$ac_cv_header_linux_version_h" = xyes
  24544. then :
  24545. have_linux_version_h=yes
  24546. fi
  24547. if test x$have_linux_version_h = xyes; then
  24548. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24549. fi
  24550. }
  24551. CheckRPATH()
  24552. {
  24553. # Check whether --enable-rpath was given.
  24554. if test ${enable_rpath+y}
  24555. then :
  24556. enableval=$enable_rpath;
  24557. else $as_nop
  24558. enable_rpath=yes
  24559. fi
  24560. }
  24561. CheckEventSignals()
  24562. {
  24563. # Check whether --enable-backgrounding-signal was given.
  24564. if test ${enable_backgrounding_signal+y}
  24565. then :
  24566. enableval=$enable_backgrounding_signal;
  24567. else $as_nop
  24568. enable_backgrounding_signal=no
  24569. fi
  24570. if test x$enable_backgrounding_signal != xno; then
  24571. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24572. fi
  24573. # Check whether --enable-foregrounding-signal was given.
  24574. if test ${enable_foregrounding_signal+y}
  24575. then :
  24576. enableval=$enable_foregrounding_signal;
  24577. else $as_nop
  24578. enable_foregrounding_signal=no
  24579. fi
  24580. if test x$enable_foregrounding_signal != xno; then
  24581. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24582. fi
  24583. }
  24584. CheckVirtualJoystick()
  24585. {
  24586. # Check whether --enable-joystick-virtual was given.
  24587. if test ${enable_joystick_virtual+y}
  24588. then :
  24589. enableval=$enable_joystick_virtual;
  24590. else $as_nop
  24591. enable_joystick_virtual=yes
  24592. fi
  24593. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24594. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24595. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24596. have_joystick_virtual=yes
  24597. fi
  24598. }
  24599. CheckWarnAll
  24600. CheckUnusedLocalTypedefs
  24601. CheckNoStrictAliasing
  24602. CheckEventSignals
  24603. have_locale=no
  24604. case "$host" in
  24605. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24606. case "$host" in
  24607. *-*-android*)
  24608. # Android
  24609. ARCH=android
  24610. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24611. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24612. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24613. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24615. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24616. if test x$enable_video = xyes; then
  24617. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24618. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24619. SUMMARY_video="${SUMMARY_video} android"
  24620. have_video=yes
  24621. fi
  24622. ;;
  24623. *-*-linux*) ARCH=linux ;;
  24624. *-*-uclinux*) ARCH=linux ;;
  24625. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24626. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24627. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24628. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24629. *-*-bsdi*) ARCH=bsdi ;;
  24630. *-*-freebsd*) ARCH=freebsd ;;
  24631. *-*-dragonfly*) ARCH=freebsd ;;
  24632. *-*-netbsd*) ARCH=netbsd ;;
  24633. *-*-openbsd*) ARCH=openbsd ;;
  24634. *-*-sysv5*) ARCH=sysv5 ;;
  24635. *-*-solaris*) ARCH=solaris ;;
  24636. *-*-hpux*) ARCH=hpux ;;
  24637. *-*-aix*) ARCH=aix ;;
  24638. *-*-minix*) ARCH=minix ;;
  24639. *-*-nto*) ARCH=nto
  24640. CheckQNXVideo
  24641. ;;
  24642. esac
  24643. CheckVisibilityHidden
  24644. CheckWerror
  24645. CheckDeclarationAfterStatement
  24646. CheckDummyVideo
  24647. CheckOffscreenVideo
  24648. CheckDiskAudio
  24649. CheckDummyAudio
  24650. CheckDLOPEN
  24651. CheckARM
  24652. CheckNEON
  24653. CheckO_CLOEXEC
  24654. CheckOSS
  24655. CheckALSA
  24656. CheckPipewire
  24657. CheckPulseAudio
  24658. CheckJACK
  24659. CheckARTSC
  24660. CheckESD
  24661. CheckNAS
  24662. CheckSNDIO
  24663. CheckFusionSound
  24664. CheckLibSampleRate
  24665. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24666. CheckRPI
  24667. CheckX11
  24668. CheckDirectFB
  24669. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24670. CheckEGL
  24671. CheckKMSDRM
  24672. CheckGLX
  24673. CheckOpenGL
  24674. CheckOpenGLES
  24675. CheckVulkan
  24676. CheckWayland
  24677. CheckInputEvents
  24678. CheckLibUDev
  24679. CheckDBus
  24680. CheckIME
  24681. CheckInotify
  24682. CheckIBus
  24683. CheckFcitx
  24684. case $ARCH in
  24685. linux)
  24686. CheckInputKD
  24687. ;;
  24688. freebsd)
  24689. CheckInputKBIO
  24690. ;;
  24691. openbsd|netbsd)
  24692. CheckInputWSCONS
  24693. ;;
  24694. esac
  24695. CheckUSBHID
  24696. CheckHIDAPI
  24697. CheckPTHREAD
  24698. CheckClockGettime
  24699. CheckLinuxVersion
  24700. CheckRPATH
  24701. CheckVivanteVideo
  24702. # Set up files for the misc library
  24703. if test x$enable_misc = xyes; then
  24704. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24705. have_misc=yes
  24706. fi
  24707. # Set up files for the locale library
  24708. if test x$enable_locale = xyes; then
  24709. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24710. have_locale=yes
  24711. fi
  24712. # Set up files for the audio library
  24713. if test x$enable_audio = xyes; then
  24714. case $ARCH in
  24715. sysv5|solaris|hpux)
  24716. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24717. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24718. SUMMARY_audio="${SUMMARY_audio} sun"
  24719. have_audio=yes
  24720. ;;
  24721. netbsd) # Don't use this on OpenBSD, it's busted.
  24722. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24723. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24724. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24725. have_audio=yes
  24726. ;;
  24727. aix)
  24728. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24729. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24730. SUMMARY_audio="${SUMMARY_audio} paudio"
  24731. have_audio=yes
  24732. ;;
  24733. android)
  24734. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24735. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24736. SUMMARY_audio="${SUMMARY_audio} android"
  24737. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24738. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24739. SUMMARY_audio="${SUMMARY_audio} openslES"
  24740. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24741. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24742. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24743. have_audio=yes
  24744. ;;
  24745. nto)
  24746. CheckQNXAudio
  24747. ;;
  24748. esac
  24749. fi
  24750. # Set up files for the joystick library
  24751. if test x$enable_joystick = xyes; then
  24752. case $ARCH in
  24753. linux)
  24754. if test "x$ac_cv_header_linux_input_h" = xyes; then
  24755. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24756. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24757. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24758. have_joystick=yes
  24759. fi
  24760. ;;
  24761. freebsd)
  24762. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  24763. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24764. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24765. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24766. have_joystick=yes
  24767. fi
  24768. ;;
  24769. android)
  24770. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24771. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24772. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24773. have_joystick=yes
  24774. ;;
  24775. esac
  24776. fi
  24777. # Set up files for the haptic library
  24778. if test x$enable_haptic = xyes; then
  24779. case $ARCH in
  24780. linux|freebsd)
  24781. if test x$use_input_events = xyes; then
  24782. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24783. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24784. have_haptic=yes
  24785. fi
  24786. ;;
  24787. android)
  24788. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24789. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24790. have_haptic=yes
  24791. ;;
  24792. esac
  24793. fi
  24794. # Set up files for the sensor library
  24795. if test x$enable_sensor = xyes; then
  24796. case $ARCH in
  24797. android)
  24798. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24799. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24800. have_sensor=yes
  24801. ;;
  24802. esac
  24803. fi
  24804. # Set up files for the power library
  24805. if test x$enable_power = xyes; then
  24806. case $ARCH in
  24807. linux)
  24808. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24809. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24810. have_power=yes
  24811. ;;
  24812. android)
  24813. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24814. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24815. have_power=yes
  24816. ;;
  24817. esac
  24818. fi
  24819. # Set up files for the filesystem library
  24820. if test x$enable_filesystem = xyes; then
  24821. case $ARCH in
  24822. android)
  24823. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24824. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24825. have_filesystem=yes
  24826. ;;
  24827. *)
  24828. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24829. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24830. have_filesystem=yes
  24831. ;;
  24832. esac
  24833. fi
  24834. # Set up files for the timer library
  24835. if test x$enable_timers = xyes; then
  24836. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24837. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24838. have_timers=yes
  24839. fi
  24840. # Set up files for udev hotplugging support
  24841. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24842. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24843. fi
  24844. # Set up files for evdev input
  24845. if test x$use_input_events = xyes; then
  24846. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24847. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24848. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24849. fi
  24850. # Set up files for wscons input
  24851. if test x$use_input_wscons = xyes; then
  24852. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24853. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24854. fi
  24855. # Set up other core UNIX files
  24856. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24857. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24858. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24859. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24860. ;;
  24861. *-*-cygwin* | *-*-mingw*)
  24862. ARCH=win32
  24863. if test "$build" != "$host"; then # cross-compiling
  24864. # Default cross-compile location
  24865. ac_default_prefix=/usr/local/cross-tools/$host
  24866. else
  24867. # Look for the location of the tools and install there
  24868. if test "$BUILD_PREFIX" != ""; then
  24869. ac_default_prefix=$BUILD_PREFIX
  24870. fi
  24871. fi
  24872. if test x$enable_loadso = xyes; then
  24873. have_loadso=yes
  24874. fi
  24875. CheckGDwarf4
  24876. CheckWerror
  24877. CheckDeclarationAfterStatement
  24878. CheckDummyVideo
  24879. CheckOffscreenVideo
  24880. CheckDiskAudio
  24881. CheckDummyAudio
  24882. CheckWINDOWS
  24883. CheckWINDOWSGL
  24884. CheckWINDOWSGLES
  24885. CheckVulkan
  24886. CheckDIRECTX
  24887. CheckHIDAPI
  24888. # Set up the core platform files
  24889. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24890. # Set up files for the misc library
  24891. if test x$enable_misc = xyes; then
  24892. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24893. have_misc=yes
  24894. fi
  24895. # Use the Windows locale APIs.
  24896. if test x$enable_locale = xyes; then
  24897. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24898. have_locale=yes
  24899. fi
  24900. # Set up files for the video library
  24901. if test x$enable_video = xyes; then
  24902. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24903. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24904. have_video=yes
  24905. # Check whether --enable-render-d3d was given.
  24906. if test ${enable_render_d3d+y}
  24907. then :
  24908. enableval=$enable_render_d3d;
  24909. else $as_nop
  24910. enable_render_d3d=yes
  24911. fi
  24912. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24913. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24914. SUMMARY_video="${SUMMARY_video} d3d9"
  24915. fi
  24916. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24917. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24918. SUMMARY_video="${SUMMARY_video} d3d11"
  24919. fi
  24920. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24921. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24922. SUMMARY_video="${SUMMARY_video} d3d12"
  24923. fi
  24924. fi
  24925. # Set up files for the audio library
  24926. if test x$enable_audio = xyes; then
  24927. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24928. SUMMARY_audio="${SUMMARY_audio} winmm"
  24929. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24930. if test x$have_dsound = xyes; then
  24931. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24932. SUMMARY_audio="${SUMMARY_audio} directsound"
  24933. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24934. fi
  24935. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24936. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24937. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24938. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24939. fi
  24940. have_audio=yes
  24941. fi
  24942. # Set up files for the joystick library
  24943. if test x$enable_joystick = xyes; then
  24944. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24945. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24946. if test x$have_xinput = xyes; then
  24947. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24948. fi
  24949. if test x$have_wgi = xyes; then
  24950. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24951. fi
  24952. if test x$have_dinput = xyes; then
  24953. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24954. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24955. fi
  24956. fi
  24957. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24958. have_joystick=yes
  24959. fi
  24960. if test x$enable_haptic = xyes; then
  24961. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24962. if test x$have_xinput = xyes; then
  24963. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24964. fi
  24965. if test x$have_dinput = xyes; then
  24966. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24967. fi
  24968. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24969. have_haptic=yes
  24970. fi
  24971. fi
  24972. # Set up files for the sensor library
  24973. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24974. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24975. then :
  24976. have_winsensors=yes
  24977. else $as_nop
  24978. have_winsensors=no
  24979. fi
  24980. if test x$have_winsensors = xyes; then
  24981. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24982. fi
  24983. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24984. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24985. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24986. have_sensor=yes
  24987. fi
  24988. # Set up files for the power library
  24989. if test x$enable_power = xyes; then
  24990. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24991. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24992. have_power=yes
  24993. fi
  24994. # Set up files for the filesystem library
  24995. if test x$enable_filesystem = xyes; then
  24996. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24997. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24998. have_filesystem=yes
  24999. fi
  25000. # Set up files for the thread library
  25001. if test x$enable_threads = xyes; then
  25002. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  25003. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  25004. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  25005. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25006. have_threads=yes
  25007. fi
  25008. # Set up files for the timer library
  25009. if test x$enable_timers = xyes; then
  25010. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  25011. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  25012. have_timers=yes
  25013. fi
  25014. # Set up files for the shared object loading library
  25015. if test x$enable_loadso = xyes; then
  25016. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  25017. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  25018. fi
  25019. # Set up the system libraries we need
  25020. if test -f /lib/w32api/libuuid.a; then
  25021. LIBUUID=/lib/w32api/libuuid.a
  25022. else
  25023. LIBUUID=-luuid
  25024. fi
  25025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  25026. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  25027. # The Windows platform requires special setup
  25028. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  25029. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  25030. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  25031. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  25032. # Check to see if this is a mingw or cygwin build
  25033. have_mingw32=
  25034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  25035. printf %s "checking for main in -lmingw32... " >&6; }
  25036. if test ${ac_cv_lib_mingw32_main+y}
  25037. then :
  25038. printf %s "(cached) " >&6
  25039. else $as_nop
  25040. ac_check_lib_save_LIBS=$LIBS
  25041. LIBS="-lmingw32 $LIBS"
  25042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25043. /* end confdefs.h. */
  25044. int
  25045. main (void)
  25046. {
  25047. return main ();
  25048. ;
  25049. return 0;
  25050. }
  25051. _ACEOF
  25052. if ac_fn_c_try_link "$LINENO"
  25053. then :
  25054. ac_cv_lib_mingw32_main=yes
  25055. else $as_nop
  25056. ac_cv_lib_mingw32_main=no
  25057. fi
  25058. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25059. conftest$ac_exeext conftest.$ac_ext
  25060. LIBS=$ac_check_lib_save_LIBS
  25061. fi
  25062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  25063. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  25064. if test "x$ac_cv_lib_mingw32_main" = xyes
  25065. then :
  25066. have_mingw32=yes
  25067. fi
  25068. if test x$have_mingw32 = xyes; then
  25069. SDL_LIBS="-lmingw32 $SDL_LIBS"
  25070. else
  25071. SDL_LIBS="-lcygwin $SDL_LIBS"
  25072. fi
  25073. ;;
  25074. *-*-beos*)
  25075. as_fn_error $? "
  25076. *** BeOS support has been removed as of SDL 2.0.2.
  25077. " "$LINENO" 5
  25078. ;;
  25079. *-*-haiku*)
  25080. ARCH=haiku
  25081. ac_default_prefix=/boot/system
  25082. CheckDummyVideo
  25083. CheckOffscreenVideo
  25084. CheckDiskAudio
  25085. CheckDummyAudio
  25086. CheckDLOPEN
  25087. CheckO_CLOEXEC
  25088. CheckHaikuVideo
  25089. CheckHaikuGL
  25090. CheckPTHREAD
  25091. # Set up files for the audio library
  25092. if test x$enable_audio = xyes; then
  25093. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  25094. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  25095. SUMMARY_audio="${SUMMARY_audio} haiku"
  25096. have_audio=yes
  25097. fi
  25098. # Set up files for the joystick library
  25099. if test x$enable_joystick = xyes; then
  25100. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  25101. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  25102. have_joystick=yes
  25103. fi
  25104. # Set up files for the timer library
  25105. if test x$enable_timers = xyes; then
  25106. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  25107. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  25108. have_timers=yes
  25109. fi
  25110. # Set up files for the system power library
  25111. if test x$enable_power = xyes; then
  25112. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  25113. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  25114. have_power=yes
  25115. fi
  25116. # Set up files for the system filesystem library
  25117. if test x$enable_filesystem = xyes; then
  25118. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  25119. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  25120. have_filesystem=yes
  25121. fi
  25122. # Set up files for the misc library
  25123. if test x$enable_misc = xyes; then
  25124. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  25125. have_misc=yes
  25126. fi
  25127. # Set up files for the locale library
  25128. if test x$enable_locale = xyes; then
  25129. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  25130. have_locale=yes
  25131. fi
  25132. # The Haiku platform requires special setup.
  25133. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  25134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  25135. ;;
  25136. *-ios-*)
  25137. ARCH=ios
  25138. CheckVisibilityHidden
  25139. CheckWerror
  25140. CheckNoErrorDeprecatedDeclarationsWerror
  25141. CheckDeclarationAfterStatement
  25142. CheckDummyVideo
  25143. CheckOffscreenVideo
  25144. CheckDiskAudio
  25145. CheckDummyAudio
  25146. CheckDLOPEN
  25147. CheckO_CLOEXEC
  25148. CheckMETAL
  25149. CheckVulkan
  25150. CheckPTHREAD
  25151. # Set up files for the misc library
  25152. if test x$enable_misc = xyes; then
  25153. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  25154. have_misc=yes
  25155. fi
  25156. # Set up files for the locale library
  25157. if test x$enable_locale = xyes; then
  25158. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25159. have_locale=yes
  25160. fi
  25161. # Set up files for the audio library
  25162. if test x$enable_audio = xyes; then
  25163. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25164. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25165. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25166. have_audio=yes
  25167. fi
  25168. # Set up files for the joystick library
  25169. if test x$enable_joystick = xyes; then
  25170. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25171. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25172. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25173. have_joystick=yes
  25174. else
  25175. # Need this code for accelerometer as joystick support
  25176. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25177. fi
  25178. # Set up files for the haptic library
  25179. #if test x$enable_haptic = xyes; then
  25180. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25181. # have_haptic=yes
  25182. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25183. #fi
  25184. # Set up files for the sensor library
  25185. if test x$enable_sensor = xyes; then
  25186. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25187. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25188. have_sensor=yes
  25189. fi
  25190. # Set up files for the power library
  25191. if test x$enable_power = xyes; then
  25192. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25193. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25194. have_power=yes
  25195. fi
  25196. # Set up files for the filesystem library
  25197. if test x$enable_filesystem = xyes; then
  25198. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25199. have_filesystem=yes
  25200. fi
  25201. # Set up additional files for the file library
  25202. if test x$enable_file = xyes; then
  25203. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25204. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25205. fi
  25206. # Set up files for the timer library
  25207. if test x$enable_timers = xyes; then
  25208. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25209. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25210. have_timers=yes
  25211. fi
  25212. # Set up other core UNIX files
  25213. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25214. # The iOS platform requires special setup.
  25215. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25216. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25217. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25218. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25219. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25220. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25221. SUMMARY_video="${SUMMARY_video} uikit"
  25222. have_video=yes
  25223. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25224. if test x$enable_system_iconv = xyes; then
  25225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25226. fi
  25227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25230. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25232. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25233. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25234. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25235. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25238. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25240. fi
  25241. ;;
  25242. *-*-darwin* )
  25243. # This could be either full "Mac OS X", or plain "Darwin" which is
  25244. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25245. # Next line is broken, and a few files below require Mac OS X (full)
  25246. ARCH=macosx
  25247. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25248. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25249. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25250. CheckObjectiveCARC
  25251. CheckVisibilityHidden
  25252. CheckWerror
  25253. CheckNoErrorDeprecatedDeclarationsWerror
  25254. CheckDeclarationAfterStatement
  25255. CheckDummyVideo
  25256. CheckOffscreenVideo
  25257. CheckDiskAudio
  25258. CheckDummyAudio
  25259. CheckDLOPEN
  25260. CheckO_CLOEXEC
  25261. CheckCOCOA
  25262. CheckMETAL
  25263. CheckX11
  25264. CheckMacGL
  25265. CheckMacGLES
  25266. CheckGLX
  25267. CheckOpenGL
  25268. CheckVulkan
  25269. CheckPTHREAD
  25270. CheckHIDAPI
  25271. # Set up files for the misc library
  25272. if test x$enable_misc = xyes; then
  25273. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25274. have_misc=yes
  25275. fi
  25276. # Set up files for the locale library
  25277. if test x$enable_locale = xyes; then
  25278. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25279. have_locale=yes
  25280. fi
  25281. # Set up files for the audio library
  25282. if test x$enable_audio = xyes; then
  25283. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25284. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25285. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25286. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25287. have_audio=yes
  25288. fi
  25289. # Set up files for the joystick library
  25290. if test x$enable_joystick = xyes; then
  25291. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25293. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25294. CheckJoystickMFI
  25295. have_joystick=yes
  25296. fi
  25297. # Set up files for the haptic library
  25298. if test x$enable_haptic = xyes; then
  25299. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25300. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25301. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25302. have_haptic=yes
  25303. fi
  25304. # Set up files for the power library
  25305. if test x$enable_power = xyes; then
  25306. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25307. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25308. have_power=yes
  25309. fi
  25310. # Set up files for the filesystem library
  25311. if test x$enable_filesystem = xyes; then
  25312. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25313. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25314. have_filesystem=yes
  25315. fi
  25316. # Set up files for the timer library
  25317. if test x$enable_timers = xyes; then
  25318. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25319. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25320. have_timers=yes
  25321. fi
  25322. # Set up additional files for the file library
  25323. if test x$enable_file = xyes; then
  25324. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25325. fi
  25326. # Set up other core UNIX files
  25327. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25328. # The Mac OS X platform requires special setup.
  25329. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25330. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25332. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25334. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25336. fi
  25337. ;;
  25338. *-nacl|*-pnacl)
  25339. ARCH=nacl
  25340. CheckNativeClient
  25341. CheckDummyAudio
  25342. CheckDummyVideo
  25343. CheckOffscreenVideo
  25344. CheckInputEvents
  25345. CheckPTHREAD
  25346. CheckO_CLOEXEC
  25347. # Set up files for the timer library
  25348. if test x$enable_timers = xyes; then
  25349. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25350. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25351. have_timers=yes
  25352. fi
  25353. if test x$enable_filesystem = xyes; then
  25354. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25355. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25356. have_filesystem=yes
  25357. fi
  25358. ;;
  25359. *-*-emscripten* )
  25360. if test x$enable_video = xyes; then
  25361. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25362. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25363. have_video=yes
  25364. SUMMARY_video="${SUMMARY_video} emscripten"
  25365. fi
  25366. if test x$enable_audio = xyes; then
  25367. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25368. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25369. have_audio=yes
  25370. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25371. fi
  25372. CheckVisibilityHidden
  25373. CheckWerror
  25374. CheckDeclarationAfterStatement
  25375. CheckDummyVideo
  25376. CheckOffscreenVideo
  25377. CheckDiskAudio
  25378. CheckDummyAudio
  25379. CheckPTHREAD
  25380. CheckDLOPEN
  25381. CheckClockGettime
  25382. CheckEmscriptenGLES
  25383. # Set up files for the misc library
  25384. if test x$enable_misc = xyes; then
  25385. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25386. have_misc=yes
  25387. fi
  25388. # Set up files for the power library
  25389. if test x$enable_power = xyes; then
  25390. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25391. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25392. have_power=yes
  25393. fi
  25394. # Set up files for the joystick library
  25395. if test x$enable_joystick = xyes; then
  25396. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25397. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25398. have_joystick=yes
  25399. fi
  25400. # Set up files for the filesystem library
  25401. if test x$enable_filesystem = xyes; then
  25402. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25403. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25404. have_filesystem=yes
  25405. fi
  25406. # Set up files for the timer library
  25407. if test x$enable_timers = xyes; then
  25408. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25409. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25410. have_timers=yes
  25411. fi
  25412. # Set up files for the locale library
  25413. if test x$enable_locale = xyes; then
  25414. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25415. have_locale=yes
  25416. fi
  25417. ;;
  25418. *-*-riscos*)
  25419. ARCH=riscos
  25420. CheckVisibilityHidden
  25421. CheckWerror
  25422. CheckDeclarationAfterStatement
  25423. CheckDummyVideo
  25424. CheckOffscreenVideo
  25425. CheckDiskAudio
  25426. CheckDummyAudio
  25427. CheckDLOPEN
  25428. CheckO_CLOEXEC
  25429. CheckOSS
  25430. CheckPTHREAD
  25431. CheckClockGettime
  25432. # Set up files for the misc library
  25433. if test x$enable_misc = xyes; then
  25434. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25435. have_misc=yes
  25436. fi
  25437. # Set up files for the video library
  25438. if test x$enable_video = xyes; then
  25439. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25440. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25441. have_video=yes
  25442. SUMMARY_video="${SUMMARY_video} riscos"
  25443. fi
  25444. # Set up files for the filesystem library
  25445. if test x$enable_filesystem = xyes; then
  25446. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25447. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25448. have_filesystem=yes
  25449. fi
  25450. # Set up files for the timer library
  25451. if test x$enable_timers = xyes; then
  25452. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25453. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25454. have_timers=yes
  25455. fi
  25456. ;;
  25457. *-*-os2*)
  25458. ARCH=os2
  25459. if test "$build" != "$host"; then # cross-compiling
  25460. # Default cross-compile location
  25461. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25462. else
  25463. # Look for the location of the tools and install there
  25464. if test "$BUILD_PREFIX" != ""; then
  25465. ac_default_prefix=$BUILD_PREFIX
  25466. fi
  25467. fi
  25468. enable_static=no # disable static builds
  25469. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25470. CheckOS2
  25471. CheckWerror
  25472. CheckDeclarationAfterStatement
  25473. CheckDummyVideo
  25474. CheckDiskAudio
  25475. CheckDummyAudio
  25476. CheckHIDAPI
  25477. # Set up the core platform files
  25478. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25479. if test x$enable_system_iconv = xyes; then
  25480. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25481. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25482. fi
  25483. fi
  25484. # Use the Unix locale APIs.
  25485. if test x$enable_locale = xyes; then
  25486. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25487. have_locale=yes
  25488. fi
  25489. # Set up files for the video library
  25490. if test x$enable_video = xyes; then
  25491. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25492. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25493. have_video=yes
  25494. SUMMARY_video="${SUMMARY_video} OS/2"
  25495. fi
  25496. # Set up files for the audio library
  25497. if test x$enable_audio = xyes; then
  25498. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25499. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25500. have_audio=yes
  25501. SUMMARY_audio="${SUMMARY_audio} OS/2"
  25502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25503. fi
  25504. # Set up files for the thread library
  25505. if test x$enable_threads = xyes; then
  25506. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25507. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25508. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25509. have_threads=yes
  25510. fi
  25511. # Set up files for the timer library
  25512. if test x$enable_timers = xyes; then
  25513. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25514. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25515. have_timers=yes
  25516. fi
  25517. # Set up files for the shared object loading library
  25518. if test x$enable_loadso = xyes; then
  25519. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25520. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25521. have_loadso=yes
  25522. fi
  25523. # Set up files for the filesystem library
  25524. if test x$enable_filesystem = xyes; then
  25525. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25526. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25527. have_filesystem=yes
  25528. fi
  25529. # Set up files for the joystick library
  25530. if test x$enable_joystick = xyes; then
  25531. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25532. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25533. have_joystick=yes
  25534. fi
  25535. ;;
  25536. *)
  25537. as_fn_error $? "
  25538. *** Unsupported host: Please add to configure.ac
  25539. " "$LINENO" 5
  25540. ;;
  25541. esac
  25542. CheckVirtualJoystick
  25543. # Check whether to install sdl2-config
  25544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25545. printf %s "checking whether to install sdl2-config... " >&6; }
  25546. # Check whether --enable-sdl2-config was given.
  25547. if test ${enable_sdl2_config+y}
  25548. then :
  25549. enableval=$enable_sdl2_config; case "${enableval}" in
  25550. yes) enable_sdl2_config="TRUE" ;;
  25551. no) enable_sdl2_config="FALSE" ;;
  25552. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25553. esac
  25554. else $as_nop
  25555. enable_sdl2_config="TRUE"
  25556. fi
  25557. if test "$enable_sdl2_config" = "TRUE"; then
  25558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25559. printf "%s\n" "yes" >&6; }
  25560. else
  25561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25562. printf "%s\n" "no" >&6; }
  25563. fi
  25564. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25565. # Check whether --enable-vendor-info was given.
  25566. if test ${enable_vendor_info+y}
  25567. then :
  25568. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  25569. else $as_nop
  25570. enable_vendor_info=
  25571. fi
  25572. if test "$enable_vendor_info" = no
  25573. then :
  25574. enable_vendor_info=
  25575. fi
  25576. SDL_VENDOR_INFO=$enable_vendor_info
  25577. # Verify that we have all the platform specific files we need
  25578. if test x$have_audio != xyes; then
  25579. if test x$enable_audio = xyes; then
  25580. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25581. fi
  25582. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25583. fi
  25584. if test x$have_video != xyes; then
  25585. if test x$enable_video = xyes; then
  25586. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25587. fi
  25588. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25589. fi
  25590. if test x$have_misc != xyes; then
  25591. if test x$enable_misc = xyes; then
  25592. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25593. fi
  25594. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25595. fi
  25596. if test x$have_locale != xyes; then
  25597. if test x$enable_locale = xyes; then
  25598. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25599. fi
  25600. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25601. fi
  25602. if test x$have_joystick != xyes; then
  25603. if test x$enable_joystick = xyes; then
  25604. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25605. fi
  25606. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25607. fi
  25608. if test x$have_haptic != xyes; then
  25609. if test x$enable_haptic = xyes; then
  25610. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25611. fi
  25612. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25613. fi
  25614. if test x$have_sensor != xyes; then
  25615. if test x$enable_sensor = xyes; then
  25616. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25617. fi
  25618. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25619. fi
  25620. if test x$have_threads != xyes; then
  25621. if test x$enable_threads = xyes; then
  25622. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25623. fi
  25624. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25625. fi
  25626. if test x$have_timers != xyes; then
  25627. if test x$enable_timers = xyes; then
  25628. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25629. fi
  25630. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25631. fi
  25632. if test x$have_filesystem != xyes; then
  25633. if test x$enable_filesystem = xyes; then
  25634. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25635. fi
  25636. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25637. fi
  25638. if test x$have_loadso != xyes; then
  25639. if test x$enable_loadso = xyes; then
  25640. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25641. fi
  25642. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25643. fi
  25644. if test x$SDLMAIN_SOURCES = x; then
  25645. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25646. fi
  25647. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25648. if test x$video_wayland = xyes; then
  25649. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25650. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25651. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25652. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25653. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25654. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25655. echo ;\
  25656. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25657. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25658. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25659. echo ;\
  25660. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25661. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25662. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25663. echo ;\
  25664. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25665. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25666. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25667. done ;\
  25668. echo ;\
  25669. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25670. fi
  25671. OBJECTS=`echo $SOURCES`
  25672. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25673. for EXT in asm cc m c S; do
  25674. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25675. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25676. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25677. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25678. done
  25679. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25680. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25681. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25682. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25683. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25684. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25685. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25686. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25687. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25688. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25689. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25690. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25691. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25692. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25693. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25694. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25695. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25696. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25697. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25698. # Set runtime shared library paths as needed
  25699. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25700. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25701. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25703. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25704. have_enable_new_dtags=no
  25705. save_LDFLAGS="$LDFLAGS"
  25706. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25708. /* end confdefs.h. */
  25709. int
  25710. main (void)
  25711. {
  25712. ;
  25713. return 0;
  25714. }
  25715. _ACEOF
  25716. if ac_fn_c_try_link "$LINENO"
  25717. then :
  25718. have_enable_new_dtags=yes
  25719. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25720. fi
  25721. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25722. conftest$ac_exeext conftest.$ac_ext
  25723. LDFLAGS="$save_LDFLAGS"
  25724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25725. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25726. fi
  25727. if test $ARCH = solaris; then
  25728. SDL_RLD_FLAGS="-R\${libdir}"
  25729. fi
  25730. else
  25731. SDL_RLD_FLAGS=""
  25732. fi
  25733. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25734. pkg_cmakedir='$libdir/cmake/SDL2'
  25735. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25736. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25737. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25738. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25739. _lcl_receval="$_lcl_from"
  25740. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25741. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25742. _lcl_receval_old=''
  25743. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25744. _lcl_receval_old="$_lcl_receval"
  25745. eval _lcl_receval="\"$_lcl_receval\""
  25746. done
  25747. echo "$_lcl_receval")`
  25748. _lcl_receval="$_lcl_to"
  25749. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25750. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25751. _lcl_receval_old=''
  25752. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25753. _lcl_receval_old="$_lcl_receval"
  25754. eval _lcl_receval="\"$_lcl_receval\""
  25755. done
  25756. echo "$_lcl_receval")`
  25757. _lcl_notation="$_lcl_from$_lcl_to"
  25758. case ":$_lcl_from:" in
  25759. # change empty paths to '.'
  25760. ::) _lcl_from='.' ;;
  25761. # strip trailing slashes
  25762. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25763. :*:) ;;
  25764. esac
  25765. # squeeze repeated slashes
  25766. case '/' in
  25767. # if the path contains any backslashes, turn slashes into backslashes
  25768. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25769. # if the path contains slashes, also turn backslashes into slashes
  25770. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25771. esac
  25772. case ":$_lcl_to:" in
  25773. # change empty paths to '.'
  25774. ::) _lcl_to='.' ;;
  25775. # strip trailing slashes
  25776. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25777. :*:) ;;
  25778. esac
  25779. # squeeze repeated slashes
  25780. case '/' in
  25781. # if the path contains any backslashes, turn slashes into backslashes
  25782. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25783. # if the path contains slashes, also turn backslashes into slashes
  25784. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25785. esac
  25786. _lcl_common_prefix=''
  25787. _lcl_second_prefix_match=''
  25788. while test "$_lcl_second_prefix_match" != 0; do
  25789. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25790. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25791. if test "$_lcl_second_prefix_match" != 0; then
  25792. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25793. _lcl_common_prefix="$_lcl_first_prefix"
  25794. else
  25795. _lcl_second_prefix_match=0
  25796. fi
  25797. fi
  25798. done
  25799. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25800. _lcl_first_rel=''
  25801. _lcl_tmp='xxx'
  25802. while test "$_lcl_tmp" != ''; do
  25803. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25804. if test "$_lcl_first_suffix" != ''; then
  25805. _lcl_first_suffix="$_lcl_tmp"
  25806. _lcl_first_rel="../$_lcl_first_rel"
  25807. fi
  25808. done
  25809. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25810. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25811. case ":$_lcl_result_tmp:" in
  25812. # change empty paths to '.'
  25813. ::) _lcl_result_tmp='.' ;;
  25814. # strip trailing slashes
  25815. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25816. :*:) ;;
  25817. esac
  25818. # squeeze repeated slashes
  25819. case "$_lcl_notation" in
  25820. # if the path contains any backslashes, turn slashes into backslashes
  25821. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25822. # if the path contains slashes, also turn backslashes into slashes
  25823. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25824. esac
  25825. eval $_lcl_result_var='$_lcl_result_tmp'
  25826. done
  25827. PKGCONFIG_DEPENDS=""
  25828. if test x$enable_shared = xyes; then
  25829. PKGCONFIG_LIBS_PRIV="
  25830. Libs.private:"
  25831. ENABLE_SHARED_TRUE=
  25832. ENABLE_SHARED_FALSE="#"
  25833. else
  25834. PKGCONFIG_LIBS_PRIV=
  25835. ENABLE_SHARED_TRUE="#"
  25836. ENABLE_SHARED_FALSE=
  25837. fi
  25838. if test x$enable_static = xyes; then
  25839. ENABLE_STATIC_TRUE=
  25840. ENABLE_STATIC_FALSE="#"
  25841. else
  25842. ENABLE_STATIC_TRUE="#"
  25843. ENABLE_STATIC_FALSE=
  25844. fi
  25845. cat >Makefile.rules <<__EOF__
  25846. # Build rules for objects
  25847. -include \$(OBJECTS:.lo=.d)
  25848. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25849. $srcdir/src/SDL.c: update-revision
  25850. $DEPENDS
  25851. $VERSION_DEPENDS
  25852. $SDLMAIN_DEPENDS
  25853. $SDLTEST_DEPENDS
  25854. $WAYLAND_PROTOCOLS_DEPENDS
  25855. __EOF__
  25856. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25857. ac_config_commands="$ac_config_commands sdl2_config"
  25858. SUMMARY="SDL2 Configure Summary:\n"
  25859. if test x$enable_shared = xyes; then
  25860. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25861. fi
  25862. if test x$enable_static = xyes; then
  25863. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25864. fi
  25865. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25866. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25867. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25868. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25869. if test x$have_x = xyes; then
  25870. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25871. fi
  25872. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25873. if test x$have_joystick_virtual = xyes; then
  25874. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25875. else
  25876. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25877. fi
  25878. if test x$have_samplerate_h_hdr = xyes; then
  25879. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25880. else
  25881. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25882. fi
  25883. if test x$have_libudev_h_hdr = xyes; then
  25884. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25885. else
  25886. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25887. fi
  25888. if test x$have_dbus_dbus_h_hdr = xyes; then
  25889. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25890. else
  25891. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25892. fi
  25893. if test x$enable_ime = xyes; then
  25894. SUMMARY="${SUMMARY}Using ime : YES\n"
  25895. else
  25896. SUMMARY="${SUMMARY}Using ime : NO\n"
  25897. fi
  25898. if test x$have_ibus_ibus_h_hdr = xyes; then
  25899. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25900. else
  25901. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25902. fi
  25903. if test x$have_fcitx = xyes; then
  25904. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25905. else
  25906. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25907. fi
  25908. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25909. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25910. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25911. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25912. SUMMARY="${SUMMARY}configure script with:\n"
  25913. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25914. fi
  25915. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25916. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25917. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25918. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25919. SUMMARY="${SUMMARY}configure script with:\n"
  25920. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25921. fi
  25922. ac_config_commands="$ac_config_commands summary"
  25923. cat >confcache <<\_ACEOF
  25924. # This file is a shell script that caches the results of configure
  25925. # tests run on this system so they can be shared between configure
  25926. # scripts and configure runs, see configure's option --config-cache.
  25927. # It is not useful on other systems. If it contains results you don't
  25928. # want to keep, you may remove or edit it.
  25929. #
  25930. # config.status only pays attention to the cache file if you give it
  25931. # the --recheck option to rerun configure.
  25932. #
  25933. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25934. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25935. # following values.
  25936. _ACEOF
  25937. # The following way of writing the cache mishandles newlines in values,
  25938. # but we know of no workaround that is simple, portable, and efficient.
  25939. # So, we kill variables containing newlines.
  25940. # Ultrix sh set writes to stderr and can't be redirected directly,
  25941. # and sets the high bit in the cache file unless we assign to the vars.
  25942. (
  25943. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25944. eval ac_val=\$$ac_var
  25945. case $ac_val in #(
  25946. *${as_nl}*)
  25947. case $ac_var in #(
  25948. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25949. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25950. esac
  25951. case $ac_var in #(
  25952. _ | IFS | as_nl) ;; #(
  25953. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25954. *) { eval $ac_var=; unset $ac_var;} ;;
  25955. esac ;;
  25956. esac
  25957. done
  25958. (set) 2>&1 |
  25959. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25960. *${as_nl}ac_space=\ *)
  25961. # `set' does not quote correctly, so add quotes: double-quote
  25962. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25963. sed -n \
  25964. "s/'/'\\\\''/g;
  25965. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25966. ;; #(
  25967. *)
  25968. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25969. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25970. ;;
  25971. esac |
  25972. sort
  25973. ) |
  25974. sed '
  25975. /^ac_cv_env_/b end
  25976. t clear
  25977. :clear
  25978. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25979. t end
  25980. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25981. :end' >>confcache
  25982. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25983. if test -w "$cache_file"; then
  25984. if test "x$cache_file" != "x/dev/null"; then
  25985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25986. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25987. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25988. cat confcache >"$cache_file"
  25989. else
  25990. case $cache_file in #(
  25991. */* | ?:*)
  25992. mv -f confcache "$cache_file"$$ &&
  25993. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25994. *)
  25995. mv -f confcache "$cache_file" ;;
  25996. esac
  25997. fi
  25998. fi
  25999. else
  26000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26001. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  26002. fi
  26003. fi
  26004. rm -f confcache
  26005. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26006. # Let make expand exec_prefix.
  26007. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26008. DEFS=-DHAVE_CONFIG_H
  26009. ac_libobjs=
  26010. ac_ltlibobjs=
  26011. U=
  26012. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26013. # 1. Remove the extension, and $U if already installed.
  26014. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26015. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  26016. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  26017. # will be set to the directory where LIBOBJS objects are built.
  26018. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26019. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26020. done
  26021. LIBOBJS=$ac_libobjs
  26022. LTLIBOBJS=$ac_ltlibobjs
  26023. : "${CONFIG_STATUS=./config.status}"
  26024. ac_write_fail=0
  26025. ac_clean_files_save=$ac_clean_files
  26026. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26028. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  26029. as_write_fail=0
  26030. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26031. #! $SHELL
  26032. # Generated by $as_me.
  26033. # Run this file to recreate the current configuration.
  26034. # Compiler output produced by configure, useful for debugging
  26035. # configure, is in config.log if it exists.
  26036. debug=false
  26037. ac_cs_recheck=false
  26038. ac_cs_silent=false
  26039. SHELL=\${CONFIG_SHELL-$SHELL}
  26040. export SHELL
  26041. _ASEOF
  26042. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26043. ## -------------------- ##
  26044. ## M4sh Initialization. ##
  26045. ## -------------------- ##
  26046. # Be more Bourne compatible
  26047. DUALCASE=1; export DUALCASE # for MKS sh
  26048. as_nop=:
  26049. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  26050. then :
  26051. emulate sh
  26052. NULLCMD=:
  26053. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26054. # is contrary to our usage. Disable this feature.
  26055. alias -g '${1+"$@"}'='"$@"'
  26056. setopt NO_GLOB_SUBST
  26057. else $as_nop
  26058. case `(set -o) 2>/dev/null` in #(
  26059. *posix*) :
  26060. set -o posix ;; #(
  26061. *) :
  26062. ;;
  26063. esac
  26064. fi
  26065. # Reset variables that may have inherited troublesome values from
  26066. # the environment.
  26067. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  26068. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  26069. # side effect of setting IFS to empty, thus disabling word splitting.)
  26070. # Quoting is to prevent editors from complaining about space-tab.
  26071. as_nl='
  26072. '
  26073. export as_nl
  26074. IFS=" "" $as_nl"
  26075. PS1='$ '
  26076. PS2='> '
  26077. PS4='+ '
  26078. # Ensure predictable behavior from utilities with locale-dependent output.
  26079. LC_ALL=C
  26080. export LC_ALL
  26081. LANGUAGE=C
  26082. export LANGUAGE
  26083. # We cannot yet rely on "unset" to work, but we need these variables
  26084. # to be unset--not just set to an empty or harmless value--now, to
  26085. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  26086. # also avoids known problems related to "unset" and subshell syntax
  26087. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  26088. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  26089. do eval test \${$as_var+y} \
  26090. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  26091. done
  26092. # Ensure that fds 0, 1, and 2 are open.
  26093. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  26094. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  26095. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  26096. # The user is always right.
  26097. if ${PATH_SEPARATOR+false} :; then
  26098. PATH_SEPARATOR=:
  26099. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26100. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26101. PATH_SEPARATOR=';'
  26102. }
  26103. fi
  26104. # Find who we are. Look in the path if we contain no directory separator.
  26105. as_myself=
  26106. case $0 in #((
  26107. *[\\/]* ) as_myself=$0 ;;
  26108. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26109. for as_dir in $PATH
  26110. do
  26111. IFS=$as_save_IFS
  26112. case $as_dir in #(((
  26113. '') as_dir=./ ;;
  26114. */) ;;
  26115. *) as_dir=$as_dir/ ;;
  26116. esac
  26117. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  26118. done
  26119. IFS=$as_save_IFS
  26120. ;;
  26121. esac
  26122. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26123. # in which case we are not to be found in the path.
  26124. if test "x$as_myself" = x; then
  26125. as_myself=$0
  26126. fi
  26127. if test ! -f "$as_myself"; then
  26128. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26129. exit 1
  26130. fi
  26131. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  26132. # ----------------------------------------
  26133. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  26134. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  26135. # script with STATUS, using 1 if that was 0.
  26136. as_fn_error ()
  26137. {
  26138. as_status=$1; test $as_status -eq 0 && as_status=1
  26139. if test "$4"; then
  26140. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  26141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  26142. fi
  26143. printf "%s\n" "$as_me: error: $2" >&2
  26144. as_fn_exit $as_status
  26145. } # as_fn_error
  26146. # as_fn_set_status STATUS
  26147. # -----------------------
  26148. # Set $? to STATUS, without forking.
  26149. as_fn_set_status ()
  26150. {
  26151. return $1
  26152. } # as_fn_set_status
  26153. # as_fn_exit STATUS
  26154. # -----------------
  26155. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  26156. as_fn_exit ()
  26157. {
  26158. set +e
  26159. as_fn_set_status $1
  26160. exit $1
  26161. } # as_fn_exit
  26162. # as_fn_unset VAR
  26163. # ---------------
  26164. # Portably unset VAR.
  26165. as_fn_unset ()
  26166. {
  26167. { eval $1=; unset $1;}
  26168. }
  26169. as_unset=as_fn_unset
  26170. # as_fn_append VAR VALUE
  26171. # ----------------------
  26172. # Append the text in VALUE to the end of the definition contained in VAR. Take
  26173. # advantage of any shell optimizations that allow amortized linear growth over
  26174. # repeated appends, instead of the typical quadratic growth present in naive
  26175. # implementations.
  26176. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26177. then :
  26178. eval 'as_fn_append ()
  26179. {
  26180. eval $1+=\$2
  26181. }'
  26182. else $as_nop
  26183. as_fn_append ()
  26184. {
  26185. eval $1=\$$1\$2
  26186. }
  26187. fi # as_fn_append
  26188. # as_fn_arith ARG...
  26189. # ------------------
  26190. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26191. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26192. # must be portable across $(()) and expr.
  26193. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26194. then :
  26195. eval 'as_fn_arith ()
  26196. {
  26197. as_val=$(( $* ))
  26198. }'
  26199. else $as_nop
  26200. as_fn_arith ()
  26201. {
  26202. as_val=`expr "$@" || test $? -eq 1`
  26203. }
  26204. fi # as_fn_arith
  26205. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26206. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26207. as_expr=expr
  26208. else
  26209. as_expr=false
  26210. fi
  26211. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26212. as_basename=basename
  26213. else
  26214. as_basename=false
  26215. fi
  26216. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26217. as_dirname=dirname
  26218. else
  26219. as_dirname=false
  26220. fi
  26221. as_me=`$as_basename -- "$0" ||
  26222. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26223. X"$0" : 'X\(//\)$' \| \
  26224. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26225. printf "%s\n" X/"$0" |
  26226. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26227. s//\1/
  26228. q
  26229. }
  26230. /^X\/\(\/\/\)$/{
  26231. s//\1/
  26232. q
  26233. }
  26234. /^X\/\(\/\).*/{
  26235. s//\1/
  26236. q
  26237. }
  26238. s/.*/./; q'`
  26239. # Avoid depending upon Character Ranges.
  26240. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26241. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26242. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26243. as_cr_digits='0123456789'
  26244. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26245. # Determine whether it's possible to make 'echo' print without a newline.
  26246. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26247. # for compatibility with existing Makefiles.
  26248. ECHO_C= ECHO_N= ECHO_T=
  26249. case `echo -n x` in #(((((
  26250. -n*)
  26251. case `echo 'xy\c'` in
  26252. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26253. xy) ECHO_C='\c';;
  26254. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26255. ECHO_T=' ';;
  26256. esac;;
  26257. *)
  26258. ECHO_N='-n';;
  26259. esac
  26260. # For backward compatibility with old third-party macros, we provide
  26261. # the shell variables $as_echo and $as_echo_n. New code should use
  26262. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26263. as_echo='printf %s\n'
  26264. as_echo_n='printf %s'
  26265. rm -f conf$$ conf$$.exe conf$$.file
  26266. if test -d conf$$.dir; then
  26267. rm -f conf$$.dir/conf$$.file
  26268. else
  26269. rm -f conf$$.dir
  26270. mkdir conf$$.dir 2>/dev/null
  26271. fi
  26272. if (echo >conf$$.file) 2>/dev/null; then
  26273. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26274. as_ln_s='ln -s'
  26275. # ... but there are two gotchas:
  26276. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26277. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26278. # In both cases, we have to default to `cp -pR'.
  26279. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26280. as_ln_s='cp -pR'
  26281. elif ln conf$$.file conf$$ 2>/dev/null; then
  26282. as_ln_s=ln
  26283. else
  26284. as_ln_s='cp -pR'
  26285. fi
  26286. else
  26287. as_ln_s='cp -pR'
  26288. fi
  26289. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26290. rmdir conf$$.dir 2>/dev/null
  26291. # as_fn_mkdir_p
  26292. # -------------
  26293. # Create "$as_dir" as a directory, including parents if necessary.
  26294. as_fn_mkdir_p ()
  26295. {
  26296. case $as_dir in #(
  26297. -*) as_dir=./$as_dir;;
  26298. esac
  26299. test -d "$as_dir" || eval $as_mkdir_p || {
  26300. as_dirs=
  26301. while :; do
  26302. case $as_dir in #(
  26303. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26304. *) as_qdir=$as_dir;;
  26305. esac
  26306. as_dirs="'$as_qdir' $as_dirs"
  26307. as_dir=`$as_dirname -- "$as_dir" ||
  26308. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26309. X"$as_dir" : 'X\(//\)[^/]' \| \
  26310. X"$as_dir" : 'X\(//\)$' \| \
  26311. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26312. printf "%s\n" X"$as_dir" |
  26313. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26314. s//\1/
  26315. q
  26316. }
  26317. /^X\(\/\/\)[^/].*/{
  26318. s//\1/
  26319. q
  26320. }
  26321. /^X\(\/\/\)$/{
  26322. s//\1/
  26323. q
  26324. }
  26325. /^X\(\/\).*/{
  26326. s//\1/
  26327. q
  26328. }
  26329. s/.*/./; q'`
  26330. test -d "$as_dir" && break
  26331. done
  26332. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26333. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26334. } # as_fn_mkdir_p
  26335. if mkdir -p . 2>/dev/null; then
  26336. as_mkdir_p='mkdir -p "$as_dir"'
  26337. else
  26338. test -d ./-p && rmdir ./-p
  26339. as_mkdir_p=false
  26340. fi
  26341. # as_fn_executable_p FILE
  26342. # -----------------------
  26343. # Test if FILE is an executable regular file.
  26344. as_fn_executable_p ()
  26345. {
  26346. test -f "$1" && test -x "$1"
  26347. } # as_fn_executable_p
  26348. as_test_x='test -x'
  26349. as_executable_p=as_fn_executable_p
  26350. # Sed expression to map a string onto a valid CPP name.
  26351. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26352. # Sed expression to map a string onto a valid variable name.
  26353. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26354. exec 6>&1
  26355. ## ----------------------------------- ##
  26356. ## Main body of $CONFIG_STATUS script. ##
  26357. ## ----------------------------------- ##
  26358. _ASEOF
  26359. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26361. # Save the log message, to keep $0 and so on meaningful, and to
  26362. # report actual input values of CONFIG_FILES etc. instead of their
  26363. # values after options handling.
  26364. ac_log="
  26365. This file was extended by $as_me, which was
  26366. generated by GNU Autoconf 2.71. Invocation command line was
  26367. CONFIG_FILES = $CONFIG_FILES
  26368. CONFIG_HEADERS = $CONFIG_HEADERS
  26369. CONFIG_LINKS = $CONFIG_LINKS
  26370. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26371. $ $0 $@
  26372. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26373. "
  26374. _ACEOF
  26375. case $ac_config_files in *"
  26376. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26377. esac
  26378. case $ac_config_headers in *"
  26379. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26380. esac
  26381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26382. # Files that config.status was made for.
  26383. config_files="$ac_config_files"
  26384. config_headers="$ac_config_headers"
  26385. config_commands="$ac_config_commands"
  26386. _ACEOF
  26387. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26388. ac_cs_usage="\
  26389. \`$as_me' instantiates files and other configuration actions
  26390. from templates according to the current configuration. Unless the files
  26391. and actions are specified as TAGs, all are instantiated by default.
  26392. Usage: $0 [OPTION]... [TAG]...
  26393. -h, --help print this help, then exit
  26394. -V, --version print version number and configuration settings, then exit
  26395. --config print configuration, then exit
  26396. -q, --quiet, --silent
  26397. do not print progress messages
  26398. -d, --debug don't remove temporary files
  26399. --recheck update $as_me by reconfiguring in the same conditions
  26400. --file=FILE[:TEMPLATE]
  26401. instantiate the configuration file FILE
  26402. --header=FILE[:TEMPLATE]
  26403. instantiate the configuration header FILE
  26404. Configuration files:
  26405. $config_files
  26406. Configuration headers:
  26407. $config_headers
  26408. Configuration commands:
  26409. $config_commands
  26410. Report bugs to the package provider."
  26411. _ACEOF
  26412. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26413. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26414. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26415. ac_cs_config='$ac_cs_config_escaped'
  26416. ac_cs_version="\\
  26417. config.status
  26418. configured by $0, generated by GNU Autoconf 2.71,
  26419. with options \\"\$ac_cs_config\\"
  26420. Copyright (C) 2021 Free Software Foundation, Inc.
  26421. This config.status script is free software; the Free Software Foundation
  26422. gives unlimited permission to copy, distribute and modify it."
  26423. ac_pwd='$ac_pwd'
  26424. srcdir='$srcdir'
  26425. INSTALL='$INSTALL'
  26426. AWK='$AWK'
  26427. test -n "\$AWK" || AWK=awk
  26428. _ACEOF
  26429. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26430. # The default lists apply if the user does not specify any file.
  26431. ac_need_defaults=:
  26432. while test $# != 0
  26433. do
  26434. case $1 in
  26435. --*=?*)
  26436. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26437. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26438. ac_shift=:
  26439. ;;
  26440. --*=)
  26441. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26442. ac_optarg=
  26443. ac_shift=:
  26444. ;;
  26445. *)
  26446. ac_option=$1
  26447. ac_optarg=$2
  26448. ac_shift=shift
  26449. ;;
  26450. esac
  26451. case $ac_option in
  26452. # Handling of the options.
  26453. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26454. ac_cs_recheck=: ;;
  26455. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26456. printf "%s\n" "$ac_cs_version"; exit ;;
  26457. --config | --confi | --conf | --con | --co | --c )
  26458. printf "%s\n" "$ac_cs_config"; exit ;;
  26459. --debug | --debu | --deb | --de | --d | -d )
  26460. debug=: ;;
  26461. --file | --fil | --fi | --f )
  26462. $ac_shift
  26463. case $ac_optarg in
  26464. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26465. '') as_fn_error $? "missing file argument" ;;
  26466. esac
  26467. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26468. ac_need_defaults=false;;
  26469. --header | --heade | --head | --hea )
  26470. $ac_shift
  26471. case $ac_optarg in
  26472. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26473. esac
  26474. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26475. ac_need_defaults=false;;
  26476. --he | --h)
  26477. # Conflict between --help and --header
  26478. as_fn_error $? "ambiguous option: \`$1'
  26479. Try \`$0 --help' for more information.";;
  26480. --help | --hel | -h )
  26481. printf "%s\n" "$ac_cs_usage"; exit ;;
  26482. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26483. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26484. ac_cs_silent=: ;;
  26485. # This is an error.
  26486. -*) as_fn_error $? "unrecognized option: \`$1'
  26487. Try \`$0 --help' for more information." ;;
  26488. *) as_fn_append ac_config_targets " $1"
  26489. ac_need_defaults=false ;;
  26490. esac
  26491. shift
  26492. done
  26493. ac_configure_extra_args=
  26494. if $ac_cs_silent; then
  26495. exec 6>/dev/null
  26496. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26497. fi
  26498. _ACEOF
  26499. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26500. if \$ac_cs_recheck; then
  26501. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26502. shift
  26503. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26504. CONFIG_SHELL='$SHELL'
  26505. export CONFIG_SHELL
  26506. exec "\$@"
  26507. fi
  26508. _ACEOF
  26509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26510. exec 5>>config.log
  26511. {
  26512. echo
  26513. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26514. ## Running $as_me. ##
  26515. _ASBOX
  26516. printf "%s\n" "$ac_log"
  26517. } >&5
  26518. _ACEOF
  26519. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26520. #
  26521. # INIT-COMMANDS
  26522. #
  26523. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26524. # if CDPATH is set.
  26525. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26526. sed_quote_subst='$sed_quote_subst'
  26527. double_quote_subst='$double_quote_subst'
  26528. delay_variable_subst='$delay_variable_subst'
  26529. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26530. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26531. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26532. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26533. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26534. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26535. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26536. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26537. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26538. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26539. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26540. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26541. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26542. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26543. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26544. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26545. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26546. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26547. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26548. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26549. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26550. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26551. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26552. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26553. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26554. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26555. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26556. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26557. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26558. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26559. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26560. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26561. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26562. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26563. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26564. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26565. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26566. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26567. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26568. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26569. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26570. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26571. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26572. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26573. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26574. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26575. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26576. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26577. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26578. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26579. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26580. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26581. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26582. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26583. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26584. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26585. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26586. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26587. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26588. 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"`'
  26589. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26590. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26591. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26592. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26593. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26594. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26595. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26596. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26597. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26598. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26599. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26600. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26601. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26602. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26603. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26604. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26605. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26606. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26607. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26608. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26609. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26610. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26611. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26612. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26613. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26614. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26615. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26616. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26617. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26618. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26619. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26620. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26621. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26622. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26623. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26624. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26625. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26626. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26627. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26628. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26629. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26630. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26631. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26632. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26633. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26634. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26635. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26636. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26637. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26638. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26639. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26640. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26641. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26642. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26643. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26644. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26645. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26646. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26647. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26648. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26649. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26650. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26651. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26652. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26653. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26654. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26655. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26656. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26657. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26658. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26659. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26660. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26661. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26662. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26663. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26664. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26665. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26666. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26667. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26668. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26669. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26670. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26671. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26672. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26673. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26674. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26675. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26676. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26677. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26678. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26679. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26680. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26681. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26682. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26683. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26684. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26685. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26686. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26687. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26688. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26689. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26690. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26691. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26692. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26693. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26694. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26695. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26696. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26697. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26698. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26699. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26700. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26701. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26702. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26703. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26704. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26705. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26706. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26707. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26708. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26709. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26710. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26711. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26712. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26713. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26714. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26715. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26716. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26717. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26718. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26719. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26720. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26721. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26722. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26723. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26724. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26725. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26726. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26727. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26728. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26729. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26730. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26731. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26732. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26733. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26734. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26735. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26736. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26737. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26738. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26739. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26740. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26741. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26742. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26743. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26744. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26745. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26746. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26747. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26748. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26749. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26750. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26751. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26752. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26753. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26754. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26755. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26756. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26757. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26758. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26759. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26760. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26761. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26762. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26763. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26764. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26765. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26766. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26767. LTCC='$LTCC'
  26768. LTCFLAGS='$LTCFLAGS'
  26769. compiler='$compiler_DEFAULT'
  26770. # A function that is used when there is no print builtin or printf.
  26771. func_fallback_echo ()
  26772. {
  26773. eval 'cat <<_LTECHO_EOF
  26774. \$1
  26775. _LTECHO_EOF'
  26776. }
  26777. # Quote evaled strings.
  26778. for var in AS \
  26779. DLLTOOL \
  26780. OBJDUMP \
  26781. SHELL \
  26782. ECHO \
  26783. PATH_SEPARATOR \
  26784. SED \
  26785. GREP \
  26786. EGREP \
  26787. FGREP \
  26788. LD \
  26789. NM \
  26790. LN_S \
  26791. lt_SP2NL \
  26792. lt_NL2SP \
  26793. reload_flag \
  26794. deplibs_check_method \
  26795. file_magic_cmd \
  26796. file_magic_glob \
  26797. want_nocaseglob \
  26798. sharedlib_from_linklib_cmd \
  26799. AR \
  26800. AR_FLAGS \
  26801. archiver_list_spec \
  26802. STRIP \
  26803. RANLIB \
  26804. CC \
  26805. CFLAGS \
  26806. compiler \
  26807. lt_cv_sys_global_symbol_pipe \
  26808. lt_cv_sys_global_symbol_to_cdecl \
  26809. lt_cv_sys_global_symbol_to_import \
  26810. lt_cv_sys_global_symbol_to_c_name_address \
  26811. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26812. lt_cv_nm_interface \
  26813. nm_file_list_spec \
  26814. lt_cv_truncate_bin \
  26815. lt_prog_compiler_no_builtin_flag \
  26816. lt_prog_compiler_pic \
  26817. lt_prog_compiler_wl \
  26818. lt_prog_compiler_static \
  26819. lt_cv_prog_compiler_c_o \
  26820. need_locks \
  26821. MANIFEST_TOOL \
  26822. DSYMUTIL \
  26823. NMEDIT \
  26824. LIPO \
  26825. OTOOL \
  26826. OTOOL64 \
  26827. shrext_cmds \
  26828. export_dynamic_flag_spec \
  26829. whole_archive_flag_spec \
  26830. compiler_needs_object \
  26831. with_gnu_ld \
  26832. allow_undefined_flag \
  26833. no_undefined_flag \
  26834. hardcode_libdir_flag_spec \
  26835. hardcode_libdir_separator \
  26836. exclude_expsyms \
  26837. include_expsyms \
  26838. file_list_spec \
  26839. variables_saved_for_relink \
  26840. libname_spec \
  26841. library_names_spec \
  26842. soname_spec \
  26843. install_override_mode \
  26844. finish_eval \
  26845. old_striplib \
  26846. striplib \
  26847. compiler_lib_search_dirs \
  26848. predep_objects \
  26849. postdep_objects \
  26850. predeps \
  26851. postdeps \
  26852. compiler_lib_search_path \
  26853. LD_RC \
  26854. LD_CXX \
  26855. reload_flag_RC \
  26856. reload_flag_CXX \
  26857. compiler_RC \
  26858. compiler_CXX \
  26859. lt_prog_compiler_no_builtin_flag_RC \
  26860. lt_prog_compiler_no_builtin_flag_CXX \
  26861. lt_prog_compiler_pic_RC \
  26862. lt_prog_compiler_pic_CXX \
  26863. lt_prog_compiler_wl_RC \
  26864. lt_prog_compiler_wl_CXX \
  26865. lt_prog_compiler_static_RC \
  26866. lt_prog_compiler_static_CXX \
  26867. lt_cv_prog_compiler_c_o_RC \
  26868. lt_cv_prog_compiler_c_o_CXX \
  26869. export_dynamic_flag_spec_RC \
  26870. export_dynamic_flag_spec_CXX \
  26871. whole_archive_flag_spec_RC \
  26872. whole_archive_flag_spec_CXX \
  26873. compiler_needs_object_RC \
  26874. compiler_needs_object_CXX \
  26875. with_gnu_ld_RC \
  26876. with_gnu_ld_CXX \
  26877. allow_undefined_flag_RC \
  26878. allow_undefined_flag_CXX \
  26879. no_undefined_flag_RC \
  26880. no_undefined_flag_CXX \
  26881. hardcode_libdir_flag_spec_RC \
  26882. hardcode_libdir_flag_spec_CXX \
  26883. hardcode_libdir_separator_RC \
  26884. hardcode_libdir_separator_CXX \
  26885. exclude_expsyms_RC \
  26886. exclude_expsyms_CXX \
  26887. include_expsyms_RC \
  26888. include_expsyms_CXX \
  26889. file_list_spec_RC \
  26890. file_list_spec_CXX \
  26891. compiler_lib_search_dirs_RC \
  26892. compiler_lib_search_dirs_CXX \
  26893. predep_objects_RC \
  26894. predep_objects_CXX \
  26895. postdep_objects_RC \
  26896. postdep_objects_CXX \
  26897. predeps_RC \
  26898. predeps_CXX \
  26899. postdeps_RC \
  26900. postdeps_CXX \
  26901. compiler_lib_search_path_RC \
  26902. compiler_lib_search_path_CXX; do
  26903. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26904. *[\\\\\\\`\\"\\\$]*)
  26905. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26906. ;;
  26907. *)
  26908. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26909. ;;
  26910. esac
  26911. done
  26912. # Double-quote double-evaled strings.
  26913. for var in reload_cmds \
  26914. old_postinstall_cmds \
  26915. old_postuninstall_cmds \
  26916. old_archive_cmds \
  26917. extract_expsyms_cmds \
  26918. old_archive_from_new_cmds \
  26919. old_archive_from_expsyms_cmds \
  26920. archive_cmds \
  26921. archive_expsym_cmds \
  26922. module_cmds \
  26923. module_expsym_cmds \
  26924. export_symbols_cmds \
  26925. prelink_cmds \
  26926. postlink_cmds \
  26927. postinstall_cmds \
  26928. postuninstall_cmds \
  26929. finish_cmds \
  26930. sys_lib_search_path_spec \
  26931. configure_time_dlsearch_path \
  26932. configure_time_lt_sys_library_path \
  26933. reload_cmds_RC \
  26934. reload_cmds_CXX \
  26935. old_archive_cmds_RC \
  26936. old_archive_cmds_CXX \
  26937. old_archive_from_new_cmds_RC \
  26938. old_archive_from_new_cmds_CXX \
  26939. old_archive_from_expsyms_cmds_RC \
  26940. old_archive_from_expsyms_cmds_CXX \
  26941. archive_cmds_RC \
  26942. archive_cmds_CXX \
  26943. archive_expsym_cmds_RC \
  26944. archive_expsym_cmds_CXX \
  26945. module_cmds_RC \
  26946. module_cmds_CXX \
  26947. module_expsym_cmds_RC \
  26948. module_expsym_cmds_CXX \
  26949. export_symbols_cmds_RC \
  26950. export_symbols_cmds_CXX \
  26951. prelink_cmds_RC \
  26952. prelink_cmds_CXX \
  26953. postlink_cmds_RC \
  26954. postlink_cmds_CXX; do
  26955. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26956. *[\\\\\\\`\\"\\\$]*)
  26957. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26958. ;;
  26959. *)
  26960. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26961. ;;
  26962. esac
  26963. done
  26964. ac_aux_dir='$ac_aux_dir'
  26965. # See if we are running on zsh, and set the options that allow our
  26966. # commands through without removal of \ escapes INIT.
  26967. if test -n "\${ZSH_VERSION+set}"; then
  26968. setopt NO_GLOB_SUBST
  26969. fi
  26970. PACKAGE='$PACKAGE'
  26971. VERSION='$VERSION'
  26972. RM='$RM'
  26973. ofile='$ofile'
  26974. SUMMARY="$SUMMARY"
  26975. _ACEOF
  26976. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26977. # Handling of arguments.
  26978. for ac_config_target in $ac_config_targets
  26979. do
  26980. case $ac_config_target in
  26981. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26982. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26983. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26984. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26985. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26986. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26987. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26988. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26989. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26990. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26991. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26992. esac
  26993. done
  26994. # If the user did not use the arguments to specify the items to instantiate,
  26995. # then the envvar interface is used. Set only those that are not.
  26996. # We use the long form for the default assignment because of an extremely
  26997. # bizarre bug on SunOS 4.1.3.
  26998. if $ac_need_defaults; then
  26999. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  27000. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  27001. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  27002. fi
  27003. # Have a temporary directory for convenience. Make it in the build tree
  27004. # simply because there is no reason against having it here, and in addition,
  27005. # creating and moving files from /tmp can sometimes cause problems.
  27006. # Hook for its removal unless debugging.
  27007. # Note that there is a small window in which the directory will not be cleaned:
  27008. # after its creation but before its name has been assigned to `$tmp'.
  27009. $debug ||
  27010. {
  27011. tmp= ac_tmp=
  27012. trap 'exit_status=$?
  27013. : "${ac_tmp:=$tmp}"
  27014. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27015. ' 0
  27016. trap 'as_fn_exit 1' 1 2 13 15
  27017. }
  27018. # Create a (secure) tmp directory for tmp files.
  27019. {
  27020. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27021. test -d "$tmp"
  27022. } ||
  27023. {
  27024. tmp=./conf$$-$RANDOM
  27025. (umask 077 && mkdir "$tmp")
  27026. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27027. ac_tmp=$tmp
  27028. # Set up the scripts for CONFIG_FILES section.
  27029. # No need to generate them if there are no CONFIG_FILES.
  27030. # This happens for instance with `./config.status config.h'.
  27031. if test -n "$CONFIG_FILES"; then
  27032. ac_cr=`echo X | tr X '\015'`
  27033. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27034. # But we know of no other shell where ac_cr would be empty at this
  27035. # point, so we can use a bashism as a fallback.
  27036. if test "x$ac_cr" = x; then
  27037. eval ac_cr=\$\'\\r\'
  27038. fi
  27039. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27040. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27041. ac_cs_awk_cr='\\r'
  27042. else
  27043. ac_cs_awk_cr=$ac_cr
  27044. fi
  27045. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27046. _ACEOF
  27047. {
  27048. echo "cat >conf$$subs.awk <<_ACEOF" &&
  27049. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27050. echo "_ACEOF"
  27051. } >conf$$subs.sh ||
  27052. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27053. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27054. ac_delim='%!_!# '
  27055. for ac_last_try in false false false false false :; do
  27056. . ./conf$$subs.sh ||
  27057. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27058. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  27059. if test $ac_delim_n = $ac_delim_num; then
  27060. break
  27061. elif $ac_last_try; then
  27062. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27063. else
  27064. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27065. fi
  27066. done
  27067. rm -f conf$$subs.sh
  27068. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27069. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  27070. _ACEOF
  27071. sed -n '
  27072. h
  27073. s/^/S["/; s/!.*/"]=/
  27074. p
  27075. g
  27076. s/^[^!]*!//
  27077. :repl
  27078. t repl
  27079. s/'"$ac_delim"'$//
  27080. t delim
  27081. :nl
  27082. h
  27083. s/\(.\{148\}\)..*/\1/
  27084. t more1
  27085. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  27086. p
  27087. n
  27088. b repl
  27089. :more1
  27090. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27091. p
  27092. g
  27093. s/.\{148\}//
  27094. t nl
  27095. :delim
  27096. h
  27097. s/\(.\{148\}\)..*/\1/
  27098. t more2
  27099. s/["\\]/\\&/g; s/^/"/; s/$/"/
  27100. p
  27101. b
  27102. :more2
  27103. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  27104. p
  27105. g
  27106. s/.\{148\}//
  27107. t delim
  27108. ' <conf$$subs.awk | sed '
  27109. /^[^""]/{
  27110. N
  27111. s/\n//
  27112. }
  27113. ' >>$CONFIG_STATUS || ac_write_fail=1
  27114. rm -f conf$$subs.awk
  27115. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27116. _ACAWK
  27117. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  27118. for (key in S) S_is_set[key] = 1
  27119. FS = ""
  27120. }
  27121. {
  27122. line = $ 0
  27123. nfields = split(line, field, "@")
  27124. substed = 0
  27125. len = length(field[1])
  27126. for (i = 2; i < nfields; i++) {
  27127. key = field[i]
  27128. keylen = length(key)
  27129. if (S_is_set[key]) {
  27130. value = S[key]
  27131. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  27132. len += length(value) + length(field[++i])
  27133. substed = 1
  27134. } else
  27135. len += 1 + keylen
  27136. }
  27137. print line
  27138. }
  27139. _ACAWK
  27140. _ACEOF
  27141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27142. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  27143. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  27144. else
  27145. cat
  27146. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  27147. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  27148. _ACEOF
  27149. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  27150. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  27151. # trailing colons and then remove the whole line if VPATH becomes empty
  27152. # (actually we leave an empty line to preserve line numbers).
  27153. if test "x$srcdir" = x.; then
  27154. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  27155. h
  27156. s///
  27157. s/^/:/
  27158. s/[ ]*$/:/
  27159. s/:\$(srcdir):/:/g
  27160. s/:\${srcdir}:/:/g
  27161. s/:@srcdir@:/:/g
  27162. s/^:*//
  27163. s/:*$//
  27164. x
  27165. s/\(=[ ]*\).*/\1/
  27166. G
  27167. s/\n//
  27168. s/^[^=]*=[ ]*$//
  27169. }'
  27170. fi
  27171. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27172. fi # test -n "$CONFIG_FILES"
  27173. # Set up the scripts for CONFIG_HEADERS section.
  27174. # No need to generate them if there are no CONFIG_HEADERS.
  27175. # This happens for instance with `./config.status Makefile'.
  27176. if test -n "$CONFIG_HEADERS"; then
  27177. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27178. BEGIN {
  27179. _ACEOF
  27180. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27181. # here-document in config.status, that substitutes the proper values into
  27182. # config.h.in to produce config.h.
  27183. # Create a delimiter string that does not exist in confdefs.h, to ease
  27184. # handling of long lines.
  27185. ac_delim='%!_!# '
  27186. for ac_last_try in false false :; do
  27187. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27188. if test -z "$ac_tt"; then
  27189. break
  27190. elif $ac_last_try; then
  27191. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27192. else
  27193. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27194. fi
  27195. done
  27196. # For the awk script, D is an array of macro values keyed by name,
  27197. # likewise P contains macro parameters if any. Preserve backslash
  27198. # newline sequences.
  27199. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27200. sed -n '
  27201. s/.\{148\}/&'"$ac_delim"'/g
  27202. t rset
  27203. :rset
  27204. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27205. t def
  27206. d
  27207. :def
  27208. s/\\$//
  27209. t bsnl
  27210. s/["\\]/\\&/g
  27211. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27212. D["\1"]=" \3"/p
  27213. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27214. d
  27215. :bsnl
  27216. s/["\\]/\\&/g
  27217. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27218. D["\1"]=" \3\\\\\\n"\\/p
  27219. t cont
  27220. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27221. t cont
  27222. d
  27223. :cont
  27224. n
  27225. s/.\{148\}/&'"$ac_delim"'/g
  27226. t clear
  27227. :clear
  27228. s/\\$//
  27229. t bsnlc
  27230. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27231. d
  27232. :bsnlc
  27233. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27234. b cont
  27235. ' <confdefs.h | sed '
  27236. s/'"$ac_delim"'/"\\\
  27237. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27238. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27239. for (key in D) D_is_set[key] = 1
  27240. FS = ""
  27241. }
  27242. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27243. line = \$ 0
  27244. split(line, arg, " ")
  27245. if (arg[1] == "#") {
  27246. defundef = arg[2]
  27247. mac1 = arg[3]
  27248. } else {
  27249. defundef = substr(arg[1], 2)
  27250. mac1 = arg[2]
  27251. }
  27252. split(mac1, mac2, "(") #)
  27253. macro = mac2[1]
  27254. prefix = substr(line, 1, index(line, defundef) - 1)
  27255. if (D_is_set[macro]) {
  27256. # Preserve the white space surrounding the "#".
  27257. print prefix "define", macro P[macro] D[macro]
  27258. next
  27259. } else {
  27260. # Replace #undef with comments. This is necessary, for example,
  27261. # in the case of _POSIX_SOURCE, which is predefined and required
  27262. # on some systems where configure will not decide to define it.
  27263. if (defundef == "undef") {
  27264. print "/*", prefix defundef, macro, "*/"
  27265. next
  27266. }
  27267. }
  27268. }
  27269. { print }
  27270. _ACAWK
  27271. _ACEOF
  27272. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27273. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27274. fi # test -n "$CONFIG_HEADERS"
  27275. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27276. shift
  27277. for ac_tag
  27278. do
  27279. case $ac_tag in
  27280. :[FHLC]) ac_mode=$ac_tag; continue;;
  27281. esac
  27282. case $ac_mode$ac_tag in
  27283. :[FHL]*:*);;
  27284. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27285. :[FH]-) ac_tag=-:-;;
  27286. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27287. esac
  27288. ac_save_IFS=$IFS
  27289. IFS=:
  27290. set x $ac_tag
  27291. IFS=$ac_save_IFS
  27292. shift
  27293. ac_file=$1
  27294. shift
  27295. case $ac_mode in
  27296. :L) ac_source=$1;;
  27297. :[FH])
  27298. ac_file_inputs=
  27299. for ac_f
  27300. do
  27301. case $ac_f in
  27302. -) ac_f="$ac_tmp/stdin";;
  27303. *) # Look for the file first in the build tree, then in the source tree
  27304. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27305. # because $ac_f cannot contain `:'.
  27306. test -f "$ac_f" ||
  27307. case $ac_f in
  27308. [\\/$]*) false;;
  27309. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27310. esac ||
  27311. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27312. esac
  27313. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27314. as_fn_append ac_file_inputs " '$ac_f'"
  27315. done
  27316. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27317. # use $as_me), people would be surprised to read:
  27318. # /* config.h. Generated by config.status. */
  27319. configure_input='Generated from '`
  27320. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27321. `' by configure.'
  27322. if test x"$ac_file" != x-; then
  27323. configure_input="$ac_file. $configure_input"
  27324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27325. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27326. fi
  27327. # Neutralize special characters interpreted by sed in replacement strings.
  27328. case $configure_input in #(
  27329. *\&* | *\|* | *\\* )
  27330. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27331. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27332. *) ac_sed_conf_input=$configure_input;;
  27333. esac
  27334. case $ac_tag in
  27335. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27336. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27337. esac
  27338. ;;
  27339. esac
  27340. ac_dir=`$as_dirname -- "$ac_file" ||
  27341. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27342. X"$ac_file" : 'X\(//\)[^/]' \| \
  27343. X"$ac_file" : 'X\(//\)$' \| \
  27344. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27345. printf "%s\n" X"$ac_file" |
  27346. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27347. s//\1/
  27348. q
  27349. }
  27350. /^X\(\/\/\)[^/].*/{
  27351. s//\1/
  27352. q
  27353. }
  27354. /^X\(\/\/\)$/{
  27355. s//\1/
  27356. q
  27357. }
  27358. /^X\(\/\).*/{
  27359. s//\1/
  27360. q
  27361. }
  27362. s/.*/./; q'`
  27363. as_dir="$ac_dir"; as_fn_mkdir_p
  27364. ac_builddir=.
  27365. case "$ac_dir" in
  27366. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27367. *)
  27368. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27369. # A ".." for each directory in $ac_dir_suffix.
  27370. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27371. case $ac_top_builddir_sub in
  27372. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27373. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27374. esac ;;
  27375. esac
  27376. ac_abs_top_builddir=$ac_pwd
  27377. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27378. # for backward compatibility:
  27379. ac_top_builddir=$ac_top_build_prefix
  27380. case $srcdir in
  27381. .) # We are building in place.
  27382. ac_srcdir=.
  27383. ac_top_srcdir=$ac_top_builddir_sub
  27384. ac_abs_top_srcdir=$ac_pwd ;;
  27385. [\\/]* | ?:[\\/]* ) # Absolute name.
  27386. ac_srcdir=$srcdir$ac_dir_suffix;
  27387. ac_top_srcdir=$srcdir
  27388. ac_abs_top_srcdir=$srcdir ;;
  27389. *) # Relative name.
  27390. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27391. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27392. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27393. esac
  27394. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27395. case $ac_mode in
  27396. :F)
  27397. #
  27398. # CONFIG_FILE
  27399. #
  27400. case $INSTALL in
  27401. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27402. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27403. esac
  27404. _ACEOF
  27405. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27406. # If the template does not know about datarootdir, expand it.
  27407. # FIXME: This hack should be removed a few years after 2.60.
  27408. ac_datarootdir_hack=; ac_datarootdir_seen=
  27409. ac_sed_dataroot='
  27410. /datarootdir/ {
  27411. p
  27412. q
  27413. }
  27414. /@datadir@/p
  27415. /@docdir@/p
  27416. /@infodir@/p
  27417. /@localedir@/p
  27418. /@mandir@/p'
  27419. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27420. *datarootdir*) ac_datarootdir_seen=yes;;
  27421. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27423. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27424. _ACEOF
  27425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27426. ac_datarootdir_hack='
  27427. s&@datadir@&$datadir&g
  27428. s&@docdir@&$docdir&g
  27429. s&@infodir@&$infodir&g
  27430. s&@localedir@&$localedir&g
  27431. s&@mandir@&$mandir&g
  27432. s&\\\${datarootdir}&$datarootdir&g' ;;
  27433. esac
  27434. _ACEOF
  27435. # Neutralize VPATH when `$srcdir' = `.'.
  27436. # Shell code in configure.ac might set extrasub.
  27437. # FIXME: do we really want to maintain this feature?
  27438. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27439. ac_sed_extra="$ac_vpsub
  27440. $extrasub
  27441. _ACEOF
  27442. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27443. :t
  27444. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27445. s|@configure_input@|$ac_sed_conf_input|;t t
  27446. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27447. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27448. s&@srcdir@&$ac_srcdir&;t t
  27449. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27450. s&@top_srcdir@&$ac_top_srcdir&;t t
  27451. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27452. s&@builddir@&$ac_builddir&;t t
  27453. s&@abs_builddir@&$ac_abs_builddir&;t t
  27454. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27455. s&@INSTALL@&$ac_INSTALL&;t t
  27456. $ac_datarootdir_hack
  27457. "
  27458. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27459. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27460. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27461. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27462. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27463. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27465. which seems to be undefined. Please make sure it is defined" >&5
  27466. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27467. which seems to be undefined. Please make sure it is defined" >&2;}
  27468. rm -f "$ac_tmp/stdin"
  27469. case $ac_file in
  27470. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27471. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27472. esac \
  27473. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27474. ;;
  27475. :H)
  27476. #
  27477. # CONFIG_HEADER
  27478. #
  27479. if test x"$ac_file" != x-; then
  27480. {
  27481. printf "%s\n" "/* $configure_input */" >&1 \
  27482. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27483. } >"$ac_tmp/config.h" \
  27484. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27485. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27487. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27488. else
  27489. rm -f "$ac_file"
  27490. mv "$ac_tmp/config.h" "$ac_file" \
  27491. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27492. fi
  27493. else
  27494. printf "%s\n" "/* $configure_input */" >&1 \
  27495. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27496. || as_fn_error $? "could not create -" "$LINENO" 5
  27497. fi
  27498. ;;
  27499. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27500. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27501. ;;
  27502. esac
  27503. case $ac_file$ac_mode in
  27504. "libtool":C)
  27505. # See if we are running on zsh, and set the options that allow our
  27506. # commands through without removal of \ escapes.
  27507. if test -n "${ZSH_VERSION+set}"; then
  27508. setopt NO_GLOB_SUBST
  27509. fi
  27510. cfgfile=${ofile}T
  27511. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27512. $RM "$cfgfile"
  27513. cat <<_LT_EOF >> "$cfgfile"
  27514. #! $SHELL
  27515. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27516. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27517. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27518. # Provide generalized library-building support services.
  27519. # Written by Gordon Matzigkeit, 1996
  27520. # Copyright (C) 2014 Free Software Foundation, Inc.
  27521. # This is free software; see the source for copying conditions. There is NO
  27522. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27523. # GNU Libtool is free software; you can redistribute it and/or modify
  27524. # it under the terms of the GNU General Public License as published by
  27525. # the Free Software Foundation; either version 2 of of the License, or
  27526. # (at your option) any later version.
  27527. #
  27528. # As a special exception to the GNU General Public License, if you
  27529. # distribute this file as part of a program or library that is built
  27530. # using GNU Libtool, you may include this file under the same
  27531. # distribution terms that you use for the rest of that program.
  27532. #
  27533. # GNU Libtool is distributed in the hope that it will be useful, but
  27534. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27535. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27536. # GNU General Public License for more details.
  27537. #
  27538. # You should have received a copy of the GNU General Public License
  27539. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27540. # The names of the tagged configurations supported by this script.
  27541. available_tags='RC CXX '
  27542. # Configured defaults for sys_lib_dlsearch_path munging.
  27543. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27544. # ### BEGIN LIBTOOL CONFIG
  27545. # Which release of libtool.m4 was used?
  27546. macro_version=$macro_version
  27547. macro_revision=$macro_revision
  27548. # Assembler program.
  27549. AS=$lt_AS
  27550. # DLL creation program.
  27551. DLLTOOL=$lt_DLLTOOL
  27552. # Object dumper program.
  27553. OBJDUMP=$lt_OBJDUMP
  27554. # Whether or not to build shared libraries.
  27555. build_libtool_libs=$enable_shared
  27556. # Whether or not to build static libraries.
  27557. build_old_libs=$enable_static
  27558. # What type of objects to build.
  27559. pic_mode=$pic_mode
  27560. # Whether or not to optimize for fast installation.
  27561. fast_install=$enable_fast_install
  27562. # Shared archive member basename,for filename based shared library versioning on AIX.
  27563. shared_archive_member_spec=$shared_archive_member_spec
  27564. # Shell to use when invoking shell scripts.
  27565. SHELL=$lt_SHELL
  27566. # An echo program that protects backslashes.
  27567. ECHO=$lt_ECHO
  27568. # The PATH separator for the build system.
  27569. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27570. # The host system.
  27571. host_alias=$host_alias
  27572. host=$host
  27573. host_os=$host_os
  27574. # The build system.
  27575. build_alias=$build_alias
  27576. build=$build
  27577. build_os=$build_os
  27578. # A sed program that does not truncate output.
  27579. SED=$lt_SED
  27580. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27581. Xsed="\$SED -e 1s/^X//"
  27582. # A grep program that handles long lines.
  27583. GREP=$lt_GREP
  27584. # An ERE matcher.
  27585. EGREP=$lt_EGREP
  27586. # A literal string matcher.
  27587. FGREP=$lt_FGREP
  27588. # A BSD- or MS-compatible name lister.
  27589. NM=$lt_NM
  27590. # Whether we need soft or hard links.
  27591. LN_S=$lt_LN_S
  27592. # What is the maximum length of a command?
  27593. max_cmd_len=$max_cmd_len
  27594. # Object file suffix (normally "o").
  27595. objext=$ac_objext
  27596. # Executable file suffix (normally "").
  27597. exeext=$exeext
  27598. # whether the shell understands "unset".
  27599. lt_unset=$lt_unset
  27600. # turn spaces into newlines.
  27601. SP2NL=$lt_lt_SP2NL
  27602. # turn newlines into spaces.
  27603. NL2SP=$lt_lt_NL2SP
  27604. # convert \$build file names to \$host format.
  27605. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27606. # convert \$build files to toolchain format.
  27607. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27608. # Method to check whether dependent libraries are shared objects.
  27609. deplibs_check_method=$lt_deplibs_check_method
  27610. # Command to use when deplibs_check_method = "file_magic".
  27611. file_magic_cmd=$lt_file_magic_cmd
  27612. # How to find potential files when deplibs_check_method = "file_magic".
  27613. file_magic_glob=$lt_file_magic_glob
  27614. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27615. want_nocaseglob=$lt_want_nocaseglob
  27616. # Command to associate shared and link libraries.
  27617. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27618. # The archiver.
  27619. AR=$lt_AR
  27620. # Flags to create an archive.
  27621. AR_FLAGS=$lt_AR_FLAGS
  27622. # How to feed a file listing to the archiver.
  27623. archiver_list_spec=$lt_archiver_list_spec
  27624. # A symbol stripping program.
  27625. STRIP=$lt_STRIP
  27626. # Commands used to install an old-style archive.
  27627. RANLIB=$lt_RANLIB
  27628. old_postinstall_cmds=$lt_old_postinstall_cmds
  27629. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27630. # Whether to use a lock for old archive extraction.
  27631. lock_old_archive_extraction=$lock_old_archive_extraction
  27632. # A C compiler.
  27633. LTCC=$lt_CC
  27634. # LTCC compiler flags.
  27635. LTCFLAGS=$lt_CFLAGS
  27636. # Take the output of nm and produce a listing of raw symbols and C names.
  27637. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27638. # Transform the output of nm in a proper C declaration.
  27639. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27640. # Transform the output of nm into a list of symbols to manually relocate.
  27641. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27642. # Transform the output of nm in a C name address pair.
  27643. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27644. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27645. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27646. # The name lister interface.
  27647. nm_interface=$lt_lt_cv_nm_interface
  27648. # Specify filename containing input files for \$NM.
  27649. nm_file_list_spec=$lt_nm_file_list_spec
  27650. # The root where to search for dependent libraries,and where our libraries should be installed.
  27651. lt_sysroot=$lt_sysroot
  27652. # Command to truncate a binary pipe.
  27653. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27654. # The name of the directory that contains temporary libtool files.
  27655. objdir=$objdir
  27656. # Used to examine libraries when file_magic_cmd begins with "file".
  27657. MAGIC_CMD=$MAGIC_CMD
  27658. # Must we lock files when doing compilation?
  27659. need_locks=$lt_need_locks
  27660. # Manifest tool.
  27661. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27662. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27663. DSYMUTIL=$lt_DSYMUTIL
  27664. # Tool to change global to local symbols on Mac OS X.
  27665. NMEDIT=$lt_NMEDIT
  27666. # Tool to manipulate fat objects and archives on Mac OS X.
  27667. LIPO=$lt_LIPO
  27668. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27669. OTOOL=$lt_OTOOL
  27670. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27671. OTOOL64=$lt_OTOOL64
  27672. # Old archive suffix (normally "a").
  27673. libext=$libext
  27674. # Shared library suffix (normally ".so").
  27675. shrext_cmds=$lt_shrext_cmds
  27676. # The commands to extract the exported symbol list from a shared archive.
  27677. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27678. # Variables whose values should be saved in libtool wrapper scripts and
  27679. # restored at link time.
  27680. variables_saved_for_relink=$lt_variables_saved_for_relink
  27681. # Do we need the "lib" prefix for modules?
  27682. need_lib_prefix=$need_lib_prefix
  27683. # Do we need a version for libraries?
  27684. need_version=$need_version
  27685. # Library versioning type.
  27686. version_type=$version_type
  27687. # Shared library runtime path variable.
  27688. runpath_var=$runpath_var
  27689. # Shared library path variable.
  27690. shlibpath_var=$shlibpath_var
  27691. # Is shlibpath searched before the hard-coded library search path?
  27692. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27693. # Format of library name prefix.
  27694. libname_spec=$lt_libname_spec
  27695. # List of archive names. First name is the real one, the rest are links.
  27696. # The last name is the one that the linker finds with -lNAME
  27697. library_names_spec=$lt_library_names_spec
  27698. # The coded name of the library, if different from the real name.
  27699. soname_spec=$lt_soname_spec
  27700. # Permission mode override for installation of shared libraries.
  27701. install_override_mode=$lt_install_override_mode
  27702. # Command to use after installation of a shared archive.
  27703. postinstall_cmds=$lt_postinstall_cmds
  27704. # Command to use after uninstallation of a shared archive.
  27705. postuninstall_cmds=$lt_postuninstall_cmds
  27706. # Commands used to finish a libtool library installation in a directory.
  27707. finish_cmds=$lt_finish_cmds
  27708. # As "finish_cmds", except a single script fragment to be evaled but
  27709. # not shown.
  27710. finish_eval=$lt_finish_eval
  27711. # Whether we should hardcode library paths into libraries.
  27712. hardcode_into_libs=$hardcode_into_libs
  27713. # Compile-time system search path for libraries.
  27714. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27715. # Detected run-time system search path for libraries.
  27716. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27717. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27718. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27719. # Whether dlopen is supported.
  27720. dlopen_support=$enable_dlopen
  27721. # Whether dlopen of programs is supported.
  27722. dlopen_self=$enable_dlopen_self
  27723. # Whether dlopen of statically linked programs is supported.
  27724. dlopen_self_static=$enable_dlopen_self_static
  27725. # Commands to strip libraries.
  27726. old_striplib=$lt_old_striplib
  27727. striplib=$lt_striplib
  27728. # The linker used to build libraries.
  27729. LD=$lt_LD
  27730. # How to create reloadable object files.
  27731. reload_flag=$lt_reload_flag
  27732. reload_cmds=$lt_reload_cmds
  27733. # Commands used to build an old-style archive.
  27734. old_archive_cmds=$lt_old_archive_cmds
  27735. # A language specific compiler.
  27736. CC=$lt_compiler
  27737. # Is the compiler the GNU compiler?
  27738. with_gcc=$GCC
  27739. # Compiler flag to turn off builtin functions.
  27740. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27741. # Additional compiler flags for building library objects.
  27742. pic_flag=$lt_lt_prog_compiler_pic
  27743. # How to pass a linker flag through the compiler.
  27744. wl=$lt_lt_prog_compiler_wl
  27745. # Compiler flag to prevent dynamic linking.
  27746. link_static_flag=$lt_lt_prog_compiler_static
  27747. # Does compiler simultaneously support -c and -o options?
  27748. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27749. # Whether or not to add -lc for building shared libraries.
  27750. build_libtool_need_lc=$archive_cmds_need_lc
  27751. # Whether or not to disallow shared libs when runtime libs are static.
  27752. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27753. # Compiler flag to allow reflexive dlopens.
  27754. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27755. # Compiler flag to generate shared objects directly from archives.
  27756. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27757. # Whether the compiler copes with passing no objects directly.
  27758. compiler_needs_object=$lt_compiler_needs_object
  27759. # Create an old-style archive from a shared archive.
  27760. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27761. # Create a temporary old-style archive to link instead of a shared archive.
  27762. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27763. # Commands used to build a shared archive.
  27764. archive_cmds=$lt_archive_cmds
  27765. archive_expsym_cmds=$lt_archive_expsym_cmds
  27766. # Commands used to build a loadable module if different from building
  27767. # a shared archive.
  27768. module_cmds=$lt_module_cmds
  27769. module_expsym_cmds=$lt_module_expsym_cmds
  27770. # Whether we are building with GNU ld or not.
  27771. with_gnu_ld=$lt_with_gnu_ld
  27772. # Flag that allows shared libraries with undefined symbols to be built.
  27773. allow_undefined_flag=$lt_allow_undefined_flag
  27774. # Flag that enforces no undefined symbols.
  27775. no_undefined_flag=$lt_no_undefined_flag
  27776. # Flag to hardcode \$libdir into a binary during linking.
  27777. # This must work even if \$libdir does not exist
  27778. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27779. # Whether we need a single "-rpath" flag with a separated argument.
  27780. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27781. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27782. # DIR into the resulting binary.
  27783. hardcode_direct=$hardcode_direct
  27784. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27785. # DIR into the resulting binary and the resulting library dependency is
  27786. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27787. # library is relocated.
  27788. hardcode_direct_absolute=$hardcode_direct_absolute
  27789. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27790. # into the resulting binary.
  27791. hardcode_minus_L=$hardcode_minus_L
  27792. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27793. # into the resulting binary.
  27794. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27795. # Set to "yes" if building a shared library automatically hardcodes DIR
  27796. # into the library and all subsequent libraries and executables linked
  27797. # against it.
  27798. hardcode_automatic=$hardcode_automatic
  27799. # Set to yes if linker adds runtime paths of dependent libraries
  27800. # to runtime path list.
  27801. inherit_rpath=$inherit_rpath
  27802. # Whether libtool must link a program against all its dependency libraries.
  27803. link_all_deplibs=$link_all_deplibs
  27804. # Set to "yes" if exported symbols are required.
  27805. always_export_symbols=$always_export_symbols
  27806. # The commands to list exported symbols.
  27807. export_symbols_cmds=$lt_export_symbols_cmds
  27808. # Symbols that should not be listed in the preloaded symbols.
  27809. exclude_expsyms=$lt_exclude_expsyms
  27810. # Symbols that must always be exported.
  27811. include_expsyms=$lt_include_expsyms
  27812. # Commands necessary for linking programs (against libraries) with templates.
  27813. prelink_cmds=$lt_prelink_cmds
  27814. # Commands necessary for finishing linking programs.
  27815. postlink_cmds=$lt_postlink_cmds
  27816. # Specify filename containing input files.
  27817. file_list_spec=$lt_file_list_spec
  27818. # How to hardcode a shared library path into an executable.
  27819. hardcode_action=$hardcode_action
  27820. # The directories searched by this compiler when creating a shared library.
  27821. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27822. # Dependencies to place before and after the objects being linked to
  27823. # create a shared library.
  27824. predep_objects=$lt_predep_objects
  27825. postdep_objects=$lt_postdep_objects
  27826. predeps=$lt_predeps
  27827. postdeps=$lt_postdeps
  27828. # The library search path used internally by the compiler when linking
  27829. # a shared library.
  27830. compiler_lib_search_path=$lt_compiler_lib_search_path
  27831. # ### END LIBTOOL CONFIG
  27832. _LT_EOF
  27833. cat <<'_LT_EOF' >> "$cfgfile"
  27834. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27835. # func_munge_path_list VARIABLE PATH
  27836. # -----------------------------------
  27837. # VARIABLE is name of variable containing _space_ separated list of
  27838. # directories to be munged by the contents of PATH, which is string
  27839. # having a format:
  27840. # "DIR[:DIR]:"
  27841. # string "DIR[ DIR]" will be prepended to VARIABLE
  27842. # ":DIR[:DIR]"
  27843. # string "DIR[ DIR]" will be appended to VARIABLE
  27844. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27845. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27846. # "DIRA[ DIRA]" will be appended to VARIABLE
  27847. # "DIR[:DIR]"
  27848. # VARIABLE will be replaced by "DIR[ DIR]"
  27849. func_munge_path_list ()
  27850. {
  27851. case x$2 in
  27852. x)
  27853. ;;
  27854. *:)
  27855. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27856. ;;
  27857. x:*)
  27858. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27859. ;;
  27860. *::*)
  27861. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27862. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27863. ;;
  27864. *)
  27865. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27866. ;;
  27867. esac
  27868. }
  27869. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27870. func_cc_basename ()
  27871. {
  27872. for cc_temp in $*""; do
  27873. case $cc_temp in
  27874. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27875. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27876. \-*) ;;
  27877. *) break;;
  27878. esac
  27879. done
  27880. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27881. }
  27882. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27883. _LT_EOF
  27884. case $host_os in
  27885. aix3*)
  27886. cat <<\_LT_EOF >> "$cfgfile"
  27887. # AIX sometimes has problems with the GCC collect2 program. For some
  27888. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27889. # vanish in a puff of smoke.
  27890. if test set != "${COLLECT_NAMES+set}"; then
  27891. COLLECT_NAMES=
  27892. export COLLECT_NAMES
  27893. fi
  27894. _LT_EOF
  27895. ;;
  27896. esac
  27897. ltmain=$ac_aux_dir/ltmain.sh
  27898. # We use sed instead of cat because bash on DJGPP gets confused if
  27899. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27900. # text mode, it properly converts lines to CR/LF. This bash problem
  27901. # is reportedly fixed, but why not run on old versions too?
  27902. sed '$q' "$ltmain" >> "$cfgfile" \
  27903. || (rm -f "$cfgfile"; exit 1)
  27904. mv -f "$cfgfile" "$ofile" ||
  27905. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27906. chmod +x "$ofile"
  27907. cat <<_LT_EOF >> "$ofile"
  27908. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27909. # The linker used to build libraries.
  27910. LD=$lt_LD_RC
  27911. # How to create reloadable object files.
  27912. reload_flag=$lt_reload_flag_RC
  27913. reload_cmds=$lt_reload_cmds_RC
  27914. # Commands used to build an old-style archive.
  27915. old_archive_cmds=$lt_old_archive_cmds_RC
  27916. # A language specific compiler.
  27917. CC=$lt_compiler_RC
  27918. # Is the compiler the GNU compiler?
  27919. with_gcc=$GCC_RC
  27920. # Compiler flag to turn off builtin functions.
  27921. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27922. # Additional compiler flags for building library objects.
  27923. pic_flag=$lt_lt_prog_compiler_pic_RC
  27924. # How to pass a linker flag through the compiler.
  27925. wl=$lt_lt_prog_compiler_wl_RC
  27926. # Compiler flag to prevent dynamic linking.
  27927. link_static_flag=$lt_lt_prog_compiler_static_RC
  27928. # Does compiler simultaneously support -c and -o options?
  27929. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27930. # Whether or not to add -lc for building shared libraries.
  27931. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27932. # Whether or not to disallow shared libs when runtime libs are static.
  27933. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27934. # Compiler flag to allow reflexive dlopens.
  27935. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27936. # Compiler flag to generate shared objects directly from archives.
  27937. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27938. # Whether the compiler copes with passing no objects directly.
  27939. compiler_needs_object=$lt_compiler_needs_object_RC
  27940. # Create an old-style archive from a shared archive.
  27941. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27942. # Create a temporary old-style archive to link instead of a shared archive.
  27943. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27944. # Commands used to build a shared archive.
  27945. archive_cmds=$lt_archive_cmds_RC
  27946. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27947. # Commands used to build a loadable module if different from building
  27948. # a shared archive.
  27949. module_cmds=$lt_module_cmds_RC
  27950. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27951. # Whether we are building with GNU ld or not.
  27952. with_gnu_ld=$lt_with_gnu_ld_RC
  27953. # Flag that allows shared libraries with undefined symbols to be built.
  27954. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27955. # Flag that enforces no undefined symbols.
  27956. no_undefined_flag=$lt_no_undefined_flag_RC
  27957. # Flag to hardcode \$libdir into a binary during linking.
  27958. # This must work even if \$libdir does not exist
  27959. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27960. # Whether we need a single "-rpath" flag with a separated argument.
  27961. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27962. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27963. # DIR into the resulting binary.
  27964. hardcode_direct=$hardcode_direct_RC
  27965. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27966. # DIR into the resulting binary and the resulting library dependency is
  27967. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27968. # library is relocated.
  27969. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27970. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27971. # into the resulting binary.
  27972. hardcode_minus_L=$hardcode_minus_L_RC
  27973. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27974. # into the resulting binary.
  27975. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27976. # Set to "yes" if building a shared library automatically hardcodes DIR
  27977. # into the library and all subsequent libraries and executables linked
  27978. # against it.
  27979. hardcode_automatic=$hardcode_automatic_RC
  27980. # Set to yes if linker adds runtime paths of dependent libraries
  27981. # to runtime path list.
  27982. inherit_rpath=$inherit_rpath_RC
  27983. # Whether libtool must link a program against all its dependency libraries.
  27984. link_all_deplibs=$link_all_deplibs_RC
  27985. # Set to "yes" if exported symbols are required.
  27986. always_export_symbols=$always_export_symbols_RC
  27987. # The commands to list exported symbols.
  27988. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27989. # Symbols that should not be listed in the preloaded symbols.
  27990. exclude_expsyms=$lt_exclude_expsyms_RC
  27991. # Symbols that must always be exported.
  27992. include_expsyms=$lt_include_expsyms_RC
  27993. # Commands necessary for linking programs (against libraries) with templates.
  27994. prelink_cmds=$lt_prelink_cmds_RC
  27995. # Commands necessary for finishing linking programs.
  27996. postlink_cmds=$lt_postlink_cmds_RC
  27997. # Specify filename containing input files.
  27998. file_list_spec=$lt_file_list_spec_RC
  27999. # How to hardcode a shared library path into an executable.
  28000. hardcode_action=$hardcode_action_RC
  28001. # The directories searched by this compiler when creating a shared library.
  28002. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  28003. # Dependencies to place before and after the objects being linked to
  28004. # create a shared library.
  28005. predep_objects=$lt_predep_objects_RC
  28006. postdep_objects=$lt_postdep_objects_RC
  28007. predeps=$lt_predeps_RC
  28008. postdeps=$lt_postdeps_RC
  28009. # The library search path used internally by the compiler when linking
  28010. # a shared library.
  28011. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  28012. # ### END LIBTOOL TAG CONFIG: RC
  28013. _LT_EOF
  28014. cat <<_LT_EOF >> "$ofile"
  28015. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  28016. # The linker used to build libraries.
  28017. LD=$lt_LD_CXX
  28018. # How to create reloadable object files.
  28019. reload_flag=$lt_reload_flag_CXX
  28020. reload_cmds=$lt_reload_cmds_CXX
  28021. # Commands used to build an old-style archive.
  28022. old_archive_cmds=$lt_old_archive_cmds_CXX
  28023. # A language specific compiler.
  28024. CC=$lt_compiler_CXX
  28025. # Is the compiler the GNU compiler?
  28026. with_gcc=$GCC_CXX
  28027. # Compiler flag to turn off builtin functions.
  28028. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  28029. # Additional compiler flags for building library objects.
  28030. pic_flag=$lt_lt_prog_compiler_pic_CXX
  28031. # How to pass a linker flag through the compiler.
  28032. wl=$lt_lt_prog_compiler_wl_CXX
  28033. # Compiler flag to prevent dynamic linking.
  28034. link_static_flag=$lt_lt_prog_compiler_static_CXX
  28035. # Does compiler simultaneously support -c and -o options?
  28036. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  28037. # Whether or not to add -lc for building shared libraries.
  28038. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  28039. # Whether or not to disallow shared libs when runtime libs are static.
  28040. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  28041. # Compiler flag to allow reflexive dlopens.
  28042. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  28043. # Compiler flag to generate shared objects directly from archives.
  28044. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  28045. # Whether the compiler copes with passing no objects directly.
  28046. compiler_needs_object=$lt_compiler_needs_object_CXX
  28047. # Create an old-style archive from a shared archive.
  28048. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  28049. # Create a temporary old-style archive to link instead of a shared archive.
  28050. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  28051. # Commands used to build a shared archive.
  28052. archive_cmds=$lt_archive_cmds_CXX
  28053. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  28054. # Commands used to build a loadable module if different from building
  28055. # a shared archive.
  28056. module_cmds=$lt_module_cmds_CXX
  28057. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  28058. # Whether we are building with GNU ld or not.
  28059. with_gnu_ld=$lt_with_gnu_ld_CXX
  28060. # Flag that allows shared libraries with undefined symbols to be built.
  28061. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  28062. # Flag that enforces no undefined symbols.
  28063. no_undefined_flag=$lt_no_undefined_flag_CXX
  28064. # Flag to hardcode \$libdir into a binary during linking.
  28065. # This must work even if \$libdir does not exist
  28066. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  28067. # Whether we need a single "-rpath" flag with a separated argument.
  28068. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  28069. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28070. # DIR into the resulting binary.
  28071. hardcode_direct=$hardcode_direct_CXX
  28072. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28073. # DIR into the resulting binary and the resulting library dependency is
  28074. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28075. # library is relocated.
  28076. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  28077. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28078. # into the resulting binary.
  28079. hardcode_minus_L=$hardcode_minus_L_CXX
  28080. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28081. # into the resulting binary.
  28082. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  28083. # Set to "yes" if building a shared library automatically hardcodes DIR
  28084. # into the library and all subsequent libraries and executables linked
  28085. # against it.
  28086. hardcode_automatic=$hardcode_automatic_CXX
  28087. # Set to yes if linker adds runtime paths of dependent libraries
  28088. # to runtime path list.
  28089. inherit_rpath=$inherit_rpath_CXX
  28090. # Whether libtool must link a program against all its dependency libraries.
  28091. link_all_deplibs=$link_all_deplibs_CXX
  28092. # Set to "yes" if exported symbols are required.
  28093. always_export_symbols=$always_export_symbols_CXX
  28094. # The commands to list exported symbols.
  28095. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  28096. # Symbols that should not be listed in the preloaded symbols.
  28097. exclude_expsyms=$lt_exclude_expsyms_CXX
  28098. # Symbols that must always be exported.
  28099. include_expsyms=$lt_include_expsyms_CXX
  28100. # Commands necessary for linking programs (against libraries) with templates.
  28101. prelink_cmds=$lt_prelink_cmds_CXX
  28102. # Commands necessary for finishing linking programs.
  28103. postlink_cmds=$lt_postlink_cmds_CXX
  28104. # Specify filename containing input files.
  28105. file_list_spec=$lt_file_list_spec_CXX
  28106. # How to hardcode a shared library path into an executable.
  28107. hardcode_action=$hardcode_action_CXX
  28108. # The directories searched by this compiler when creating a shared library.
  28109. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  28110. # Dependencies to place before and after the objects being linked to
  28111. # create a shared library.
  28112. predep_objects=$lt_predep_objects_CXX
  28113. postdep_objects=$lt_postdep_objects_CXX
  28114. predeps=$lt_predeps_CXX
  28115. postdeps=$lt_postdeps_CXX
  28116. # The library search path used internally by the compiler when linking
  28117. # a shared library.
  28118. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  28119. # ### END LIBTOOL TAG CONFIG: CXX
  28120. _LT_EOF
  28121. ;;
  28122. "sdl2_config":C) chmod a+x sdl2-config ;;
  28123. "summary":C) printf "$SUMMARY" ;;
  28124. esac
  28125. done # for ac_tag
  28126. as_fn_exit 0
  28127. _ACEOF
  28128. ac_clean_files=$ac_clean_files_save
  28129. test $ac_write_fail = 0 ||
  28130. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28131. # configure is writing to config.log, and then calls config.status.
  28132. # config.status does its own redirection, appending to config.log.
  28133. # Unfortunately, on DOS this fails, as config.log is still kept open
  28134. # by configure, so config.status won't be able to write to it; its
  28135. # output is simply discarded. So we exec the FD to /dev/null,
  28136. # effectively closing config.log, so it can be properly (re)opened and
  28137. # appended to by config.status. When coming back to configure, we
  28138. # need to make the FD available again.
  28139. if test "$no_create" != yes; then
  28140. ac_cs_success=:
  28141. ac_config_status_args=
  28142. test "$silent" = yes &&
  28143. ac_config_status_args="$ac_config_status_args --quiet"
  28144. exec 5>/dev/null
  28145. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28146. exec 5>>config.log
  28147. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28148. # would make configure fail if this is the last instruction.
  28149. $ac_cs_success || as_fn_exit 1
  28150. fi
  28151. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28153. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28154. fi