configure 849 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="src/SDL.c"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER_CODE_MODE
  582. WAYLAND_SCANNER
  583. EXTRA_LDFLAGS
  584. BUILD_LDFLAGS
  585. EXTRA_CFLAGS
  586. BUILD_CFLAGS
  587. SDLTEST_OBJECTS
  588. SDLMAIN_OBJECTS
  589. VERSION_OBJECTS
  590. GEN_OBJECTS
  591. GEN_HEADERS
  592. OBJECTS
  593. INCLUDE
  594. ac_aux_dir
  595. ENABLE_STATIC_FALSE
  596. ENABLE_STATIC_TRUE
  597. ENABLE_SHARED_FALSE
  598. ENABLE_SHARED_TRUE
  599. PKGCONFIG_LIBS_PRIV
  600. SDL_RLD_FLAGS
  601. SDL_STATIC_LIBS
  602. SDL_LIBS
  603. SDL_CFLAGS
  604. INSTALL_SDL2_CONFIG
  605. LIBUSB_LIBS
  606. LIBUSB_CFLAGS
  607. IBUS_LIBS
  608. IBUS_CFLAGS
  609. DBUS_LIBS
  610. DBUS_CFLAGS
  611. LIBGBM_LIBS
  612. LIBGBM_CFLAGS
  613. LIBDRM_LIBS
  614. LIBDRM_CFLAGS
  615. DIRECTFB_LIBS
  616. DIRECTFB_CFLAGS
  617. X_EXTRA_LIBS
  618. X_LIBS
  619. X_PRE_LIBS
  620. X_CFLAGS
  621. XMKMF
  622. RPI_LIBS
  623. RPI_CFLAGS
  624. FUSIONSOUND_LIBS
  625. FUSIONSOUND_CFLAGS
  626. ARTSCONFIG
  627. PULSEAUDIO_LIBS
  628. PULSEAUDIO_CFLAGS
  629. PIPEWIRE_LIBS
  630. PIPEWIRE_CFLAGS
  631. ESD_LIBS
  632. ESD_CFLAGS
  633. ESD_CONFIG
  634. JACK_LIBS
  635. JACK_CFLAGS
  636. ALSA_LIBS
  637. ALSA_CFLAGS
  638. POW_LIB
  639. LIBOBJS
  640. ALLOCA
  641. LIBTOOLLINKERTAG
  642. LINKER
  643. PKG_CONFIG_LIBDIR
  644. PKG_CONFIG_PATH
  645. PKG_CONFIG
  646. SET_MAKE
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. CXXCPP
  651. ac_ct_CXX
  652. CXXFLAGS
  653. CXX
  654. LT_AGE
  655. LT_REVISION
  656. LT_CURRENT
  657. LT_RELEASE
  658. RC
  659. CPP
  660. OTOOL64
  661. OTOOL
  662. LIPO
  663. NMEDIT
  664. DSYMUTIL
  665. MANIFEST_TOOL
  666. AWK
  667. RANLIB
  668. STRIP
  669. ac_ct_AR
  670. AR
  671. LN_S
  672. NM
  673. ac_ct_DUMPBIN
  674. DUMPBIN
  675. LD
  676. FGREP
  677. EGREP
  678. GREP
  679. SED
  680. OBJEXT
  681. EXEEXT
  682. ac_ct_CC
  683. CPPFLAGS
  684. LDFLAGS
  685. CFLAGS
  686. CC
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBTOOL
  696. OBJDUMP
  697. DLLTOOL
  698. AS
  699. SDL_VERSION
  700. SDL_BINARY_AGE
  701. SDL_INTERFACE_AGE
  702. SDL_MICRO_VERSION
  703. SDL_MINOR_VERSION
  704. SDL_MAJOR_VERSION
  705. target_alias
  706. host_alias
  707. build_alias
  708. LIBS
  709. ECHO_T
  710. ECHO_N
  711. ECHO_C
  712. DEFS
  713. mandir
  714. localedir
  715. libdir
  716. psdir
  717. pdfdir
  718. dvidir
  719. htmldir
  720. infodir
  721. docdir
  722. oldincludedir
  723. includedir
  724. localstatedir
  725. sharedstatedir
  726. sysconfdir
  727. datadir
  728. datarootdir
  729. libexecdir
  730. sbindir
  731. bindir
  732. program_transform_name
  733. prefix
  734. exec_prefix
  735. PACKAGE_URL
  736. PACKAGE_BUGREPORT
  737. PACKAGE_STRING
  738. PACKAGE_VERSION
  739. PACKAGE_TARNAME
  740. PACKAGE_NAME
  741. PATH_SEPARATOR
  742. SHELL'
  743. ac_subst_files=''
  744. ac_user_opts='
  745. enable_option_checking
  746. enable_shared
  747. enable_static
  748. with_pic
  749. enable_fast_install
  750. with_gnu_ld
  751. with_sysroot
  752. enable_libtool_lock
  753. enable_assertions
  754. enable_dependency_tracking
  755. enable_libc
  756. enable_gcc_atomics
  757. enable_atomic
  758. enable_audio
  759. enable_video
  760. enable_render
  761. enable_events
  762. enable_joystick
  763. enable_haptic
  764. enable_sensor
  765. enable_power
  766. enable_filesystem
  767. enable_threads
  768. enable_timers
  769. enable_file
  770. enable_loadso
  771. enable_cpuinfo
  772. enable_assembly
  773. enable_ssemath
  774. enable_mmx
  775. enable_3dnow
  776. enable_sse
  777. enable_sse2
  778. enable_sse3
  779. enable_altivec
  780. enable_oss
  781. enable_alsa
  782. with_alsa_prefix
  783. with_alsa_inc_prefix
  784. enable_alsatest
  785. enable_alsa_shared
  786. enable_jack
  787. enable_jack_shared
  788. enable_esd
  789. with_esd_prefix
  790. with_esd_exec_prefix
  791. enable_esdtest
  792. enable_esd_shared
  793. enable_pipewire
  794. enable_pipewire_shared
  795. enable_pulseaudio
  796. enable_pulseaudio_shared
  797. enable_arts
  798. enable_arts_shared
  799. enable_nas
  800. enable_nas_shared
  801. enable_sndio
  802. enable_sndio_shared
  803. enable_fusionsound
  804. enable_fusionsound_shared
  805. enable_diskaudio
  806. enable_dummyaudio
  807. enable_libsamplerate
  808. enable_libsamplerate_shared
  809. enable_arm_simd
  810. enable_arm_neon
  811. enable_video_wayland
  812. enable_video_wayland_qt_touch
  813. enable_wayland_shared
  814. enable_libdecor
  815. enable_libdecor_shared
  816. enable_video_rpi
  817. enable_video_x11
  818. with_x
  819. enable_x11_shared
  820. enable_video_x11_xcursor
  821. enable_video_x11_xdbe
  822. enable_video_x11_xinerama
  823. enable_video_x11_xinput
  824. enable_video_x11_xrandr
  825. enable_video_x11_scrnsaver
  826. enable_video_x11_xshape
  827. enable_video_x11_vm
  828. enable_video_vivante
  829. enable_video_cocoa
  830. enable_video_metal
  831. enable_render_metal
  832. enable_video_directfb
  833. enable_directfb_shared
  834. enable_video_kmsdrm
  835. enable_kmsdrm_shared
  836. enable_video_dummy
  837. enable_video_opengl
  838. enable_video_opengles
  839. enable_video_opengles1
  840. enable_video_opengles2
  841. enable_video_vulkan
  842. enable_libudev
  843. enable_dbus
  844. enable_ime
  845. enable_ibus
  846. enable_fcitx
  847. enable_joystick_mfi
  848. enable_pthreads
  849. enable_pthread_sem
  850. enable_directx
  851. enable_xinput
  852. enable_wasapi
  853. enable_hidapi
  854. enable_hidapi_libusb
  855. enable_clock_gettime
  856. enable_rpath
  857. enable_backgrounding_signal
  858. enable_foregrounding_signal
  859. enable_joystick_virtual
  860. enable_render_d3d
  861. enable_sdl2_config
  862. '
  863. ac_precious_vars='build_alias
  864. host_alias
  865. target_alias
  866. CC
  867. CFLAGS
  868. LDFLAGS
  869. LIBS
  870. CPPFLAGS
  871. CPP
  872. CXX
  873. CXXFLAGS
  874. CCC
  875. CXXCPP
  876. PKG_CONFIG
  877. PKG_CONFIG_PATH
  878. PKG_CONFIG_LIBDIR
  879. JACK_CFLAGS
  880. JACK_LIBS
  881. PIPEWIRE_CFLAGS
  882. PIPEWIRE_LIBS
  883. PULSEAUDIO_CFLAGS
  884. PULSEAUDIO_LIBS
  885. FUSIONSOUND_CFLAGS
  886. FUSIONSOUND_LIBS
  887. RPI_CFLAGS
  888. RPI_LIBS
  889. XMKMF
  890. DIRECTFB_CFLAGS
  891. DIRECTFB_LIBS
  892. LIBDRM_CFLAGS
  893. LIBDRM_LIBS
  894. LIBGBM_CFLAGS
  895. LIBGBM_LIBS
  896. DBUS_CFLAGS
  897. DBUS_LIBS
  898. IBUS_CFLAGS
  899. IBUS_LIBS
  900. LIBUSB_CFLAGS
  901. LIBUSB_LIBS'
  902. # Initialize some variables set by options.
  903. ac_init_help=
  904. ac_init_version=false
  905. ac_unrecognized_opts=
  906. ac_unrecognized_sep=
  907. # The variables have the same names as the options, with
  908. # dashes changed to underlines.
  909. cache_file=/dev/null
  910. exec_prefix=NONE
  911. no_create=
  912. no_recursion=
  913. prefix=NONE
  914. program_prefix=NONE
  915. program_suffix=NONE
  916. program_transform_name=s,x,x,
  917. silent=
  918. site=
  919. srcdir=
  920. verbose=
  921. x_includes=NONE
  922. x_libraries=NONE
  923. # Installation directory options.
  924. # These are left unexpanded so users can "make install exec_prefix=/foo"
  925. # and all the variables that are supposed to be based on exec_prefix
  926. # by default will actually change.
  927. # Use braces instead of parens because sh, perl, etc. also accept them.
  928. # (The list follows the same order as the GNU Coding Standards.)
  929. bindir='${exec_prefix}/bin'
  930. sbindir='${exec_prefix}/sbin'
  931. libexecdir='${exec_prefix}/libexec'
  932. datarootdir='${prefix}/share'
  933. datadir='${datarootdir}'
  934. sysconfdir='${prefix}/etc'
  935. sharedstatedir='${prefix}/com'
  936. localstatedir='${prefix}/var'
  937. includedir='${prefix}/include'
  938. oldincludedir='/usr/include'
  939. docdir='${datarootdir}/doc/${PACKAGE}'
  940. infodir='${datarootdir}/info'
  941. htmldir='${docdir}'
  942. dvidir='${docdir}'
  943. pdfdir='${docdir}'
  944. psdir='${docdir}'
  945. libdir='${exec_prefix}/lib'
  946. localedir='${datarootdir}/locale'
  947. mandir='${datarootdir}/man'
  948. ac_prev=
  949. ac_dashdash=
  950. for ac_option
  951. do
  952. # If the previous option needs an argument, assign it.
  953. if test -n "$ac_prev"; then
  954. eval $ac_prev=\$ac_option
  955. ac_prev=
  956. continue
  957. fi
  958. case $ac_option in
  959. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  960. *=) ac_optarg= ;;
  961. *) ac_optarg=yes ;;
  962. esac
  963. # Accept the important Cygnus configure options, so we can diagnose typos.
  964. case $ac_dashdash$ac_option in
  965. --)
  966. ac_dashdash=yes ;;
  967. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  968. ac_prev=bindir ;;
  969. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  970. bindir=$ac_optarg ;;
  971. -build | --build | --buil | --bui | --bu)
  972. ac_prev=build_alias ;;
  973. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  974. build_alias=$ac_optarg ;;
  975. -cache-file | --cache-file | --cache-fil | --cache-fi \
  976. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  977. ac_prev=cache_file ;;
  978. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  979. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  980. cache_file=$ac_optarg ;;
  981. --config-cache | -C)
  982. cache_file=config.cache ;;
  983. -datadir | --datadir | --datadi | --datad)
  984. ac_prev=datadir ;;
  985. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  986. datadir=$ac_optarg ;;
  987. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  988. | --dataroo | --dataro | --datar)
  989. ac_prev=datarootdir ;;
  990. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  991. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  992. datarootdir=$ac_optarg ;;
  993. -disable-* | --disable-*)
  994. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  995. # Reject names that are not valid shell variable names.
  996. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  997. as_fn_error $? "invalid feature name: $ac_useropt"
  998. ac_useropt_orig=$ac_useropt
  999. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1000. case $ac_user_opts in
  1001. *"
  1002. "enable_$ac_useropt"
  1003. "*) ;;
  1004. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1005. ac_unrecognized_sep=', ';;
  1006. esac
  1007. eval enable_$ac_useropt=no ;;
  1008. -docdir | --docdir | --docdi | --doc | --do)
  1009. ac_prev=docdir ;;
  1010. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1011. docdir=$ac_optarg ;;
  1012. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1013. ac_prev=dvidir ;;
  1014. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1015. dvidir=$ac_optarg ;;
  1016. -enable-* | --enable-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error $? "invalid feature name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "enable_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval enable_$ac_useropt=\$ac_optarg ;;
  1031. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1032. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1033. | --exec | --exe | --ex)
  1034. ac_prev=exec_prefix ;;
  1035. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1036. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1037. | --exec=* | --exe=* | --ex=*)
  1038. exec_prefix=$ac_optarg ;;
  1039. -gas | --gas | --ga | --g)
  1040. # Obsolete; use --with-gas.
  1041. with_gas=yes ;;
  1042. -help | --help | --hel | --he | -h)
  1043. ac_init_help=long ;;
  1044. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1045. ac_init_help=recursive ;;
  1046. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1047. ac_init_help=short ;;
  1048. -host | --host | --hos | --ho)
  1049. ac_prev=host_alias ;;
  1050. -host=* | --host=* | --hos=* | --ho=*)
  1051. host_alias=$ac_optarg ;;
  1052. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1053. ac_prev=htmldir ;;
  1054. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1055. | --ht=*)
  1056. htmldir=$ac_optarg ;;
  1057. -includedir | --includedir | --includedi | --included | --include \
  1058. | --includ | --inclu | --incl | --inc)
  1059. ac_prev=includedir ;;
  1060. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1061. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1062. includedir=$ac_optarg ;;
  1063. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1064. ac_prev=infodir ;;
  1065. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1066. infodir=$ac_optarg ;;
  1067. -libdir | --libdir | --libdi | --libd)
  1068. ac_prev=libdir ;;
  1069. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1070. libdir=$ac_optarg ;;
  1071. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1072. | --libexe | --libex | --libe)
  1073. ac_prev=libexecdir ;;
  1074. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1075. | --libexe=* | --libex=* | --libe=*)
  1076. libexecdir=$ac_optarg ;;
  1077. -localedir | --localedir | --localedi | --localed | --locale)
  1078. ac_prev=localedir ;;
  1079. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1080. localedir=$ac_optarg ;;
  1081. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1082. | --localstate | --localstat | --localsta | --localst | --locals)
  1083. ac_prev=localstatedir ;;
  1084. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1085. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1086. localstatedir=$ac_optarg ;;
  1087. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1088. ac_prev=mandir ;;
  1089. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1090. mandir=$ac_optarg ;;
  1091. -nfp | --nfp | --nf)
  1092. # Obsolete; use --without-fp.
  1093. with_fp=no ;;
  1094. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1095. | --no-cr | --no-c | -n)
  1096. no_create=yes ;;
  1097. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1098. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1099. no_recursion=yes ;;
  1100. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1101. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1102. | --oldin | --oldi | --old | --ol | --o)
  1103. ac_prev=oldincludedir ;;
  1104. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1105. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1106. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1107. oldincludedir=$ac_optarg ;;
  1108. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1109. ac_prev=prefix ;;
  1110. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1111. prefix=$ac_optarg ;;
  1112. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1113. | --program-pre | --program-pr | --program-p)
  1114. ac_prev=program_prefix ;;
  1115. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1116. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1117. program_prefix=$ac_optarg ;;
  1118. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1119. | --program-suf | --program-su | --program-s)
  1120. ac_prev=program_suffix ;;
  1121. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1122. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1123. program_suffix=$ac_optarg ;;
  1124. -program-transform-name | --program-transform-name \
  1125. | --program-transform-nam | --program-transform-na \
  1126. | --program-transform-n | --program-transform- \
  1127. | --program-transform | --program-transfor \
  1128. | --program-transfo | --program-transf \
  1129. | --program-trans | --program-tran \
  1130. | --progr-tra | --program-tr | --program-t)
  1131. ac_prev=program_transform_name ;;
  1132. -program-transform-name=* | --program-transform-name=* \
  1133. | --program-transform-nam=* | --program-transform-na=* \
  1134. | --program-transform-n=* | --program-transform-=* \
  1135. | --program-transform=* | --program-transfor=* \
  1136. | --program-transfo=* | --program-transf=* \
  1137. | --program-trans=* | --program-tran=* \
  1138. | --progr-tra=* | --program-tr=* | --program-t=*)
  1139. program_transform_name=$ac_optarg ;;
  1140. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1141. ac_prev=pdfdir ;;
  1142. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1143. pdfdir=$ac_optarg ;;
  1144. -psdir | --psdir | --psdi | --psd | --ps)
  1145. ac_prev=psdir ;;
  1146. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1147. psdir=$ac_optarg ;;
  1148. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1149. | -silent | --silent | --silen | --sile | --sil)
  1150. silent=yes ;;
  1151. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1152. ac_prev=sbindir ;;
  1153. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1154. | --sbi=* | --sb=*)
  1155. sbindir=$ac_optarg ;;
  1156. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1157. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1158. | --sharedst | --shareds | --shared | --share | --shar \
  1159. | --sha | --sh)
  1160. ac_prev=sharedstatedir ;;
  1161. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1162. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1163. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1164. | --sha=* | --sh=*)
  1165. sharedstatedir=$ac_optarg ;;
  1166. -site | --site | --sit)
  1167. ac_prev=site ;;
  1168. -site=* | --site=* | --sit=*)
  1169. site=$ac_optarg ;;
  1170. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1171. ac_prev=srcdir ;;
  1172. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1173. srcdir=$ac_optarg ;;
  1174. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1175. | --syscon | --sysco | --sysc | --sys | --sy)
  1176. ac_prev=sysconfdir ;;
  1177. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1178. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1179. sysconfdir=$ac_optarg ;;
  1180. -target | --target | --targe | --targ | --tar | --ta | --t)
  1181. ac_prev=target_alias ;;
  1182. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1183. target_alias=$ac_optarg ;;
  1184. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1185. verbose=yes ;;
  1186. -version | --version | --versio | --versi | --vers | -V)
  1187. ac_init_version=: ;;
  1188. -with-* | --with-*)
  1189. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1190. # Reject names that are not valid shell variable names.
  1191. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1192. as_fn_error $? "invalid package name: $ac_useropt"
  1193. ac_useropt_orig=$ac_useropt
  1194. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1195. case $ac_user_opts in
  1196. *"
  1197. "with_$ac_useropt"
  1198. "*) ;;
  1199. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1200. ac_unrecognized_sep=', ';;
  1201. esac
  1202. eval with_$ac_useropt=\$ac_optarg ;;
  1203. -without-* | --without-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=no ;;
  1218. --x)
  1219. # Obsolete; use --with-x.
  1220. with_x=yes ;;
  1221. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1222. | --x-incl | --x-inc | --x-in | --x-i)
  1223. ac_prev=x_includes ;;
  1224. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1225. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1226. x_includes=$ac_optarg ;;
  1227. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1228. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1229. ac_prev=x_libraries ;;
  1230. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1231. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1232. x_libraries=$ac_optarg ;;
  1233. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1234. Try \`$0 --help' for more information"
  1235. ;;
  1236. *=*)
  1237. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1238. # Reject names that are not valid shell variable names.
  1239. case $ac_envvar in #(
  1240. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1241. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1242. esac
  1243. eval $ac_envvar=\$ac_optarg
  1244. export $ac_envvar ;;
  1245. *)
  1246. # FIXME: should be removed in autoconf 3.0.
  1247. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1248. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1249. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1250. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1251. ;;
  1252. esac
  1253. done
  1254. if test -n "$ac_prev"; then
  1255. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1256. as_fn_error $? "missing argument to $ac_option"
  1257. fi
  1258. if test -n "$ac_unrecognized_opts"; then
  1259. case $enable_option_checking in
  1260. no) ;;
  1261. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1262. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1263. esac
  1264. fi
  1265. # Check all directory arguments for consistency.
  1266. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1267. datadir sysconfdir sharedstatedir localstatedir includedir \
  1268. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1269. libdir localedir mandir
  1270. do
  1271. eval ac_val=\$$ac_var
  1272. # Remove trailing slashes.
  1273. case $ac_val in
  1274. */ )
  1275. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1276. eval $ac_var=\$ac_val;;
  1277. esac
  1278. # Be sure to have absolute directory names.
  1279. case $ac_val in
  1280. [\\/$]* | ?:[\\/]* ) continue;;
  1281. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1282. esac
  1283. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1284. done
  1285. # There might be people who depend on the old broken behavior: `$host'
  1286. # used to hold the argument of --host etc.
  1287. # FIXME: To remove some day.
  1288. build=$build_alias
  1289. host=$host_alias
  1290. target=$target_alias
  1291. # FIXME: To remove some day.
  1292. if test "x$host_alias" != x; then
  1293. if test "x$build_alias" = x; then
  1294. cross_compiling=maybe
  1295. elif test "x$build_alias" != "x$host_alias"; then
  1296. cross_compiling=yes
  1297. fi
  1298. fi
  1299. ac_tool_prefix=
  1300. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1301. test "$silent" = yes && exec 6>/dev/null
  1302. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1303. ac_ls_di=`ls -di .` &&
  1304. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1305. as_fn_error $? "working directory cannot be determined"
  1306. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1307. as_fn_error $? "pwd does not report name of working directory"
  1308. # Find the source files, if location was not specified.
  1309. if test -z "$srcdir"; then
  1310. ac_srcdir_defaulted=yes
  1311. # Try the directory containing this script, then the parent directory.
  1312. ac_confdir=`$as_dirname -- "$as_myself" ||
  1313. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1314. X"$as_myself" : 'X\(//\)[^/]' \| \
  1315. X"$as_myself" : 'X\(//\)$' \| \
  1316. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1317. $as_echo X"$as_myself" |
  1318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1319. s//\1/
  1320. q
  1321. }
  1322. /^X\(\/\/\)[^/].*/{
  1323. s//\1/
  1324. q
  1325. }
  1326. /^X\(\/\/\)$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\).*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. s/.*/./; q'`
  1335. srcdir=$ac_confdir
  1336. if test ! -r "$srcdir/$ac_unique_file"; then
  1337. srcdir=..
  1338. fi
  1339. else
  1340. ac_srcdir_defaulted=no
  1341. fi
  1342. if test ! -r "$srcdir/$ac_unique_file"; then
  1343. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1344. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1345. fi
  1346. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1347. ac_abs_confdir=`(
  1348. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1349. pwd)`
  1350. # When building in place, set srcdir=.
  1351. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1352. srcdir=.
  1353. fi
  1354. # Remove unnecessary trailing slashes from srcdir.
  1355. # Double slashes in file names in object file debugging info
  1356. # mess up M-x gdb in Emacs.
  1357. case $srcdir in
  1358. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1359. esac
  1360. for ac_var in $ac_precious_vars; do
  1361. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1362. eval ac_env_${ac_var}_value=\$${ac_var}
  1363. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1364. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1365. done
  1366. #
  1367. # Report the --help message.
  1368. #
  1369. if test "$ac_init_help" = "long"; then
  1370. # Omit some internal or obsolete options to make the list less imposing.
  1371. # This message is too long to be a string in the A/UX 3.1 sh.
  1372. cat <<_ACEOF
  1373. \`configure' configures this package to adapt to many kinds of systems.
  1374. Usage: $0 [OPTION]... [VAR=VALUE]...
  1375. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1376. VAR=VALUE. See below for descriptions of some of the useful variables.
  1377. Defaults for the options are specified in brackets.
  1378. Configuration:
  1379. -h, --help display this help and exit
  1380. --help=short display options specific to this package
  1381. --help=recursive display the short help of all the included packages
  1382. -V, --version display version information and exit
  1383. -q, --quiet, --silent do not print \`checking ...' messages
  1384. --cache-file=FILE cache test results in FILE [disabled]
  1385. -C, --config-cache alias for \`--cache-file=config.cache'
  1386. -n, --no-create do not create output files
  1387. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1388. Installation directories:
  1389. --prefix=PREFIX install architecture-independent files in PREFIX
  1390. [$ac_default_prefix]
  1391. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1392. [PREFIX]
  1393. By default, \`make install' will install all the files in
  1394. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1395. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1396. for instance \`--prefix=\$HOME'.
  1397. For better control, use the options below.
  1398. Fine tuning of the installation directories:
  1399. --bindir=DIR user executables [EPREFIX/bin]
  1400. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1401. --libexecdir=DIR program executables [EPREFIX/libexec]
  1402. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1403. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1404. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1405. --libdir=DIR object code libraries [EPREFIX/lib]
  1406. --includedir=DIR C header files [PREFIX/include]
  1407. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1408. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1409. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1410. --infodir=DIR info documentation [DATAROOTDIR/info]
  1411. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1412. --mandir=DIR man documentation [DATAROOTDIR/man]
  1413. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1414. --htmldir=DIR html documentation [DOCDIR]
  1415. --dvidir=DIR dvi documentation [DOCDIR]
  1416. --pdfdir=DIR pdf documentation [DOCDIR]
  1417. --psdir=DIR ps documentation [DOCDIR]
  1418. _ACEOF
  1419. cat <<\_ACEOF
  1420. X features:
  1421. --x-includes=DIR X include files are in DIR
  1422. --x-libraries=DIR X library files are in DIR
  1423. System types:
  1424. --build=BUILD configure for building on BUILD [guessed]
  1425. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1426. _ACEOF
  1427. fi
  1428. if test -n "$ac_init_help"; then
  1429. cat <<\_ACEOF
  1430. Optional Features:
  1431. --disable-option-checking ignore unrecognized --enable/--with options
  1432. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1433. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1434. --enable-shared[=PKGS] build shared libraries [default=yes]
  1435. --enable-static[=PKGS] build static libraries [default=yes]
  1436. --enable-fast-install[=PKGS]
  1437. optimize for fast installation [default=yes]
  1438. --disable-libtool-lock avoid locking (might break parallel builds)
  1439. --enable-assertions Enable internal sanity checks
  1440. (auto/disabled/release/enabled/paranoid)
  1441. [default=auto]
  1442. --enable-dependency-tracking
  1443. Use gcc -MMD -MT dependency tracking [default=yes]
  1444. --enable-libc Use the system C library [default=yes]
  1445. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1446. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1447. --enable-audio Enable the audio subsystem [default=yes]
  1448. --enable-video Enable the video subsystem [default=yes]
  1449. --enable-render Enable the render subsystem [default=yes]
  1450. --enable-events Enable the events subsystem [default=yes]
  1451. --enable-joystick Enable the joystick subsystem [default=yes]
  1452. --enable-haptic Enable the haptic (force feedback) subsystem
  1453. [default=yes]
  1454. --enable-sensor Enable the sensor subsystem [default=yes]
  1455. --enable-power Enable the power subsystem [default=yes]
  1456. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1457. --enable-threads Enable the threading subsystem [default=yes]
  1458. --enable-timers Enable the timer subsystem [default=yes]
  1459. --enable-file Enable the file subsystem [default=yes]
  1460. --enable-loadso Enable the shared object loading subsystem
  1461. [default=yes]
  1462. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1463. --enable-assembly Enable assembly routines [default=yes]
  1464. --enable-ssemath Allow GCC to use SSE floating point math
  1465. [default=maybe]
  1466. --enable-mmx use MMX assembly routines [default=yes]
  1467. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1468. --enable-sse use SSE assembly routines [default=yes]
  1469. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1470. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1471. --enable-altivec use Altivec assembly routines [default=yes]
  1472. --enable-oss support the OSS audio API [default=maybe]
  1473. --enable-alsa support the ALSA audio API [default=yes]
  1474. --disable-alsatest Do not try to compile and run a test Alsa program
  1475. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1476. --enable-jack use JACK audio [default=yes]
  1477. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1478. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1479. --disable-esdtest Do not try to compile and run a test ESD program
  1480. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1481. --enable-pipewire use Pipewire audio [default=yes]
  1482. --enable-pipewire-shared
  1483. dynamically load Pipewire support [default=yes]
  1484. --enable-pulseaudio use PulseAudio [default=yes]
  1485. --enable-pulseaudio-shared
  1486. dynamically load PulseAudio support [default=yes]
  1487. --enable-arts support the Analog Real Time Synthesizer
  1488. [default=yes]
  1489. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1490. --enable-nas support the NAS audio API [default=yes]
  1491. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1492. --enable-sndio support the sndio audio API [default=yes]
  1493. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1494. --enable-fusionsound use FusionSound audio driver [default=no]
  1495. --enable-fusionsound-shared
  1496. dynamically load fusionsound audio support
  1497. [default=yes]
  1498. --enable-diskaudio support the disk writer audio driver [default=yes]
  1499. --enable-dummyaudio support the dummy audio driver [default=yes]
  1500. --enable-libsamplerate use libsamplerate for audio rate conversion
  1501. [default=yes]
  1502. --enable-libsamplerate-shared
  1503. dynamically load libsamplerate [default=yes]
  1504. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1505. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1506. --enable-video-wayland use Wayland video driver [default=yes]
  1507. --enable-video-wayland-qt-touch
  1508. QtWayland server support for Wayland video driver
  1509. [default=yes]
  1510. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1511. --enable-libdecor use libdecor for Wayland client-side decorations
  1512. [default=yes]
  1513. --enable-libdecor-shared
  1514. dynamically load libdecor [default=yes]
  1515. --enable-video-rpi use Raspberry Pi video driver [default=yes]
  1516. --enable-video-x11 use X11 video driver [default=yes]
  1517. --enable-x11-shared dynamically load X11 support [default=maybe]
  1518. --enable-video-x11-xcursor
  1519. enable X11 Xcursor support [default=yes]
  1520. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1521. --enable-video-x11-xinerama
  1522. enable X11 Xinerama support [default=yes]
  1523. --enable-video-x11-xinput
  1524. enable X11 XInput extension for manymouse, tablets,
  1525. etc [default=yes]
  1526. --enable-video-x11-xrandr
  1527. enable X11 Xrandr extension for fullscreen
  1528. [default=yes]
  1529. --enable-video-x11-scrnsaver
  1530. enable X11 screensaver extension [default=yes]
  1531. --enable-video-x11-xshape
  1532. enable X11 XShape support [default=yes]
  1533. --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
  1534. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1535. --enable-video-cocoa use Cocoa video driver [default=yes]
  1536. --enable-video-metal include Metal support [default=yes]
  1537. --enable-render-metal enable the Metal render driver [default=yes]
  1538. --enable-video-directfb use DirectFB video driver [default=no]
  1539. --enable-directfb-shared
  1540. dynamically load directfb support [default=yes]
  1541. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1542. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1543. --enable-video-dummy use dummy video driver [default=yes]
  1544. --enable-video-opengl include OpenGL support [default=yes]
  1545. --enable-video-opengles include OpenGL ES support [default=yes]
  1546. --enable-video-opengles1
  1547. include OpenGL ES 1.1 support [default=yes]
  1548. --enable-video-opengles2
  1549. include OpenGL ES 2.0 support [default=yes]
  1550. --enable-video-vulkan include Vulkan support [default=yes]
  1551. --enable-libudev enable libudev support [default=yes]
  1552. --enable-dbus enable D-Bus support [default=yes]
  1553. --enable-ime enable IME support [default=yes]
  1554. --enable-ibus enable IBus support [default=yes]
  1555. --enable-fcitx enable fcitx support [default=yes]
  1556. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1557. --enable-pthreads use POSIX threads for multi-threading
  1558. [default=maybe]
  1559. --enable-pthread-sem use pthread semaphores [default=maybe]
  1560. --enable-directx use DirectX for Windows audio/video [default=yes]
  1561. --enable-xinput use Xinput for Windows [default=yes]
  1562. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1563. --enable-hidapi use HIDAPI for low level joystick drivers
  1564. [default=yes]
  1565. --enable-hidapi-libusb use libusb for low level joystick drivers
  1566. [default=maybe]
  1567. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1568. UNIX [default=yes]
  1569. --enable-rpath use an rpath when linking SDL [default=yes]
  1570. --enable-backgrounding-signal
  1571. number to use for magic backgrounding signal or 'no'
  1572. [default=no]
  1573. --enable-foregrounding-signal
  1574. number to use for magic foregrounding signal or 'no'
  1575. [default=no]
  1576. --enable-joystick-virtual
  1577. enable virtual joystick APIs [default=yes]
  1578. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1579. --enable-sdl2-config Install sdl2-config [default=yes]
  1580. Optional Packages:
  1581. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1582. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1583. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1584. both]
  1585. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1586. --with-sysroot=DIR Search for dependent libraries within DIR
  1587. (or the compiler's sysroot if not specified).
  1588. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1589. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1590. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1591. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1592. --with-x use the X Window System
  1593. Some influential environment variables:
  1594. CC C compiler command
  1595. CFLAGS C compiler flags
  1596. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1597. nonstandard directory <lib dir>
  1598. LIBS libraries to pass to the linker, e.g. -l<library>
  1599. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1600. you have headers in a nonstandard directory <include dir>
  1601. CPP C preprocessor
  1602. CXX C++ compiler command
  1603. CXXFLAGS C++ compiler flags
  1604. CXXCPP C++ preprocessor
  1605. PKG_CONFIG path to pkg-config utility
  1606. PKG_CONFIG_PATH
  1607. directories to add to pkg-config's search path
  1608. PKG_CONFIG_LIBDIR
  1609. path overriding pkg-config's built-in search path
  1610. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1611. JACK_LIBS linker flags for JACK, overriding pkg-config
  1612. PIPEWIRE_CFLAGS
  1613. C compiler flags for PIPEWIRE, overriding pkg-config
  1614. PIPEWIRE_LIBS
  1615. linker flags for PIPEWIRE, overriding pkg-config
  1616. PULSEAUDIO_CFLAGS
  1617. C compiler flags for PULSEAUDIO, overriding pkg-config
  1618. PULSEAUDIO_LIBS
  1619. linker flags for PULSEAUDIO, overriding pkg-config
  1620. FUSIONSOUND_CFLAGS
  1621. C compiler flags for FUSIONSOUND, overriding pkg-config
  1622. FUSIONSOUND_LIBS
  1623. linker flags for FUSIONSOUND, overriding pkg-config
  1624. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1625. RPI_LIBS linker flags for RPI, overriding pkg-config
  1626. XMKMF Path to xmkmf, Makefile generator for X Window System
  1627. DIRECTFB_CFLAGS
  1628. C compiler flags for DIRECTFB, overriding pkg-config
  1629. DIRECTFB_LIBS
  1630. linker flags for DIRECTFB, overriding pkg-config
  1631. LIBDRM_CFLAGS
  1632. C compiler flags for LIBDRM, overriding pkg-config
  1633. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1634. LIBGBM_CFLAGS
  1635. C compiler flags for LIBGBM, overriding pkg-config
  1636. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1637. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1638. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1639. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1640. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1641. LIBUSB_CFLAGS
  1642. C compiler flags for LIBUSB, overriding pkg-config
  1643. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1644. Use these variables to override the choices made by `configure' or to help
  1645. it to find libraries and programs with nonstandard names/locations.
  1646. Report bugs to the package provider.
  1647. _ACEOF
  1648. ac_status=$?
  1649. fi
  1650. if test "$ac_init_help" = "recursive"; then
  1651. # If there are subdirs, report their specific --help.
  1652. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1653. test -d "$ac_dir" ||
  1654. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1655. continue
  1656. ac_builddir=.
  1657. case "$ac_dir" in
  1658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1659. *)
  1660. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1661. # A ".." for each directory in $ac_dir_suffix.
  1662. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1663. case $ac_top_builddir_sub in
  1664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1666. esac ;;
  1667. esac
  1668. ac_abs_top_builddir=$ac_pwd
  1669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1670. # for backward compatibility:
  1671. ac_top_builddir=$ac_top_build_prefix
  1672. case $srcdir in
  1673. .) # We are building in place.
  1674. ac_srcdir=.
  1675. ac_top_srcdir=$ac_top_builddir_sub
  1676. ac_abs_top_srcdir=$ac_pwd ;;
  1677. [\\/]* | ?:[\\/]* ) # Absolute name.
  1678. ac_srcdir=$srcdir$ac_dir_suffix;
  1679. ac_top_srcdir=$srcdir
  1680. ac_abs_top_srcdir=$srcdir ;;
  1681. *) # Relative name.
  1682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1685. esac
  1686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1687. cd "$ac_dir" || { ac_status=$?; continue; }
  1688. # Check for guested configure.
  1689. if test -f "$ac_srcdir/configure.gnu"; then
  1690. echo &&
  1691. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1692. elif test -f "$ac_srcdir/configure"; then
  1693. echo &&
  1694. $SHELL "$ac_srcdir/configure" --help=recursive
  1695. else
  1696. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1697. fi || ac_status=$?
  1698. cd "$ac_pwd" || { ac_status=$?; break; }
  1699. done
  1700. fi
  1701. test -n "$ac_init_help" && exit $ac_status
  1702. if $ac_init_version; then
  1703. cat <<\_ACEOF
  1704. configure
  1705. generated by GNU Autoconf 2.69
  1706. Copyright (C) 2012 Free Software Foundation, Inc.
  1707. This configure script is free software; the Free Software Foundation
  1708. gives unlimited permission to copy, distribute and modify it.
  1709. _ACEOF
  1710. exit
  1711. fi
  1712. ## ------------------------ ##
  1713. ## Autoconf initialization. ##
  1714. ## ------------------------ ##
  1715. # ac_fn_c_try_compile LINENO
  1716. # --------------------------
  1717. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1718. ac_fn_c_try_compile ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. rm -f conftest.$ac_objext
  1722. if { { ac_try="$ac_compile"
  1723. case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_compile") 2>conftest.err
  1730. ac_status=$?
  1731. if test -s conftest.err; then
  1732. grep -v '^ *+' conftest.err >conftest.er1
  1733. cat conftest.er1 >&5
  1734. mv -f conftest.er1 conftest.err
  1735. fi
  1736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1737. test $ac_status = 0; } && {
  1738. test -z "$ac_c_werror_flag" ||
  1739. test ! -s conftest.err
  1740. } && test -s conftest.$ac_objext; then :
  1741. ac_retval=0
  1742. else
  1743. $as_echo "$as_me: failed program was:" >&5
  1744. sed 's/^/| /' conftest.$ac_ext >&5
  1745. ac_retval=1
  1746. fi
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. as_fn_set_status $ac_retval
  1749. } # ac_fn_c_try_compile
  1750. # ac_fn_c_try_link LINENO
  1751. # -----------------------
  1752. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1753. ac_fn_c_try_link ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. rm -f conftest.$ac_objext conftest$ac_exeext
  1757. if { { ac_try="$ac_link"
  1758. case "(($ac_try" in
  1759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1760. *) ac_try_echo=$ac_try;;
  1761. esac
  1762. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1763. $as_echo "$ac_try_echo"; } >&5
  1764. (eval "$ac_link") 2>conftest.err
  1765. ac_status=$?
  1766. if test -s conftest.err; then
  1767. grep -v '^ *+' conftest.err >conftest.er1
  1768. cat conftest.er1 >&5
  1769. mv -f conftest.er1 conftest.err
  1770. fi
  1771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1772. test $ac_status = 0; } && {
  1773. test -z "$ac_c_werror_flag" ||
  1774. test ! -s conftest.err
  1775. } && test -s conftest$ac_exeext && {
  1776. test "$cross_compiling" = yes ||
  1777. test -x conftest$ac_exeext
  1778. }; then :
  1779. ac_retval=0
  1780. else
  1781. $as_echo "$as_me: failed program was:" >&5
  1782. sed 's/^/| /' conftest.$ac_ext >&5
  1783. ac_retval=1
  1784. fi
  1785. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1786. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1787. # interfere with the next link command; also delete a directory that is
  1788. # left behind by Apple's compiler. We do this before executing the actions.
  1789. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. as_fn_set_status $ac_retval
  1792. } # ac_fn_c_try_link
  1793. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1794. # -------------------------------------------------------
  1795. # Tests whether HEADER exists and can be compiled using the include files in
  1796. # INCLUDES, setting the cache variable VAR accordingly.
  1797. ac_fn_c_check_header_compile ()
  1798. {
  1799. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1801. $as_echo_n "checking for $2... " >&6; }
  1802. if eval \${$3+:} false; then :
  1803. $as_echo_n "(cached) " >&6
  1804. else
  1805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h. */
  1807. $4
  1808. #include <$2>
  1809. _ACEOF
  1810. if ac_fn_c_try_compile "$LINENO"; then :
  1811. eval "$3=yes"
  1812. else
  1813. eval "$3=no"
  1814. fi
  1815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1816. fi
  1817. eval ac_res=\$$3
  1818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1819. $as_echo "$ac_res" >&6; }
  1820. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1821. } # ac_fn_c_check_header_compile
  1822. # ac_fn_c_try_cpp LINENO
  1823. # ----------------------
  1824. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1825. ac_fn_c_try_cpp ()
  1826. {
  1827. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1828. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1829. case "(($ac_try" in
  1830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1831. *) ac_try_echo=$ac_try;;
  1832. esac
  1833. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1834. $as_echo "$ac_try_echo"; } >&5
  1835. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1836. ac_status=$?
  1837. if test -s conftest.err; then
  1838. grep -v '^ *+' conftest.err >conftest.er1
  1839. cat conftest.er1 >&5
  1840. mv -f conftest.er1 conftest.err
  1841. fi
  1842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1843. test $ac_status = 0; } > conftest.i && {
  1844. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1845. test ! -s conftest.err
  1846. }; then :
  1847. ac_retval=0
  1848. else
  1849. $as_echo "$as_me: failed program was:" >&5
  1850. sed 's/^/| /' conftest.$ac_ext >&5
  1851. ac_retval=1
  1852. fi
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. as_fn_set_status $ac_retval
  1855. } # ac_fn_c_try_cpp
  1856. # ac_fn_c_try_run LINENO
  1857. # ----------------------
  1858. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1859. # that executables *can* be run.
  1860. ac_fn_c_try_run ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. if { { ac_try="$ac_link"
  1864. case "(($ac_try" in
  1865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1866. *) ac_try_echo=$ac_try;;
  1867. esac
  1868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1869. $as_echo "$ac_try_echo"; } >&5
  1870. (eval "$ac_link") 2>&5
  1871. ac_status=$?
  1872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1873. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1874. { { case "(($ac_try" in
  1875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1876. *) ac_try_echo=$ac_try;;
  1877. esac
  1878. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1879. $as_echo "$ac_try_echo"; } >&5
  1880. (eval "$ac_try") 2>&5
  1881. ac_status=$?
  1882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1883. test $ac_status = 0; }; }; then :
  1884. ac_retval=0
  1885. else
  1886. $as_echo "$as_me: program exited with status $ac_status" >&5
  1887. $as_echo "$as_me: failed program was:" >&5
  1888. sed 's/^/| /' conftest.$ac_ext >&5
  1889. ac_retval=$ac_status
  1890. fi
  1891. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1892. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1893. as_fn_set_status $ac_retval
  1894. } # ac_fn_c_try_run
  1895. # ac_fn_c_check_func LINENO FUNC VAR
  1896. # ----------------------------------
  1897. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1898. ac_fn_c_check_func ()
  1899. {
  1900. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1902. $as_echo_n "checking for $2... " >&6; }
  1903. if eval \${$3+:} false; then :
  1904. $as_echo_n "(cached) " >&6
  1905. else
  1906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1907. /* end confdefs.h. */
  1908. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1909. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1910. #define $2 innocuous_$2
  1911. /* System header to define __stub macros and hopefully few prototypes,
  1912. which can conflict with char $2 (); below.
  1913. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1914. <limits.h> exists even on freestanding compilers. */
  1915. #ifdef __STDC__
  1916. # include <limits.h>
  1917. #else
  1918. # include <assert.h>
  1919. #endif
  1920. #undef $2
  1921. /* Override any GCC internal prototype to avoid an error.
  1922. Use char because int might match the return type of a GCC
  1923. builtin and then its argument prototype would still apply. */
  1924. #ifdef __cplusplus
  1925. extern "C"
  1926. #endif
  1927. char $2 ();
  1928. /* The GNU C library defines this for functions which it implements
  1929. to always fail with ENOSYS. Some functions are actually named
  1930. something starting with __ and the normal name is an alias. */
  1931. #if defined __stub_$2 || defined __stub___$2
  1932. choke me
  1933. #endif
  1934. int
  1935. main ()
  1936. {
  1937. return $2 ();
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. if ac_fn_c_try_link "$LINENO"; then :
  1943. eval "$3=yes"
  1944. else
  1945. eval "$3=no"
  1946. fi
  1947. rm -f core conftest.err conftest.$ac_objext \
  1948. conftest$ac_exeext conftest.$ac_ext
  1949. fi
  1950. eval ac_res=\$$3
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952. $as_echo "$ac_res" >&6; }
  1953. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1954. } # ac_fn_c_check_func
  1955. # ac_fn_cxx_try_compile LINENO
  1956. # ----------------------------
  1957. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1958. ac_fn_cxx_try_compile ()
  1959. {
  1960. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1961. rm -f conftest.$ac_objext
  1962. if { { ac_try="$ac_compile"
  1963. case "(($ac_try" in
  1964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1965. *) ac_try_echo=$ac_try;;
  1966. esac
  1967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1968. $as_echo "$ac_try_echo"; } >&5
  1969. (eval "$ac_compile") 2>conftest.err
  1970. ac_status=$?
  1971. if test -s conftest.err; then
  1972. grep -v '^ *+' conftest.err >conftest.er1
  1973. cat conftest.er1 >&5
  1974. mv -f conftest.er1 conftest.err
  1975. fi
  1976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1977. test $ac_status = 0; } && {
  1978. test -z "$ac_cxx_werror_flag" ||
  1979. test ! -s conftest.err
  1980. } && test -s conftest.$ac_objext; then :
  1981. ac_retval=0
  1982. else
  1983. $as_echo "$as_me: failed program was:" >&5
  1984. sed 's/^/| /' conftest.$ac_ext >&5
  1985. ac_retval=1
  1986. fi
  1987. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1988. as_fn_set_status $ac_retval
  1989. } # ac_fn_cxx_try_compile
  1990. # ac_fn_cxx_try_cpp LINENO
  1991. # ------------------------
  1992. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1993. ac_fn_cxx_try_cpp ()
  1994. {
  1995. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1996. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1997. case "(($ac_try" in
  1998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1999. *) ac_try_echo=$ac_try;;
  2000. esac
  2001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2002. $as_echo "$ac_try_echo"; } >&5
  2003. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2004. ac_status=$?
  2005. if test -s conftest.err; then
  2006. grep -v '^ *+' conftest.err >conftest.er1
  2007. cat conftest.er1 >&5
  2008. mv -f conftest.er1 conftest.err
  2009. fi
  2010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2011. test $ac_status = 0; } > conftest.i && {
  2012. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2013. test ! -s conftest.err
  2014. }; then :
  2015. ac_retval=0
  2016. else
  2017. $as_echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. ac_retval=1
  2020. fi
  2021. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2022. as_fn_set_status $ac_retval
  2023. } # ac_fn_cxx_try_cpp
  2024. # ac_fn_cxx_try_link LINENO
  2025. # -------------------------
  2026. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2027. ac_fn_cxx_try_link ()
  2028. {
  2029. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2030. rm -f conftest.$ac_objext conftest$ac_exeext
  2031. if { { ac_try="$ac_link"
  2032. case "(($ac_try" in
  2033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2034. *) ac_try_echo=$ac_try;;
  2035. esac
  2036. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2037. $as_echo "$ac_try_echo"; } >&5
  2038. (eval "$ac_link") 2>conftest.err
  2039. ac_status=$?
  2040. if test -s conftest.err; then
  2041. grep -v '^ *+' conftest.err >conftest.er1
  2042. cat conftest.er1 >&5
  2043. mv -f conftest.er1 conftest.err
  2044. fi
  2045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2046. test $ac_status = 0; } && {
  2047. test -z "$ac_cxx_werror_flag" ||
  2048. test ! -s conftest.err
  2049. } && test -s conftest$ac_exeext && {
  2050. test "$cross_compiling" = yes ||
  2051. test -x conftest$ac_exeext
  2052. }; then :
  2053. ac_retval=0
  2054. else
  2055. $as_echo "$as_me: failed program was:" >&5
  2056. sed 's/^/| /' conftest.$ac_ext >&5
  2057. ac_retval=1
  2058. fi
  2059. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2060. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2061. # interfere with the next link command; also delete a directory that is
  2062. # left behind by Apple's compiler. We do this before executing the actions.
  2063. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2064. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2065. as_fn_set_status $ac_retval
  2066. } # ac_fn_cxx_try_link
  2067. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2068. # -------------------------------------------------------
  2069. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2070. # the include files in INCLUDES and setting the cache variable VAR
  2071. # accordingly.
  2072. ac_fn_c_check_header_mongrel ()
  2073. {
  2074. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2075. if eval \${$3+:} false; then :
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2077. $as_echo_n "checking for $2... " >&6; }
  2078. if eval \${$3+:} false; then :
  2079. $as_echo_n "(cached) " >&6
  2080. fi
  2081. eval ac_res=\$$3
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2083. $as_echo "$ac_res" >&6; }
  2084. else
  2085. # Is the header compilable?
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2087. $as_echo_n "checking $2 usability... " >&6; }
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $4
  2091. #include <$2>
  2092. _ACEOF
  2093. if ac_fn_c_try_compile "$LINENO"; then :
  2094. ac_header_compiler=yes
  2095. else
  2096. ac_header_compiler=no
  2097. fi
  2098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2100. $as_echo "$ac_header_compiler" >&6; }
  2101. # Is the header present?
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2103. $as_echo_n "checking $2 presence... " >&6; }
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. #include <$2>
  2107. _ACEOF
  2108. if ac_fn_c_try_cpp "$LINENO"; then :
  2109. ac_header_preproc=yes
  2110. else
  2111. ac_header_preproc=no
  2112. fi
  2113. rm -f conftest.err conftest.i conftest.$ac_ext
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2115. $as_echo "$ac_header_preproc" >&6; }
  2116. # So? What about this header?
  2117. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2118. yes:no: )
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2120. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2122. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2123. ;;
  2124. no:yes:* )
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2126. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2128. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2130. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2132. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2133. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2134. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2135. ;;
  2136. esac
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2138. $as_echo_n "checking for $2... " >&6; }
  2139. if eval \${$3+:} false; then :
  2140. $as_echo_n "(cached) " >&6
  2141. else
  2142. eval "$3=\$ac_header_compiler"
  2143. fi
  2144. eval ac_res=\$$3
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2146. $as_echo "$ac_res" >&6; }
  2147. fi
  2148. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2149. } # ac_fn_c_check_header_mongrel
  2150. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2151. # -------------------------------------------
  2152. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2153. # variable VAR accordingly.
  2154. ac_fn_c_check_type ()
  2155. {
  2156. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2158. $as_echo_n "checking for $2... " >&6; }
  2159. if eval \${$3+:} false; then :
  2160. $as_echo_n "(cached) " >&6
  2161. else
  2162. eval "$3=no"
  2163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2164. /* end confdefs.h. */
  2165. $4
  2166. int
  2167. main ()
  2168. {
  2169. if (sizeof ($2))
  2170. return 0;
  2171. ;
  2172. return 0;
  2173. }
  2174. _ACEOF
  2175. if ac_fn_c_try_compile "$LINENO"; then :
  2176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2177. /* end confdefs.h. */
  2178. $4
  2179. int
  2180. main ()
  2181. {
  2182. if (sizeof (($2)))
  2183. return 0;
  2184. ;
  2185. return 0;
  2186. }
  2187. _ACEOF
  2188. if ac_fn_c_try_compile "$LINENO"; then :
  2189. else
  2190. eval "$3=yes"
  2191. fi
  2192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2193. fi
  2194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2195. fi
  2196. eval ac_res=\$$3
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2198. $as_echo "$ac_res" >&6; }
  2199. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2200. } # ac_fn_c_check_type
  2201. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2202. # ----------------------------------------------------
  2203. # Tries to find if the field MEMBER exists in type AGGR, after including
  2204. # INCLUDES, setting cache variable VAR accordingly.
  2205. ac_fn_c_check_member ()
  2206. {
  2207. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2209. $as_echo_n "checking for $2.$3... " >&6; }
  2210. if eval \${$4+:} false; then :
  2211. $as_echo_n "(cached) " >&6
  2212. else
  2213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2214. /* end confdefs.h. */
  2215. $5
  2216. int
  2217. main ()
  2218. {
  2219. static $2 ac_aggr;
  2220. if (ac_aggr.$3)
  2221. return 0;
  2222. ;
  2223. return 0;
  2224. }
  2225. _ACEOF
  2226. if ac_fn_c_try_compile "$LINENO"; then :
  2227. eval "$4=yes"
  2228. else
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main ()
  2234. {
  2235. static $2 ac_aggr;
  2236. if (sizeof ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_c_try_compile "$LINENO"; then :
  2243. eval "$4=yes"
  2244. else
  2245. eval "$4=no"
  2246. fi
  2247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2248. fi
  2249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2250. fi
  2251. eval ac_res=\$$4
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2253. $as_echo "$ac_res" >&6; }
  2254. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2255. } # ac_fn_c_check_member
  2256. cat >config.log <<_ACEOF
  2257. This file contains any messages produced by compilers while
  2258. running configure, to aid debugging if configure makes a mistake.
  2259. It was created by $as_me, which was
  2260. generated by GNU Autoconf 2.69. Invocation command line was
  2261. $ $0 $@
  2262. _ACEOF
  2263. exec 5>>config.log
  2264. {
  2265. cat <<_ASUNAME
  2266. ## --------- ##
  2267. ## Platform. ##
  2268. ## --------- ##
  2269. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2270. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2271. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2272. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2273. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2274. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2275. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2276. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2277. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2278. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2279. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2280. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2281. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2282. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2283. _ASUNAME
  2284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2285. for as_dir in $PATH
  2286. do
  2287. IFS=$as_save_IFS
  2288. test -z "$as_dir" && as_dir=.
  2289. $as_echo "PATH: $as_dir"
  2290. done
  2291. IFS=$as_save_IFS
  2292. } >&5
  2293. cat >&5 <<_ACEOF
  2294. ## ----------- ##
  2295. ## Core tests. ##
  2296. ## ----------- ##
  2297. _ACEOF
  2298. # Keep a trace of the command line.
  2299. # Strip out --no-create and --no-recursion so they do not pile up.
  2300. # Strip out --silent because we don't want to record it for future runs.
  2301. # Also quote any args containing shell meta-characters.
  2302. # Make two passes to allow for proper duplicate-argument suppression.
  2303. ac_configure_args=
  2304. ac_configure_args0=
  2305. ac_configure_args1=
  2306. ac_must_keep_next=false
  2307. for ac_pass in 1 2
  2308. do
  2309. for ac_arg
  2310. do
  2311. case $ac_arg in
  2312. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2313. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2314. | -silent | --silent | --silen | --sile | --sil)
  2315. continue ;;
  2316. *\'*)
  2317. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2318. esac
  2319. case $ac_pass in
  2320. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2321. 2)
  2322. as_fn_append ac_configure_args1 " '$ac_arg'"
  2323. if test $ac_must_keep_next = true; then
  2324. ac_must_keep_next=false # Got value, back to normal.
  2325. else
  2326. case $ac_arg in
  2327. *=* | --config-cache | -C | -disable-* | --disable-* \
  2328. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2329. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2330. | -with-* | --with-* | -without-* | --without-* | --x)
  2331. case "$ac_configure_args0 " in
  2332. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2333. esac
  2334. ;;
  2335. -* ) ac_must_keep_next=true ;;
  2336. esac
  2337. fi
  2338. as_fn_append ac_configure_args " '$ac_arg'"
  2339. ;;
  2340. esac
  2341. done
  2342. done
  2343. { ac_configure_args0=; unset ac_configure_args0;}
  2344. { ac_configure_args1=; unset ac_configure_args1;}
  2345. # When interrupted or exit'd, cleanup temporary files, and complete
  2346. # config.log. We remove comments because anyway the quotes in there
  2347. # would cause problems or look ugly.
  2348. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2349. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2350. trap 'exit_status=$?
  2351. # Save into config.log some information that might help in debugging.
  2352. {
  2353. echo
  2354. $as_echo "## ---------------- ##
  2355. ## Cache variables. ##
  2356. ## ---------------- ##"
  2357. echo
  2358. # The following way of writing the cache mishandles newlines in values,
  2359. (
  2360. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2361. eval ac_val=\$$ac_var
  2362. case $ac_val in #(
  2363. *${as_nl}*)
  2364. case $ac_var in #(
  2365. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2366. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2367. esac
  2368. case $ac_var in #(
  2369. _ | IFS | as_nl) ;; #(
  2370. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2371. *) { eval $ac_var=; unset $ac_var;} ;;
  2372. esac ;;
  2373. esac
  2374. done
  2375. (set) 2>&1 |
  2376. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2377. *${as_nl}ac_space=\ *)
  2378. sed -n \
  2379. "s/'\''/'\''\\\\'\'''\''/g;
  2380. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2381. ;; #(
  2382. *)
  2383. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2384. ;;
  2385. esac |
  2386. sort
  2387. )
  2388. echo
  2389. $as_echo "## ----------------- ##
  2390. ## Output variables. ##
  2391. ## ----------------- ##"
  2392. echo
  2393. for ac_var in $ac_subst_vars
  2394. do
  2395. eval ac_val=\$$ac_var
  2396. case $ac_val in
  2397. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2398. esac
  2399. $as_echo "$ac_var='\''$ac_val'\''"
  2400. done | sort
  2401. echo
  2402. if test -n "$ac_subst_files"; then
  2403. $as_echo "## ------------------- ##
  2404. ## File substitutions. ##
  2405. ## ------------------- ##"
  2406. echo
  2407. for ac_var in $ac_subst_files
  2408. do
  2409. eval ac_val=\$$ac_var
  2410. case $ac_val in
  2411. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2412. esac
  2413. $as_echo "$ac_var='\''$ac_val'\''"
  2414. done | sort
  2415. echo
  2416. fi
  2417. if test -s confdefs.h; then
  2418. $as_echo "## ----------- ##
  2419. ## confdefs.h. ##
  2420. ## ----------- ##"
  2421. echo
  2422. cat confdefs.h
  2423. echo
  2424. fi
  2425. test "$ac_signal" != 0 &&
  2426. $as_echo "$as_me: caught signal $ac_signal"
  2427. $as_echo "$as_me: exit $exit_status"
  2428. } >&5
  2429. rm -f core *.core core.conftest.* &&
  2430. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2431. exit $exit_status
  2432. ' 0
  2433. for ac_signal in 1 2 13 15; do
  2434. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2435. done
  2436. ac_signal=0
  2437. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2438. rm -f -r conftest* confdefs.h
  2439. $as_echo "/* confdefs.h */" > confdefs.h
  2440. # Predefined preprocessor variables.
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_NAME "$PACKAGE_NAME"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2449. _ACEOF
  2450. cat >>confdefs.h <<_ACEOF
  2451. #define PACKAGE_STRING "$PACKAGE_STRING"
  2452. _ACEOF
  2453. cat >>confdefs.h <<_ACEOF
  2454. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2455. _ACEOF
  2456. cat >>confdefs.h <<_ACEOF
  2457. #define PACKAGE_URL "$PACKAGE_URL"
  2458. _ACEOF
  2459. # Let the site file select an alternate cache file if it wants to.
  2460. # Prefer an explicitly selected file to automatically selected ones.
  2461. ac_site_file1=NONE
  2462. ac_site_file2=NONE
  2463. if test -n "$CONFIG_SITE"; then
  2464. # We do not want a PATH search for config.site.
  2465. case $CONFIG_SITE in #((
  2466. -*) ac_site_file1=./$CONFIG_SITE;;
  2467. */*) ac_site_file1=$CONFIG_SITE;;
  2468. *) ac_site_file1=./$CONFIG_SITE;;
  2469. esac
  2470. elif test "x$prefix" != xNONE; then
  2471. ac_site_file1=$prefix/share/config.site
  2472. ac_site_file2=$prefix/etc/config.site
  2473. else
  2474. ac_site_file1=$ac_default_prefix/share/config.site
  2475. ac_site_file2=$ac_default_prefix/etc/config.site
  2476. fi
  2477. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2478. do
  2479. test "x$ac_site_file" = xNONE && continue
  2480. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2482. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2483. sed 's/^/| /' "$ac_site_file" >&5
  2484. . "$ac_site_file" \
  2485. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2487. as_fn_error $? "failed to load site script $ac_site_file
  2488. See \`config.log' for more details" "$LINENO" 5; }
  2489. fi
  2490. done
  2491. if test -r "$cache_file"; then
  2492. # Some versions of bash will fail to source /dev/null (special files
  2493. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2494. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2496. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2497. case $cache_file in
  2498. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2499. *) . "./$cache_file";;
  2500. esac
  2501. fi
  2502. else
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2504. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2505. >$cache_file
  2506. fi
  2507. # Check that the precious variables saved in the cache have kept the same
  2508. # value.
  2509. ac_cache_corrupted=false
  2510. for ac_var in $ac_precious_vars; do
  2511. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2512. eval ac_new_set=\$ac_env_${ac_var}_set
  2513. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2514. eval ac_new_val=\$ac_env_${ac_var}_value
  2515. case $ac_old_set,$ac_new_set in
  2516. set,)
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2518. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2519. ac_cache_corrupted=: ;;
  2520. ,set)
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2522. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2523. ac_cache_corrupted=: ;;
  2524. ,);;
  2525. *)
  2526. if test "x$ac_old_val" != "x$ac_new_val"; then
  2527. # differences in whitespace do not lead to failure.
  2528. ac_old_val_w=`echo x $ac_old_val`
  2529. ac_new_val_w=`echo x $ac_new_val`
  2530. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2532. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2533. ac_cache_corrupted=:
  2534. else
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2536. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2537. eval $ac_var=\$ac_old_val
  2538. fi
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2540. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2542. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2543. fi;;
  2544. esac
  2545. # Pass precious variables to config.status.
  2546. if test "$ac_new_set" = set; then
  2547. case $ac_new_val in
  2548. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2549. *) ac_arg=$ac_var=$ac_new_val ;;
  2550. esac
  2551. case " $ac_configure_args " in
  2552. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2553. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2554. esac
  2555. fi
  2556. done
  2557. if $ac_cache_corrupted; then
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2559. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2561. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2562. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2563. fi
  2564. ## -------------------- ##
  2565. ## Main body of script. ##
  2566. ## -------------------- ##
  2567. ac_ext=c
  2568. ac_cpp='$CPP $CPPFLAGS'
  2569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2572. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2573. ac_aux_dir=
  2574. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2575. if test -f "$ac_dir/install-sh"; then
  2576. ac_aux_dir=$ac_dir
  2577. ac_install_sh="$ac_aux_dir/install-sh -c"
  2578. break
  2579. elif test -f "$ac_dir/install.sh"; then
  2580. ac_aux_dir=$ac_dir
  2581. ac_install_sh="$ac_aux_dir/install.sh -c"
  2582. break
  2583. elif test -f "$ac_dir/shtool"; then
  2584. ac_aux_dir=$ac_dir
  2585. ac_install_sh="$ac_aux_dir/shtool install -c"
  2586. break
  2587. fi
  2588. done
  2589. if test -z "$ac_aux_dir"; then
  2590. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2591. fi
  2592. # These three variables are undocumented and unsupported,
  2593. # and are intended to be withdrawn in a future Autoconf release.
  2594. # They can cause serious problems if a builder's source tree is in a directory
  2595. # whose full name contains unusual characters.
  2596. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2597. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2598. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2599. orig_CFLAGS="$CFLAGS"
  2600. #
  2601. # Making releases:
  2602. # Edit include/SDL_version.h and change the version, then:
  2603. # SDL_MICRO_VERSION += 1;
  2604. # SDL_INTERFACE_AGE += 1;
  2605. # SDL_BINARY_AGE += 1;
  2606. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2607. # if backwards compatibility has been broken,
  2608. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2609. #
  2610. SDL_MAJOR_VERSION=2
  2611. SDL_MINOR_VERSION=0
  2612. SDL_MICRO_VERSION=17
  2613. SDL_INTERFACE_AGE=0
  2614. SDL_BINARY_AGE=17
  2615. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2616. # libtool versioning
  2617. case `pwd` in
  2618. *\ * | *\ *)
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2620. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2621. esac
  2622. macro_version='2.4.2'
  2623. macro_revision='1.3337'
  2624. ltmain="$ac_aux_dir/ltmain.sh"
  2625. # Make sure we can run config.sub.
  2626. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2627. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2629. $as_echo_n "checking build system type... " >&6; }
  2630. if ${ac_cv_build+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. ac_build_alias=$build_alias
  2634. test "x$ac_build_alias" = x &&
  2635. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2636. test "x$ac_build_alias" = x &&
  2637. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2638. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2639. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2640. fi
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2642. $as_echo "$ac_cv_build" >&6; }
  2643. case $ac_cv_build in
  2644. *-*-*) ;;
  2645. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2646. esac
  2647. build=$ac_cv_build
  2648. ac_save_IFS=$IFS; IFS='-'
  2649. set x $ac_cv_build
  2650. shift
  2651. build_cpu=$1
  2652. build_vendor=$2
  2653. shift; shift
  2654. # Remember, the first character of IFS is used to create $*,
  2655. # except with old shells:
  2656. build_os=$*
  2657. IFS=$ac_save_IFS
  2658. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2660. $as_echo_n "checking host system type... " >&6; }
  2661. if ${ac_cv_host+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test "x$host_alias" = x; then
  2665. ac_cv_host=$ac_cv_build
  2666. else
  2667. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2668. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2669. fi
  2670. fi
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2672. $as_echo "$ac_cv_host" >&6; }
  2673. case $ac_cv_host in
  2674. *-*-*) ;;
  2675. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2676. esac
  2677. host=$ac_cv_host
  2678. ac_save_IFS=$IFS; IFS='-'
  2679. set x $ac_cv_host
  2680. shift
  2681. host_cpu=$1
  2682. host_vendor=$2
  2683. shift; shift
  2684. # Remember, the first character of IFS is used to create $*,
  2685. # except with old shells:
  2686. host_os=$*
  2687. IFS=$ac_save_IFS
  2688. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2689. # Backslashify metacharacters that are still active within
  2690. # double-quoted strings.
  2691. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2692. # Same as above, but do not quote variable references.
  2693. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2694. # Sed substitution to delay expansion of an escaped shell variable in a
  2695. # double_quote_subst'ed string.
  2696. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2697. # Sed substitution to delay expansion of an escaped single quote.
  2698. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2699. # Sed substitution to avoid accidental globbing in evaled expressions
  2700. no_glob_subst='s/\*/\\\*/g'
  2701. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2702. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2703. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2705. $as_echo_n "checking how to print strings... " >&6; }
  2706. # Test print first, because it will be a builtin if present.
  2707. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2708. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2709. ECHO='print -r --'
  2710. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2711. ECHO='printf %s\n'
  2712. else
  2713. # Use this function as a fallback that always works.
  2714. func_fallback_echo ()
  2715. {
  2716. eval 'cat <<_LTECHO_EOF
  2717. $1
  2718. _LTECHO_EOF'
  2719. }
  2720. ECHO='func_fallback_echo'
  2721. fi
  2722. # func_echo_all arg...
  2723. # Invoke $ECHO with all args, space-separated.
  2724. func_echo_all ()
  2725. {
  2726. $ECHO ""
  2727. }
  2728. case "$ECHO" in
  2729. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2730. $as_echo "printf" >&6; } ;;
  2731. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2732. $as_echo "print -r" >&6; } ;;
  2733. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2734. $as_echo "cat" >&6; } ;;
  2735. esac
  2736. ac_ext=c
  2737. ac_cpp='$CPP $CPPFLAGS'
  2738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2741. if test -n "$ac_tool_prefix"; then
  2742. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2743. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2745. $as_echo_n "checking for $ac_word... " >&6; }
  2746. if ${ac_cv_prog_CC+:} false; then :
  2747. $as_echo_n "(cached) " >&6
  2748. else
  2749. if test -n "$CC"; then
  2750. ac_cv_prog_CC="$CC" # Let the user override the test.
  2751. else
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. test -z "$as_dir" && as_dir=.
  2757. for ac_exec_ext in '' $ac_executable_extensions; do
  2758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2759. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2761. break 2
  2762. fi
  2763. done
  2764. done
  2765. IFS=$as_save_IFS
  2766. fi
  2767. fi
  2768. CC=$ac_cv_prog_CC
  2769. if test -n "$CC"; then
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2771. $as_echo "$CC" >&6; }
  2772. else
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2774. $as_echo "no" >&6; }
  2775. fi
  2776. fi
  2777. if test -z "$ac_cv_prog_CC"; then
  2778. ac_ct_CC=$CC
  2779. # Extract the first word of "gcc", so it can be a program name with args.
  2780. set dummy gcc; ac_word=$2
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2782. $as_echo_n "checking for $ac_word... " >&6; }
  2783. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2784. $as_echo_n "(cached) " >&6
  2785. else
  2786. if test -n "$ac_ct_CC"; then
  2787. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2788. else
  2789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2790. for as_dir in $PATH
  2791. do
  2792. IFS=$as_save_IFS
  2793. test -z "$as_dir" && as_dir=.
  2794. for ac_exec_ext in '' $ac_executable_extensions; do
  2795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2796. ac_cv_prog_ac_ct_CC="gcc"
  2797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2798. break 2
  2799. fi
  2800. done
  2801. done
  2802. IFS=$as_save_IFS
  2803. fi
  2804. fi
  2805. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2806. if test -n "$ac_ct_CC"; then
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2808. $as_echo "$ac_ct_CC" >&6; }
  2809. else
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2811. $as_echo "no" >&6; }
  2812. fi
  2813. if test "x$ac_ct_CC" = x; then
  2814. CC=""
  2815. else
  2816. case $cross_compiling:$ac_tool_warned in
  2817. yes:)
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2820. ac_tool_warned=yes ;;
  2821. esac
  2822. CC=$ac_ct_CC
  2823. fi
  2824. else
  2825. CC="$ac_cv_prog_CC"
  2826. fi
  2827. if test -z "$CC"; then
  2828. if test -n "$ac_tool_prefix"; then
  2829. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2830. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2832. $as_echo_n "checking for $ac_word... " >&6; }
  2833. if ${ac_cv_prog_CC+:} false; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. if test -n "$CC"; then
  2837. ac_cv_prog_CC="$CC" # Let the user override the test.
  2838. else
  2839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2840. for as_dir in $PATH
  2841. do
  2842. IFS=$as_save_IFS
  2843. test -z "$as_dir" && as_dir=.
  2844. for ac_exec_ext in '' $ac_executable_extensions; do
  2845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2846. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2848. break 2
  2849. fi
  2850. done
  2851. done
  2852. IFS=$as_save_IFS
  2853. fi
  2854. fi
  2855. CC=$ac_cv_prog_CC
  2856. if test -n "$CC"; then
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2858. $as_echo "$CC" >&6; }
  2859. else
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2861. $as_echo "no" >&6; }
  2862. fi
  2863. fi
  2864. fi
  2865. if test -z "$CC"; then
  2866. # Extract the first word of "cc", so it can be a program name with args.
  2867. set dummy cc; ac_word=$2
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2869. $as_echo_n "checking for $ac_word... " >&6; }
  2870. if ${ac_cv_prog_CC+:} false; then :
  2871. $as_echo_n "(cached) " >&6
  2872. else
  2873. if test -n "$CC"; then
  2874. ac_cv_prog_CC="$CC" # Let the user override the test.
  2875. else
  2876. ac_prog_rejected=no
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2884. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2885. ac_prog_rejected=yes
  2886. continue
  2887. fi
  2888. ac_cv_prog_CC="cc"
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2890. break 2
  2891. fi
  2892. done
  2893. done
  2894. IFS=$as_save_IFS
  2895. if test $ac_prog_rejected = yes; then
  2896. # We found a bogon in the path, so make sure we never use it.
  2897. set dummy $ac_cv_prog_CC
  2898. shift
  2899. if test $# != 0; then
  2900. # We chose a different compiler from the bogus one.
  2901. # However, it has the same basename, so the bogon will be chosen
  2902. # first if we set CC to just the basename; use the full file name.
  2903. shift
  2904. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2905. fi
  2906. fi
  2907. fi
  2908. fi
  2909. CC=$ac_cv_prog_CC
  2910. if test -n "$CC"; then
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2912. $as_echo "$CC" >&6; }
  2913. else
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2915. $as_echo "no" >&6; }
  2916. fi
  2917. fi
  2918. if test -z "$CC"; then
  2919. if test -n "$ac_tool_prefix"; then
  2920. for ac_prog in cl.exe
  2921. do
  2922. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2923. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2925. $as_echo_n "checking for $ac_word... " >&6; }
  2926. if ${ac_cv_prog_CC+:} false; then :
  2927. $as_echo_n "(cached) " >&6
  2928. else
  2929. if test -n "$CC"; then
  2930. ac_cv_prog_CC="$CC" # Let the user override the test.
  2931. else
  2932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2933. for as_dir in $PATH
  2934. do
  2935. IFS=$as_save_IFS
  2936. test -z "$as_dir" && as_dir=.
  2937. for ac_exec_ext in '' $ac_executable_extensions; do
  2938. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2939. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2941. break 2
  2942. fi
  2943. done
  2944. done
  2945. IFS=$as_save_IFS
  2946. fi
  2947. fi
  2948. CC=$ac_cv_prog_CC
  2949. if test -n "$CC"; then
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2951. $as_echo "$CC" >&6; }
  2952. else
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2954. $as_echo "no" >&6; }
  2955. fi
  2956. test -n "$CC" && break
  2957. done
  2958. fi
  2959. if test -z "$CC"; then
  2960. ac_ct_CC=$CC
  2961. for ac_prog in cl.exe
  2962. do
  2963. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2964. set dummy $ac_prog; ac_word=$2
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2966. $as_echo_n "checking for $ac_word... " >&6; }
  2967. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. if test -n "$ac_ct_CC"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2972. else
  2973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH
  2975. do
  2976. IFS=$as_save_IFS
  2977. test -z "$as_dir" && as_dir=.
  2978. for ac_exec_ext in '' $ac_executable_extensions; do
  2979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2980. ac_cv_prog_ac_ct_CC="$ac_prog"
  2981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2982. break 2
  2983. fi
  2984. done
  2985. done
  2986. IFS=$as_save_IFS
  2987. fi
  2988. fi
  2989. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2990. if test -n "$ac_ct_CC"; then
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2992. $as_echo "$ac_ct_CC" >&6; }
  2993. else
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2995. $as_echo "no" >&6; }
  2996. fi
  2997. test -n "$ac_ct_CC" && break
  2998. done
  2999. if test "x$ac_ct_CC" = x; then
  3000. CC=""
  3001. else
  3002. case $cross_compiling:$ac_tool_warned in
  3003. yes:)
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3006. ac_tool_warned=yes ;;
  3007. esac
  3008. CC=$ac_ct_CC
  3009. fi
  3010. fi
  3011. fi
  3012. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3014. as_fn_error $? "no acceptable C compiler found in \$PATH
  3015. See \`config.log' for more details" "$LINENO" 5; }
  3016. # Provide some information about the compiler.
  3017. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3018. set X $ac_compile
  3019. ac_compiler=$2
  3020. for ac_option in --version -v -V -qversion; do
  3021. { { ac_try="$ac_compiler $ac_option >&5"
  3022. case "(($ac_try" in
  3023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3024. *) ac_try_echo=$ac_try;;
  3025. esac
  3026. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3027. $as_echo "$ac_try_echo"; } >&5
  3028. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3029. ac_status=$?
  3030. if test -s conftest.err; then
  3031. sed '10a\
  3032. ... rest of stderr output deleted ...
  3033. 10q' conftest.err >conftest.er1
  3034. cat conftest.er1 >&5
  3035. fi
  3036. rm -f conftest.er1 conftest.err
  3037. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3038. test $ac_status = 0; }
  3039. done
  3040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end confdefs.h. */
  3042. int
  3043. main ()
  3044. {
  3045. ;
  3046. return 0;
  3047. }
  3048. _ACEOF
  3049. ac_clean_files_save=$ac_clean_files
  3050. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3051. # Try to create an executable without -o first, disregard a.out.
  3052. # It will help us diagnose broken compilers, and finding out an intuition
  3053. # of exeext.
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3055. $as_echo_n "checking whether the C compiler works... " >&6; }
  3056. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3057. # The possible output files:
  3058. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3059. ac_rmfiles=
  3060. for ac_file in $ac_files
  3061. do
  3062. case $ac_file in
  3063. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3064. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3065. esac
  3066. done
  3067. rm -f $ac_rmfiles
  3068. if { { ac_try="$ac_link_default"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_link_default") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }; then :
  3079. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3080. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3081. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3082. # so that the user can short-circuit this test for compilers unknown to
  3083. # Autoconf.
  3084. for ac_file in $ac_files ''
  3085. do
  3086. test -f "$ac_file" || continue
  3087. case $ac_file in
  3088. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3089. ;;
  3090. [ab].out )
  3091. # We found the default executable, but exeext='' is most
  3092. # certainly right.
  3093. break;;
  3094. *.* )
  3095. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3096. then :; else
  3097. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3098. fi
  3099. # We set ac_cv_exeext here because the later test for it is not
  3100. # safe: cross compilers may not add the suffix if given an `-o'
  3101. # argument, so we may need to know it at that point already.
  3102. # Even if this section looks crufty: it has the advantage of
  3103. # actually working.
  3104. break;;
  3105. * )
  3106. break;;
  3107. esac
  3108. done
  3109. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3110. else
  3111. ac_file=''
  3112. fi
  3113. if test -z "$ac_file"; then :
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3115. $as_echo "no" >&6; }
  3116. $as_echo "$as_me: failed program was:" >&5
  3117. sed 's/^/| /' conftest.$ac_ext >&5
  3118. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3120. as_fn_error 77 "C compiler cannot create executables
  3121. See \`config.log' for more details" "$LINENO" 5; }
  3122. else
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3124. $as_echo "yes" >&6; }
  3125. fi
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3127. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3129. $as_echo "$ac_file" >&6; }
  3130. ac_exeext=$ac_cv_exeext
  3131. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3132. ac_clean_files=$ac_clean_files_save
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3134. $as_echo_n "checking for suffix of executables... " >&6; }
  3135. if { { ac_try="$ac_link"
  3136. case "(($ac_try" in
  3137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3138. *) ac_try_echo=$ac_try;;
  3139. esac
  3140. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3141. $as_echo "$ac_try_echo"; } >&5
  3142. (eval "$ac_link") 2>&5
  3143. ac_status=$?
  3144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3145. test $ac_status = 0; }; then :
  3146. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3147. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3148. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3149. # `rm'.
  3150. for ac_file in conftest.exe conftest conftest.*; do
  3151. test -f "$ac_file" || continue
  3152. case $ac_file in
  3153. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3154. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3155. break;;
  3156. * ) break;;
  3157. esac
  3158. done
  3159. else
  3160. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3162. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3163. See \`config.log' for more details" "$LINENO" 5; }
  3164. fi
  3165. rm -f conftest conftest$ac_cv_exeext
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3167. $as_echo "$ac_cv_exeext" >&6; }
  3168. rm -f conftest.$ac_ext
  3169. EXEEXT=$ac_cv_exeext
  3170. ac_exeext=$EXEEXT
  3171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3172. /* end confdefs.h. */
  3173. #include <stdio.h>
  3174. int
  3175. main ()
  3176. {
  3177. FILE *f = fopen ("conftest.out", "w");
  3178. return ferror (f) || fclose (f) != 0;
  3179. ;
  3180. return 0;
  3181. }
  3182. _ACEOF
  3183. ac_clean_files="$ac_clean_files conftest.out"
  3184. # Check that the compiler produces executables we can run. If not, either
  3185. # the compiler is broken, or we cross compile.
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3187. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3188. if test "$cross_compiling" != yes; then
  3189. { { ac_try="$ac_link"
  3190. case "(($ac_try" in
  3191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. *) ac_try_echo=$ac_try;;
  3193. esac
  3194. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3195. $as_echo "$ac_try_echo"; } >&5
  3196. (eval "$ac_link") 2>&5
  3197. ac_status=$?
  3198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3199. test $ac_status = 0; }
  3200. if { ac_try='./conftest$ac_cv_exeext'
  3201. { { case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3206. $as_echo "$ac_try_echo"; } >&5
  3207. (eval "$ac_try") 2>&5
  3208. ac_status=$?
  3209. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3210. test $ac_status = 0; }; }; then
  3211. cross_compiling=no
  3212. else
  3213. if test "$cross_compiling" = maybe; then
  3214. cross_compiling=yes
  3215. else
  3216. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3218. as_fn_error $? "cannot run C compiled programs.
  3219. If you meant to cross compile, use \`--host'.
  3220. See \`config.log' for more details" "$LINENO" 5; }
  3221. fi
  3222. fi
  3223. fi
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3225. $as_echo "$cross_compiling" >&6; }
  3226. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3227. ac_clean_files=$ac_clean_files_save
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3229. $as_echo_n "checking for suffix of object files... " >&6; }
  3230. if ${ac_cv_objext+:} false; then :
  3231. $as_echo_n "(cached) " >&6
  3232. else
  3233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3234. /* end confdefs.h. */
  3235. int
  3236. main ()
  3237. {
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. rm -f conftest.o conftest.obj
  3243. if { { ac_try="$ac_compile"
  3244. case "(($ac_try" in
  3245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3246. *) ac_try_echo=$ac_try;;
  3247. esac
  3248. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3249. $as_echo "$ac_try_echo"; } >&5
  3250. (eval "$ac_compile") 2>&5
  3251. ac_status=$?
  3252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3253. test $ac_status = 0; }; then :
  3254. for ac_file in conftest.o conftest.obj conftest.*; do
  3255. test -f "$ac_file" || continue;
  3256. case $ac_file in
  3257. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3258. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3259. break;;
  3260. esac
  3261. done
  3262. else
  3263. $as_echo "$as_me: failed program was:" >&5
  3264. sed 's/^/| /' conftest.$ac_ext >&5
  3265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3267. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3268. See \`config.log' for more details" "$LINENO" 5; }
  3269. fi
  3270. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3271. fi
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3273. $as_echo "$ac_cv_objext" >&6; }
  3274. OBJEXT=$ac_cv_objext
  3275. ac_objext=$OBJEXT
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3277. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3278. if ${ac_cv_c_compiler_gnu+:} false; then :
  3279. $as_echo_n "(cached) " >&6
  3280. else
  3281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3282. /* end confdefs.h. */
  3283. int
  3284. main ()
  3285. {
  3286. #ifndef __GNUC__
  3287. choke me
  3288. #endif
  3289. ;
  3290. return 0;
  3291. }
  3292. _ACEOF
  3293. if ac_fn_c_try_compile "$LINENO"; then :
  3294. ac_compiler_gnu=yes
  3295. else
  3296. ac_compiler_gnu=no
  3297. fi
  3298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3299. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3300. fi
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3302. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3303. if test $ac_compiler_gnu = yes; then
  3304. GCC=yes
  3305. else
  3306. GCC=
  3307. fi
  3308. ac_test_CFLAGS=${CFLAGS+set}
  3309. ac_save_CFLAGS=$CFLAGS
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3311. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3312. if ${ac_cv_prog_cc_g+:} false; then :
  3313. $as_echo_n "(cached) " >&6
  3314. else
  3315. ac_save_c_werror_flag=$ac_c_werror_flag
  3316. ac_c_werror_flag=yes
  3317. ac_cv_prog_cc_g=no
  3318. CFLAGS="-g"
  3319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3320. /* end confdefs.h. */
  3321. int
  3322. main ()
  3323. {
  3324. ;
  3325. return 0;
  3326. }
  3327. _ACEOF
  3328. if ac_fn_c_try_compile "$LINENO"; then :
  3329. ac_cv_prog_cc_g=yes
  3330. else
  3331. CFLAGS=""
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. if ac_fn_c_try_compile "$LINENO"; then :
  3342. else
  3343. ac_c_werror_flag=$ac_save_c_werror_flag
  3344. CFLAGS="-g"
  3345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. ;
  3351. return 0;
  3352. }
  3353. _ACEOF
  3354. if ac_fn_c_try_compile "$LINENO"; then :
  3355. ac_cv_prog_cc_g=yes
  3356. fi
  3357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3358. fi
  3359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3360. fi
  3361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3362. ac_c_werror_flag=$ac_save_c_werror_flag
  3363. fi
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3365. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3366. if test "$ac_test_CFLAGS" = set; then
  3367. CFLAGS=$ac_save_CFLAGS
  3368. elif test $ac_cv_prog_cc_g = yes; then
  3369. if test "$GCC" = yes; then
  3370. CFLAGS="-g -O2"
  3371. else
  3372. CFLAGS="-g"
  3373. fi
  3374. else
  3375. if test "$GCC" = yes; then
  3376. CFLAGS="-O2"
  3377. else
  3378. CFLAGS=
  3379. fi
  3380. fi
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3382. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3383. if ${ac_cv_prog_cc_c89+:} false; then :
  3384. $as_echo_n "(cached) " >&6
  3385. else
  3386. ac_cv_prog_cc_c89=no
  3387. ac_save_CC=$CC
  3388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3389. /* end confdefs.h. */
  3390. #include <stdarg.h>
  3391. #include <stdio.h>
  3392. struct stat;
  3393. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3394. struct buf { int x; };
  3395. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3396. static char *e (p, i)
  3397. char **p;
  3398. int i;
  3399. {
  3400. return p[i];
  3401. }
  3402. static char *f (char * (*g) (char **, int), char **p, ...)
  3403. {
  3404. char *s;
  3405. va_list v;
  3406. va_start (v,p);
  3407. s = g (p, va_arg (v,int));
  3408. va_end (v);
  3409. return s;
  3410. }
  3411. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3412. function prototypes and stuff, but not '\xHH' hex character constants.
  3413. These don't provoke an error unfortunately, instead are silently treated
  3414. as 'x'. The following induces an error, until -std is added to get
  3415. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3416. array size at least. It's necessary to write '\x00'==0 to get something
  3417. that's true only with -std. */
  3418. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3419. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3420. inside strings and character constants. */
  3421. #define FOO(x) 'x'
  3422. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3423. int test (int i, double x);
  3424. struct s1 {int (*f) (int a);};
  3425. struct s2 {int (*f) (double a);};
  3426. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3427. int argc;
  3428. char **argv;
  3429. int
  3430. main ()
  3431. {
  3432. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3433. ;
  3434. return 0;
  3435. }
  3436. _ACEOF
  3437. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3438. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3439. do
  3440. CC="$ac_save_CC $ac_arg"
  3441. if ac_fn_c_try_compile "$LINENO"; then :
  3442. ac_cv_prog_cc_c89=$ac_arg
  3443. fi
  3444. rm -f core conftest.err conftest.$ac_objext
  3445. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3446. done
  3447. rm -f conftest.$ac_ext
  3448. CC=$ac_save_CC
  3449. fi
  3450. # AC_CACHE_VAL
  3451. case "x$ac_cv_prog_cc_c89" in
  3452. x)
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3454. $as_echo "none needed" >&6; } ;;
  3455. xno)
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3457. $as_echo "unsupported" >&6; } ;;
  3458. *)
  3459. CC="$CC $ac_cv_prog_cc_c89"
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3461. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3462. esac
  3463. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3464. fi
  3465. ac_ext=c
  3466. ac_cpp='$CPP $CPPFLAGS'
  3467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3471. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3472. if ${ac_cv_path_SED+:} false; then :
  3473. $as_echo_n "(cached) " >&6
  3474. else
  3475. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3476. for ac_i in 1 2 3 4 5 6 7; do
  3477. ac_script="$ac_script$as_nl$ac_script"
  3478. done
  3479. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3480. { ac_script=; unset ac_script;}
  3481. if test -z "$SED"; then
  3482. ac_path_SED_found=false
  3483. # Loop through the user's path and test for each of PROGNAME-LIST
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH
  3486. do
  3487. IFS=$as_save_IFS
  3488. test -z "$as_dir" && as_dir=.
  3489. for ac_prog in sed gsed; do
  3490. for ac_exec_ext in '' $ac_executable_extensions; do
  3491. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3492. as_fn_executable_p "$ac_path_SED" || continue
  3493. # Check for GNU ac_path_SED and select it if it is found.
  3494. # Check for GNU $ac_path_SED
  3495. case `"$ac_path_SED" --version 2>&1` in
  3496. *GNU*)
  3497. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3498. *)
  3499. ac_count=0
  3500. $as_echo_n 0123456789 >"conftest.in"
  3501. while :
  3502. do
  3503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3504. mv "conftest.tmp" "conftest.in"
  3505. cp "conftest.in" "conftest.nl"
  3506. $as_echo '' >> "conftest.nl"
  3507. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3509. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3510. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3511. # Best one so far, save it but keep looking for a better one
  3512. ac_cv_path_SED="$ac_path_SED"
  3513. ac_path_SED_max=$ac_count
  3514. fi
  3515. # 10*(2^10) chars as input seems more than enough
  3516. test $ac_count -gt 10 && break
  3517. done
  3518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3519. esac
  3520. $ac_path_SED_found && break 3
  3521. done
  3522. done
  3523. done
  3524. IFS=$as_save_IFS
  3525. if test -z "$ac_cv_path_SED"; then
  3526. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3527. fi
  3528. else
  3529. ac_cv_path_SED=$SED
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3533. $as_echo "$ac_cv_path_SED" >&6; }
  3534. SED="$ac_cv_path_SED"
  3535. rm -f conftest.sed
  3536. test -z "$SED" && SED=sed
  3537. Xsed="$SED -e 1s/^X//"
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3539. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3540. if ${ac_cv_path_GREP+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if test -z "$GREP"; then
  3544. ac_path_GREP_found=false
  3545. # Loop through the user's path and test for each of PROGNAME-LIST
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3548. do
  3549. IFS=$as_save_IFS
  3550. test -z "$as_dir" && as_dir=.
  3551. for ac_prog in grep ggrep; do
  3552. for ac_exec_ext in '' $ac_executable_extensions; do
  3553. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3554. as_fn_executable_p "$ac_path_GREP" || continue
  3555. # Check for GNU ac_path_GREP and select it if it is found.
  3556. # Check for GNU $ac_path_GREP
  3557. case `"$ac_path_GREP" --version 2>&1` in
  3558. *GNU*)
  3559. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3560. *)
  3561. ac_count=0
  3562. $as_echo_n 0123456789 >"conftest.in"
  3563. while :
  3564. do
  3565. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3566. mv "conftest.tmp" "conftest.in"
  3567. cp "conftest.in" "conftest.nl"
  3568. $as_echo 'GREP' >> "conftest.nl"
  3569. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3570. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3571. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3572. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3573. # Best one so far, save it but keep looking for a better one
  3574. ac_cv_path_GREP="$ac_path_GREP"
  3575. ac_path_GREP_max=$ac_count
  3576. fi
  3577. # 10*(2^10) chars as input seems more than enough
  3578. test $ac_count -gt 10 && break
  3579. done
  3580. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3581. esac
  3582. $ac_path_GREP_found && break 3
  3583. done
  3584. done
  3585. done
  3586. IFS=$as_save_IFS
  3587. if test -z "$ac_cv_path_GREP"; then
  3588. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3589. fi
  3590. else
  3591. ac_cv_path_GREP=$GREP
  3592. fi
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3595. $as_echo "$ac_cv_path_GREP" >&6; }
  3596. GREP="$ac_cv_path_GREP"
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3598. $as_echo_n "checking for egrep... " >&6; }
  3599. if ${ac_cv_path_EGREP+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3603. then ac_cv_path_EGREP="$GREP -E"
  3604. else
  3605. if test -z "$EGREP"; then
  3606. ac_path_EGREP_found=false
  3607. # Loop through the user's path and test for each of PROGNAME-LIST
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. for ac_prog in egrep; do
  3614. for ac_exec_ext in '' $ac_executable_extensions; do
  3615. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3616. as_fn_executable_p "$ac_path_EGREP" || continue
  3617. # Check for GNU ac_path_EGREP and select it if it is found.
  3618. # Check for GNU $ac_path_EGREP
  3619. case `"$ac_path_EGREP" --version 2>&1` in
  3620. *GNU*)
  3621. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3622. *)
  3623. ac_count=0
  3624. $as_echo_n 0123456789 >"conftest.in"
  3625. while :
  3626. do
  3627. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3628. mv "conftest.tmp" "conftest.in"
  3629. cp "conftest.in" "conftest.nl"
  3630. $as_echo 'EGREP' >> "conftest.nl"
  3631. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3632. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3633. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3634. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3635. # Best one so far, save it but keep looking for a better one
  3636. ac_cv_path_EGREP="$ac_path_EGREP"
  3637. ac_path_EGREP_max=$ac_count
  3638. fi
  3639. # 10*(2^10) chars as input seems more than enough
  3640. test $ac_count -gt 10 && break
  3641. done
  3642. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3643. esac
  3644. $ac_path_EGREP_found && break 3
  3645. done
  3646. done
  3647. done
  3648. IFS=$as_save_IFS
  3649. if test -z "$ac_cv_path_EGREP"; then
  3650. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3651. fi
  3652. else
  3653. ac_cv_path_EGREP=$EGREP
  3654. fi
  3655. fi
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3658. $as_echo "$ac_cv_path_EGREP" >&6; }
  3659. EGREP="$ac_cv_path_EGREP"
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3661. $as_echo_n "checking for fgrep... " >&6; }
  3662. if ${ac_cv_path_FGREP+:} false; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3666. then ac_cv_path_FGREP="$GREP -F"
  3667. else
  3668. if test -z "$FGREP"; then
  3669. ac_path_FGREP_found=false
  3670. # Loop through the user's path and test for each of PROGNAME-LIST
  3671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3672. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3673. do
  3674. IFS=$as_save_IFS
  3675. test -z "$as_dir" && as_dir=.
  3676. for ac_prog in fgrep; do
  3677. for ac_exec_ext in '' $ac_executable_extensions; do
  3678. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3679. as_fn_executable_p "$ac_path_FGREP" || continue
  3680. # Check for GNU ac_path_FGREP and select it if it is found.
  3681. # Check for GNU $ac_path_FGREP
  3682. case `"$ac_path_FGREP" --version 2>&1` in
  3683. *GNU*)
  3684. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3685. *)
  3686. ac_count=0
  3687. $as_echo_n 0123456789 >"conftest.in"
  3688. while :
  3689. do
  3690. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3691. mv "conftest.tmp" "conftest.in"
  3692. cp "conftest.in" "conftest.nl"
  3693. $as_echo 'FGREP' >> "conftest.nl"
  3694. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3695. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3696. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3697. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3698. # Best one so far, save it but keep looking for a better one
  3699. ac_cv_path_FGREP="$ac_path_FGREP"
  3700. ac_path_FGREP_max=$ac_count
  3701. fi
  3702. # 10*(2^10) chars as input seems more than enough
  3703. test $ac_count -gt 10 && break
  3704. done
  3705. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3706. esac
  3707. $ac_path_FGREP_found && break 3
  3708. done
  3709. done
  3710. done
  3711. IFS=$as_save_IFS
  3712. if test -z "$ac_cv_path_FGREP"; then
  3713. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3714. fi
  3715. else
  3716. ac_cv_path_FGREP=$FGREP
  3717. fi
  3718. fi
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3721. $as_echo "$ac_cv_path_FGREP" >&6; }
  3722. FGREP="$ac_cv_path_FGREP"
  3723. test -z "$GREP" && GREP=grep
  3724. # Check whether --with-gnu-ld was given.
  3725. if test "${with_gnu_ld+set}" = set; then :
  3726. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3727. else
  3728. with_gnu_ld=no
  3729. fi
  3730. ac_prog=ld
  3731. if test "$GCC" = yes; then
  3732. # Check if gcc -print-prog-name=ld gives a path.
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3734. $as_echo_n "checking for ld used by $CC... " >&6; }
  3735. case $host in
  3736. *-*-mingw*)
  3737. # gcc leaves a trailing carriage return which upsets mingw
  3738. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3739. *)
  3740. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3741. esac
  3742. case $ac_prog in
  3743. # Accept absolute paths.
  3744. [\\/]* | ?:[\\/]*)
  3745. re_direlt='/[^/][^/]*/\.\./'
  3746. # Canonicalize the pathname of ld
  3747. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3748. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3749. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3750. done
  3751. test -z "$LD" && LD="$ac_prog"
  3752. ;;
  3753. "")
  3754. # If it fails, then pretend we aren't using GCC.
  3755. ac_prog=ld
  3756. ;;
  3757. *)
  3758. # If it is relative, then search for the first ld in PATH.
  3759. with_gnu_ld=unknown
  3760. ;;
  3761. esac
  3762. elif test "$with_gnu_ld" = yes; then
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3764. $as_echo_n "checking for GNU ld... " >&6; }
  3765. else
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3767. $as_echo_n "checking for non-GNU ld... " >&6; }
  3768. fi
  3769. if ${lt_cv_path_LD+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. if test -z "$LD"; then
  3773. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3774. for ac_dir in $PATH; do
  3775. IFS="$lt_save_ifs"
  3776. test -z "$ac_dir" && ac_dir=.
  3777. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3778. lt_cv_path_LD="$ac_dir/$ac_prog"
  3779. # Check to see if the program is GNU ld. I'd rather use --version,
  3780. # but apparently some variants of GNU ld only accept -v.
  3781. # Break only if it was the GNU/non-GNU ld that we prefer.
  3782. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3783. *GNU* | *'with BFD'*)
  3784. test "$with_gnu_ld" != no && break
  3785. ;;
  3786. *)
  3787. test "$with_gnu_ld" != yes && break
  3788. ;;
  3789. esac
  3790. fi
  3791. done
  3792. IFS="$lt_save_ifs"
  3793. else
  3794. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3795. fi
  3796. fi
  3797. LD="$lt_cv_path_LD"
  3798. if test -n "$LD"; then
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3800. $as_echo "$LD" >&6; }
  3801. else
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3803. $as_echo "no" >&6; }
  3804. fi
  3805. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3807. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3808. if ${lt_cv_prog_gnu_ld+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3812. case `$LD -v 2>&1 </dev/null` in
  3813. *GNU* | *'with BFD'*)
  3814. lt_cv_prog_gnu_ld=yes
  3815. ;;
  3816. *)
  3817. lt_cv_prog_gnu_ld=no
  3818. ;;
  3819. esac
  3820. fi
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3822. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3823. with_gnu_ld=$lt_cv_prog_gnu_ld
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3825. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3826. if ${lt_cv_path_NM+:} false; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. if test -n "$NM"; then
  3830. # Let the user override the test.
  3831. lt_cv_path_NM="$NM"
  3832. else
  3833. lt_nm_to_check="${ac_tool_prefix}nm"
  3834. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3835. lt_nm_to_check="$lt_nm_to_check nm"
  3836. fi
  3837. for lt_tmp_nm in $lt_nm_to_check; do
  3838. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3839. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3840. IFS="$lt_save_ifs"
  3841. test -z "$ac_dir" && ac_dir=.
  3842. tmp_nm="$ac_dir/$lt_tmp_nm"
  3843. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3844. # Check to see if the nm accepts a BSD-compat flag.
  3845. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3846. # nm: unknown option "B" ignored
  3847. # Tru64's nm complains that /dev/null is an invalid object file
  3848. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3849. */dev/null* | *'Invalid file or object type'*)
  3850. lt_cv_path_NM="$tmp_nm -B"
  3851. break
  3852. ;;
  3853. *)
  3854. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3855. */dev/null*)
  3856. lt_cv_path_NM="$tmp_nm -p"
  3857. break
  3858. ;;
  3859. *)
  3860. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3861. continue # so that we can try to find one that supports BSD flags
  3862. ;;
  3863. esac
  3864. ;;
  3865. esac
  3866. fi
  3867. done
  3868. IFS="$lt_save_ifs"
  3869. done
  3870. : ${lt_cv_path_NM=no}
  3871. fi
  3872. fi
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3874. $as_echo "$lt_cv_path_NM" >&6; }
  3875. if test "$lt_cv_path_NM" != "no"; then
  3876. NM="$lt_cv_path_NM"
  3877. else
  3878. # Didn't find any BSD compatible name lister, look for dumpbin.
  3879. if test -n "$DUMPBIN"; then :
  3880. # Let the user override the test.
  3881. else
  3882. if test -n "$ac_tool_prefix"; then
  3883. for ac_prog in dumpbin "link -dump"
  3884. do
  3885. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3886. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3888. $as_echo_n "checking for $ac_word... " >&6; }
  3889. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. if test -n "$DUMPBIN"; then
  3893. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3894. else
  3895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3896. for as_dir in $PATH
  3897. do
  3898. IFS=$as_save_IFS
  3899. test -z "$as_dir" && as_dir=.
  3900. for ac_exec_ext in '' $ac_executable_extensions; do
  3901. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3902. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3904. break 2
  3905. fi
  3906. done
  3907. done
  3908. IFS=$as_save_IFS
  3909. fi
  3910. fi
  3911. DUMPBIN=$ac_cv_prog_DUMPBIN
  3912. if test -n "$DUMPBIN"; then
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3914. $as_echo "$DUMPBIN" >&6; }
  3915. else
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3917. $as_echo "no" >&6; }
  3918. fi
  3919. test -n "$DUMPBIN" && break
  3920. done
  3921. fi
  3922. if test -z "$DUMPBIN"; then
  3923. ac_ct_DUMPBIN=$DUMPBIN
  3924. for ac_prog in dumpbin "link -dump"
  3925. do
  3926. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3927. set dummy $ac_prog; ac_word=$2
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3929. $as_echo_n "checking for $ac_word... " >&6; }
  3930. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3931. $as_echo_n "(cached) " >&6
  3932. else
  3933. if test -n "$ac_ct_DUMPBIN"; then
  3934. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3935. else
  3936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3937. for as_dir in $PATH
  3938. do
  3939. IFS=$as_save_IFS
  3940. test -z "$as_dir" && as_dir=.
  3941. for ac_exec_ext in '' $ac_executable_extensions; do
  3942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3943. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3945. break 2
  3946. fi
  3947. done
  3948. done
  3949. IFS=$as_save_IFS
  3950. fi
  3951. fi
  3952. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3953. if test -n "$ac_ct_DUMPBIN"; then
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3955. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3956. else
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3958. $as_echo "no" >&6; }
  3959. fi
  3960. test -n "$ac_ct_DUMPBIN" && break
  3961. done
  3962. if test "x$ac_ct_DUMPBIN" = x; then
  3963. DUMPBIN=":"
  3964. else
  3965. case $cross_compiling:$ac_tool_warned in
  3966. yes:)
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3969. ac_tool_warned=yes ;;
  3970. esac
  3971. DUMPBIN=$ac_ct_DUMPBIN
  3972. fi
  3973. fi
  3974. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3975. *COFF*)
  3976. DUMPBIN="$DUMPBIN -symbols"
  3977. ;;
  3978. *)
  3979. DUMPBIN=:
  3980. ;;
  3981. esac
  3982. fi
  3983. if test "$DUMPBIN" != ":"; then
  3984. NM="$DUMPBIN"
  3985. fi
  3986. fi
  3987. test -z "$NM" && NM=nm
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3989. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3990. if ${lt_cv_nm_interface+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. lt_cv_nm_interface="BSD nm"
  3994. echo "int some_variable = 0;" > conftest.$ac_ext
  3995. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3996. (eval "$ac_compile" 2>conftest.err)
  3997. cat conftest.err >&5
  3998. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3999. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4000. cat conftest.err >&5
  4001. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4002. cat conftest.out >&5
  4003. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4004. lt_cv_nm_interface="MS dumpbin"
  4005. fi
  4006. rm -f conftest*
  4007. fi
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4009. $as_echo "$lt_cv_nm_interface" >&6; }
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4011. $as_echo_n "checking whether ln -s works... " >&6; }
  4012. LN_S=$as_ln_s
  4013. if test "$LN_S" = "ln -s"; then
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4015. $as_echo "yes" >&6; }
  4016. else
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4018. $as_echo "no, using $LN_S" >&6; }
  4019. fi
  4020. # find the maximum length of command line arguments
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4022. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4023. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4024. $as_echo_n "(cached) " >&6
  4025. else
  4026. i=0
  4027. teststring="ABCD"
  4028. case $build_os in
  4029. msdosdjgpp*)
  4030. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4031. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4032. # during glob expansion). Even if it were fixed, the result of this
  4033. # check would be larger than it should be.
  4034. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4035. ;;
  4036. gnu*)
  4037. # Under GNU Hurd, this test is not required because there is
  4038. # no limit to the length of command line arguments.
  4039. # Libtool will interpret -1 as no limit whatsoever
  4040. lt_cv_sys_max_cmd_len=-1;
  4041. ;;
  4042. cygwin* | mingw* | cegcc*)
  4043. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4044. # about 5 minutes as the teststring grows exponentially.
  4045. # Worse, since 9x/ME are not pre-emptively multitasking,
  4046. # you end up with a "frozen" computer, even though with patience
  4047. # the test eventually succeeds (with a max line length of 256k).
  4048. # Instead, let's just punt: use the minimum linelength reported by
  4049. # all of the supported platforms: 8192 (on NT/2K/XP).
  4050. lt_cv_sys_max_cmd_len=8192;
  4051. ;;
  4052. mint*)
  4053. # On MiNT this can take a long time and run out of memory.
  4054. lt_cv_sys_max_cmd_len=8192;
  4055. ;;
  4056. amigaos*)
  4057. # On AmigaOS with pdksh, this test takes hours, literally.
  4058. # So we just punt and use a minimum line length of 8192.
  4059. lt_cv_sys_max_cmd_len=8192;
  4060. ;;
  4061. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4062. # This has been around since 386BSD, at least. Likely further.
  4063. if test -x /sbin/sysctl; then
  4064. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4065. elif test -x /usr/sbin/sysctl; then
  4066. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4067. else
  4068. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4069. fi
  4070. # And add a safety zone
  4071. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4072. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4073. ;;
  4074. interix*)
  4075. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4076. lt_cv_sys_max_cmd_len=196608
  4077. ;;
  4078. os2*)
  4079. # The test takes a long time on OS/2.
  4080. lt_cv_sys_max_cmd_len=8192
  4081. ;;
  4082. osf*)
  4083. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4084. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4085. # nice to cause kernel panics so lets avoid the loop below.
  4086. # First set a reasonable default.
  4087. lt_cv_sys_max_cmd_len=16384
  4088. #
  4089. if test -x /sbin/sysconfig; then
  4090. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4091. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4092. esac
  4093. fi
  4094. ;;
  4095. sco3.2v5*)
  4096. lt_cv_sys_max_cmd_len=102400
  4097. ;;
  4098. sysv5* | sco5v6* | sysv4.2uw2*)
  4099. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4100. if test -n "$kargmax"; then
  4101. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4102. else
  4103. lt_cv_sys_max_cmd_len=32768
  4104. fi
  4105. ;;
  4106. *)
  4107. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4108. if test -n "$lt_cv_sys_max_cmd_len"; then
  4109. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4111. else
  4112. # Make teststring a little bigger before we do anything with it.
  4113. # a 1K string should be a reasonable start.
  4114. for i in 1 2 3 4 5 6 7 8 ; do
  4115. teststring=$teststring$teststring
  4116. done
  4117. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4118. # If test is not a shell built-in, we'll probably end up computing a
  4119. # maximum length that is only half of the actual maximum length, but
  4120. # we can't tell.
  4121. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4122. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4123. test $i != 17 # 1/2 MB should be enough
  4124. do
  4125. i=`expr $i + 1`
  4126. teststring=$teststring$teststring
  4127. done
  4128. # Only check the string length outside the loop.
  4129. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4130. teststring=
  4131. # Add a significant safety factor because C++ compilers can tack on
  4132. # massive amounts of additional arguments before passing them to the
  4133. # linker. It appears as though 1/2 is a usable value.
  4134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4135. fi
  4136. ;;
  4137. esac
  4138. fi
  4139. if test -n $lt_cv_sys_max_cmd_len ; then
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4141. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4142. else
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4144. $as_echo "none" >&6; }
  4145. fi
  4146. max_cmd_len=$lt_cv_sys_max_cmd_len
  4147. : ${CP="cp -f"}
  4148. : ${MV="mv -f"}
  4149. : ${RM="rm -f"}
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4151. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4152. # Try some XSI features
  4153. xsi_shell=no
  4154. ( _lt_dummy="a/b/c"
  4155. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4156. = c,a/b,b/c, \
  4157. && eval 'test $(( 1 + 1 )) -eq 2 \
  4158. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4159. && xsi_shell=yes
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4161. $as_echo "$xsi_shell" >&6; }
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4163. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4164. lt_shell_append=no
  4165. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4166. >/dev/null 2>&1 \
  4167. && lt_shell_append=yes
  4168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4169. $as_echo "$lt_shell_append" >&6; }
  4170. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4171. lt_unset=unset
  4172. else
  4173. lt_unset=false
  4174. fi
  4175. # test EBCDIC or ASCII
  4176. case `echo X|tr X '\101'` in
  4177. A) # ASCII based system
  4178. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4179. lt_SP2NL='tr \040 \012'
  4180. lt_NL2SP='tr \015\012 \040\040'
  4181. ;;
  4182. *) # EBCDIC based system
  4183. lt_SP2NL='tr \100 \n'
  4184. lt_NL2SP='tr \r\n \100\100'
  4185. ;;
  4186. esac
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4188. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4189. if ${lt_cv_to_host_file_cmd+:} false; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. case $host in
  4193. *-*-mingw* )
  4194. case $build in
  4195. *-*-mingw* ) # actually msys
  4196. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4197. ;;
  4198. *-*-cygwin* )
  4199. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4200. ;;
  4201. * ) # otherwise, assume *nix
  4202. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4203. ;;
  4204. esac
  4205. ;;
  4206. *-*-cygwin* )
  4207. case $build in
  4208. *-*-mingw* ) # actually msys
  4209. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4210. ;;
  4211. *-*-cygwin* )
  4212. lt_cv_to_host_file_cmd=func_convert_file_noop
  4213. ;;
  4214. * ) # otherwise, assume *nix
  4215. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4216. ;;
  4217. esac
  4218. ;;
  4219. * ) # unhandled hosts (and "normal" native builds)
  4220. lt_cv_to_host_file_cmd=func_convert_file_noop
  4221. ;;
  4222. esac
  4223. fi
  4224. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4226. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4228. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4229. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4230. $as_echo_n "(cached) " >&6
  4231. else
  4232. #assume ordinary cross tools, or native build.
  4233. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4234. case $host in
  4235. *-*-mingw* )
  4236. case $build in
  4237. *-*-mingw* ) # actually msys
  4238. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4239. ;;
  4240. esac
  4241. ;;
  4242. esac
  4243. fi
  4244. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4246. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4248. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4249. if ${lt_cv_ld_reload_flag+:} false; then :
  4250. $as_echo_n "(cached) " >&6
  4251. else
  4252. lt_cv_ld_reload_flag='-r'
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4255. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4256. reload_flag=$lt_cv_ld_reload_flag
  4257. case $reload_flag in
  4258. "" | " "*) ;;
  4259. *) reload_flag=" $reload_flag" ;;
  4260. esac
  4261. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4262. case $host_os in
  4263. cygwin* | mingw* | pw32* | cegcc*)
  4264. if test "$GCC" != yes; then
  4265. reload_cmds=false
  4266. fi
  4267. ;;
  4268. darwin*)
  4269. if test "$GCC" = yes; then
  4270. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4271. else
  4272. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4273. fi
  4274. ;;
  4275. esac
  4276. if test -n "$ac_tool_prefix"; then
  4277. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4278. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4280. $as_echo_n "checking for $ac_word... " >&6; }
  4281. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. if test -n "$OBJDUMP"; then
  4285. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4286. else
  4287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4288. for as_dir in $PATH
  4289. do
  4290. IFS=$as_save_IFS
  4291. test -z "$as_dir" && as_dir=.
  4292. for ac_exec_ext in '' $ac_executable_extensions; do
  4293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4294. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4296. break 2
  4297. fi
  4298. done
  4299. done
  4300. IFS=$as_save_IFS
  4301. fi
  4302. fi
  4303. OBJDUMP=$ac_cv_prog_OBJDUMP
  4304. if test -n "$OBJDUMP"; then
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4306. $as_echo "$OBJDUMP" >&6; }
  4307. else
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4309. $as_echo "no" >&6; }
  4310. fi
  4311. fi
  4312. if test -z "$ac_cv_prog_OBJDUMP"; then
  4313. ac_ct_OBJDUMP=$OBJDUMP
  4314. # Extract the first word of "objdump", so it can be a program name with args.
  4315. set dummy objdump; ac_word=$2
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4317. $as_echo_n "checking for $ac_word... " >&6; }
  4318. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. if test -n "$ac_ct_OBJDUMP"; then
  4322. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4323. else
  4324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4325. for as_dir in $PATH
  4326. do
  4327. IFS=$as_save_IFS
  4328. test -z "$as_dir" && as_dir=.
  4329. for ac_exec_ext in '' $ac_executable_extensions; do
  4330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4331. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4333. break 2
  4334. fi
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. fi
  4339. fi
  4340. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4341. if test -n "$ac_ct_OBJDUMP"; then
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4343. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4344. else
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4346. $as_echo "no" >&6; }
  4347. fi
  4348. if test "x$ac_ct_OBJDUMP" = x; then
  4349. OBJDUMP="false"
  4350. else
  4351. case $cross_compiling:$ac_tool_warned in
  4352. yes:)
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4354. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4355. ac_tool_warned=yes ;;
  4356. esac
  4357. OBJDUMP=$ac_ct_OBJDUMP
  4358. fi
  4359. else
  4360. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4361. fi
  4362. test -z "$OBJDUMP" && OBJDUMP=objdump
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4364. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4365. if ${lt_cv_deplibs_check_method+:} false; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4369. lt_cv_file_magic_test_file=
  4370. lt_cv_deplibs_check_method='unknown'
  4371. # Need to set the preceding variable on all platforms that support
  4372. # interlibrary dependencies.
  4373. # 'none' -- dependencies not supported.
  4374. # `unknown' -- same as none, but documents that we really don't know.
  4375. # 'pass_all' -- all dependencies passed with no checks.
  4376. # 'test_compile' -- check by making test program.
  4377. # 'file_magic [[regex]]' -- check by looking for files in library path
  4378. # which responds to the $file_magic_cmd with a given extended regex.
  4379. # If you have `file' or equivalent on your system and you're not sure
  4380. # whether `pass_all' will *always* work, you probably want this one.
  4381. case $host_os in
  4382. aix[4-9]*)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. beos*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. bsdi[45]*)
  4389. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4390. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4391. lt_cv_file_magic_test_file=/shlib/libc.so
  4392. ;;
  4393. cygwin*)
  4394. # func_win32_libid is a shell function defined in ltmain.sh
  4395. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4396. lt_cv_file_magic_cmd='func_win32_libid'
  4397. lt_cv_deplibs_check_method=pass_all
  4398. ;;
  4399. mingw* | pw32*)
  4400. # Base MSYS/MinGW do not provide the 'file' command needed by
  4401. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4402. # unless we find 'file', for example because we are cross-compiling.
  4403. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4404. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4405. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4406. lt_cv_file_magic_cmd='func_win32_libid'
  4407. else
  4408. # Keep this pattern in sync with the one in func_win32_libid.
  4409. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4410. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4411. fi
  4412. lt_cv_deplibs_check_method=pass_all
  4413. ;;
  4414. cegcc*)
  4415. # use the weaker test based on 'objdump'. See mingw*.
  4416. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4417. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4418. ;;
  4419. darwin* | rhapsody*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. freebsd* | dragonfly*)
  4423. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4424. case $host_cpu in
  4425. i*86 )
  4426. # Not sure whether the presence of OpenBSD here was a mistake.
  4427. # Let's accept both of them until this is cleared up.
  4428. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4429. lt_cv_file_magic_cmd=/usr/bin/file
  4430. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4431. ;;
  4432. esac
  4433. else
  4434. lt_cv_deplibs_check_method=pass_all
  4435. fi
  4436. ;;
  4437. gnu*)
  4438. lt_cv_deplibs_check_method=pass_all
  4439. ;;
  4440. haiku*)
  4441. lt_cv_deplibs_check_method=pass_all
  4442. ;;
  4443. hpux10.20* | hpux11*)
  4444. lt_cv_file_magic_cmd=/usr/bin/file
  4445. case $host_cpu in
  4446. ia64*)
  4447. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4448. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4449. ;;
  4450. hppa*64*)
  4451. 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]'
  4452. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4453. ;;
  4454. *)
  4455. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4456. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4457. ;;
  4458. esac
  4459. ;;
  4460. interix[3-9]*)
  4461. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4462. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4463. ;;
  4464. irix5* | irix6* | nonstopux*)
  4465. case $LD in
  4466. *-32|*"-32 ") libmagic=32-bit;;
  4467. *-n32|*"-n32 ") libmagic=N32;;
  4468. *-64|*"-64 ") libmagic=64-bit;;
  4469. *) libmagic=never-match;;
  4470. esac
  4471. lt_cv_deplibs_check_method=pass_all
  4472. ;;
  4473. # This must be glibc/ELF.
  4474. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4475. lt_cv_deplibs_check_method=pass_all
  4476. ;;
  4477. netbsd*)
  4478. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4479. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4480. else
  4481. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4482. fi
  4483. ;;
  4484. newos6*)
  4485. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4486. lt_cv_file_magic_cmd=/usr/bin/file
  4487. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4488. ;;
  4489. *nto* | *qnx*)
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. openbsd*)
  4493. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4494. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4495. else
  4496. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4497. fi
  4498. ;;
  4499. osf3* | osf4* | osf5*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. rdos*)
  4503. lt_cv_deplibs_check_method=pass_all
  4504. ;;
  4505. solaris*)
  4506. lt_cv_deplibs_check_method=pass_all
  4507. ;;
  4508. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sysv4 | sysv4.3*)
  4512. case $host_vendor in
  4513. motorola)
  4514. 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]'
  4515. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4516. ;;
  4517. ncr)
  4518. lt_cv_deplibs_check_method=pass_all
  4519. ;;
  4520. sequent)
  4521. lt_cv_file_magic_cmd='/bin/file'
  4522. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4523. ;;
  4524. sni)
  4525. lt_cv_file_magic_cmd='/bin/file'
  4526. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4527. lt_cv_file_magic_test_file=/lib/libc.so
  4528. ;;
  4529. siemens)
  4530. lt_cv_deplibs_check_method=pass_all
  4531. ;;
  4532. pc)
  4533. lt_cv_deplibs_check_method=pass_all
  4534. ;;
  4535. esac
  4536. ;;
  4537. tpf*)
  4538. lt_cv_deplibs_check_method=pass_all
  4539. ;;
  4540. esac
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4543. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4544. file_magic_glob=
  4545. want_nocaseglob=no
  4546. if test "$build" = "$host"; then
  4547. case $host_os in
  4548. mingw* | pw32*)
  4549. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4550. want_nocaseglob=yes
  4551. else
  4552. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4553. fi
  4554. ;;
  4555. esac
  4556. fi
  4557. file_magic_cmd=$lt_cv_file_magic_cmd
  4558. deplibs_check_method=$lt_cv_deplibs_check_method
  4559. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4560. if test -n "$ac_tool_prefix"; then
  4561. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4562. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4564. $as_echo_n "checking for $ac_word... " >&6; }
  4565. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4566. $as_echo_n "(cached) " >&6
  4567. else
  4568. if test -n "$DLLTOOL"; then
  4569. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4570. else
  4571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4572. for as_dir in $PATH
  4573. do
  4574. IFS=$as_save_IFS
  4575. test -z "$as_dir" && as_dir=.
  4576. for ac_exec_ext in '' $ac_executable_extensions; do
  4577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4578. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4580. break 2
  4581. fi
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. fi
  4586. fi
  4587. DLLTOOL=$ac_cv_prog_DLLTOOL
  4588. if test -n "$DLLTOOL"; then
  4589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4590. $as_echo "$DLLTOOL" >&6; }
  4591. else
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4593. $as_echo "no" >&6; }
  4594. fi
  4595. fi
  4596. if test -z "$ac_cv_prog_DLLTOOL"; then
  4597. ac_ct_DLLTOOL=$DLLTOOL
  4598. # Extract the first word of "dlltool", so it can be a program name with args.
  4599. set dummy dlltool; ac_word=$2
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4601. $as_echo_n "checking for $ac_word... " >&6; }
  4602. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if test -n "$ac_ct_DLLTOOL"; then
  4606. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4607. else
  4608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4609. for as_dir in $PATH
  4610. do
  4611. IFS=$as_save_IFS
  4612. test -z "$as_dir" && as_dir=.
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4625. if test -n "$ac_ct_DLLTOOL"; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4627. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. if test "x$ac_ct_DLLTOOL" = x; then
  4633. DLLTOOL="false"
  4634. else
  4635. case $cross_compiling:$ac_tool_warned in
  4636. yes:)
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4639. ac_tool_warned=yes ;;
  4640. esac
  4641. DLLTOOL=$ac_ct_DLLTOOL
  4642. fi
  4643. else
  4644. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4645. fi
  4646. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4648. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4649. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4650. $as_echo_n "(cached) " >&6
  4651. else
  4652. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4653. case $host_os in
  4654. cygwin* | mingw* | pw32* | cegcc*)
  4655. # two different shell functions defined in ltmain.sh
  4656. # decide which to use based on capabilities of $DLLTOOL
  4657. case `$DLLTOOL --help 2>&1` in
  4658. *--identify-strict*)
  4659. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4660. ;;
  4661. *)
  4662. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4663. ;;
  4664. esac
  4665. ;;
  4666. *)
  4667. # fallback: assume linklib IS sharedlib
  4668. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4669. ;;
  4670. esac
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4673. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4674. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4675. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4676. if test -n "$ac_tool_prefix"; then
  4677. for ac_prog in ar
  4678. do
  4679. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4680. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if ${ac_cv_prog_AR+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$AR"; then
  4687. ac_cv_prog_AR="$AR" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4696. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. AR=$ac_cv_prog_AR
  4706. if test -n "$AR"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4708. $as_echo "$AR" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. test -n "$AR" && break
  4714. done
  4715. fi
  4716. if test -z "$AR"; then
  4717. ac_ct_AR=$AR
  4718. for ac_prog in ar
  4719. do
  4720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4721. set dummy $ac_prog; ac_word=$2
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4723. $as_echo_n "checking for $ac_word... " >&6; }
  4724. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4725. $as_echo_n "(cached) " >&6
  4726. else
  4727. if test -n "$ac_ct_AR"; then
  4728. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4729. else
  4730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4731. for as_dir in $PATH
  4732. do
  4733. IFS=$as_save_IFS
  4734. test -z "$as_dir" && as_dir=.
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4737. ac_cv_prog_ac_ct_AR="$ac_prog"
  4738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4739. break 2
  4740. fi
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. fi
  4745. fi
  4746. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4747. if test -n "$ac_ct_AR"; then
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4749. $as_echo "$ac_ct_AR" >&6; }
  4750. else
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4752. $as_echo "no" >&6; }
  4753. fi
  4754. test -n "$ac_ct_AR" && break
  4755. done
  4756. if test "x$ac_ct_AR" = x; then
  4757. AR="false"
  4758. else
  4759. case $cross_compiling:$ac_tool_warned in
  4760. yes:)
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4763. ac_tool_warned=yes ;;
  4764. esac
  4765. AR=$ac_ct_AR
  4766. fi
  4767. fi
  4768. : ${AR=ar}
  4769. : ${AR_FLAGS=cru}
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4771. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4772. if ${lt_cv_ar_at_file+:} false; then :
  4773. $as_echo_n "(cached) " >&6
  4774. else
  4775. lt_cv_ar_at_file=no
  4776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4777. /* end confdefs.h. */
  4778. int
  4779. main ()
  4780. {
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_c_try_compile "$LINENO"; then :
  4786. echo conftest.$ac_objext > conftest.lst
  4787. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4788. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4789. (eval $lt_ar_try) 2>&5
  4790. ac_status=$?
  4791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4792. test $ac_status = 0; }
  4793. if test "$ac_status" -eq 0; then
  4794. # Ensure the archiver fails upon bogus file names.
  4795. rm -f conftest.$ac_objext libconftest.a
  4796. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4797. (eval $lt_ar_try) 2>&5
  4798. ac_status=$?
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4800. test $ac_status = 0; }
  4801. if test "$ac_status" -ne 0; then
  4802. lt_cv_ar_at_file=@
  4803. fi
  4804. fi
  4805. rm -f conftest.* libconftest.a
  4806. fi
  4807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4810. $as_echo "$lt_cv_ar_at_file" >&6; }
  4811. if test "x$lt_cv_ar_at_file" = xno; then
  4812. archiver_list_spec=
  4813. else
  4814. archiver_list_spec=$lt_cv_ar_at_file
  4815. fi
  4816. if test -n "$ac_tool_prefix"; then
  4817. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4818. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4820. $as_echo_n "checking for $ac_word... " >&6; }
  4821. if ${ac_cv_prog_STRIP+:} false; then :
  4822. $as_echo_n "(cached) " >&6
  4823. else
  4824. if test -n "$STRIP"; then
  4825. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4826. else
  4827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4828. for as_dir in $PATH
  4829. do
  4830. IFS=$as_save_IFS
  4831. test -z "$as_dir" && as_dir=.
  4832. for ac_exec_ext in '' $ac_executable_extensions; do
  4833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4834. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4836. break 2
  4837. fi
  4838. done
  4839. done
  4840. IFS=$as_save_IFS
  4841. fi
  4842. fi
  4843. STRIP=$ac_cv_prog_STRIP
  4844. if test -n "$STRIP"; then
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4846. $as_echo "$STRIP" >&6; }
  4847. else
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4849. $as_echo "no" >&6; }
  4850. fi
  4851. fi
  4852. if test -z "$ac_cv_prog_STRIP"; then
  4853. ac_ct_STRIP=$STRIP
  4854. # Extract the first word of "strip", so it can be a program name with args.
  4855. set dummy strip; ac_word=$2
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4857. $as_echo_n "checking for $ac_word... " >&6; }
  4858. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -n "$ac_ct_STRIP"; then
  4862. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4863. else
  4864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4865. for as_dir in $PATH
  4866. do
  4867. IFS=$as_save_IFS
  4868. test -z "$as_dir" && as_dir=.
  4869. for ac_exec_ext in '' $ac_executable_extensions; do
  4870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4871. ac_cv_prog_ac_ct_STRIP="strip"
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4873. break 2
  4874. fi
  4875. done
  4876. done
  4877. IFS=$as_save_IFS
  4878. fi
  4879. fi
  4880. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4881. if test -n "$ac_ct_STRIP"; then
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4883. $as_echo "$ac_ct_STRIP" >&6; }
  4884. else
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4886. $as_echo "no" >&6; }
  4887. fi
  4888. if test "x$ac_ct_STRIP" = x; then
  4889. STRIP=":"
  4890. else
  4891. case $cross_compiling:$ac_tool_warned in
  4892. yes:)
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4895. ac_tool_warned=yes ;;
  4896. esac
  4897. STRIP=$ac_ct_STRIP
  4898. fi
  4899. else
  4900. STRIP="$ac_cv_prog_STRIP"
  4901. fi
  4902. test -z "$STRIP" && STRIP=:
  4903. if test -n "$ac_tool_prefix"; then
  4904. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4905. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4907. $as_echo_n "checking for $ac_word... " >&6; }
  4908. if ${ac_cv_prog_RANLIB+:} false; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. if test -n "$RANLIB"; then
  4912. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4913. else
  4914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4915. for as_dir in $PATH
  4916. do
  4917. IFS=$as_save_IFS
  4918. test -z "$as_dir" && as_dir=.
  4919. for ac_exec_ext in '' $ac_executable_extensions; do
  4920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4921. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4923. break 2
  4924. fi
  4925. done
  4926. done
  4927. IFS=$as_save_IFS
  4928. fi
  4929. fi
  4930. RANLIB=$ac_cv_prog_RANLIB
  4931. if test -n "$RANLIB"; then
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4933. $as_echo "$RANLIB" >&6; }
  4934. else
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4936. $as_echo "no" >&6; }
  4937. fi
  4938. fi
  4939. if test -z "$ac_cv_prog_RANLIB"; then
  4940. ac_ct_RANLIB=$RANLIB
  4941. # Extract the first word of "ranlib", so it can be a program name with args.
  4942. set dummy ranlib; ac_word=$2
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4944. $as_echo_n "checking for $ac_word... " >&6; }
  4945. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4946. $as_echo_n "(cached) " >&6
  4947. else
  4948. if test -n "$ac_ct_RANLIB"; then
  4949. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4950. else
  4951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4952. for as_dir in $PATH
  4953. do
  4954. IFS=$as_save_IFS
  4955. test -z "$as_dir" && as_dir=.
  4956. for ac_exec_ext in '' $ac_executable_extensions; do
  4957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4958. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4960. break 2
  4961. fi
  4962. done
  4963. done
  4964. IFS=$as_save_IFS
  4965. fi
  4966. fi
  4967. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4968. if test -n "$ac_ct_RANLIB"; then
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4970. $as_echo "$ac_ct_RANLIB" >&6; }
  4971. else
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4973. $as_echo "no" >&6; }
  4974. fi
  4975. if test "x$ac_ct_RANLIB" = x; then
  4976. RANLIB=":"
  4977. else
  4978. case $cross_compiling:$ac_tool_warned in
  4979. yes:)
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4981. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4982. ac_tool_warned=yes ;;
  4983. esac
  4984. RANLIB=$ac_ct_RANLIB
  4985. fi
  4986. else
  4987. RANLIB="$ac_cv_prog_RANLIB"
  4988. fi
  4989. test -z "$RANLIB" && RANLIB=:
  4990. # Determine commands to create old-style static archives.
  4991. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4992. old_postinstall_cmds='chmod 644 $oldlib'
  4993. old_postuninstall_cmds=
  4994. if test -n "$RANLIB"; then
  4995. case $host_os in
  4996. openbsd*)
  4997. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4998. ;;
  4999. *)
  5000. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5001. ;;
  5002. esac
  5003. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5004. fi
  5005. case $host_os in
  5006. darwin*)
  5007. lock_old_archive_extraction=yes ;;
  5008. *)
  5009. lock_old_archive_extraction=no ;;
  5010. esac
  5011. for ac_prog in gawk mawk nawk awk
  5012. do
  5013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5014. set dummy $ac_prog; ac_word=$2
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5016. $as_echo_n "checking for $ac_word... " >&6; }
  5017. if ${ac_cv_prog_AWK+:} false; then :
  5018. $as_echo_n "(cached) " >&6
  5019. else
  5020. if test -n "$AWK"; then
  5021. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5022. else
  5023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5024. for as_dir in $PATH
  5025. do
  5026. IFS=$as_save_IFS
  5027. test -z "$as_dir" && as_dir=.
  5028. for ac_exec_ext in '' $ac_executable_extensions; do
  5029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5030. ac_cv_prog_AWK="$ac_prog"
  5031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5032. break 2
  5033. fi
  5034. done
  5035. done
  5036. IFS=$as_save_IFS
  5037. fi
  5038. fi
  5039. AWK=$ac_cv_prog_AWK
  5040. if test -n "$AWK"; then
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5042. $as_echo "$AWK" >&6; }
  5043. else
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5045. $as_echo "no" >&6; }
  5046. fi
  5047. test -n "$AWK" && break
  5048. done
  5049. # If no C compiler was specified, use CC.
  5050. LTCC=${LTCC-"$CC"}
  5051. # If no C compiler flags were specified, use CFLAGS.
  5052. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5053. # Allow CC to be a program name with arguments.
  5054. compiler=$CC
  5055. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5057. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5058. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5059. $as_echo_n "(cached) " >&6
  5060. else
  5061. # These are sane defaults that work on at least a few old systems.
  5062. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5063. # Character class describing NM global symbol codes.
  5064. symcode='[BCDEGRST]'
  5065. # Regexp to match symbols that can be accessed directly from C.
  5066. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5067. # Define system-specific variables.
  5068. case $host_os in
  5069. aix*)
  5070. symcode='[BCDT]'
  5071. ;;
  5072. cygwin* | mingw* | pw32* | cegcc*)
  5073. symcode='[ABCDGISTW]'
  5074. ;;
  5075. hpux*)
  5076. if test "$host_cpu" = ia64; then
  5077. symcode='[ABCDEGRST]'
  5078. fi
  5079. ;;
  5080. irix* | nonstopux*)
  5081. symcode='[BCDEGRST]'
  5082. ;;
  5083. osf*)
  5084. symcode='[BCDEGQRST]'
  5085. ;;
  5086. solaris*)
  5087. symcode='[BDRT]'
  5088. ;;
  5089. sco3.2v5*)
  5090. symcode='[DT]'
  5091. ;;
  5092. sysv4.2uw2*)
  5093. symcode='[DT]'
  5094. ;;
  5095. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5096. symcode='[ABDT]'
  5097. ;;
  5098. sysv4)
  5099. symcode='[DFNSTU]'
  5100. ;;
  5101. esac
  5102. # If we're using GNU nm, then use its standard symbol codes.
  5103. case `$NM -V 2>&1` in
  5104. *GNU* | *'with BFD'*)
  5105. symcode='[ABCDGIRSTW]' ;;
  5106. esac
  5107. # Transform an extracted symbol line into a proper C declaration.
  5108. # Some systems (esp. on ia64) link data and code symbols differently,
  5109. # so use this general approach.
  5110. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5111. # Transform an extracted symbol line into symbol name and symbol address
  5112. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5113. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5114. # Handle CRLF in mingw tool chain
  5115. opt_cr=
  5116. case $build_os in
  5117. mingw*)
  5118. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5119. ;;
  5120. esac
  5121. # Try without a prefix underscore, then with it.
  5122. for ac_symprfx in "" "_"; do
  5123. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5124. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5125. # Write the raw and C identifiers.
  5126. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5127. # Fake it for dumpbin and say T for any non-static function
  5128. # and D for any global variable.
  5129. # Also find C++ and __fastcall symbols from MSVC++,
  5130. # which start with @ or ?.
  5131. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5132. " {last_section=section; section=\$ 3};"\
  5133. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5134. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5135. " \$ 0!~/External *\|/{next};"\
  5136. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5137. " {if(hide[section]) next};"\
  5138. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5139. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5140. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5141. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5142. " ' prfx=^$ac_symprfx"
  5143. else
  5144. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5145. fi
  5146. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5147. # Check to see that the pipe works correctly.
  5148. pipe_works=no
  5149. rm -f conftest*
  5150. cat > conftest.$ac_ext <<_LT_EOF
  5151. #ifdef __cplusplus
  5152. extern "C" {
  5153. #endif
  5154. char nm_test_var;
  5155. void nm_test_func(void);
  5156. void nm_test_func(void){}
  5157. #ifdef __cplusplus
  5158. }
  5159. #endif
  5160. int main(){nm_test_var='a';nm_test_func();return(0);}
  5161. _LT_EOF
  5162. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5163. (eval $ac_compile) 2>&5
  5164. ac_status=$?
  5165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5166. test $ac_status = 0; }; then
  5167. # Now try to grab the symbols.
  5168. nlist=conftest.nm
  5169. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5170. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5171. ac_status=$?
  5172. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5173. test $ac_status = 0; } && test -s "$nlist"; then
  5174. # Try sorting and uniquifying the output.
  5175. if sort "$nlist" | uniq > "$nlist"T; then
  5176. mv -f "$nlist"T "$nlist"
  5177. else
  5178. rm -f "$nlist"T
  5179. fi
  5180. # Make sure that we snagged all the symbols we need.
  5181. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5182. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5183. cat <<_LT_EOF > conftest.$ac_ext
  5184. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5185. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5186. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5187. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5188. # define LT_DLSYM_CONST
  5189. #elif defined(__osf__)
  5190. /* This system does not cope well with relocations in const data. */
  5191. # define LT_DLSYM_CONST
  5192. #else
  5193. # define LT_DLSYM_CONST const
  5194. #endif
  5195. #ifdef __cplusplus
  5196. extern "C" {
  5197. #endif
  5198. _LT_EOF
  5199. # Now generate the symbol file.
  5200. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5201. cat <<_LT_EOF >> conftest.$ac_ext
  5202. /* The mapping between symbol names and symbols. */
  5203. LT_DLSYM_CONST struct {
  5204. const char *name;
  5205. void *address;
  5206. }
  5207. lt__PROGRAM__LTX_preloaded_symbols[] =
  5208. {
  5209. { "@PROGRAM@", (void *) 0 },
  5210. _LT_EOF
  5211. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5212. cat <<\_LT_EOF >> conftest.$ac_ext
  5213. {0, (void *) 0}
  5214. };
  5215. /* This works around a problem in FreeBSD linker */
  5216. #ifdef FREEBSD_WORKAROUND
  5217. static const void *lt_preloaded_setup() {
  5218. return lt__PROGRAM__LTX_preloaded_symbols;
  5219. }
  5220. #endif
  5221. #ifdef __cplusplus
  5222. }
  5223. #endif
  5224. _LT_EOF
  5225. # Now try linking the two files.
  5226. mv conftest.$ac_objext conftstm.$ac_objext
  5227. lt_globsym_save_LIBS=$LIBS
  5228. lt_globsym_save_CFLAGS=$CFLAGS
  5229. LIBS="conftstm.$ac_objext"
  5230. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5231. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5232. (eval $ac_link) 2>&5
  5233. ac_status=$?
  5234. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5235. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5236. pipe_works=yes
  5237. fi
  5238. LIBS=$lt_globsym_save_LIBS
  5239. CFLAGS=$lt_globsym_save_CFLAGS
  5240. else
  5241. echo "cannot find nm_test_func in $nlist" >&5
  5242. fi
  5243. else
  5244. echo "cannot find nm_test_var in $nlist" >&5
  5245. fi
  5246. else
  5247. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5248. fi
  5249. else
  5250. echo "$progname: failed program was:" >&5
  5251. cat conftest.$ac_ext >&5
  5252. fi
  5253. rm -rf conftest* conftst*
  5254. # Do not use the global_symbol_pipe unless it works.
  5255. if test "$pipe_works" = yes; then
  5256. break
  5257. else
  5258. lt_cv_sys_global_symbol_pipe=
  5259. fi
  5260. done
  5261. fi
  5262. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5263. lt_cv_sys_global_symbol_to_cdecl=
  5264. fi
  5265. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5267. $as_echo "failed" >&6; }
  5268. else
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5270. $as_echo "ok" >&6; }
  5271. fi
  5272. # Response file support.
  5273. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5274. nm_file_list_spec='@'
  5275. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5276. nm_file_list_spec='@'
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5279. $as_echo_n "checking for sysroot... " >&6; }
  5280. # Check whether --with-sysroot was given.
  5281. if test "${with_sysroot+set}" = set; then :
  5282. withval=$with_sysroot;
  5283. else
  5284. with_sysroot=no
  5285. fi
  5286. lt_sysroot=
  5287. case ${with_sysroot} in #(
  5288. yes)
  5289. if test "$GCC" = yes; then
  5290. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5291. fi
  5292. ;; #(
  5293. /*)
  5294. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5295. ;; #(
  5296. no|'')
  5297. ;; #(
  5298. *)
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5300. $as_echo "${with_sysroot}" >&6; }
  5301. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5302. ;;
  5303. esac
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5305. $as_echo "${lt_sysroot:-no}" >&6; }
  5306. # Check whether --enable-libtool-lock was given.
  5307. if test "${enable_libtool_lock+set}" = set; then :
  5308. enableval=$enable_libtool_lock;
  5309. fi
  5310. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5311. # Some flags need to be propagated to the compiler or linker for good
  5312. # libtool support.
  5313. case $host in
  5314. ia64-*-hpux*)
  5315. # Find out which ABI we are using.
  5316. echo 'int i;' > conftest.$ac_ext
  5317. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5318. (eval $ac_compile) 2>&5
  5319. ac_status=$?
  5320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5321. test $ac_status = 0; }; then
  5322. case `/usr/bin/file conftest.$ac_objext` in
  5323. *ELF-32*)
  5324. HPUX_IA64_MODE="32"
  5325. ;;
  5326. *ELF-64*)
  5327. HPUX_IA64_MODE="64"
  5328. ;;
  5329. esac
  5330. fi
  5331. rm -rf conftest*
  5332. ;;
  5333. *-*-irix6*)
  5334. # Find out which ABI we are using.
  5335. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5336. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5337. (eval $ac_compile) 2>&5
  5338. ac_status=$?
  5339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5340. test $ac_status = 0; }; then
  5341. if test "$lt_cv_prog_gnu_ld" = yes; then
  5342. case `/usr/bin/file conftest.$ac_objext` in
  5343. *32-bit*)
  5344. LD="${LD-ld} -melf32bsmip"
  5345. ;;
  5346. *N32*)
  5347. LD="${LD-ld} -melf32bmipn32"
  5348. ;;
  5349. *64-bit*)
  5350. LD="${LD-ld} -melf64bmip"
  5351. ;;
  5352. esac
  5353. else
  5354. case `/usr/bin/file conftest.$ac_objext` in
  5355. *32-bit*)
  5356. LD="${LD-ld} -32"
  5357. ;;
  5358. *N32*)
  5359. LD="${LD-ld} -n32"
  5360. ;;
  5361. *64-bit*)
  5362. LD="${LD-ld} -64"
  5363. ;;
  5364. esac
  5365. fi
  5366. fi
  5367. rm -rf conftest*
  5368. ;;
  5369. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5370. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5371. # Find out which ABI we are using.
  5372. echo 'int i;' > conftest.$ac_ext
  5373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5374. (eval $ac_compile) 2>&5
  5375. ac_status=$?
  5376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5377. test $ac_status = 0; }; then
  5378. case `/usr/bin/file conftest.o` in
  5379. *32-bit*)
  5380. case $host in
  5381. x86_64-*kfreebsd*-gnu)
  5382. LD="${LD-ld} -m elf_i386_fbsd"
  5383. ;;
  5384. x86_64-*linux*)
  5385. LD="${LD-ld} -m elf_i386"
  5386. ;;
  5387. ppc64-*linux*|powerpc64-*linux*)
  5388. LD="${LD-ld} -m elf32ppclinux"
  5389. ;;
  5390. s390x-*linux*)
  5391. LD="${LD-ld} -m elf_s390"
  5392. ;;
  5393. sparc64-*linux*)
  5394. LD="${LD-ld} -m elf32_sparc"
  5395. ;;
  5396. esac
  5397. ;;
  5398. *64-bit*)
  5399. case $host in
  5400. x86_64-*kfreebsd*-gnu)
  5401. LD="${LD-ld} -m elf_x86_64_fbsd"
  5402. ;;
  5403. x86_64-*linux*)
  5404. LD="${LD-ld} -m elf_x86_64"
  5405. ;;
  5406. powerpc64le-*linux*)
  5407. LD="${LD-ld} -m elf64lppc"
  5408. ;;
  5409. powerpc64-*linux*)
  5410. LD="${LD-ld} -m elf64ppc"
  5411. ;;
  5412. s390*-*linux*|s390*-*tpf*)
  5413. LD="${LD-ld} -m elf64_s390"
  5414. ;;
  5415. sparc*-*linux*)
  5416. LD="${LD-ld} -m elf64_sparc"
  5417. ;;
  5418. esac
  5419. ;;
  5420. esac
  5421. fi
  5422. rm -rf conftest*
  5423. ;;
  5424. *-*-sco3.2v5*)
  5425. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5426. SAVE_CFLAGS="$CFLAGS"
  5427. CFLAGS="$CFLAGS -belf"
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5429. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5430. if ${lt_cv_cc_needs_belf+:} false; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. ac_ext=c
  5434. ac_cpp='$CPP $CPPFLAGS'
  5435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5439. /* end confdefs.h. */
  5440. int
  5441. main ()
  5442. {
  5443. ;
  5444. return 0;
  5445. }
  5446. _ACEOF
  5447. if ac_fn_c_try_link "$LINENO"; then :
  5448. lt_cv_cc_needs_belf=yes
  5449. else
  5450. lt_cv_cc_needs_belf=no
  5451. fi
  5452. rm -f core conftest.err conftest.$ac_objext \
  5453. conftest$ac_exeext conftest.$ac_ext
  5454. ac_ext=c
  5455. ac_cpp='$CPP $CPPFLAGS'
  5456. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5457. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5458. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5459. fi
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5461. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5462. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5463. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5464. CFLAGS="$SAVE_CFLAGS"
  5465. fi
  5466. ;;
  5467. *-*solaris*)
  5468. # Find out which ABI we are using.
  5469. echo 'int i;' > conftest.$ac_ext
  5470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5471. (eval $ac_compile) 2>&5
  5472. ac_status=$?
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5474. test $ac_status = 0; }; then
  5475. case `/usr/bin/file conftest.o` in
  5476. *64-bit*)
  5477. case $lt_cv_prog_gnu_ld in
  5478. yes*)
  5479. case $host in
  5480. i?86-*-solaris*)
  5481. LD="${LD-ld} -m elf_x86_64"
  5482. ;;
  5483. sparc*-*-solaris*)
  5484. LD="${LD-ld} -m elf64_sparc"
  5485. ;;
  5486. esac
  5487. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5488. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5489. LD="${LD-ld}_sol2"
  5490. fi
  5491. ;;
  5492. *)
  5493. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5494. LD="${LD-ld} -64"
  5495. fi
  5496. ;;
  5497. esac
  5498. ;;
  5499. esac
  5500. fi
  5501. rm -rf conftest*
  5502. ;;
  5503. esac
  5504. need_locks="$enable_libtool_lock"
  5505. if test -n "$ac_tool_prefix"; then
  5506. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5507. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5509. $as_echo_n "checking for $ac_word... " >&6; }
  5510. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. if test -n "$MANIFEST_TOOL"; then
  5514. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5515. else
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5523. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5525. break 2
  5526. fi
  5527. done
  5528. done
  5529. IFS=$as_save_IFS
  5530. fi
  5531. fi
  5532. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5533. if test -n "$MANIFEST_TOOL"; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5535. $as_echo "$MANIFEST_TOOL" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5538. $as_echo "no" >&6; }
  5539. fi
  5540. fi
  5541. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5542. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5543. # Extract the first word of "mt", so it can be a program name with args.
  5544. set dummy mt; ac_word=$2
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5546. $as_echo_n "checking for $ac_word... " >&6; }
  5547. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5551. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5552. else
  5553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5554. for as_dir in $PATH
  5555. do
  5556. IFS=$as_save_IFS
  5557. test -z "$as_dir" && as_dir=.
  5558. for ac_exec_ext in '' $ac_executable_extensions; do
  5559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5560. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5562. break 2
  5563. fi
  5564. done
  5565. done
  5566. IFS=$as_save_IFS
  5567. fi
  5568. fi
  5569. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5570. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5572. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5573. else
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5575. $as_echo "no" >&6; }
  5576. fi
  5577. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5578. MANIFEST_TOOL=":"
  5579. else
  5580. case $cross_compiling:$ac_tool_warned in
  5581. yes:)
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5584. ac_tool_warned=yes ;;
  5585. esac
  5586. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5587. fi
  5588. else
  5589. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5590. fi
  5591. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5593. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5594. if ${lt_cv_path_mainfest_tool+:} false; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. lt_cv_path_mainfest_tool=no
  5598. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5599. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5600. cat conftest.err >&5
  5601. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5602. lt_cv_path_mainfest_tool=yes
  5603. fi
  5604. rm -f conftest*
  5605. fi
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5607. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5608. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5609. MANIFEST_TOOL=:
  5610. fi
  5611. case $host_os in
  5612. rhapsody* | darwin*)
  5613. if test -n "$ac_tool_prefix"; then
  5614. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5615. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5617. $as_echo_n "checking for $ac_word... " >&6; }
  5618. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5619. $as_echo_n "(cached) " >&6
  5620. else
  5621. if test -n "$DSYMUTIL"; then
  5622. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5623. else
  5624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5625. for as_dir in $PATH
  5626. do
  5627. IFS=$as_save_IFS
  5628. test -z "$as_dir" && as_dir=.
  5629. for ac_exec_ext in '' $ac_executable_extensions; do
  5630. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5631. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5633. break 2
  5634. fi
  5635. done
  5636. done
  5637. IFS=$as_save_IFS
  5638. fi
  5639. fi
  5640. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5641. if test -n "$DSYMUTIL"; then
  5642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5643. $as_echo "$DSYMUTIL" >&6; }
  5644. else
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5646. $as_echo "no" >&6; }
  5647. fi
  5648. fi
  5649. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5650. ac_ct_DSYMUTIL=$DSYMUTIL
  5651. # Extract the first word of "dsymutil", so it can be a program name with args.
  5652. set dummy dsymutil; ac_word=$2
  5653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5654. $as_echo_n "checking for $ac_word... " >&6; }
  5655. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. if test -n "$ac_ct_DSYMUTIL"; then
  5659. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5660. else
  5661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5662. for as_dir in $PATH
  5663. do
  5664. IFS=$as_save_IFS
  5665. test -z "$as_dir" && as_dir=.
  5666. for ac_exec_ext in '' $ac_executable_extensions; do
  5667. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5668. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5670. break 2
  5671. fi
  5672. done
  5673. done
  5674. IFS=$as_save_IFS
  5675. fi
  5676. fi
  5677. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5678. if test -n "$ac_ct_DSYMUTIL"; then
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5680. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5681. else
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5683. $as_echo "no" >&6; }
  5684. fi
  5685. if test "x$ac_ct_DSYMUTIL" = x; then
  5686. DSYMUTIL=":"
  5687. else
  5688. case $cross_compiling:$ac_tool_warned in
  5689. yes:)
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5691. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5692. ac_tool_warned=yes ;;
  5693. esac
  5694. DSYMUTIL=$ac_ct_DSYMUTIL
  5695. fi
  5696. else
  5697. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5698. fi
  5699. if test -n "$ac_tool_prefix"; then
  5700. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5701. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if ${ac_cv_prog_NMEDIT+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$NMEDIT"; then
  5708. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5717. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. NMEDIT=$ac_cv_prog_NMEDIT
  5727. if test -n "$NMEDIT"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5729. $as_echo "$NMEDIT" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_NMEDIT"; then
  5736. ac_ct_NMEDIT=$NMEDIT
  5737. # Extract the first word of "nmedit", so it can be a program name with args.
  5738. set dummy nmedit; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$ac_ct_NMEDIT"; then
  5745. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5754. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5764. if test -n "$ac_ct_NMEDIT"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5766. $as_echo "$ac_ct_NMEDIT" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. if test "x$ac_ct_NMEDIT" = x; then
  5772. NMEDIT=":"
  5773. else
  5774. case $cross_compiling:$ac_tool_warned in
  5775. yes:)
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5778. ac_tool_warned=yes ;;
  5779. esac
  5780. NMEDIT=$ac_ct_NMEDIT
  5781. fi
  5782. else
  5783. NMEDIT="$ac_cv_prog_NMEDIT"
  5784. fi
  5785. if test -n "$ac_tool_prefix"; then
  5786. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5787. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5789. $as_echo_n "checking for $ac_word... " >&6; }
  5790. if ${ac_cv_prog_LIPO+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. if test -n "$LIPO"; then
  5794. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5795. else
  5796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5797. for as_dir in $PATH
  5798. do
  5799. IFS=$as_save_IFS
  5800. test -z "$as_dir" && as_dir=.
  5801. for ac_exec_ext in '' $ac_executable_extensions; do
  5802. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5803. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5804. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5805. break 2
  5806. fi
  5807. done
  5808. done
  5809. IFS=$as_save_IFS
  5810. fi
  5811. fi
  5812. LIPO=$ac_cv_prog_LIPO
  5813. if test -n "$LIPO"; then
  5814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5815. $as_echo "$LIPO" >&6; }
  5816. else
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820. fi
  5821. if test -z "$ac_cv_prog_LIPO"; then
  5822. ac_ct_LIPO=$LIPO
  5823. # Extract the first word of "lipo", so it can be a program name with args.
  5824. set dummy lipo; ac_word=$2
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5826. $as_echo_n "checking for $ac_word... " >&6; }
  5827. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5828. $as_echo_n "(cached) " >&6
  5829. else
  5830. if test -n "$ac_ct_LIPO"; then
  5831. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5832. else
  5833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5834. for as_dir in $PATH
  5835. do
  5836. IFS=$as_save_IFS
  5837. test -z "$as_dir" && as_dir=.
  5838. for ac_exec_ext in '' $ac_executable_extensions; do
  5839. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5840. ac_cv_prog_ac_ct_LIPO="lipo"
  5841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5842. break 2
  5843. fi
  5844. done
  5845. done
  5846. IFS=$as_save_IFS
  5847. fi
  5848. fi
  5849. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5850. if test -n "$ac_ct_LIPO"; then
  5851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5852. $as_echo "$ac_ct_LIPO" >&6; }
  5853. else
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5855. $as_echo "no" >&6; }
  5856. fi
  5857. if test "x$ac_ct_LIPO" = x; then
  5858. LIPO=":"
  5859. else
  5860. case $cross_compiling:$ac_tool_warned in
  5861. yes:)
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5863. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5864. ac_tool_warned=yes ;;
  5865. esac
  5866. LIPO=$ac_ct_LIPO
  5867. fi
  5868. else
  5869. LIPO="$ac_cv_prog_LIPO"
  5870. fi
  5871. if test -n "$ac_tool_prefix"; then
  5872. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5873. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5875. $as_echo_n "checking for $ac_word... " >&6; }
  5876. if ${ac_cv_prog_OTOOL+:} false; then :
  5877. $as_echo_n "(cached) " >&6
  5878. else
  5879. if test -n "$OTOOL"; then
  5880. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5881. else
  5882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5883. for as_dir in $PATH
  5884. do
  5885. IFS=$as_save_IFS
  5886. test -z "$as_dir" && as_dir=.
  5887. for ac_exec_ext in '' $ac_executable_extensions; do
  5888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5889. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5891. break 2
  5892. fi
  5893. done
  5894. done
  5895. IFS=$as_save_IFS
  5896. fi
  5897. fi
  5898. OTOOL=$ac_cv_prog_OTOOL
  5899. if test -n "$OTOOL"; then
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5901. $as_echo "$OTOOL" >&6; }
  5902. else
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5904. $as_echo "no" >&6; }
  5905. fi
  5906. fi
  5907. if test -z "$ac_cv_prog_OTOOL"; then
  5908. ac_ct_OTOOL=$OTOOL
  5909. # Extract the first word of "otool", so it can be a program name with args.
  5910. set dummy otool; ac_word=$2
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5912. $as_echo_n "checking for $ac_word... " >&6; }
  5913. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5914. $as_echo_n "(cached) " >&6
  5915. else
  5916. if test -n "$ac_ct_OTOOL"; then
  5917. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5918. else
  5919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5920. for as_dir in $PATH
  5921. do
  5922. IFS=$as_save_IFS
  5923. test -z "$as_dir" && as_dir=.
  5924. for ac_exec_ext in '' $ac_executable_extensions; do
  5925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5926. ac_cv_prog_ac_ct_OTOOL="otool"
  5927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5928. break 2
  5929. fi
  5930. done
  5931. done
  5932. IFS=$as_save_IFS
  5933. fi
  5934. fi
  5935. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5936. if test -n "$ac_ct_OTOOL"; then
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5938. $as_echo "$ac_ct_OTOOL" >&6; }
  5939. else
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5941. $as_echo "no" >&6; }
  5942. fi
  5943. if test "x$ac_ct_OTOOL" = x; then
  5944. OTOOL=":"
  5945. else
  5946. case $cross_compiling:$ac_tool_warned in
  5947. yes:)
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5949. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5950. ac_tool_warned=yes ;;
  5951. esac
  5952. OTOOL=$ac_ct_OTOOL
  5953. fi
  5954. else
  5955. OTOOL="$ac_cv_prog_OTOOL"
  5956. fi
  5957. if test -n "$ac_tool_prefix"; then
  5958. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5959. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5961. $as_echo_n "checking for $ac_word... " >&6; }
  5962. if ${ac_cv_prog_OTOOL64+:} false; then :
  5963. $as_echo_n "(cached) " >&6
  5964. else
  5965. if test -n "$OTOOL64"; then
  5966. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5967. else
  5968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5969. for as_dir in $PATH
  5970. do
  5971. IFS=$as_save_IFS
  5972. test -z "$as_dir" && as_dir=.
  5973. for ac_exec_ext in '' $ac_executable_extensions; do
  5974. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5975. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5977. break 2
  5978. fi
  5979. done
  5980. done
  5981. IFS=$as_save_IFS
  5982. fi
  5983. fi
  5984. OTOOL64=$ac_cv_prog_OTOOL64
  5985. if test -n "$OTOOL64"; then
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5987. $as_echo "$OTOOL64" >&6; }
  5988. else
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5990. $as_echo "no" >&6; }
  5991. fi
  5992. fi
  5993. if test -z "$ac_cv_prog_OTOOL64"; then
  5994. ac_ct_OTOOL64=$OTOOL64
  5995. # Extract the first word of "otool64", so it can be a program name with args.
  5996. set dummy otool64; ac_word=$2
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5998. $as_echo_n "checking for $ac_word... " >&6; }
  5999. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6000. $as_echo_n "(cached) " >&6
  6001. else
  6002. if test -n "$ac_ct_OTOOL64"; then
  6003. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6004. else
  6005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6006. for as_dir in $PATH
  6007. do
  6008. IFS=$as_save_IFS
  6009. test -z "$as_dir" && as_dir=.
  6010. for ac_exec_ext in '' $ac_executable_extensions; do
  6011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6012. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6014. break 2
  6015. fi
  6016. done
  6017. done
  6018. IFS=$as_save_IFS
  6019. fi
  6020. fi
  6021. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6022. if test -n "$ac_ct_OTOOL64"; then
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6024. $as_echo "$ac_ct_OTOOL64" >&6; }
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6027. $as_echo "no" >&6; }
  6028. fi
  6029. if test "x$ac_ct_OTOOL64" = x; then
  6030. OTOOL64=":"
  6031. else
  6032. case $cross_compiling:$ac_tool_warned in
  6033. yes:)
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6035. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6036. ac_tool_warned=yes ;;
  6037. esac
  6038. OTOOL64=$ac_ct_OTOOL64
  6039. fi
  6040. else
  6041. OTOOL64="$ac_cv_prog_OTOOL64"
  6042. fi
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6044. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6045. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. lt_cv_apple_cc_single_mod=no
  6049. if test -z "${LT_MULTI_MODULE}"; then
  6050. # By default we will add the -single_module flag. You can override
  6051. # by either setting the environment variable LT_MULTI_MODULE
  6052. # non-empty at configure time, or by adding -multi_module to the
  6053. # link flags.
  6054. rm -rf libconftest.dylib*
  6055. echo "int foo(void){return 1;}" > conftest.c
  6056. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6057. -dynamiclib -Wl,-single_module conftest.c" >&5
  6058. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6059. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6060. _lt_result=$?
  6061. # If there is a non-empty error log, and "single_module"
  6062. # appears in it, assume the flag caused a linker warning
  6063. if test -s conftest.err && $GREP single_module conftest.err; then
  6064. cat conftest.err >&5
  6065. # Otherwise, if the output was created with a 0 exit code from
  6066. # the compiler, it worked.
  6067. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6068. lt_cv_apple_cc_single_mod=yes
  6069. else
  6070. cat conftest.err >&5
  6071. fi
  6072. rm -rf libconftest.dylib*
  6073. rm -f conftest.*
  6074. fi
  6075. fi
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6077. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6079. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6080. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. lt_cv_ld_exported_symbols_list=no
  6084. save_LDFLAGS=$LDFLAGS
  6085. echo "_main" > conftest.sym
  6086. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6088. /* end confdefs.h. */
  6089. int
  6090. main ()
  6091. {
  6092. ;
  6093. return 0;
  6094. }
  6095. _ACEOF
  6096. if ac_fn_c_try_link "$LINENO"; then :
  6097. lt_cv_ld_exported_symbols_list=yes
  6098. else
  6099. lt_cv_ld_exported_symbols_list=no
  6100. fi
  6101. rm -f core conftest.err conftest.$ac_objext \
  6102. conftest$ac_exeext conftest.$ac_ext
  6103. LDFLAGS="$save_LDFLAGS"
  6104. fi
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6106. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6108. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6109. if ${lt_cv_ld_force_load+:} false; then :
  6110. $as_echo_n "(cached) " >&6
  6111. else
  6112. lt_cv_ld_force_load=no
  6113. cat > conftest.c << _LT_EOF
  6114. int forced_loaded() { return 2;}
  6115. _LT_EOF
  6116. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6117. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6118. echo "$AR cru libconftest.a conftest.o" >&5
  6119. $AR cru libconftest.a conftest.o 2>&5
  6120. echo "$RANLIB libconftest.a" >&5
  6121. $RANLIB libconftest.a 2>&5
  6122. cat > conftest.c << _LT_EOF
  6123. int main() { return 0;}
  6124. _LT_EOF
  6125. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6126. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6127. _lt_result=$?
  6128. if test -s conftest.err && $GREP force_load conftest.err; then
  6129. cat conftest.err >&5
  6130. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6131. lt_cv_ld_force_load=yes
  6132. else
  6133. cat conftest.err >&5
  6134. fi
  6135. rm -f conftest.err libconftest.a conftest conftest.c
  6136. rm -rf conftest.dSYM
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6139. $as_echo "$lt_cv_ld_force_load" >&6; }
  6140. case $host_os in
  6141. rhapsody* | darwin1.[012])
  6142. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6143. darwin1.*)
  6144. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6145. darwin*)
  6146. case $MACOSX_DEPLOYMENT_TARGET,$host in
  6147. 10.[012],*|,*powerpc*-darwin[5-8]*)
  6148. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6149. *)
  6150. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6151. esac
  6152. ;;
  6153. esac
  6154. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6155. _lt_dar_single_mod='$single_module'
  6156. fi
  6157. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6158. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6159. else
  6160. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6161. fi
  6162. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6163. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6164. else
  6165. _lt_dsymutil=
  6166. fi
  6167. ;;
  6168. esac
  6169. ac_ext=c
  6170. ac_cpp='$CPP $CPPFLAGS'
  6171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6175. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6176. # On Suns, sometimes $CPP names a directory.
  6177. if test -n "$CPP" && test -d "$CPP"; then
  6178. CPP=
  6179. fi
  6180. if test -z "$CPP"; then
  6181. if ${ac_cv_prog_CPP+:} false; then :
  6182. $as_echo_n "(cached) " >&6
  6183. else
  6184. # Double quotes because CPP needs to be expanded
  6185. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6186. do
  6187. ac_preproc_ok=false
  6188. for ac_c_preproc_warn_flag in '' yes
  6189. do
  6190. # Use a header file that comes with gcc, so configuring glibc
  6191. # with a fresh cross-compiler works.
  6192. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6193. # <limits.h> exists even on freestanding compilers.
  6194. # On the NeXT, cc -E runs the code through the compiler's parser,
  6195. # not just through cpp. "Syntax error" is here to catch this case.
  6196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6197. /* end confdefs.h. */
  6198. #ifdef __STDC__
  6199. # include <limits.h>
  6200. #else
  6201. # include <assert.h>
  6202. #endif
  6203. Syntax error
  6204. _ACEOF
  6205. if ac_fn_c_try_cpp "$LINENO"; then :
  6206. else
  6207. # Broken: fails on valid input.
  6208. continue
  6209. fi
  6210. rm -f conftest.err conftest.i conftest.$ac_ext
  6211. # OK, works on sane cases. Now check whether nonexistent headers
  6212. # can be detected and how.
  6213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6214. /* end confdefs.h. */
  6215. #include <ac_nonexistent.h>
  6216. _ACEOF
  6217. if ac_fn_c_try_cpp "$LINENO"; then :
  6218. # Broken: success on invalid input.
  6219. continue
  6220. else
  6221. # Passes both tests.
  6222. ac_preproc_ok=:
  6223. break
  6224. fi
  6225. rm -f conftest.err conftest.i conftest.$ac_ext
  6226. done
  6227. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6228. rm -f conftest.i conftest.err conftest.$ac_ext
  6229. if $ac_preproc_ok; then :
  6230. break
  6231. fi
  6232. done
  6233. ac_cv_prog_CPP=$CPP
  6234. fi
  6235. CPP=$ac_cv_prog_CPP
  6236. else
  6237. ac_cv_prog_CPP=$CPP
  6238. fi
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6240. $as_echo "$CPP" >&6; }
  6241. ac_preproc_ok=false
  6242. for ac_c_preproc_warn_flag in '' yes
  6243. do
  6244. # Use a header file that comes with gcc, so configuring glibc
  6245. # with a fresh cross-compiler works.
  6246. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6247. # <limits.h> exists even on freestanding compilers.
  6248. # On the NeXT, cc -E runs the code through the compiler's parser,
  6249. # not just through cpp. "Syntax error" is here to catch this case.
  6250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6251. /* end confdefs.h. */
  6252. #ifdef __STDC__
  6253. # include <limits.h>
  6254. #else
  6255. # include <assert.h>
  6256. #endif
  6257. Syntax error
  6258. _ACEOF
  6259. if ac_fn_c_try_cpp "$LINENO"; then :
  6260. else
  6261. # Broken: fails on valid input.
  6262. continue
  6263. fi
  6264. rm -f conftest.err conftest.i conftest.$ac_ext
  6265. # OK, works on sane cases. Now check whether nonexistent headers
  6266. # can be detected and how.
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. #include <ac_nonexistent.h>
  6270. _ACEOF
  6271. if ac_fn_c_try_cpp "$LINENO"; then :
  6272. # Broken: success on invalid input.
  6273. continue
  6274. else
  6275. # Passes both tests.
  6276. ac_preproc_ok=:
  6277. break
  6278. fi
  6279. rm -f conftest.err conftest.i conftest.$ac_ext
  6280. done
  6281. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6282. rm -f conftest.i conftest.err conftest.$ac_ext
  6283. if $ac_preproc_ok; then :
  6284. else
  6285. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6286. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6287. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6288. See \`config.log' for more details" "$LINENO" 5; }
  6289. fi
  6290. ac_ext=c
  6291. ac_cpp='$CPP $CPPFLAGS'
  6292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6296. $as_echo_n "checking for ANSI C header files... " >&6; }
  6297. if ${ac_cv_header_stdc+:} false; then :
  6298. $as_echo_n "(cached) " >&6
  6299. else
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. #include <stdlib.h>
  6303. #include <stdarg.h>
  6304. #include <string.h>
  6305. #include <float.h>
  6306. int
  6307. main ()
  6308. {
  6309. ;
  6310. return 0;
  6311. }
  6312. _ACEOF
  6313. if ac_fn_c_try_compile "$LINENO"; then :
  6314. ac_cv_header_stdc=yes
  6315. else
  6316. ac_cv_header_stdc=no
  6317. fi
  6318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6319. if test $ac_cv_header_stdc = yes; then
  6320. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6322. /* end confdefs.h. */
  6323. #include <string.h>
  6324. _ACEOF
  6325. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6326. $EGREP "memchr" >/dev/null 2>&1; then :
  6327. else
  6328. ac_cv_header_stdc=no
  6329. fi
  6330. rm -f conftest*
  6331. fi
  6332. if test $ac_cv_header_stdc = yes; then
  6333. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6335. /* end confdefs.h. */
  6336. #include <stdlib.h>
  6337. _ACEOF
  6338. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6339. $EGREP "free" >/dev/null 2>&1; then :
  6340. else
  6341. ac_cv_header_stdc=no
  6342. fi
  6343. rm -f conftest*
  6344. fi
  6345. if test $ac_cv_header_stdc = yes; then
  6346. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6347. if test "$cross_compiling" = yes; then :
  6348. :
  6349. else
  6350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6351. /* end confdefs.h. */
  6352. #include <ctype.h>
  6353. #include <stdlib.h>
  6354. #if ((' ' & 0x0FF) == 0x020)
  6355. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6356. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6357. #else
  6358. # define ISLOWER(c) \
  6359. (('a' <= (c) && (c) <= 'i') \
  6360. || ('j' <= (c) && (c) <= 'r') \
  6361. || ('s' <= (c) && (c) <= 'z'))
  6362. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6363. #endif
  6364. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6365. int
  6366. main ()
  6367. {
  6368. int i;
  6369. for (i = 0; i < 256; i++)
  6370. if (XOR (islower (i), ISLOWER (i))
  6371. || toupper (i) != TOUPPER (i))
  6372. return 2;
  6373. return 0;
  6374. }
  6375. _ACEOF
  6376. if ac_fn_c_try_run "$LINENO"; then :
  6377. else
  6378. ac_cv_header_stdc=no
  6379. fi
  6380. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6381. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6382. fi
  6383. fi
  6384. fi
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6386. $as_echo "$ac_cv_header_stdc" >&6; }
  6387. if test $ac_cv_header_stdc = yes; then
  6388. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6389. fi
  6390. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6391. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6392. inttypes.h stdint.h unistd.h
  6393. do :
  6394. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6395. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6396. "
  6397. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6398. cat >>confdefs.h <<_ACEOF
  6399. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6400. _ACEOF
  6401. fi
  6402. done
  6403. for ac_header in dlfcn.h
  6404. do :
  6405. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6406. "
  6407. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6408. cat >>confdefs.h <<_ACEOF
  6409. #define HAVE_DLFCN_H 1
  6410. _ACEOF
  6411. fi
  6412. done
  6413. # Set options
  6414. enable_win32_dll=yes
  6415. case $host in
  6416. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6417. if test -n "$ac_tool_prefix"; then
  6418. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6419. set dummy ${ac_tool_prefix}as; ac_word=$2
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6421. $as_echo_n "checking for $ac_word... " >&6; }
  6422. if ${ac_cv_prog_AS+:} false; then :
  6423. $as_echo_n "(cached) " >&6
  6424. else
  6425. if test -n "$AS"; then
  6426. ac_cv_prog_AS="$AS" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. test -z "$as_dir" && as_dir=.
  6433. for ac_exec_ext in '' $ac_executable_extensions; do
  6434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6435. ac_cv_prog_AS="${ac_tool_prefix}as"
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6437. break 2
  6438. fi
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. fi
  6443. fi
  6444. AS=$ac_cv_prog_AS
  6445. if test -n "$AS"; then
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6447. $as_echo "$AS" >&6; }
  6448. else
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6450. $as_echo "no" >&6; }
  6451. fi
  6452. fi
  6453. if test -z "$ac_cv_prog_AS"; then
  6454. ac_ct_AS=$AS
  6455. # Extract the first word of "as", so it can be a program name with args.
  6456. set dummy as; ac_word=$2
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6458. $as_echo_n "checking for $ac_word... " >&6; }
  6459. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. if test -n "$ac_ct_AS"; then
  6463. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6464. else
  6465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6466. for as_dir in $PATH
  6467. do
  6468. IFS=$as_save_IFS
  6469. test -z "$as_dir" && as_dir=.
  6470. for ac_exec_ext in '' $ac_executable_extensions; do
  6471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6472. ac_cv_prog_ac_ct_AS="as"
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6474. break 2
  6475. fi
  6476. done
  6477. done
  6478. IFS=$as_save_IFS
  6479. fi
  6480. fi
  6481. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6482. if test -n "$ac_ct_AS"; then
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6484. $as_echo "$ac_ct_AS" >&6; }
  6485. else
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6487. $as_echo "no" >&6; }
  6488. fi
  6489. if test "x$ac_ct_AS" = x; then
  6490. AS="false"
  6491. else
  6492. case $cross_compiling:$ac_tool_warned in
  6493. yes:)
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6496. ac_tool_warned=yes ;;
  6497. esac
  6498. AS=$ac_ct_AS
  6499. fi
  6500. else
  6501. AS="$ac_cv_prog_AS"
  6502. fi
  6503. if test -n "$ac_tool_prefix"; then
  6504. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6505. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$DLLTOOL"; then
  6512. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6521. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. DLLTOOL=$ac_cv_prog_DLLTOOL
  6531. if test -n "$DLLTOOL"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6533. $as_echo "$DLLTOOL" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. fi
  6539. if test -z "$ac_cv_prog_DLLTOOL"; then
  6540. ac_ct_DLLTOOL=$DLLTOOL
  6541. # Extract the first word of "dlltool", so it can be a program name with args.
  6542. set dummy dlltool; ac_word=$2
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6544. $as_echo_n "checking for $ac_word... " >&6; }
  6545. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6546. $as_echo_n "(cached) " >&6
  6547. else
  6548. if test -n "$ac_ct_DLLTOOL"; then
  6549. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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. test -z "$as_dir" && as_dir=.
  6556. for ac_exec_ext in '' $ac_executable_extensions; do
  6557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6558. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6560. break 2
  6561. fi
  6562. done
  6563. done
  6564. IFS=$as_save_IFS
  6565. fi
  6566. fi
  6567. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6568. if test -n "$ac_ct_DLLTOOL"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6570. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6573. $as_echo "no" >&6; }
  6574. fi
  6575. if test "x$ac_ct_DLLTOOL" = x; then
  6576. DLLTOOL="false"
  6577. else
  6578. case $cross_compiling:$ac_tool_warned in
  6579. yes:)
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6582. ac_tool_warned=yes ;;
  6583. esac
  6584. DLLTOOL=$ac_ct_DLLTOOL
  6585. fi
  6586. else
  6587. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6588. fi
  6589. if test -n "$ac_tool_prefix"; then
  6590. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6591. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6593. $as_echo_n "checking for $ac_word... " >&6; }
  6594. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6595. $as_echo_n "(cached) " >&6
  6596. else
  6597. if test -n "$OBJDUMP"; then
  6598. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6599. else
  6600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6601. for as_dir in $PATH
  6602. do
  6603. IFS=$as_save_IFS
  6604. test -z "$as_dir" && as_dir=.
  6605. for ac_exec_ext in '' $ac_executable_extensions; do
  6606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6607. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6609. break 2
  6610. fi
  6611. done
  6612. done
  6613. IFS=$as_save_IFS
  6614. fi
  6615. fi
  6616. OBJDUMP=$ac_cv_prog_OBJDUMP
  6617. if test -n "$OBJDUMP"; then
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6619. $as_echo "$OBJDUMP" >&6; }
  6620. else
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6622. $as_echo "no" >&6; }
  6623. fi
  6624. fi
  6625. if test -z "$ac_cv_prog_OBJDUMP"; then
  6626. ac_ct_OBJDUMP=$OBJDUMP
  6627. # Extract the first word of "objdump", so it can be a program name with args.
  6628. set dummy objdump; ac_word=$2
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6630. $as_echo_n "checking for $ac_word... " >&6; }
  6631. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. if test -n "$ac_ct_OBJDUMP"; then
  6635. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6636. else
  6637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6638. for as_dir in $PATH
  6639. do
  6640. IFS=$as_save_IFS
  6641. test -z "$as_dir" && as_dir=.
  6642. for ac_exec_ext in '' $ac_executable_extensions; do
  6643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6644. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6646. break 2
  6647. fi
  6648. done
  6649. done
  6650. IFS=$as_save_IFS
  6651. fi
  6652. fi
  6653. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6654. if test -n "$ac_ct_OBJDUMP"; then
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6656. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6657. else
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6659. $as_echo "no" >&6; }
  6660. fi
  6661. if test "x$ac_ct_OBJDUMP" = x; then
  6662. OBJDUMP="false"
  6663. else
  6664. case $cross_compiling:$ac_tool_warned in
  6665. yes:)
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6668. ac_tool_warned=yes ;;
  6669. esac
  6670. OBJDUMP=$ac_ct_OBJDUMP
  6671. fi
  6672. else
  6673. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6674. fi
  6675. ;;
  6676. esac
  6677. test -z "$AS" && AS=as
  6678. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6679. test -z "$OBJDUMP" && OBJDUMP=objdump
  6680. enable_dlopen=no
  6681. # Check whether --enable-shared was given.
  6682. if test "${enable_shared+set}" = set; then :
  6683. enableval=$enable_shared; p=${PACKAGE-default}
  6684. case $enableval in
  6685. yes) enable_shared=yes ;;
  6686. no) enable_shared=no ;;
  6687. *)
  6688. enable_shared=no
  6689. # Look at the argument we got. We use all the common list separators.
  6690. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6691. for pkg in $enableval; do
  6692. IFS="$lt_save_ifs"
  6693. if test "X$pkg" = "X$p"; then
  6694. enable_shared=yes
  6695. fi
  6696. done
  6697. IFS="$lt_save_ifs"
  6698. ;;
  6699. esac
  6700. else
  6701. enable_shared=yes
  6702. fi
  6703. # Check whether --enable-static was given.
  6704. if test "${enable_static+set}" = set; then :
  6705. enableval=$enable_static; p=${PACKAGE-default}
  6706. case $enableval in
  6707. yes) enable_static=yes ;;
  6708. no) enable_static=no ;;
  6709. *)
  6710. enable_static=no
  6711. # Look at the argument we got. We use all the common list separators.
  6712. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6713. for pkg in $enableval; do
  6714. IFS="$lt_save_ifs"
  6715. if test "X$pkg" = "X$p"; then
  6716. enable_static=yes
  6717. fi
  6718. done
  6719. IFS="$lt_save_ifs"
  6720. ;;
  6721. esac
  6722. else
  6723. enable_static=yes
  6724. fi
  6725. # Check whether --with-pic was given.
  6726. if test "${with_pic+set}" = set; then :
  6727. withval=$with_pic; lt_p=${PACKAGE-default}
  6728. case $withval in
  6729. yes|no) pic_mode=$withval ;;
  6730. *)
  6731. pic_mode=default
  6732. # Look at the argument we got. We use all the common list separators.
  6733. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6734. for lt_pkg in $withval; do
  6735. IFS="$lt_save_ifs"
  6736. if test "X$lt_pkg" = "X$lt_p"; then
  6737. pic_mode=yes
  6738. fi
  6739. done
  6740. IFS="$lt_save_ifs"
  6741. ;;
  6742. esac
  6743. else
  6744. pic_mode=default
  6745. fi
  6746. test -z "$pic_mode" && pic_mode=default
  6747. # Check whether --enable-fast-install was given.
  6748. if test "${enable_fast_install+set}" = set; then :
  6749. enableval=$enable_fast_install; p=${PACKAGE-default}
  6750. case $enableval in
  6751. yes) enable_fast_install=yes ;;
  6752. no) enable_fast_install=no ;;
  6753. *)
  6754. enable_fast_install=no
  6755. # Look at the argument we got. We use all the common list separators.
  6756. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6757. for pkg in $enableval; do
  6758. IFS="$lt_save_ifs"
  6759. if test "X$pkg" = "X$p"; then
  6760. enable_fast_install=yes
  6761. fi
  6762. done
  6763. IFS="$lt_save_ifs"
  6764. ;;
  6765. esac
  6766. else
  6767. enable_fast_install=yes
  6768. fi
  6769. # This can be used to rebuild libtool when needed
  6770. LIBTOOL_DEPS="$ltmain"
  6771. # Always use our own libtool.
  6772. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6773. test -z "$LN_S" && LN_S="ln -s"
  6774. if test -n "${ZSH_VERSION+set}" ; then
  6775. setopt NO_GLOB_SUBST
  6776. fi
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6778. $as_echo_n "checking for objdir... " >&6; }
  6779. if ${lt_cv_objdir+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. rm -f .libs 2>/dev/null
  6783. mkdir .libs 2>/dev/null
  6784. if test -d .libs; then
  6785. lt_cv_objdir=.libs
  6786. else
  6787. # MS-DOS does not allow filenames that begin with a dot.
  6788. lt_cv_objdir=_libs
  6789. fi
  6790. rmdir .libs 2>/dev/null
  6791. fi
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6793. $as_echo "$lt_cv_objdir" >&6; }
  6794. objdir=$lt_cv_objdir
  6795. cat >>confdefs.h <<_ACEOF
  6796. #define LT_OBJDIR "$lt_cv_objdir/"
  6797. _ACEOF
  6798. case $host_os in
  6799. aix3*)
  6800. # AIX sometimes has problems with the GCC collect2 program. For some
  6801. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6802. # vanish in a puff of smoke.
  6803. if test "X${COLLECT_NAMES+set}" != Xset; then
  6804. COLLECT_NAMES=
  6805. export COLLECT_NAMES
  6806. fi
  6807. ;;
  6808. esac
  6809. # Global variables:
  6810. ofile=libtool
  6811. can_build_shared=yes
  6812. # All known linkers require a `.a' archive for static linking (except MSVC,
  6813. # which needs '.lib').
  6814. libext=a
  6815. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6816. old_CC="$CC"
  6817. old_CFLAGS="$CFLAGS"
  6818. # Set sane defaults for various variables
  6819. test -z "$CC" && CC=cc
  6820. test -z "$LTCC" && LTCC=$CC
  6821. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6822. test -z "$LD" && LD=ld
  6823. test -z "$ac_objext" && ac_objext=o
  6824. for cc_temp in $compiler""; do
  6825. case $cc_temp in
  6826. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6827. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6828. \-*) ;;
  6829. *) break;;
  6830. esac
  6831. done
  6832. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6833. # Only perform the check for file, if the check method requires it
  6834. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6835. case $deplibs_check_method in
  6836. file_magic*)
  6837. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6839. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6840. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. case $MAGIC_CMD in
  6844. [\\/*] | ?:[\\/]*)
  6845. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6846. ;;
  6847. *)
  6848. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6849. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6850. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6851. for ac_dir in $ac_dummy; do
  6852. IFS="$lt_save_ifs"
  6853. test -z "$ac_dir" && ac_dir=.
  6854. if test -f $ac_dir/${ac_tool_prefix}file; then
  6855. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6856. if test -n "$file_magic_test_file"; then
  6857. case $deplibs_check_method in
  6858. "file_magic "*)
  6859. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6860. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6861. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6862. $EGREP "$file_magic_regex" > /dev/null; then
  6863. :
  6864. else
  6865. cat <<_LT_EOF 1>&2
  6866. *** Warning: the command libtool uses to detect shared libraries,
  6867. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6868. *** The result is that libtool may fail to recognize shared libraries
  6869. *** as such. This will affect the creation of libtool libraries that
  6870. *** depend on shared libraries, but programs linked with such libtool
  6871. *** libraries will work regardless of this problem. Nevertheless, you
  6872. *** may want to report the problem to your system manager and/or to
  6873. *** bug-libtool@gnu.org
  6874. _LT_EOF
  6875. fi ;;
  6876. esac
  6877. fi
  6878. break
  6879. fi
  6880. done
  6881. IFS="$lt_save_ifs"
  6882. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6883. ;;
  6884. esac
  6885. fi
  6886. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6887. if test -n "$MAGIC_CMD"; then
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6889. $as_echo "$MAGIC_CMD" >&6; }
  6890. else
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6892. $as_echo "no" >&6; }
  6893. fi
  6894. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6895. if test -n "$ac_tool_prefix"; then
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6897. $as_echo_n "checking for file... " >&6; }
  6898. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. case $MAGIC_CMD in
  6902. [\\/*] | ?:[\\/]*)
  6903. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6904. ;;
  6905. *)
  6906. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6907. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6908. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6909. for ac_dir in $ac_dummy; do
  6910. IFS="$lt_save_ifs"
  6911. test -z "$ac_dir" && ac_dir=.
  6912. if test -f $ac_dir/file; then
  6913. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6914. if test -n "$file_magic_test_file"; then
  6915. case $deplibs_check_method in
  6916. "file_magic "*)
  6917. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6918. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6919. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6920. $EGREP "$file_magic_regex" > /dev/null; then
  6921. :
  6922. else
  6923. cat <<_LT_EOF 1>&2
  6924. *** Warning: the command libtool uses to detect shared libraries,
  6925. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6926. *** The result is that libtool may fail to recognize shared libraries
  6927. *** as such. This will affect the creation of libtool libraries that
  6928. *** depend on shared libraries, but programs linked with such libtool
  6929. *** libraries will work regardless of this problem. Nevertheless, you
  6930. *** may want to report the problem to your system manager and/or to
  6931. *** bug-libtool@gnu.org
  6932. _LT_EOF
  6933. fi ;;
  6934. esac
  6935. fi
  6936. break
  6937. fi
  6938. done
  6939. IFS="$lt_save_ifs"
  6940. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6941. ;;
  6942. esac
  6943. fi
  6944. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6945. if test -n "$MAGIC_CMD"; then
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6947. $as_echo "$MAGIC_CMD" >&6; }
  6948. else
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6950. $as_echo "no" >&6; }
  6951. fi
  6952. else
  6953. MAGIC_CMD=:
  6954. fi
  6955. fi
  6956. fi
  6957. ;;
  6958. esac
  6959. # Use C for the default configuration in the libtool script
  6960. lt_save_CC="$CC"
  6961. ac_ext=c
  6962. ac_cpp='$CPP $CPPFLAGS'
  6963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6966. # Source file extension for C test sources.
  6967. ac_ext=c
  6968. # Object file extension for compiled C test sources.
  6969. objext=o
  6970. objext=$objext
  6971. # Code to be used in simple compile tests
  6972. lt_simple_compile_test_code="int some_variable = 0;"
  6973. # Code to be used in simple link tests
  6974. lt_simple_link_test_code='int main(){return(0);}'
  6975. # If no C compiler was specified, use CC.
  6976. LTCC=${LTCC-"$CC"}
  6977. # If no C compiler flags were specified, use CFLAGS.
  6978. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6979. # Allow CC to be a program name with arguments.
  6980. compiler=$CC
  6981. # Save the default compiler, since it gets overwritten when the other
  6982. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6983. compiler_DEFAULT=$CC
  6984. # save warnings/boilerplate of simple test code
  6985. ac_outfile=conftest.$ac_objext
  6986. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6987. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6988. _lt_compiler_boilerplate=`cat conftest.err`
  6989. $RM conftest*
  6990. ac_outfile=conftest.$ac_objext
  6991. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6992. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6993. _lt_linker_boilerplate=`cat conftest.err`
  6994. $RM -r conftest*
  6995. ## CAVEAT EMPTOR:
  6996. ## There is no encapsulation within the following macros, do not change
  6997. ## the running order or otherwise move them around unless you know exactly
  6998. ## what you are doing...
  6999. if test -n "$compiler"; then
  7000. lt_prog_compiler_no_builtin_flag=
  7001. if test "$GCC" = yes; then
  7002. case $cc_basename in
  7003. nvcc*)
  7004. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7005. *)
  7006. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7007. esac
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7009. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7010. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. lt_cv_prog_compiler_rtti_exceptions=no
  7014. ac_outfile=conftest.$ac_objext
  7015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7016. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7017. # Insert the option either (1) after the last *FLAGS variable, or
  7018. # (2) before a word containing "conftest.", or (3) at the end.
  7019. # Note that $ac_compile itself does not contain backslashes and begins
  7020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7021. # The option is referenced via a variable to avoid confusing sed.
  7022. lt_compile=`echo "$ac_compile" | $SED \
  7023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7025. -e 's:$: $lt_compiler_flag:'`
  7026. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7027. (eval "$lt_compile" 2>conftest.err)
  7028. ac_status=$?
  7029. cat conftest.err >&5
  7030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031. if (exit $ac_status) && test -s "$ac_outfile"; then
  7032. # The compiler can only warn and ignore the option if not recognized
  7033. # So say no if there are warnings other than the usual output.
  7034. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7037. lt_cv_prog_compiler_rtti_exceptions=yes
  7038. fi
  7039. fi
  7040. $RM conftest*
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7043. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7044. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7045. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7046. else
  7047. :
  7048. fi
  7049. fi
  7050. lt_prog_compiler_wl=
  7051. lt_prog_compiler_pic=
  7052. lt_prog_compiler_static=
  7053. if test "$GCC" = yes; then
  7054. lt_prog_compiler_wl='-Wl,'
  7055. lt_prog_compiler_static='-static'
  7056. case $host_os in
  7057. aix*)
  7058. # All AIX code is PIC.
  7059. if test "$host_cpu" = ia64; then
  7060. # AIX 5 now supports IA64 processor
  7061. lt_prog_compiler_static='-Bstatic'
  7062. fi
  7063. ;;
  7064. amigaos*)
  7065. case $host_cpu in
  7066. powerpc)
  7067. # see comment about AmigaOS4 .so support
  7068. lt_prog_compiler_pic='-fPIC'
  7069. ;;
  7070. m68k)
  7071. # FIXME: we need at least 68020 code to build shared libraries, but
  7072. # adding the `-m68020' flag to GCC prevents building anything better,
  7073. # like `-m68040'.
  7074. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7075. ;;
  7076. esac
  7077. ;;
  7078. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7079. # PIC is the default for these OSes.
  7080. ;;
  7081. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7082. # This hack is so that the source file can tell whether it is being
  7083. # built for inclusion in a dll (and should export symbols for example).
  7084. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7085. # (--disable-auto-import) libraries
  7086. lt_prog_compiler_pic='-DDLL_EXPORT'
  7087. ;;
  7088. darwin* | rhapsody*)
  7089. # PIC is the default on this platform
  7090. # Common symbols not allowed in MH_DYLIB files
  7091. lt_prog_compiler_pic='-fno-common'
  7092. ;;
  7093. haiku*)
  7094. # PIC is the default for Haiku.
  7095. # The "-static" flag exists, but is broken.
  7096. lt_prog_compiler_static=
  7097. ;;
  7098. hpux*)
  7099. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7100. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7101. # sets the default TLS model and affects inlining.
  7102. case $host_cpu in
  7103. hppa*64*)
  7104. # +Z the default
  7105. ;;
  7106. *)
  7107. lt_prog_compiler_pic='-fPIC'
  7108. ;;
  7109. esac
  7110. ;;
  7111. interix[3-9]*)
  7112. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7113. # Instead, we relocate shared libraries at runtime.
  7114. ;;
  7115. msdosdjgpp*)
  7116. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7117. # on systems that don't support them.
  7118. lt_prog_compiler_can_build_shared=no
  7119. enable_shared=no
  7120. ;;
  7121. *nto* | *qnx*)
  7122. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7123. # it will coredump.
  7124. lt_prog_compiler_pic='-fPIC -shared'
  7125. ;;
  7126. sysv4*MP*)
  7127. if test -d /usr/nec; then
  7128. lt_prog_compiler_pic=-Kconform_pic
  7129. fi
  7130. ;;
  7131. *)
  7132. lt_prog_compiler_pic='-fPIC'
  7133. ;;
  7134. esac
  7135. case $cc_basename in
  7136. nvcc*) # Cuda Compiler Driver 2.2
  7137. lt_prog_compiler_wl='-Xlinker '
  7138. if test -n "$lt_prog_compiler_pic"; then
  7139. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7140. fi
  7141. ;;
  7142. esac
  7143. else
  7144. # PORTME Check for flag to pass linker flags through the system compiler.
  7145. case $host_os in
  7146. aix*)
  7147. lt_prog_compiler_wl='-Wl,'
  7148. if test "$host_cpu" = ia64; then
  7149. # AIX 5 now supports IA64 processor
  7150. lt_prog_compiler_static='-Bstatic'
  7151. else
  7152. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7153. fi
  7154. ;;
  7155. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7156. # This hack is so that the source file can tell whether it is being
  7157. # built for inclusion in a dll (and should export symbols for example).
  7158. lt_prog_compiler_pic='-DDLL_EXPORT'
  7159. ;;
  7160. hpux9* | hpux10* | hpux11*)
  7161. lt_prog_compiler_wl='-Wl,'
  7162. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7163. # not for PA HP-UX.
  7164. case $host_cpu in
  7165. hppa*64*|ia64*)
  7166. # +Z the default
  7167. ;;
  7168. *)
  7169. lt_prog_compiler_pic='+Z'
  7170. ;;
  7171. esac
  7172. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7173. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7174. ;;
  7175. irix5* | irix6* | nonstopux*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. # PIC (with -KPIC) is the default.
  7178. lt_prog_compiler_static='-non_shared'
  7179. ;;
  7180. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7181. case $cc_basename in
  7182. # old Intel for x86_64 which still supported -KPIC.
  7183. ecc*)
  7184. lt_prog_compiler_wl='-Wl,'
  7185. lt_prog_compiler_pic='-KPIC'
  7186. lt_prog_compiler_static='-static'
  7187. ;;
  7188. # icc used to be incompatible with GCC.
  7189. # ICC 10 doesn't accept -KPIC any more.
  7190. icc* | ifort*)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. lt_prog_compiler_pic='-fPIC'
  7193. lt_prog_compiler_static='-static'
  7194. ;;
  7195. # Lahey Fortran 8.1.
  7196. lf95*)
  7197. lt_prog_compiler_wl='-Wl,'
  7198. lt_prog_compiler_pic='--shared'
  7199. lt_prog_compiler_static='--static'
  7200. ;;
  7201. nagfor*)
  7202. # NAG Fortran compiler
  7203. lt_prog_compiler_wl='-Wl,-Wl,,'
  7204. lt_prog_compiler_pic='-PIC'
  7205. lt_prog_compiler_static='-Bstatic'
  7206. ;;
  7207. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7208. # Portland Group compilers (*not* the Pentium gcc compiler,
  7209. # which looks to be a dead project)
  7210. lt_prog_compiler_wl='-Wl,'
  7211. lt_prog_compiler_pic='-fpic'
  7212. lt_prog_compiler_static='-Bstatic'
  7213. ;;
  7214. ccc*)
  7215. lt_prog_compiler_wl='-Wl,'
  7216. # All Alpha code is PIC.
  7217. lt_prog_compiler_static='-non_shared'
  7218. ;;
  7219. xl* | bgxl* | bgf* | mpixl*)
  7220. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7221. lt_prog_compiler_wl='-Wl,'
  7222. lt_prog_compiler_pic='-qpic'
  7223. lt_prog_compiler_static='-qstaticlink'
  7224. ;;
  7225. *)
  7226. case `$CC -V 2>&1 | sed 5q` in
  7227. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7228. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7229. lt_prog_compiler_pic='-KPIC'
  7230. lt_prog_compiler_static='-Bstatic'
  7231. lt_prog_compiler_wl=''
  7232. ;;
  7233. *Sun\ F* | *Sun*Fortran*)
  7234. lt_prog_compiler_pic='-KPIC'
  7235. lt_prog_compiler_static='-Bstatic'
  7236. lt_prog_compiler_wl='-Qoption ld '
  7237. ;;
  7238. *Sun\ C*)
  7239. # Sun C 5.9
  7240. lt_prog_compiler_pic='-KPIC'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. lt_prog_compiler_wl='-Wl,'
  7243. ;;
  7244. *Intel*\ [CF]*Compiler*)
  7245. lt_prog_compiler_wl='-Wl,'
  7246. lt_prog_compiler_pic='-fPIC'
  7247. lt_prog_compiler_static='-static'
  7248. ;;
  7249. *Portland\ Group*)
  7250. lt_prog_compiler_wl='-Wl,'
  7251. lt_prog_compiler_pic='-fpic'
  7252. lt_prog_compiler_static='-Bstatic'
  7253. ;;
  7254. esac
  7255. ;;
  7256. esac
  7257. ;;
  7258. newsos6)
  7259. lt_prog_compiler_pic='-KPIC'
  7260. lt_prog_compiler_static='-Bstatic'
  7261. ;;
  7262. *nto* | *qnx*)
  7263. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7264. # it will coredump.
  7265. lt_prog_compiler_pic='-fPIC -shared'
  7266. ;;
  7267. osf3* | osf4* | osf5*)
  7268. lt_prog_compiler_wl='-Wl,'
  7269. # All OSF/1 code is PIC.
  7270. lt_prog_compiler_static='-non_shared'
  7271. ;;
  7272. rdos*)
  7273. lt_prog_compiler_static='-non_shared'
  7274. ;;
  7275. solaris*)
  7276. lt_prog_compiler_pic='-KPIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. case $cc_basename in
  7279. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7280. lt_prog_compiler_wl='-Qoption ld ';;
  7281. *)
  7282. lt_prog_compiler_wl='-Wl,';;
  7283. esac
  7284. ;;
  7285. sunos4*)
  7286. lt_prog_compiler_wl='-Qoption ld '
  7287. lt_prog_compiler_pic='-PIC'
  7288. lt_prog_compiler_static='-Bstatic'
  7289. ;;
  7290. sysv4 | sysv4.2uw2* | sysv4.3*)
  7291. lt_prog_compiler_wl='-Wl,'
  7292. lt_prog_compiler_pic='-KPIC'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. ;;
  7295. sysv4*MP*)
  7296. if test -d /usr/nec ;then
  7297. lt_prog_compiler_pic='-Kconform_pic'
  7298. lt_prog_compiler_static='-Bstatic'
  7299. fi
  7300. ;;
  7301. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7302. lt_prog_compiler_wl='-Wl,'
  7303. lt_prog_compiler_pic='-KPIC'
  7304. lt_prog_compiler_static='-Bstatic'
  7305. ;;
  7306. unicos*)
  7307. lt_prog_compiler_wl='-Wl,'
  7308. lt_prog_compiler_can_build_shared=no
  7309. ;;
  7310. uts4*)
  7311. lt_prog_compiler_pic='-pic'
  7312. lt_prog_compiler_static='-Bstatic'
  7313. ;;
  7314. *)
  7315. lt_prog_compiler_can_build_shared=no
  7316. ;;
  7317. esac
  7318. fi
  7319. case $host_os in
  7320. # For platforms which do not support PIC, -DPIC is meaningless:
  7321. *djgpp*)
  7322. lt_prog_compiler_pic=
  7323. ;;
  7324. *)
  7325. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7326. ;;
  7327. esac
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7329. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7330. if ${lt_cv_prog_compiler_pic+:} false; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7334. fi
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7336. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7337. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7338. #
  7339. # Check to make sure the PIC flag actually works.
  7340. #
  7341. if test -n "$lt_prog_compiler_pic"; then
  7342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7343. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7344. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7345. $as_echo_n "(cached) " >&6
  7346. else
  7347. lt_cv_prog_compiler_pic_works=no
  7348. ac_outfile=conftest.$ac_objext
  7349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7350. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7351. # Insert the option either (1) after the last *FLAGS variable, or
  7352. # (2) before a word containing "conftest.", or (3) at the end.
  7353. # Note that $ac_compile itself does not contain backslashes and begins
  7354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7355. # The option is referenced via a variable to avoid confusing sed.
  7356. lt_compile=`echo "$ac_compile" | $SED \
  7357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7359. -e 's:$: $lt_compiler_flag:'`
  7360. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7361. (eval "$lt_compile" 2>conftest.err)
  7362. ac_status=$?
  7363. cat conftest.err >&5
  7364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7365. if (exit $ac_status) && test -s "$ac_outfile"; then
  7366. # The compiler can only warn and ignore the option if not recognized
  7367. # So say no if there are warnings other than the usual output.
  7368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7369. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7370. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7371. lt_cv_prog_compiler_pic_works=yes
  7372. fi
  7373. fi
  7374. $RM conftest*
  7375. fi
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7377. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7378. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7379. case $lt_prog_compiler_pic in
  7380. "" | " "*) ;;
  7381. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7382. esac
  7383. else
  7384. lt_prog_compiler_pic=
  7385. lt_prog_compiler_can_build_shared=no
  7386. fi
  7387. fi
  7388. #
  7389. # Check to make sure the static flag actually works.
  7390. #
  7391. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7393. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7394. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7395. $as_echo_n "(cached) " >&6
  7396. else
  7397. lt_cv_prog_compiler_static_works=no
  7398. save_LDFLAGS="$LDFLAGS"
  7399. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7400. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7401. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7402. # The linker can only warn and ignore the option if not recognized
  7403. # So say no if there are warnings
  7404. if test -s conftest.err; then
  7405. # Append any errors to the config.log.
  7406. cat conftest.err 1>&5
  7407. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7408. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7409. if diff conftest.exp conftest.er2 >/dev/null; then
  7410. lt_cv_prog_compiler_static_works=yes
  7411. fi
  7412. else
  7413. lt_cv_prog_compiler_static_works=yes
  7414. fi
  7415. fi
  7416. $RM -r conftest*
  7417. LDFLAGS="$save_LDFLAGS"
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7420. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7421. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7422. :
  7423. else
  7424. lt_prog_compiler_static=
  7425. fi
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7427. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7428. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7429. $as_echo_n "(cached) " >&6
  7430. else
  7431. lt_cv_prog_compiler_c_o=no
  7432. $RM -r conftest 2>/dev/null
  7433. mkdir conftest
  7434. cd conftest
  7435. mkdir out
  7436. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7437. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7438. # Insert the option either (1) after the last *FLAGS variable, or
  7439. # (2) before a word containing "conftest.", or (3) at the end.
  7440. # Note that $ac_compile itself does not contain backslashes and begins
  7441. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7442. lt_compile=`echo "$ac_compile" | $SED \
  7443. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7444. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7445. -e 's:$: $lt_compiler_flag:'`
  7446. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7447. (eval "$lt_compile" 2>out/conftest.err)
  7448. ac_status=$?
  7449. cat out/conftest.err >&5
  7450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7451. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7452. then
  7453. # The compiler can only warn and ignore the option if not recognized
  7454. # So say no if there are warnings
  7455. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7456. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7457. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7458. lt_cv_prog_compiler_c_o=yes
  7459. fi
  7460. fi
  7461. chmod u+w . 2>&5
  7462. $RM conftest*
  7463. # SGI C++ compiler will create directory out/ii_files/ for
  7464. # template instantiation
  7465. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7466. $RM out/* && rmdir out
  7467. cd ..
  7468. $RM -r conftest
  7469. $RM conftest*
  7470. fi
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7472. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7474. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7475. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7476. $as_echo_n "(cached) " >&6
  7477. else
  7478. lt_cv_prog_compiler_c_o=no
  7479. $RM -r conftest 2>/dev/null
  7480. mkdir conftest
  7481. cd conftest
  7482. mkdir out
  7483. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7484. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7485. # Insert the option either (1) after the last *FLAGS variable, or
  7486. # (2) before a word containing "conftest.", or (3) at the end.
  7487. # Note that $ac_compile itself does not contain backslashes and begins
  7488. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7489. lt_compile=`echo "$ac_compile" | $SED \
  7490. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7491. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7492. -e 's:$: $lt_compiler_flag:'`
  7493. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7494. (eval "$lt_compile" 2>out/conftest.err)
  7495. ac_status=$?
  7496. cat out/conftest.err >&5
  7497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7498. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7499. then
  7500. # The compiler can only warn and ignore the option if not recognized
  7501. # So say no if there are warnings
  7502. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7503. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7504. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7505. lt_cv_prog_compiler_c_o=yes
  7506. fi
  7507. fi
  7508. chmod u+w . 2>&5
  7509. $RM conftest*
  7510. # SGI C++ compiler will create directory out/ii_files/ for
  7511. # template instantiation
  7512. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7513. $RM out/* && rmdir out
  7514. cd ..
  7515. $RM -r conftest
  7516. $RM conftest*
  7517. fi
  7518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7519. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7520. hard_links="nottested"
  7521. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7522. # do not overwrite the value of need_locks provided by the user
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7524. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7525. hard_links=yes
  7526. $RM conftest*
  7527. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7528. touch conftest.a
  7529. ln conftest.a conftest.b 2>&5 || hard_links=no
  7530. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7532. $as_echo "$hard_links" >&6; }
  7533. if test "$hard_links" = no; then
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7535. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7536. need_locks=warn
  7537. fi
  7538. else
  7539. need_locks=no
  7540. fi
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7542. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7543. runpath_var=
  7544. allow_undefined_flag=
  7545. always_export_symbols=no
  7546. archive_cmds=
  7547. archive_expsym_cmds=
  7548. compiler_needs_object=no
  7549. enable_shared_with_static_runtimes=no
  7550. export_dynamic_flag_spec=
  7551. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7552. hardcode_automatic=no
  7553. hardcode_direct=no
  7554. hardcode_direct_absolute=no
  7555. hardcode_libdir_flag_spec=
  7556. hardcode_libdir_separator=
  7557. hardcode_minus_L=no
  7558. hardcode_shlibpath_var=unsupported
  7559. inherit_rpath=no
  7560. link_all_deplibs=unknown
  7561. module_cmds=
  7562. module_expsym_cmds=
  7563. old_archive_from_new_cmds=
  7564. old_archive_from_expsyms_cmds=
  7565. thread_safe_flag_spec=
  7566. whole_archive_flag_spec=
  7567. # include_expsyms should be a list of space-separated symbols to be *always*
  7568. # included in the symbol list
  7569. include_expsyms=
  7570. # exclude_expsyms can be an extended regexp of symbols to exclude
  7571. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7572. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7573. # as well as any symbol that contains `d'.
  7574. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7575. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7576. # platforms (ab)use it in PIC code, but their linkers get confused if
  7577. # the symbol is explicitly referenced. Since portable code cannot
  7578. # rely on this symbol name, it's probably fine to never include it in
  7579. # preloaded symbol tables.
  7580. # Exclude shared library initialization/finalization symbols.
  7581. extract_expsyms_cmds=
  7582. case $host_os in
  7583. cygwin* | mingw* | pw32* | cegcc*)
  7584. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7585. # When not using gcc, we currently assume that we are using
  7586. # Microsoft Visual C++.
  7587. if test "$GCC" != yes; then
  7588. with_gnu_ld=no
  7589. fi
  7590. ;;
  7591. interix*)
  7592. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7593. with_gnu_ld=yes
  7594. ;;
  7595. openbsd*)
  7596. with_gnu_ld=no
  7597. ;;
  7598. esac
  7599. ld_shlibs=yes
  7600. # On some targets, GNU ld is compatible enough with the native linker
  7601. # that we're better off using the native interface for both.
  7602. lt_use_gnu_ld_interface=no
  7603. if test "$with_gnu_ld" = yes; then
  7604. case $host_os in
  7605. aix*)
  7606. # The AIX port of GNU ld has always aspired to compatibility
  7607. # with the native linker. However, as the warning in the GNU ld
  7608. # block says, versions before 2.19.5* couldn't really create working
  7609. # shared libraries, regardless of the interface used.
  7610. case `$LD -v 2>&1` in
  7611. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7612. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7613. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7614. *)
  7615. lt_use_gnu_ld_interface=yes
  7616. ;;
  7617. esac
  7618. ;;
  7619. *)
  7620. lt_use_gnu_ld_interface=yes
  7621. ;;
  7622. esac
  7623. fi
  7624. if test "$lt_use_gnu_ld_interface" = yes; then
  7625. # If archive_cmds runs LD, not CC, wlarc should be empty
  7626. wlarc='${wl}'
  7627. # Set some defaults for GNU ld with shared library support. These
  7628. # are reset later if shared libraries are not supported. Putting them
  7629. # here allows them to be overridden if necessary.
  7630. runpath_var=LD_RUN_PATH
  7631. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7632. export_dynamic_flag_spec='${wl}--export-dynamic'
  7633. # ancient GNU ld didn't support --whole-archive et. al.
  7634. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7635. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7636. else
  7637. whole_archive_flag_spec=
  7638. fi
  7639. supports_anon_versioning=no
  7640. case `$LD -v 2>&1` in
  7641. *GNU\ gold*) supports_anon_versioning=yes ;;
  7642. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7643. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7644. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7645. *\ 2.11.*) ;; # other 2.11 versions
  7646. *) supports_anon_versioning=yes ;;
  7647. esac
  7648. # See if GNU ld supports shared libraries.
  7649. case $host_os in
  7650. aix[3-9]*)
  7651. # On AIX/PPC, the GNU linker is very broken
  7652. if test "$host_cpu" != ia64; then
  7653. ld_shlibs=no
  7654. cat <<_LT_EOF 1>&2
  7655. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7656. *** to be unable to reliably create shared libraries on AIX.
  7657. *** Therefore, libtool is disabling shared libraries support. If you
  7658. *** really care for shared libraries, you may want to install binutils
  7659. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7660. *** You will then need to restart the configuration process.
  7661. _LT_EOF
  7662. fi
  7663. ;;
  7664. amigaos*)
  7665. case $host_cpu in
  7666. powerpc)
  7667. # see comment about AmigaOS4 .so support
  7668. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7669. archive_expsym_cmds=''
  7670. ;;
  7671. m68k)
  7672. 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)'
  7673. hardcode_libdir_flag_spec='-L$libdir'
  7674. hardcode_minus_L=yes
  7675. ;;
  7676. esac
  7677. ;;
  7678. beos*)
  7679. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7680. allow_undefined_flag=unsupported
  7681. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7682. # support --undefined. This deserves some investigation. FIXME
  7683. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7684. else
  7685. ld_shlibs=no
  7686. fi
  7687. ;;
  7688. cygwin* | mingw* | pw32* | cegcc*)
  7689. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7690. # as there is no search path for DLLs.
  7691. hardcode_libdir_flag_spec='-L$libdir'
  7692. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7693. allow_undefined_flag=unsupported
  7694. always_export_symbols=no
  7695. enable_shared_with_static_runtimes=yes
  7696. 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'
  7697. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7698. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7700. # If the export-symbols file already is a .def file (1st line
  7701. # is EXPORTS), use it as is; otherwise, prepend...
  7702. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7703. cp $export_symbols $output_objdir/$soname.def;
  7704. else
  7705. echo EXPORTS > $output_objdir/$soname.def;
  7706. cat $export_symbols >> $output_objdir/$soname.def;
  7707. fi~
  7708. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7709. else
  7710. ld_shlibs=no
  7711. fi
  7712. ;;
  7713. haiku*)
  7714. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7715. link_all_deplibs=yes
  7716. ;;
  7717. interix[3-9]*)
  7718. hardcode_direct=no
  7719. hardcode_shlibpath_var=no
  7720. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7721. export_dynamic_flag_spec='${wl}-E'
  7722. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7723. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7724. # default) and relocated if they conflict, which is a slow very memory
  7725. # consuming and fragmenting process. To avoid this, we pick a random,
  7726. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7727. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7728. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7729. 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'
  7730. ;;
  7731. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7732. tmp_diet=no
  7733. if test "$host_os" = linux-dietlibc; then
  7734. case $cc_basename in
  7735. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7736. esac
  7737. fi
  7738. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7739. && test "$tmp_diet" = no
  7740. then
  7741. tmp_addflag=' $pic_flag'
  7742. tmp_sharedflag='-shared'
  7743. case $cc_basename,$host_cpu in
  7744. pgcc*) # Portland Group C compiler
  7745. 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'
  7746. tmp_addflag=' $pic_flag'
  7747. ;;
  7748. pgf77* | pgf90* | pgf95* | pgfortran*)
  7749. # Portland Group f77 and f90 compilers
  7750. 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'
  7751. tmp_addflag=' $pic_flag -Mnomain' ;;
  7752. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7753. tmp_addflag=' -i_dynamic' ;;
  7754. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7755. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7756. ifc* | ifort*) # Intel Fortran compiler
  7757. tmp_addflag=' -nofor_main' ;;
  7758. lf95*) # Lahey Fortran 8.1
  7759. whole_archive_flag_spec=
  7760. tmp_sharedflag='--shared' ;;
  7761. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7762. tmp_sharedflag='-qmkshrobj'
  7763. tmp_addflag= ;;
  7764. nvcc*) # Cuda Compiler Driver 2.2
  7765. 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'
  7766. compiler_needs_object=yes
  7767. ;;
  7768. esac
  7769. case `$CC -V 2>&1 | sed 5q` in
  7770. *Sun\ C*) # Sun C 5.9
  7771. 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'
  7772. compiler_needs_object=yes
  7773. tmp_sharedflag='-G' ;;
  7774. *Sun\ F*) # Sun Fortran 8.3
  7775. tmp_sharedflag='-G' ;;
  7776. esac
  7777. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7778. if test "x$supports_anon_versioning" = xyes; then
  7779. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7780. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7781. echo "local: *; };" >> $output_objdir/$libname.ver~
  7782. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7783. fi
  7784. case $cc_basename in
  7785. xlf* | bgf* | bgxlf* | mpixlf*)
  7786. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7787. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7788. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7789. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7790. if test "x$supports_anon_versioning" = xyes; then
  7791. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7792. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7793. echo "local: *; };" >> $output_objdir/$libname.ver~
  7794. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7795. fi
  7796. ;;
  7797. esac
  7798. else
  7799. ld_shlibs=no
  7800. fi
  7801. ;;
  7802. netbsd*)
  7803. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7804. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7805. wlarc=
  7806. else
  7807. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7808. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7809. fi
  7810. ;;
  7811. solaris*)
  7812. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7813. ld_shlibs=no
  7814. cat <<_LT_EOF 1>&2
  7815. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7816. *** create shared libraries on Solaris systems. Therefore, libtool
  7817. *** is disabling shared libraries support. We urge you to upgrade GNU
  7818. *** binutils to release 2.9.1 or newer. Another option is to modify
  7819. *** your PATH or compiler configuration so that the native linker is
  7820. *** used, and then restart.
  7821. _LT_EOF
  7822. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7823. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7824. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7825. else
  7826. ld_shlibs=no
  7827. fi
  7828. ;;
  7829. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7830. case `$LD -v 2>&1` in
  7831. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7832. ld_shlibs=no
  7833. cat <<_LT_EOF 1>&2
  7834. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7835. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7836. *** is disabling shared libraries support. We urge you to upgrade GNU
  7837. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7838. *** your PATH or compiler configuration so that the native linker is
  7839. *** used, and then restart.
  7840. _LT_EOF
  7841. ;;
  7842. *)
  7843. # For security reasons, it is highly recommended that you always
  7844. # use absolute paths for naming shared libraries, and exclude the
  7845. # DT_RUNPATH tag from executables and libraries. But doing so
  7846. # requires that you compile everything twice, which is a pain.
  7847. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7848. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7849. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7850. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7851. else
  7852. ld_shlibs=no
  7853. fi
  7854. ;;
  7855. esac
  7856. ;;
  7857. sunos4*)
  7858. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7859. wlarc=
  7860. hardcode_direct=yes
  7861. hardcode_shlibpath_var=no
  7862. ;;
  7863. *)
  7864. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7865. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7866. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7867. else
  7868. ld_shlibs=no
  7869. fi
  7870. ;;
  7871. esac
  7872. if test "$ld_shlibs" = no; then
  7873. runpath_var=
  7874. hardcode_libdir_flag_spec=
  7875. export_dynamic_flag_spec=
  7876. whole_archive_flag_spec=
  7877. fi
  7878. else
  7879. # PORTME fill in a description of your system's linker (not GNU ld)
  7880. case $host_os in
  7881. aix3*)
  7882. allow_undefined_flag=unsupported
  7883. always_export_symbols=yes
  7884. 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'
  7885. # Note: this linker hardcodes the directories in LIBPATH if there
  7886. # are no directories specified by -L.
  7887. hardcode_minus_L=yes
  7888. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7889. # Neither direct hardcoding nor static linking is supported with a
  7890. # broken collect2.
  7891. hardcode_direct=unsupported
  7892. fi
  7893. ;;
  7894. aix[4-9]*)
  7895. if test "$host_cpu" = ia64; then
  7896. # On IA64, the linker does run time linking by default, so we don't
  7897. # have to do anything special.
  7898. aix_use_runtimelinking=no
  7899. exp_sym_flag='-Bexport'
  7900. no_entry_flag=""
  7901. else
  7902. # If we're using GNU nm, then we don't want the "-C" option.
  7903. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7904. # Also, AIX nm treats weak defined symbols like other global
  7905. # defined symbols, whereas GNU nm marks them as "W".
  7906. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7907. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7908. else
  7909. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7910. fi
  7911. aix_use_runtimelinking=no
  7912. # Test if we are trying to use run time linking or normal
  7913. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7914. # need to do runtime linking.
  7915. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7916. for ld_flag in $LDFLAGS; do
  7917. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7918. aix_use_runtimelinking=yes
  7919. break
  7920. fi
  7921. done
  7922. ;;
  7923. esac
  7924. exp_sym_flag='-bexport'
  7925. no_entry_flag='-bnoentry'
  7926. fi
  7927. # When large executables or shared objects are built, AIX ld can
  7928. # have problems creating the table of contents. If linking a library
  7929. # or program results in "error TOC overflow" add -mminimal-toc to
  7930. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7931. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7932. archive_cmds=''
  7933. hardcode_direct=yes
  7934. hardcode_direct_absolute=yes
  7935. hardcode_libdir_separator=':'
  7936. link_all_deplibs=yes
  7937. file_list_spec='${wl}-f,'
  7938. if test "$GCC" = yes; then
  7939. case $host_os in aix4.[012]|aix4.[012].*)
  7940. # We only want to do this on AIX 4.2 and lower, the check
  7941. # below for broken collect2 doesn't work under 4.3+
  7942. collect2name=`${CC} -print-prog-name=collect2`
  7943. if test -f "$collect2name" &&
  7944. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7945. then
  7946. # We have reworked collect2
  7947. :
  7948. else
  7949. # We have old collect2
  7950. hardcode_direct=unsupported
  7951. # It fails to find uninstalled libraries when the uninstalled
  7952. # path is not listed in the libpath. Setting hardcode_minus_L
  7953. # to unsupported forces relinking
  7954. hardcode_minus_L=yes
  7955. hardcode_libdir_flag_spec='-L$libdir'
  7956. hardcode_libdir_separator=
  7957. fi
  7958. ;;
  7959. esac
  7960. shared_flag='-shared'
  7961. if test "$aix_use_runtimelinking" = yes; then
  7962. shared_flag="$shared_flag "'${wl}-G'
  7963. fi
  7964. else
  7965. # not using gcc
  7966. if test "$host_cpu" = ia64; then
  7967. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7968. # chokes on -Wl,-G. The following line is correct:
  7969. shared_flag='-G'
  7970. else
  7971. if test "$aix_use_runtimelinking" = yes; then
  7972. shared_flag='${wl}-G'
  7973. else
  7974. shared_flag='${wl}-bM:SRE'
  7975. fi
  7976. fi
  7977. fi
  7978. export_dynamic_flag_spec='${wl}-bexpall'
  7979. # It seems that -bexpall does not export symbols beginning with
  7980. # underscore (_), so it is better to generate a list of symbols to export.
  7981. always_export_symbols=yes
  7982. if test "$aix_use_runtimelinking" = yes; then
  7983. # Warning - without using the other runtime loading flags (-brtl),
  7984. # -berok will link without error, but may produce a broken library.
  7985. allow_undefined_flag='-berok'
  7986. # Determine the default libpath from the value encoded in an
  7987. # empty executable.
  7988. if test "${lt_cv_aix_libpath+set}" = set; then
  7989. aix_libpath=$lt_cv_aix_libpath
  7990. else
  7991. if ${lt_cv_aix_libpath_+:} false; then :
  7992. $as_echo_n "(cached) " >&6
  7993. else
  7994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7995. /* end confdefs.h. */
  7996. int
  7997. main ()
  7998. {
  7999. ;
  8000. return 0;
  8001. }
  8002. _ACEOF
  8003. if ac_fn_c_try_link "$LINENO"; then :
  8004. lt_aix_libpath_sed='
  8005. /Import File Strings/,/^$/ {
  8006. /^0/ {
  8007. s/^0 *\([^ ]*\) *$/\1/
  8008. p
  8009. }
  8010. }'
  8011. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8012. # Check for a 64-bit object if we didn't find anything.
  8013. if test -z "$lt_cv_aix_libpath_"; then
  8014. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8015. fi
  8016. fi
  8017. rm -f core conftest.err conftest.$ac_objext \
  8018. conftest$ac_exeext conftest.$ac_ext
  8019. if test -z "$lt_cv_aix_libpath_"; then
  8020. lt_cv_aix_libpath_="/usr/lib:/lib"
  8021. fi
  8022. fi
  8023. aix_libpath=$lt_cv_aix_libpath_
  8024. fi
  8025. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8026. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8027. else
  8028. if test "$host_cpu" = ia64; then
  8029. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8030. allow_undefined_flag="-z nodefs"
  8031. 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"
  8032. else
  8033. # Determine the default libpath from the value encoded in an
  8034. # empty executable.
  8035. if test "${lt_cv_aix_libpath+set}" = set; then
  8036. aix_libpath=$lt_cv_aix_libpath
  8037. else
  8038. if ${lt_cv_aix_libpath_+:} false; then :
  8039. $as_echo_n "(cached) " >&6
  8040. else
  8041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8042. /* end confdefs.h. */
  8043. int
  8044. main ()
  8045. {
  8046. ;
  8047. return 0;
  8048. }
  8049. _ACEOF
  8050. if ac_fn_c_try_link "$LINENO"; then :
  8051. lt_aix_libpath_sed='
  8052. /Import File Strings/,/^$/ {
  8053. /^0/ {
  8054. s/^0 *\([^ ]*\) *$/\1/
  8055. p
  8056. }
  8057. }'
  8058. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8059. # Check for a 64-bit object if we didn't find anything.
  8060. if test -z "$lt_cv_aix_libpath_"; then
  8061. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8062. fi
  8063. fi
  8064. rm -f core conftest.err conftest.$ac_objext \
  8065. conftest$ac_exeext conftest.$ac_ext
  8066. if test -z "$lt_cv_aix_libpath_"; then
  8067. lt_cv_aix_libpath_="/usr/lib:/lib"
  8068. fi
  8069. fi
  8070. aix_libpath=$lt_cv_aix_libpath_
  8071. fi
  8072. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8073. # Warning - without using the other run time loading flags,
  8074. # -berok will link without error, but may produce a broken library.
  8075. no_undefined_flag=' ${wl}-bernotok'
  8076. allow_undefined_flag=' ${wl}-berok'
  8077. if test "$with_gnu_ld" = yes; then
  8078. # We only use this code for GNU lds that support --whole-archive.
  8079. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8080. else
  8081. # Exported symbols can be pulled into shared objects from archives
  8082. whole_archive_flag_spec='$convenience'
  8083. fi
  8084. archive_cmds_need_lc=yes
  8085. # This is similar to how AIX traditionally builds its shared libraries.
  8086. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8087. fi
  8088. fi
  8089. ;;
  8090. amigaos*)
  8091. case $host_cpu in
  8092. powerpc)
  8093. # see comment about AmigaOS4 .so support
  8094. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8095. archive_expsym_cmds=''
  8096. ;;
  8097. m68k)
  8098. 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)'
  8099. hardcode_libdir_flag_spec='-L$libdir'
  8100. hardcode_minus_L=yes
  8101. ;;
  8102. esac
  8103. ;;
  8104. bsdi[45]*)
  8105. export_dynamic_flag_spec=-rdynamic
  8106. ;;
  8107. cygwin* | mingw* | pw32* | cegcc*)
  8108. # When not using gcc, we currently assume that we are using
  8109. # Microsoft Visual C++.
  8110. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8111. # no search path for DLLs.
  8112. case $cc_basename in
  8113. cl*)
  8114. # Native MSVC
  8115. hardcode_libdir_flag_spec=' '
  8116. allow_undefined_flag=unsupported
  8117. always_export_symbols=yes
  8118. file_list_spec='@'
  8119. # Tell ltmain to make .lib files, not .a files.
  8120. libext=lib
  8121. # Tell ltmain to make .dll files, not .so files.
  8122. shrext_cmds=".dll"
  8123. # FIXME: Setting linknames here is a bad hack.
  8124. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8125. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8126. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8127. else
  8128. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8129. fi~
  8130. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8131. linknames='
  8132. # The linker will not automatically build a static lib if we build a DLL.
  8133. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8134. enable_shared_with_static_runtimes=yes
  8135. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8136. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8137. # Don't use ranlib
  8138. old_postinstall_cmds='chmod 644 $oldlib'
  8139. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8140. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8141. case $lt_outputfile in
  8142. *.exe|*.EXE) ;;
  8143. *)
  8144. lt_outputfile="$lt_outputfile.exe"
  8145. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8146. ;;
  8147. esac~
  8148. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8149. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8150. $RM "$lt_outputfile.manifest";
  8151. fi'
  8152. ;;
  8153. *)
  8154. # Assume MSVC wrapper
  8155. hardcode_libdir_flag_spec=' '
  8156. allow_undefined_flag=unsupported
  8157. # Tell ltmain to make .lib files, not .a files.
  8158. libext=lib
  8159. # Tell ltmain to make .dll files, not .so files.
  8160. shrext_cmds=".dll"
  8161. # FIXME: Setting linknames here is a bad hack.
  8162. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8163. # The linker will automatically build a .lib file if we build a DLL.
  8164. old_archive_from_new_cmds='true'
  8165. # FIXME: Should let the user specify the lib program.
  8166. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8167. enable_shared_with_static_runtimes=yes
  8168. ;;
  8169. esac
  8170. ;;
  8171. darwin* | rhapsody*)
  8172. archive_cmds_need_lc=no
  8173. hardcode_direct=no
  8174. hardcode_automatic=yes
  8175. hardcode_shlibpath_var=unsupported
  8176. if test "$lt_cv_ld_force_load" = "yes"; then
  8177. 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\"`'
  8178. else
  8179. whole_archive_flag_spec=''
  8180. fi
  8181. link_all_deplibs=yes
  8182. allow_undefined_flag="$_lt_dar_allow_undefined"
  8183. case $cc_basename in
  8184. ifort*) _lt_dar_can_shared=yes ;;
  8185. *) _lt_dar_can_shared=$GCC ;;
  8186. esac
  8187. if test "$_lt_dar_can_shared" = "yes"; then
  8188. output_verbose_link_cmd=func_echo_all
  8189. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8190. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8191. 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}"
  8192. 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}"
  8193. else
  8194. ld_shlibs=no
  8195. fi
  8196. ;;
  8197. dgux*)
  8198. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8199. hardcode_libdir_flag_spec='-L$libdir'
  8200. hardcode_shlibpath_var=no
  8201. ;;
  8202. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8203. # support. Future versions do this automatically, but an explicit c++rt0.o
  8204. # does not break anything, and helps significantly (at the cost of a little
  8205. # extra space).
  8206. freebsd2.2*)
  8207. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8208. hardcode_libdir_flag_spec='-R$libdir'
  8209. hardcode_direct=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8213. freebsd2.*)
  8214. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8215. hardcode_direct=yes
  8216. hardcode_minus_L=yes
  8217. hardcode_shlibpath_var=no
  8218. ;;
  8219. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8220. freebsd* | dragonfly*)
  8221. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8222. hardcode_libdir_flag_spec='-R$libdir'
  8223. hardcode_direct=yes
  8224. hardcode_shlibpath_var=no
  8225. ;;
  8226. hpux9*)
  8227. if test "$GCC" = yes; then
  8228. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8229. else
  8230. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8231. fi
  8232. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8233. hardcode_libdir_separator=:
  8234. hardcode_direct=yes
  8235. # hardcode_minus_L: Not really in the search PATH,
  8236. # but as the default location of the library.
  8237. hardcode_minus_L=yes
  8238. export_dynamic_flag_spec='${wl}-E'
  8239. ;;
  8240. hpux10*)
  8241. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8242. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8243. else
  8244. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8245. fi
  8246. if test "$with_gnu_ld" = no; then
  8247. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8248. hardcode_libdir_separator=:
  8249. hardcode_direct=yes
  8250. hardcode_direct_absolute=yes
  8251. export_dynamic_flag_spec='${wl}-E'
  8252. # hardcode_minus_L: Not really in the search PATH,
  8253. # but as the default location of the library.
  8254. hardcode_minus_L=yes
  8255. fi
  8256. ;;
  8257. hpux11*)
  8258. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8259. case $host_cpu in
  8260. hppa*64*)
  8261. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. ia64*)
  8264. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. *)
  8267. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8268. ;;
  8269. esac
  8270. else
  8271. case $host_cpu in
  8272. hppa*64*)
  8273. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8274. ;;
  8275. ia64*)
  8276. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8277. ;;
  8278. *)
  8279. # Older versions of the 11.00 compiler do not understand -b yet
  8280. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8282. $as_echo_n "checking if $CC understands -b... " >&6; }
  8283. if ${lt_cv_prog_compiler__b+:} false; then :
  8284. $as_echo_n "(cached) " >&6
  8285. else
  8286. lt_cv_prog_compiler__b=no
  8287. save_LDFLAGS="$LDFLAGS"
  8288. LDFLAGS="$LDFLAGS -b"
  8289. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8290. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8291. # The linker can only warn and ignore the option if not recognized
  8292. # So say no if there are warnings
  8293. if test -s conftest.err; then
  8294. # Append any errors to the config.log.
  8295. cat conftest.err 1>&5
  8296. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8297. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8298. if diff conftest.exp conftest.er2 >/dev/null; then
  8299. lt_cv_prog_compiler__b=yes
  8300. fi
  8301. else
  8302. lt_cv_prog_compiler__b=yes
  8303. fi
  8304. fi
  8305. $RM -r conftest*
  8306. LDFLAGS="$save_LDFLAGS"
  8307. fi
  8308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8309. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8310. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8311. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8312. else
  8313. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8314. fi
  8315. ;;
  8316. esac
  8317. fi
  8318. if test "$with_gnu_ld" = no; then
  8319. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8320. hardcode_libdir_separator=:
  8321. case $host_cpu in
  8322. hppa*64*|ia64*)
  8323. hardcode_direct=no
  8324. hardcode_shlibpath_var=no
  8325. ;;
  8326. *)
  8327. hardcode_direct=yes
  8328. hardcode_direct_absolute=yes
  8329. export_dynamic_flag_spec='${wl}-E'
  8330. # hardcode_minus_L: Not really in the search PATH,
  8331. # but as the default location of the library.
  8332. hardcode_minus_L=yes
  8333. ;;
  8334. esac
  8335. fi
  8336. ;;
  8337. irix5* | irix6* | nonstopux*)
  8338. if test "$GCC" = yes; then
  8339. 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'
  8340. # Try to use the -exported_symbol ld option, if it does not
  8341. # work, assume that -exports_file does not work either and
  8342. # implicitly export all symbols.
  8343. # This should be the same for all languages, so no per-tag cache variable.
  8344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8345. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8346. if ${lt_cv_irix_exported_symbol+:} false; then :
  8347. $as_echo_n "(cached) " >&6
  8348. else
  8349. save_LDFLAGS="$LDFLAGS"
  8350. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8352. /* end confdefs.h. */
  8353. int foo (void) { return 0; }
  8354. _ACEOF
  8355. if ac_fn_c_try_link "$LINENO"; then :
  8356. lt_cv_irix_exported_symbol=yes
  8357. else
  8358. lt_cv_irix_exported_symbol=no
  8359. fi
  8360. rm -f core conftest.err conftest.$ac_objext \
  8361. conftest$ac_exeext conftest.$ac_ext
  8362. LDFLAGS="$save_LDFLAGS"
  8363. fi
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8365. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8366. if test "$lt_cv_irix_exported_symbol" = yes; then
  8367. 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'
  8368. fi
  8369. else
  8370. 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'
  8371. 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'
  8372. fi
  8373. archive_cmds_need_lc='no'
  8374. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8375. hardcode_libdir_separator=:
  8376. inherit_rpath=yes
  8377. link_all_deplibs=yes
  8378. ;;
  8379. netbsd*)
  8380. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8381. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8382. else
  8383. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8384. fi
  8385. hardcode_libdir_flag_spec='-R$libdir'
  8386. hardcode_direct=yes
  8387. hardcode_shlibpath_var=no
  8388. ;;
  8389. newsos6)
  8390. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8391. hardcode_direct=yes
  8392. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8393. hardcode_libdir_separator=:
  8394. hardcode_shlibpath_var=no
  8395. ;;
  8396. *nto* | *qnx*)
  8397. ;;
  8398. openbsd*)
  8399. if test -f /usr/libexec/ld.so; then
  8400. hardcode_direct=yes
  8401. hardcode_shlibpath_var=no
  8402. hardcode_direct_absolute=yes
  8403. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8404. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8405. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8406. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8407. export_dynamic_flag_spec='${wl}-E'
  8408. else
  8409. case $host_os in
  8410. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8411. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_libdir_flag_spec='-R$libdir'
  8413. ;;
  8414. *)
  8415. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8416. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8417. ;;
  8418. esac
  8419. fi
  8420. else
  8421. ld_shlibs=no
  8422. fi
  8423. ;;
  8424. os2*)
  8425. hardcode_libdir_flag_spec='-L$libdir'
  8426. hardcode_minus_L=yes
  8427. allow_undefined_flag=unsupported
  8428. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8429. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8430. ;;
  8431. osf3*)
  8432. if test "$GCC" = yes; then
  8433. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8434. 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'
  8435. else
  8436. allow_undefined_flag=' -expect_unresolved \*'
  8437. 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'
  8438. fi
  8439. archive_cmds_need_lc='no'
  8440. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8441. hardcode_libdir_separator=:
  8442. ;;
  8443. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8444. if test "$GCC" = yes; then
  8445. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8446. 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'
  8447. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8448. else
  8449. allow_undefined_flag=' -expect_unresolved \*'
  8450. 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'
  8451. 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~
  8452. $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'
  8453. # Both c and cxx compiler support -rpath directly
  8454. hardcode_libdir_flag_spec='-rpath $libdir'
  8455. fi
  8456. archive_cmds_need_lc='no'
  8457. hardcode_libdir_separator=:
  8458. ;;
  8459. solaris*)
  8460. no_undefined_flag=' -z defs'
  8461. if test "$GCC" = yes; then
  8462. wlarc='${wl}'
  8463. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8464. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8465. $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'
  8466. else
  8467. case `$CC -V 2>&1` in
  8468. *"Compilers 5.0"*)
  8469. wlarc=''
  8470. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8471. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8472. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8473. ;;
  8474. *)
  8475. wlarc='${wl}'
  8476. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8477. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8478. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8479. ;;
  8480. esac
  8481. fi
  8482. hardcode_libdir_flag_spec='-R$libdir'
  8483. hardcode_shlibpath_var=no
  8484. case $host_os in
  8485. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8486. *)
  8487. # The compiler driver will combine and reorder linker options,
  8488. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8489. # but is careful enough not to reorder.
  8490. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8491. if test "$GCC" = yes; then
  8492. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8493. else
  8494. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8495. fi
  8496. ;;
  8497. esac
  8498. link_all_deplibs=yes
  8499. ;;
  8500. sunos4*)
  8501. if test "x$host_vendor" = xsequent; then
  8502. # Use $CC to link under sequent, because it throws in some extra .o
  8503. # files that make .init and .fini sections work.
  8504. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8505. else
  8506. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8507. fi
  8508. hardcode_libdir_flag_spec='-L$libdir'
  8509. hardcode_direct=yes
  8510. hardcode_minus_L=yes
  8511. hardcode_shlibpath_var=no
  8512. ;;
  8513. sysv4)
  8514. case $host_vendor in
  8515. sni)
  8516. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8517. hardcode_direct=yes # is this really true???
  8518. ;;
  8519. siemens)
  8520. ## LD is ld it makes a PLAMLIB
  8521. ## CC just makes a GrossModule.
  8522. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8523. reload_cmds='$CC -r -o $output$reload_objs'
  8524. hardcode_direct=no
  8525. ;;
  8526. motorola)
  8527. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8528. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8529. ;;
  8530. esac
  8531. runpath_var='LD_RUN_PATH'
  8532. hardcode_shlibpath_var=no
  8533. ;;
  8534. sysv4.3*)
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_shlibpath_var=no
  8537. export_dynamic_flag_spec='-Bexport'
  8538. ;;
  8539. sysv4*MP*)
  8540. if test -d /usr/nec; then
  8541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8542. hardcode_shlibpath_var=no
  8543. runpath_var=LD_RUN_PATH
  8544. hardcode_runpath_var=yes
  8545. ld_shlibs=yes
  8546. fi
  8547. ;;
  8548. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8549. no_undefined_flag='${wl}-z,text'
  8550. archive_cmds_need_lc=no
  8551. hardcode_shlibpath_var=no
  8552. runpath_var='LD_RUN_PATH'
  8553. if test "$GCC" = yes; then
  8554. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8556. else
  8557. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8558. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8559. fi
  8560. ;;
  8561. sysv5* | sco3.2v5* | sco5v6*)
  8562. # Note: We can NOT use -z defs as we might desire, because we do not
  8563. # link with -lc, and that would cause any symbols used from libc to
  8564. # always be unresolved, which means just about no library would
  8565. # ever link correctly. If we're not using GNU ld we use -z text
  8566. # though, which does catch some bad symbols but isn't as heavy-handed
  8567. # as -z defs.
  8568. no_undefined_flag='${wl}-z,text'
  8569. allow_undefined_flag='${wl}-z,nodefs'
  8570. archive_cmds_need_lc=no
  8571. hardcode_shlibpath_var=no
  8572. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8573. hardcode_libdir_separator=':'
  8574. link_all_deplibs=yes
  8575. export_dynamic_flag_spec='${wl}-Bexport'
  8576. runpath_var='LD_RUN_PATH'
  8577. if test "$GCC" = yes; then
  8578. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. else
  8581. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8582. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8583. fi
  8584. ;;
  8585. uts4*)
  8586. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8587. hardcode_libdir_flag_spec='-L$libdir'
  8588. hardcode_shlibpath_var=no
  8589. ;;
  8590. *)
  8591. ld_shlibs=no
  8592. ;;
  8593. esac
  8594. if test x$host_vendor = xsni; then
  8595. case $host in
  8596. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8597. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8598. ;;
  8599. esac
  8600. fi
  8601. fi
  8602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8603. $as_echo "$ld_shlibs" >&6; }
  8604. test "$ld_shlibs" = no && can_build_shared=no
  8605. with_gnu_ld=$with_gnu_ld
  8606. #
  8607. # Do we need to explicitly link libc?
  8608. #
  8609. case "x$archive_cmds_need_lc" in
  8610. x|xyes)
  8611. # Assume -lc should be added
  8612. archive_cmds_need_lc=yes
  8613. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8614. case $archive_cmds in
  8615. *'~'*)
  8616. # FIXME: we may have to deal with multi-command sequences.
  8617. ;;
  8618. '$CC '*)
  8619. # Test whether the compiler implicitly links with -lc since on some
  8620. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8621. # to ld, don't add -lc before -lgcc.
  8622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8623. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8624. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8625. $as_echo_n "(cached) " >&6
  8626. else
  8627. $RM conftest*
  8628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8629. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8630. (eval $ac_compile) 2>&5
  8631. ac_status=$?
  8632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8633. test $ac_status = 0; } 2>conftest.err; then
  8634. soname=conftest
  8635. lib=conftest
  8636. libobjs=conftest.$ac_objext
  8637. deplibs=
  8638. wl=$lt_prog_compiler_wl
  8639. pic_flag=$lt_prog_compiler_pic
  8640. compiler_flags=-v
  8641. linker_flags=-v
  8642. verstring=
  8643. output_objdir=.
  8644. libname=conftest
  8645. lt_save_allow_undefined_flag=$allow_undefined_flag
  8646. allow_undefined_flag=
  8647. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8648. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8649. ac_status=$?
  8650. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8651. test $ac_status = 0; }
  8652. then
  8653. lt_cv_archive_cmds_need_lc=no
  8654. else
  8655. lt_cv_archive_cmds_need_lc=yes
  8656. fi
  8657. allow_undefined_flag=$lt_save_allow_undefined_flag
  8658. else
  8659. cat conftest.err 1>&5
  8660. fi
  8661. $RM conftest*
  8662. fi
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8664. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8665. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8666. ;;
  8667. esac
  8668. fi
  8669. ;;
  8670. esac
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8672. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8673. if test "$GCC" = yes; then
  8674. case $host_os in
  8675. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8676. *) lt_awk_arg="/^libraries:/" ;;
  8677. esac
  8678. case $host_os in
  8679. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8680. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8681. esac
  8682. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8683. case $lt_search_path_spec in
  8684. *\;*)
  8685. # if the path contains ";" then we assume it to be the separator
  8686. # otherwise default to the standard path separator (i.e. ":") - it is
  8687. # assumed that no part of a normal pathname contains ";" but that should
  8688. # okay in the real world where ";" in dirpaths is itself problematic.
  8689. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8690. ;;
  8691. *)
  8692. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8693. ;;
  8694. esac
  8695. # Ok, now we have the path, separated by spaces, we can step through it
  8696. # and add multilib dir if necessary...
  8697. lt_tmp_lt_search_path_spec=
  8698. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8699. # ...but if some path already ends with the multilib dir we assume
  8700. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8701. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8702. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8703. lt_multi_os_dir=
  8704. ;;
  8705. esac
  8706. for lt_sys_path in $lt_search_path_spec; do
  8707. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8708. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8709. elif test -n "$lt_multi_os_dir"; then
  8710. test -d "$lt_sys_path" && \
  8711. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8712. fi
  8713. done
  8714. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8715. BEGIN {RS=" "; FS="/|\n";} {
  8716. lt_foo="";
  8717. lt_count=0;
  8718. for (lt_i = NF; lt_i > 0; lt_i--) {
  8719. if ($lt_i != "" && $lt_i != ".") {
  8720. if ($lt_i == "..") {
  8721. lt_count++;
  8722. } else {
  8723. if (lt_count == 0) {
  8724. lt_foo="/" $lt_i lt_foo;
  8725. } else {
  8726. lt_count--;
  8727. }
  8728. }
  8729. }
  8730. }
  8731. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8732. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8733. }'`
  8734. # AWK program above erroneously prepends '/' to C:/dos/paths
  8735. # for these hosts.
  8736. case $host_os in
  8737. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8738. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8739. esac
  8740. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8741. else
  8742. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8743. fi
  8744. library_names_spec=
  8745. libname_spec='lib$name'
  8746. soname_spec=
  8747. shrext_cmds=".so"
  8748. postinstall_cmds=
  8749. postuninstall_cmds=
  8750. finish_cmds=
  8751. finish_eval=
  8752. shlibpath_var=
  8753. shlibpath_overrides_runpath=unknown
  8754. version_type=none
  8755. dynamic_linker="$host_os ld.so"
  8756. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8757. need_lib_prefix=unknown
  8758. hardcode_into_libs=no
  8759. # when you set need_version to no, make sure it does not cause -set_version
  8760. # flags to be left without arguments
  8761. need_version=unknown
  8762. case $host_os in
  8763. aix3*)
  8764. version_type=linux # correct to gnu/linux during the next big refactor
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8766. shlibpath_var=LIBPATH
  8767. # AIX 3 has no versioning support, so we append a major version to the name.
  8768. soname_spec='${libname}${release}${shared_ext}$major'
  8769. ;;
  8770. aix[4-9]*)
  8771. version_type=linux # correct to gnu/linux during the next big refactor
  8772. need_lib_prefix=no
  8773. need_version=no
  8774. hardcode_into_libs=yes
  8775. if test "$host_cpu" = ia64; then
  8776. # AIX 5 supports IA64
  8777. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8778. shlibpath_var=LD_LIBRARY_PATH
  8779. else
  8780. # With GCC up to 2.95.x, collect2 would create an import file
  8781. # for dependence libraries. The import file would start with
  8782. # the line `#! .'. This would cause the generated library to
  8783. # depend on `.', always an invalid library. This was fixed in
  8784. # development snapshots of GCC prior to 3.0.
  8785. case $host_os in
  8786. aix4 | aix4.[01] | aix4.[01].*)
  8787. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8788. echo ' yes '
  8789. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8790. :
  8791. else
  8792. can_build_shared=no
  8793. fi
  8794. ;;
  8795. esac
  8796. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8797. # soname into executable. Probably we can add versioning support to
  8798. # collect2, so additional links can be useful in future.
  8799. if test "$aix_use_runtimelinking" = yes; then
  8800. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8801. # instead of lib<name>.a to let people know that these are not
  8802. # typical AIX shared libraries.
  8803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8804. else
  8805. # We preserve .a as extension for shared libraries through AIX4.2
  8806. # and later when we are not doing run time linking.
  8807. library_names_spec='${libname}${release}.a $libname.a'
  8808. soname_spec='${libname}${release}${shared_ext}$major'
  8809. fi
  8810. shlibpath_var=LIBPATH
  8811. fi
  8812. ;;
  8813. amigaos*)
  8814. case $host_cpu in
  8815. powerpc)
  8816. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8817. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8819. ;;
  8820. m68k)
  8821. library_names_spec='$libname.ixlibrary $libname.a'
  8822. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8823. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  8824. ;;
  8825. esac
  8826. ;;
  8827. beos*)
  8828. library_names_spec='${libname}${shared_ext}'
  8829. dynamic_linker="$host_os ld.so"
  8830. shlibpath_var=LIBRARY_PATH
  8831. ;;
  8832. bsdi[45]*)
  8833. version_type=linux # correct to gnu/linux during the next big refactor
  8834. need_version=no
  8835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8836. soname_spec='${libname}${release}${shared_ext}$major'
  8837. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8838. shlibpath_var=LD_LIBRARY_PATH
  8839. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8840. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8841. # the default ld.so.conf also contains /usr/contrib/lib and
  8842. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8843. # libtool to hard-code these into programs
  8844. ;;
  8845. cygwin* | mingw* | pw32* | cegcc*)
  8846. version_type=windows
  8847. shrext_cmds=".dll"
  8848. need_version=no
  8849. need_lib_prefix=no
  8850. case $GCC,$cc_basename in
  8851. yes,*)
  8852. # gcc
  8853. library_names_spec='$libname.dll.a'
  8854. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8855. postinstall_cmds='base_file=`basename \${file}`~
  8856. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8857. dldir=$destdir/`dirname \$dlpath`~
  8858. test -d \$dldir || mkdir -p \$dldir~
  8859. $install_prog $dir/$dlname \$dldir/$dlname~
  8860. chmod a+x \$dldir/$dlname~
  8861. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8862. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8863. fi'
  8864. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8865. dlpath=$dir/\$dldll~
  8866. $RM \$dlpath'
  8867. shlibpath_overrides_runpath=yes
  8868. case $host_os in
  8869. cygwin*)
  8870. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8871. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8872. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8873. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8874. ;;
  8875. mingw* | cegcc*)
  8876. # MinGW DLLs use traditional 'lib' prefix
  8877. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8878. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8879. ;;
  8880. pw32*)
  8881. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8882. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8883. ;;
  8884. esac
  8885. dynamic_linker='Win32 ld.exe'
  8886. ;;
  8887. *,cl*)
  8888. # Native MSVC
  8889. libname_spec='$name'
  8890. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8891. library_names_spec='${libname}.dll.lib'
  8892. case $build_os in
  8893. mingw*)
  8894. sys_lib_search_path_spec=
  8895. lt_save_ifs=$IFS
  8896. IFS=';'
  8897. for lt_path in $LIB
  8898. do
  8899. IFS=$lt_save_ifs
  8900. # Let DOS variable expansion print the short 8.3 style file name.
  8901. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8902. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8903. done
  8904. IFS=$lt_save_ifs
  8905. # Convert to MSYS style.
  8906. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8907. ;;
  8908. cygwin*)
  8909. # Convert to unix form, then to dos form, then back to unix form
  8910. # but this time dos style (no spaces!) so that the unix form looks
  8911. # like /cygdrive/c/PROGRA~1:/cygdr...
  8912. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8913. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8914. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8915. ;;
  8916. *)
  8917. sys_lib_search_path_spec="$LIB"
  8918. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8919. # It is most probably a Windows format PATH.
  8920. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8921. else
  8922. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8923. fi
  8924. # FIXME: find the short name or the path components, as spaces are
  8925. # common. (e.g. "Program Files" -> "PROGRA~1")
  8926. ;;
  8927. esac
  8928. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8929. postinstall_cmds='base_file=`basename \${file}`~
  8930. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8931. dldir=$destdir/`dirname \$dlpath`~
  8932. test -d \$dldir || mkdir -p \$dldir~
  8933. $install_prog $dir/$dlname \$dldir/$dlname'
  8934. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8935. dlpath=$dir/\$dldll~
  8936. $RM \$dlpath'
  8937. shlibpath_overrides_runpath=yes
  8938. dynamic_linker='Win32 link.exe'
  8939. ;;
  8940. *)
  8941. # Assume MSVC wrapper
  8942. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8943. dynamic_linker='Win32 ld.exe'
  8944. ;;
  8945. esac
  8946. # FIXME: first we should search . and the directory the executable is in
  8947. shlibpath_var=PATH
  8948. ;;
  8949. darwin* | rhapsody*)
  8950. dynamic_linker="$host_os dyld"
  8951. version_type=darwin
  8952. need_lib_prefix=no
  8953. need_version=no
  8954. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8955. soname_spec='${libname}${release}${major}$shared_ext'
  8956. shlibpath_overrides_runpath=yes
  8957. shlibpath_var=DYLD_LIBRARY_PATH
  8958. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8959. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8960. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8961. ;;
  8962. dgux*)
  8963. version_type=linux # correct to gnu/linux during the next big refactor
  8964. need_lib_prefix=no
  8965. need_version=no
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8967. soname_spec='${libname}${release}${shared_ext}$major'
  8968. shlibpath_var=LD_LIBRARY_PATH
  8969. ;;
  8970. freebsd* | dragonfly*)
  8971. # DragonFly does not have aout. When/if they implement a new
  8972. # versioning mechanism, adjust this.
  8973. if test -x /usr/bin/objformat; then
  8974. objformat=`/usr/bin/objformat`
  8975. else
  8976. case $host_os in
  8977. freebsd[23].*) objformat=aout ;;
  8978. *) objformat=elf ;;
  8979. esac
  8980. fi
  8981. version_type=freebsd-$objformat
  8982. case $version_type in
  8983. freebsd-elf*)
  8984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8985. need_version=no
  8986. need_lib_prefix=no
  8987. ;;
  8988. freebsd-*)
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8990. need_version=yes
  8991. ;;
  8992. esac
  8993. shlibpath_var=LD_LIBRARY_PATH
  8994. case $host_os in
  8995. freebsd2.*)
  8996. shlibpath_overrides_runpath=yes
  8997. ;;
  8998. freebsd3.[01]* | freebsdelf3.[01]*)
  8999. shlibpath_overrides_runpath=yes
  9000. hardcode_into_libs=yes
  9001. ;;
  9002. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9003. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9004. shlibpath_overrides_runpath=no
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. *) # from 4.6 on, and DragonFly
  9008. shlibpath_overrides_runpath=yes
  9009. hardcode_into_libs=yes
  9010. ;;
  9011. esac
  9012. ;;
  9013. gnu*)
  9014. version_type=linux # correct to gnu/linux during the next big refactor
  9015. need_lib_prefix=no
  9016. need_version=no
  9017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9018. soname_spec='${libname}${release}${shared_ext}$major'
  9019. shlibpath_var=LD_LIBRARY_PATH
  9020. shlibpath_overrides_runpath=no
  9021. hardcode_into_libs=yes
  9022. ;;
  9023. haiku*)
  9024. version_type=linux # correct to gnu/linux during the next big refactor
  9025. need_lib_prefix=no
  9026. need_version=no
  9027. dynamic_linker="$host_os runtime_loader"
  9028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9029. soname_spec='${libname}${release}${shared_ext}$major'
  9030. shlibpath_var=LIBRARY_PATH
  9031. shlibpath_overrides_runpath=yes
  9032. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9033. hardcode_into_libs=yes
  9034. ;;
  9035. hpux9* | hpux10* | hpux11*)
  9036. # Give a soname corresponding to the major version so that dld.sl refuses to
  9037. # link against other versions.
  9038. version_type=sunos
  9039. need_lib_prefix=no
  9040. need_version=no
  9041. case $host_cpu in
  9042. ia64*)
  9043. shrext_cmds='.so'
  9044. hardcode_into_libs=yes
  9045. dynamic_linker="$host_os dld.so"
  9046. shlibpath_var=LD_LIBRARY_PATH
  9047. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9049. soname_spec='${libname}${release}${shared_ext}$major'
  9050. if test "X$HPUX_IA64_MODE" = X32; then
  9051. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9052. else
  9053. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9054. fi
  9055. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9056. ;;
  9057. hppa*64*)
  9058. shrext_cmds='.sl'
  9059. hardcode_into_libs=yes
  9060. dynamic_linker="$host_os dld.sl"
  9061. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9062. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9064. soname_spec='${libname}${release}${shared_ext}$major'
  9065. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9066. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9067. ;;
  9068. *)
  9069. shrext_cmds='.sl'
  9070. dynamic_linker="$host_os dld.sl"
  9071. shlibpath_var=SHLIB_PATH
  9072. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9074. soname_spec='${libname}${release}${shared_ext}$major'
  9075. ;;
  9076. esac
  9077. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9078. postinstall_cmds='chmod 555 $lib'
  9079. # or fails outright, so override atomically:
  9080. install_override_mode=555
  9081. ;;
  9082. interix[3-9]*)
  9083. version_type=linux # correct to gnu/linux during the next big refactor
  9084. need_lib_prefix=no
  9085. need_version=no
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=no
  9091. hardcode_into_libs=yes
  9092. ;;
  9093. irix5* | irix6* | nonstopux*)
  9094. case $host_os in
  9095. nonstopux*) version_type=nonstopux ;;
  9096. *)
  9097. if test "$lt_cv_prog_gnu_ld" = yes; then
  9098. version_type=linux # correct to gnu/linux during the next big refactor
  9099. else
  9100. version_type=irix
  9101. fi ;;
  9102. esac
  9103. need_lib_prefix=no
  9104. need_version=no
  9105. soname_spec='${libname}${release}${shared_ext}$major'
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9107. case $host_os in
  9108. irix5* | nonstopux*)
  9109. libsuff= shlibsuff=
  9110. ;;
  9111. *)
  9112. case $LD in # libtool.m4 will add one of these switches to LD
  9113. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9114. libsuff= shlibsuff= libmagic=32-bit;;
  9115. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9116. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9117. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9118. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9119. *) libsuff= shlibsuff= libmagic=never-match;;
  9120. esac
  9121. ;;
  9122. esac
  9123. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9124. shlibpath_overrides_runpath=no
  9125. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9126. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9127. hardcode_into_libs=yes
  9128. ;;
  9129. # No shared lib support for Linux oldld, aout, or coff.
  9130. linux*oldld* | linux*aout* | linux*coff*)
  9131. dynamic_linker=no
  9132. ;;
  9133. # This must be glibc/ELF.
  9134. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9135. version_type=linux # correct to gnu/linux during the next big refactor
  9136. need_lib_prefix=no
  9137. need_version=no
  9138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9139. soname_spec='${libname}${release}${shared_ext}$major'
  9140. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9141. shlibpath_var=LD_LIBRARY_PATH
  9142. shlibpath_overrides_runpath=no
  9143. # Some binutils ld are patched to set DT_RUNPATH
  9144. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9145. $as_echo_n "(cached) " >&6
  9146. else
  9147. lt_cv_shlibpath_overrides_runpath=no
  9148. save_LDFLAGS=$LDFLAGS
  9149. save_libdir=$libdir
  9150. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9151. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9153. /* end confdefs.h. */
  9154. int
  9155. main ()
  9156. {
  9157. ;
  9158. return 0;
  9159. }
  9160. _ACEOF
  9161. if ac_fn_c_try_link "$LINENO"; then :
  9162. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9163. lt_cv_shlibpath_overrides_runpath=yes
  9164. fi
  9165. fi
  9166. rm -f core conftest.err conftest.$ac_objext \
  9167. conftest$ac_exeext conftest.$ac_ext
  9168. LDFLAGS=$save_LDFLAGS
  9169. libdir=$save_libdir
  9170. fi
  9171. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9172. # This implies no fast_install, which is unacceptable.
  9173. # Some rework will be needed to allow for fast_install
  9174. # before this can be enabled.
  9175. hardcode_into_libs=yes
  9176. # Append ld.so.conf contents to the search path
  9177. if test -f /etc/ld.so.conf; then
  9178. 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' ' '`
  9179. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9180. fi
  9181. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9182. # powerpc, because MkLinux only supported shared libraries with the
  9183. # GNU dynamic linker. Since this was broken with cross compilers,
  9184. # most powerpc-linux boxes support dynamic linking these days and
  9185. # people can always --disable-shared, the test was removed, and we
  9186. # assume the GNU/Linux dynamic linker is in use.
  9187. dynamic_linker='GNU/Linux ld.so'
  9188. ;;
  9189. netbsd*)
  9190. version_type=sunos
  9191. need_lib_prefix=no
  9192. need_version=no
  9193. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9195. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9196. dynamic_linker='NetBSD (a.out) ld.so'
  9197. else
  9198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9199. soname_spec='${libname}${release}${shared_ext}$major'
  9200. dynamic_linker='NetBSD ld.elf_so'
  9201. fi
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. shlibpath_overrides_runpath=yes
  9204. hardcode_into_libs=yes
  9205. ;;
  9206. newsos6)
  9207. version_type=linux # correct to gnu/linux during the next big refactor
  9208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9209. shlibpath_var=LD_LIBRARY_PATH
  9210. shlibpath_overrides_runpath=yes
  9211. ;;
  9212. *nto* | *qnx*)
  9213. version_type=qnx
  9214. need_lib_prefix=no
  9215. need_version=no
  9216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9217. soname_spec='${libname}${release}${shared_ext}$major'
  9218. shlibpath_var=LD_LIBRARY_PATH
  9219. shlibpath_overrides_runpath=no
  9220. hardcode_into_libs=yes
  9221. dynamic_linker='ldqnx.so'
  9222. ;;
  9223. openbsd*)
  9224. version_type=sunos
  9225. sys_lib_dlsearch_path_spec="/usr/lib"
  9226. need_lib_prefix=no
  9227. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9228. case $host_os in
  9229. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9230. *) need_version=no ;;
  9231. esac
  9232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9233. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9234. shlibpath_var=LD_LIBRARY_PATH
  9235. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9236. case $host_os in
  9237. openbsd2.[89] | openbsd2.[89].*)
  9238. shlibpath_overrides_runpath=no
  9239. ;;
  9240. *)
  9241. shlibpath_overrides_runpath=yes
  9242. ;;
  9243. esac
  9244. else
  9245. shlibpath_overrides_runpath=yes
  9246. fi
  9247. ;;
  9248. os2*)
  9249. libname_spec='$name'
  9250. shrext_cmds=".dll"
  9251. need_lib_prefix=no
  9252. library_names_spec='$libname${shared_ext} $libname.a'
  9253. dynamic_linker='OS/2 ld.exe'
  9254. shlibpath_var=LIBPATH
  9255. ;;
  9256. osf3* | osf4* | osf5*)
  9257. version_type=osf
  9258. need_lib_prefix=no
  9259. need_version=no
  9260. soname_spec='${libname}${release}${shared_ext}$major'
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9262. shlibpath_var=LD_LIBRARY_PATH
  9263. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9264. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9265. ;;
  9266. rdos*)
  9267. dynamic_linker=no
  9268. ;;
  9269. solaris*)
  9270. version_type=linux # correct to gnu/linux during the next big refactor
  9271. need_lib_prefix=no
  9272. need_version=no
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. soname_spec='${libname}${release}${shared_ext}$major'
  9275. shlibpath_var=LD_LIBRARY_PATH
  9276. shlibpath_overrides_runpath=yes
  9277. hardcode_into_libs=yes
  9278. # ldd complains unless libraries are executable
  9279. postinstall_cmds='chmod +x $lib'
  9280. ;;
  9281. sunos4*)
  9282. version_type=sunos
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9284. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. shlibpath_overrides_runpath=yes
  9287. if test "$with_gnu_ld" = yes; then
  9288. need_lib_prefix=no
  9289. fi
  9290. need_version=yes
  9291. ;;
  9292. sysv4 | sysv4.3*)
  9293. version_type=linux # correct to gnu/linux during the next big refactor
  9294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9295. soname_spec='${libname}${release}${shared_ext}$major'
  9296. shlibpath_var=LD_LIBRARY_PATH
  9297. case $host_vendor in
  9298. sni)
  9299. shlibpath_overrides_runpath=no
  9300. need_lib_prefix=no
  9301. runpath_var=LD_RUN_PATH
  9302. ;;
  9303. siemens)
  9304. need_lib_prefix=no
  9305. ;;
  9306. motorola)
  9307. need_lib_prefix=no
  9308. need_version=no
  9309. shlibpath_overrides_runpath=no
  9310. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9311. ;;
  9312. esac
  9313. ;;
  9314. sysv4*MP*)
  9315. if test -d /usr/nec ;then
  9316. version_type=linux # correct to gnu/linux during the next big refactor
  9317. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9318. soname_spec='$libname${shared_ext}.$major'
  9319. shlibpath_var=LD_LIBRARY_PATH
  9320. fi
  9321. ;;
  9322. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9323. version_type=freebsd-elf
  9324. need_lib_prefix=no
  9325. need_version=no
  9326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9327. soname_spec='${libname}${release}${shared_ext}$major'
  9328. shlibpath_var=LD_LIBRARY_PATH
  9329. shlibpath_overrides_runpath=yes
  9330. hardcode_into_libs=yes
  9331. if test "$with_gnu_ld" = yes; then
  9332. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9333. else
  9334. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9335. case $host_os in
  9336. sco3.2v5*)
  9337. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9338. ;;
  9339. esac
  9340. fi
  9341. sys_lib_dlsearch_path_spec='/usr/lib'
  9342. ;;
  9343. tpf*)
  9344. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9345. version_type=linux # correct to gnu/linux during the next big refactor
  9346. need_lib_prefix=no
  9347. need_version=no
  9348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9349. shlibpath_var=LD_LIBRARY_PATH
  9350. shlibpath_overrides_runpath=no
  9351. hardcode_into_libs=yes
  9352. ;;
  9353. uts4*)
  9354. version_type=linux # correct to gnu/linux during the next big refactor
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9356. soname_spec='${libname}${release}${shared_ext}$major'
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. ;;
  9359. *)
  9360. dynamic_linker=no
  9361. ;;
  9362. esac
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9364. $as_echo "$dynamic_linker" >&6; }
  9365. test "$dynamic_linker" = no && can_build_shared=no
  9366. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9367. if test "$GCC" = yes; then
  9368. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9369. fi
  9370. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9371. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9372. fi
  9373. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9374. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9375. fi
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9377. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9378. hardcode_action=
  9379. if test -n "$hardcode_libdir_flag_spec" ||
  9380. test -n "$runpath_var" ||
  9381. test "X$hardcode_automatic" = "Xyes" ; then
  9382. # We can hardcode non-existent directories.
  9383. if test "$hardcode_direct" != no &&
  9384. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9385. # have to relink, otherwise we might link with an installed library
  9386. # when we should be linking with a yet-to-be-installed one
  9387. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9388. test "$hardcode_minus_L" != no; then
  9389. # Linking always hardcodes the temporary library directory.
  9390. hardcode_action=relink
  9391. else
  9392. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9393. hardcode_action=immediate
  9394. fi
  9395. else
  9396. # We cannot hardcode anything, or else we can only hardcode existing
  9397. # directories.
  9398. hardcode_action=unsupported
  9399. fi
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9401. $as_echo "$hardcode_action" >&6; }
  9402. if test "$hardcode_action" = relink ||
  9403. test "$inherit_rpath" = yes; then
  9404. # Fast installation is not supported
  9405. enable_fast_install=no
  9406. elif test "$shlibpath_overrides_runpath" = yes ||
  9407. test "$enable_shared" = no; then
  9408. # Fast installation is not necessary
  9409. enable_fast_install=needless
  9410. fi
  9411. if test "x$enable_dlopen" != xyes; then
  9412. enable_dlopen=unknown
  9413. enable_dlopen_self=unknown
  9414. enable_dlopen_self_static=unknown
  9415. else
  9416. lt_cv_dlopen=no
  9417. lt_cv_dlopen_libs=
  9418. case $host_os in
  9419. beos*)
  9420. lt_cv_dlopen="load_add_on"
  9421. lt_cv_dlopen_libs=
  9422. lt_cv_dlopen_self=yes
  9423. ;;
  9424. mingw* | pw32* | cegcc*)
  9425. lt_cv_dlopen="LoadLibrary"
  9426. lt_cv_dlopen_libs=
  9427. ;;
  9428. cygwin*)
  9429. lt_cv_dlopen="dlopen"
  9430. lt_cv_dlopen_libs=
  9431. ;;
  9432. darwin*)
  9433. # if libdl is installed we need to link against it
  9434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9435. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9436. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9437. $as_echo_n "(cached) " >&6
  9438. else
  9439. ac_check_lib_save_LIBS=$LIBS
  9440. LIBS="-ldl $LIBS"
  9441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9442. /* end confdefs.h. */
  9443. /* Override any GCC internal prototype to avoid an error.
  9444. Use char because int might match the return type of a GCC
  9445. builtin and then its argument prototype would still apply. */
  9446. #ifdef __cplusplus
  9447. extern "C"
  9448. #endif
  9449. char dlopen ();
  9450. int
  9451. main ()
  9452. {
  9453. return dlopen ();
  9454. ;
  9455. return 0;
  9456. }
  9457. _ACEOF
  9458. if ac_fn_c_try_link "$LINENO"; then :
  9459. ac_cv_lib_dl_dlopen=yes
  9460. else
  9461. ac_cv_lib_dl_dlopen=no
  9462. fi
  9463. rm -f core conftest.err conftest.$ac_objext \
  9464. conftest$ac_exeext conftest.$ac_ext
  9465. LIBS=$ac_check_lib_save_LIBS
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9468. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9469. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9470. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9471. else
  9472. lt_cv_dlopen="dyld"
  9473. lt_cv_dlopen_libs=
  9474. lt_cv_dlopen_self=yes
  9475. fi
  9476. ;;
  9477. *)
  9478. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9479. if test "x$ac_cv_func_shl_load" = xyes; then :
  9480. lt_cv_dlopen="shl_load"
  9481. else
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9483. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9484. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9485. $as_echo_n "(cached) " >&6
  9486. else
  9487. ac_check_lib_save_LIBS=$LIBS
  9488. LIBS="-ldld $LIBS"
  9489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9490. /* end confdefs.h. */
  9491. /* Override any GCC internal prototype to avoid an error.
  9492. Use char because int might match the return type of a GCC
  9493. builtin and then its argument prototype would still apply. */
  9494. #ifdef __cplusplus
  9495. extern "C"
  9496. #endif
  9497. char shl_load ();
  9498. int
  9499. main ()
  9500. {
  9501. return shl_load ();
  9502. ;
  9503. return 0;
  9504. }
  9505. _ACEOF
  9506. if ac_fn_c_try_link "$LINENO"; then :
  9507. ac_cv_lib_dld_shl_load=yes
  9508. else
  9509. ac_cv_lib_dld_shl_load=no
  9510. fi
  9511. rm -f core conftest.err conftest.$ac_objext \
  9512. conftest$ac_exeext conftest.$ac_ext
  9513. LIBS=$ac_check_lib_save_LIBS
  9514. fi
  9515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9516. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9517. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9518. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9519. else
  9520. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9521. if test "x$ac_cv_func_dlopen" = xyes; then :
  9522. lt_cv_dlopen="dlopen"
  9523. else
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9525. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9526. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9527. $as_echo_n "(cached) " >&6
  9528. else
  9529. ac_check_lib_save_LIBS=$LIBS
  9530. LIBS="-ldl $LIBS"
  9531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9532. /* end confdefs.h. */
  9533. /* Override any GCC internal prototype to avoid an error.
  9534. Use char because int might match the return type of a GCC
  9535. builtin and then its argument prototype would still apply. */
  9536. #ifdef __cplusplus
  9537. extern "C"
  9538. #endif
  9539. char dlopen ();
  9540. int
  9541. main ()
  9542. {
  9543. return dlopen ();
  9544. ;
  9545. return 0;
  9546. }
  9547. _ACEOF
  9548. if ac_fn_c_try_link "$LINENO"; then :
  9549. ac_cv_lib_dl_dlopen=yes
  9550. else
  9551. ac_cv_lib_dl_dlopen=no
  9552. fi
  9553. rm -f core conftest.err conftest.$ac_objext \
  9554. conftest$ac_exeext conftest.$ac_ext
  9555. LIBS=$ac_check_lib_save_LIBS
  9556. fi
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9558. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9559. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9560. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9561. else
  9562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9563. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9564. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9565. $as_echo_n "(cached) " >&6
  9566. else
  9567. ac_check_lib_save_LIBS=$LIBS
  9568. LIBS="-lsvld $LIBS"
  9569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9570. /* end confdefs.h. */
  9571. /* Override any GCC internal prototype to avoid an error.
  9572. Use char because int might match the return type of a GCC
  9573. builtin and then its argument prototype would still apply. */
  9574. #ifdef __cplusplus
  9575. extern "C"
  9576. #endif
  9577. char dlopen ();
  9578. int
  9579. main ()
  9580. {
  9581. return dlopen ();
  9582. ;
  9583. return 0;
  9584. }
  9585. _ACEOF
  9586. if ac_fn_c_try_link "$LINENO"; then :
  9587. ac_cv_lib_svld_dlopen=yes
  9588. else
  9589. ac_cv_lib_svld_dlopen=no
  9590. fi
  9591. rm -f core conftest.err conftest.$ac_objext \
  9592. conftest$ac_exeext conftest.$ac_ext
  9593. LIBS=$ac_check_lib_save_LIBS
  9594. fi
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9596. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9597. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9598. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9599. else
  9600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9601. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9602. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9603. $as_echo_n "(cached) " >&6
  9604. else
  9605. ac_check_lib_save_LIBS=$LIBS
  9606. LIBS="-ldld $LIBS"
  9607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9608. /* end confdefs.h. */
  9609. /* Override any GCC internal prototype to avoid an error.
  9610. Use char because int might match the return type of a GCC
  9611. builtin and then its argument prototype would still apply. */
  9612. #ifdef __cplusplus
  9613. extern "C"
  9614. #endif
  9615. char dld_link ();
  9616. int
  9617. main ()
  9618. {
  9619. return dld_link ();
  9620. ;
  9621. return 0;
  9622. }
  9623. _ACEOF
  9624. if ac_fn_c_try_link "$LINENO"; then :
  9625. ac_cv_lib_dld_dld_link=yes
  9626. else
  9627. ac_cv_lib_dld_dld_link=no
  9628. fi
  9629. rm -f core conftest.err conftest.$ac_objext \
  9630. conftest$ac_exeext conftest.$ac_ext
  9631. LIBS=$ac_check_lib_save_LIBS
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9634. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9635. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9636. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9637. fi
  9638. fi
  9639. fi
  9640. fi
  9641. fi
  9642. fi
  9643. ;;
  9644. esac
  9645. if test "x$lt_cv_dlopen" != xno; then
  9646. enable_dlopen=yes
  9647. else
  9648. enable_dlopen=no
  9649. fi
  9650. case $lt_cv_dlopen in
  9651. dlopen)
  9652. save_CPPFLAGS="$CPPFLAGS"
  9653. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9654. save_LDFLAGS="$LDFLAGS"
  9655. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9656. save_LIBS="$LIBS"
  9657. LIBS="$lt_cv_dlopen_libs $LIBS"
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9659. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9660. if ${lt_cv_dlopen_self+:} false; then :
  9661. $as_echo_n "(cached) " >&6
  9662. else
  9663. if test "$cross_compiling" = yes; then :
  9664. lt_cv_dlopen_self=cross
  9665. else
  9666. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9667. lt_status=$lt_dlunknown
  9668. cat > conftest.$ac_ext <<_LT_EOF
  9669. #line $LINENO "configure"
  9670. #include "confdefs.h"
  9671. #if HAVE_DLFCN_H
  9672. #include <dlfcn.h>
  9673. #endif
  9674. #include <stdio.h>
  9675. #ifdef RTLD_GLOBAL
  9676. # define LT_DLGLOBAL RTLD_GLOBAL
  9677. #else
  9678. # ifdef DL_GLOBAL
  9679. # define LT_DLGLOBAL DL_GLOBAL
  9680. # else
  9681. # define LT_DLGLOBAL 0
  9682. # endif
  9683. #endif
  9684. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9685. find out it does not work in some platform. */
  9686. #ifndef LT_DLLAZY_OR_NOW
  9687. # ifdef RTLD_LAZY
  9688. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9689. # else
  9690. # ifdef DL_LAZY
  9691. # define LT_DLLAZY_OR_NOW DL_LAZY
  9692. # else
  9693. # ifdef RTLD_NOW
  9694. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9695. # else
  9696. # ifdef DL_NOW
  9697. # define LT_DLLAZY_OR_NOW DL_NOW
  9698. # else
  9699. # define LT_DLLAZY_OR_NOW 0
  9700. # endif
  9701. # endif
  9702. # endif
  9703. # endif
  9704. #endif
  9705. /* When -fvisbility=hidden is used, assume the code has been annotated
  9706. correspondingly for the symbols needed. */
  9707. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9708. int fnord () __attribute__((visibility("default")));
  9709. #endif
  9710. int fnord () { return 42; }
  9711. int main ()
  9712. {
  9713. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9714. int status = $lt_dlunknown;
  9715. if (self)
  9716. {
  9717. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9718. else
  9719. {
  9720. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9721. else puts (dlerror ());
  9722. }
  9723. /* dlclose (self); */
  9724. }
  9725. else
  9726. puts (dlerror ());
  9727. return status;
  9728. }
  9729. _LT_EOF
  9730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9731. (eval $ac_link) 2>&5
  9732. ac_status=$?
  9733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9734. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9735. (./conftest; exit; ) >&5 2>/dev/null
  9736. lt_status=$?
  9737. case x$lt_status in
  9738. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9739. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9740. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9741. esac
  9742. else :
  9743. # compilation failed
  9744. lt_cv_dlopen_self=no
  9745. fi
  9746. fi
  9747. rm -fr conftest*
  9748. fi
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9750. $as_echo "$lt_cv_dlopen_self" >&6; }
  9751. if test "x$lt_cv_dlopen_self" = xyes; then
  9752. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9754. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9755. if ${lt_cv_dlopen_self_static+:} false; then :
  9756. $as_echo_n "(cached) " >&6
  9757. else
  9758. if test "$cross_compiling" = yes; then :
  9759. lt_cv_dlopen_self_static=cross
  9760. else
  9761. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9762. lt_status=$lt_dlunknown
  9763. cat > conftest.$ac_ext <<_LT_EOF
  9764. #line $LINENO "configure"
  9765. #include "confdefs.h"
  9766. #if HAVE_DLFCN_H
  9767. #include <dlfcn.h>
  9768. #endif
  9769. #include <stdio.h>
  9770. #ifdef RTLD_GLOBAL
  9771. # define LT_DLGLOBAL RTLD_GLOBAL
  9772. #else
  9773. # ifdef DL_GLOBAL
  9774. # define LT_DLGLOBAL DL_GLOBAL
  9775. # else
  9776. # define LT_DLGLOBAL 0
  9777. # endif
  9778. #endif
  9779. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9780. find out it does not work in some platform. */
  9781. #ifndef LT_DLLAZY_OR_NOW
  9782. # ifdef RTLD_LAZY
  9783. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9784. # else
  9785. # ifdef DL_LAZY
  9786. # define LT_DLLAZY_OR_NOW DL_LAZY
  9787. # else
  9788. # ifdef RTLD_NOW
  9789. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9790. # else
  9791. # ifdef DL_NOW
  9792. # define LT_DLLAZY_OR_NOW DL_NOW
  9793. # else
  9794. # define LT_DLLAZY_OR_NOW 0
  9795. # endif
  9796. # endif
  9797. # endif
  9798. # endif
  9799. #endif
  9800. /* When -fvisbility=hidden is used, assume the code has been annotated
  9801. correspondingly for the symbols needed. */
  9802. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9803. int fnord () __attribute__((visibility("default")));
  9804. #endif
  9805. int fnord () { return 42; }
  9806. int main ()
  9807. {
  9808. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9809. int status = $lt_dlunknown;
  9810. if (self)
  9811. {
  9812. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9813. else
  9814. {
  9815. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9816. else puts (dlerror ());
  9817. }
  9818. /* dlclose (self); */
  9819. }
  9820. else
  9821. puts (dlerror ());
  9822. return status;
  9823. }
  9824. _LT_EOF
  9825. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9826. (eval $ac_link) 2>&5
  9827. ac_status=$?
  9828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9829. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9830. (./conftest; exit; ) >&5 2>/dev/null
  9831. lt_status=$?
  9832. case x$lt_status in
  9833. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9834. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9835. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9836. esac
  9837. else :
  9838. # compilation failed
  9839. lt_cv_dlopen_self_static=no
  9840. fi
  9841. fi
  9842. rm -fr conftest*
  9843. fi
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9845. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9846. fi
  9847. CPPFLAGS="$save_CPPFLAGS"
  9848. LDFLAGS="$save_LDFLAGS"
  9849. LIBS="$save_LIBS"
  9850. ;;
  9851. esac
  9852. case $lt_cv_dlopen_self in
  9853. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9854. *) enable_dlopen_self=unknown ;;
  9855. esac
  9856. case $lt_cv_dlopen_self_static in
  9857. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9858. *) enable_dlopen_self_static=unknown ;;
  9859. esac
  9860. fi
  9861. striplib=
  9862. old_striplib=
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9864. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9865. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9866. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9867. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9869. $as_echo "yes" >&6; }
  9870. else
  9871. # FIXME - insert some real tests, host_os isn't really good enough
  9872. case $host_os in
  9873. darwin*)
  9874. if test -n "$STRIP" ; then
  9875. striplib="$STRIP -x"
  9876. old_striplib="$STRIP -S"
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9878. $as_echo "yes" >&6; }
  9879. else
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9881. $as_echo "no" >&6; }
  9882. fi
  9883. ;;
  9884. *)
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9886. $as_echo "no" >&6; }
  9887. ;;
  9888. esac
  9889. fi
  9890. # Report which library types will actually be built
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9892. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9894. $as_echo "$can_build_shared" >&6; }
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9896. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9897. test "$can_build_shared" = "no" && enable_shared=no
  9898. # On AIX, shared libraries and static libraries use the same namespace, and
  9899. # are all built from PIC.
  9900. case $host_os in
  9901. aix3*)
  9902. test "$enable_shared" = yes && enable_static=no
  9903. if test -n "$RANLIB"; then
  9904. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9905. postinstall_cmds='$RANLIB $lib'
  9906. fi
  9907. ;;
  9908. aix[4-9]*)
  9909. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9910. test "$enable_shared" = yes && enable_static=no
  9911. fi
  9912. ;;
  9913. esac
  9914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9915. $as_echo "$enable_shared" >&6; }
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9917. $as_echo_n "checking whether to build static libraries... " >&6; }
  9918. # Make sure either enable_shared or enable_static is yes.
  9919. test "$enable_shared" = yes || enable_static=yes
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9921. $as_echo "$enable_static" >&6; }
  9922. fi
  9923. ac_ext=c
  9924. ac_cpp='$CPP $CPPFLAGS'
  9925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9928. CC="$lt_save_CC"
  9929. ac_config_commands="$ac_config_commands libtool"
  9930. # Only expand once:
  9931. if test -n "$ac_tool_prefix"; then
  9932. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9933. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9935. $as_echo_n "checking for $ac_word... " >&6; }
  9936. if ${ac_cv_prog_RC+:} false; then :
  9937. $as_echo_n "(cached) " >&6
  9938. else
  9939. if test -n "$RC"; then
  9940. ac_cv_prog_RC="$RC" # Let the user override the test.
  9941. else
  9942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9943. for as_dir in $PATH
  9944. do
  9945. IFS=$as_save_IFS
  9946. test -z "$as_dir" && as_dir=.
  9947. for ac_exec_ext in '' $ac_executable_extensions; do
  9948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9949. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9951. break 2
  9952. fi
  9953. done
  9954. done
  9955. IFS=$as_save_IFS
  9956. fi
  9957. fi
  9958. RC=$ac_cv_prog_RC
  9959. if test -n "$RC"; then
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9961. $as_echo "$RC" >&6; }
  9962. else
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9964. $as_echo "no" >&6; }
  9965. fi
  9966. fi
  9967. if test -z "$ac_cv_prog_RC"; then
  9968. ac_ct_RC=$RC
  9969. # Extract the first word of "windres", so it can be a program name with args.
  9970. set dummy windres; ac_word=$2
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9972. $as_echo_n "checking for $ac_word... " >&6; }
  9973. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. if test -n "$ac_ct_RC"; then
  9977. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9978. else
  9979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9980. for as_dir in $PATH
  9981. do
  9982. IFS=$as_save_IFS
  9983. test -z "$as_dir" && as_dir=.
  9984. for ac_exec_ext in '' $ac_executable_extensions; do
  9985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9986. ac_cv_prog_ac_ct_RC="windres"
  9987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9988. break 2
  9989. fi
  9990. done
  9991. done
  9992. IFS=$as_save_IFS
  9993. fi
  9994. fi
  9995. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9996. if test -n "$ac_ct_RC"; then
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9998. $as_echo "$ac_ct_RC" >&6; }
  9999. else
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10001. $as_echo "no" >&6; }
  10002. fi
  10003. if test "x$ac_ct_RC" = x; then
  10004. RC=""
  10005. else
  10006. case $cross_compiling:$ac_tool_warned in
  10007. yes:)
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10009. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10010. ac_tool_warned=yes ;;
  10011. esac
  10012. RC=$ac_ct_RC
  10013. fi
  10014. else
  10015. RC="$ac_cv_prog_RC"
  10016. fi
  10017. # Source file extension for RC test sources.
  10018. ac_ext=rc
  10019. # Object file extension for compiled RC test sources.
  10020. objext=o
  10021. objext_RC=$objext
  10022. # Code to be used in simple compile tests
  10023. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10024. # Code to be used in simple link tests
  10025. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10026. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10027. # If no C compiler was specified, use CC.
  10028. LTCC=${LTCC-"$CC"}
  10029. # If no C compiler flags were specified, use CFLAGS.
  10030. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10031. # Allow CC to be a program name with arguments.
  10032. compiler=$CC
  10033. # save warnings/boilerplate of simple test code
  10034. ac_outfile=conftest.$ac_objext
  10035. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10036. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10037. _lt_compiler_boilerplate=`cat conftest.err`
  10038. $RM conftest*
  10039. ac_outfile=conftest.$ac_objext
  10040. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10041. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10042. _lt_linker_boilerplate=`cat conftest.err`
  10043. $RM -r conftest*
  10044. # Allow CC to be a program name with arguments.
  10045. lt_save_CC="$CC"
  10046. lt_save_CFLAGS=$CFLAGS
  10047. lt_save_GCC=$GCC
  10048. GCC=
  10049. CC=${RC-"windres"}
  10050. CFLAGS=
  10051. compiler=$CC
  10052. compiler_RC=$CC
  10053. for cc_temp in $compiler""; do
  10054. case $cc_temp in
  10055. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10056. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10057. \-*) ;;
  10058. *) break;;
  10059. esac
  10060. done
  10061. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10062. lt_cv_prog_compiler_c_o_RC=yes
  10063. if test -n "$compiler"; then
  10064. :
  10065. fi
  10066. GCC=$lt_save_GCC
  10067. ac_ext=c
  10068. ac_cpp='$CPP $CPPFLAGS'
  10069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10072. CC=$lt_save_CC
  10073. CFLAGS=$lt_save_CFLAGS
  10074. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10075. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10076. LT_REVISION=$SDL_INTERFACE_AGE
  10077. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10078. ac_ext=c
  10079. ac_cpp='$CPP $CPPFLAGS'
  10080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10083. if test -n "$ac_tool_prefix"; then
  10084. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10085. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10087. $as_echo_n "checking for $ac_word... " >&6; }
  10088. if ${ac_cv_prog_CC+:} false; then :
  10089. $as_echo_n "(cached) " >&6
  10090. else
  10091. if test -n "$CC"; then
  10092. ac_cv_prog_CC="$CC" # Let the user override the test.
  10093. else
  10094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10095. for as_dir in $PATH
  10096. do
  10097. IFS=$as_save_IFS
  10098. test -z "$as_dir" && as_dir=.
  10099. for ac_exec_ext in '' $ac_executable_extensions; do
  10100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10101. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10103. break 2
  10104. fi
  10105. done
  10106. done
  10107. IFS=$as_save_IFS
  10108. fi
  10109. fi
  10110. CC=$ac_cv_prog_CC
  10111. if test -n "$CC"; then
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10113. $as_echo "$CC" >&6; }
  10114. else
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10116. $as_echo "no" >&6; }
  10117. fi
  10118. fi
  10119. if test -z "$ac_cv_prog_CC"; then
  10120. ac_ct_CC=$CC
  10121. # Extract the first word of "gcc", so it can be a program name with args.
  10122. set dummy gcc; ac_word=$2
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10124. $as_echo_n "checking for $ac_word... " >&6; }
  10125. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10126. $as_echo_n "(cached) " >&6
  10127. else
  10128. if test -n "$ac_ct_CC"; then
  10129. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10130. else
  10131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10132. for as_dir in $PATH
  10133. do
  10134. IFS=$as_save_IFS
  10135. test -z "$as_dir" && as_dir=.
  10136. for ac_exec_ext in '' $ac_executable_extensions; do
  10137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10138. ac_cv_prog_ac_ct_CC="gcc"
  10139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10140. break 2
  10141. fi
  10142. done
  10143. done
  10144. IFS=$as_save_IFS
  10145. fi
  10146. fi
  10147. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10148. if test -n "$ac_ct_CC"; then
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10150. $as_echo "$ac_ct_CC" >&6; }
  10151. else
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10153. $as_echo "no" >&6; }
  10154. fi
  10155. if test "x$ac_ct_CC" = x; then
  10156. CC=""
  10157. else
  10158. case $cross_compiling:$ac_tool_warned in
  10159. yes:)
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10162. ac_tool_warned=yes ;;
  10163. esac
  10164. CC=$ac_ct_CC
  10165. fi
  10166. else
  10167. CC="$ac_cv_prog_CC"
  10168. fi
  10169. if test -z "$CC"; then
  10170. if test -n "$ac_tool_prefix"; then
  10171. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10172. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10174. $as_echo_n "checking for $ac_word... " >&6; }
  10175. if ${ac_cv_prog_CC+:} false; then :
  10176. $as_echo_n "(cached) " >&6
  10177. else
  10178. if test -n "$CC"; then
  10179. ac_cv_prog_CC="$CC" # Let the user override the test.
  10180. else
  10181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10182. for as_dir in $PATH
  10183. do
  10184. IFS=$as_save_IFS
  10185. test -z "$as_dir" && as_dir=.
  10186. for ac_exec_ext in '' $ac_executable_extensions; do
  10187. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10188. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10190. break 2
  10191. fi
  10192. done
  10193. done
  10194. IFS=$as_save_IFS
  10195. fi
  10196. fi
  10197. CC=$ac_cv_prog_CC
  10198. if test -n "$CC"; then
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10200. $as_echo "$CC" >&6; }
  10201. else
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10203. $as_echo "no" >&6; }
  10204. fi
  10205. fi
  10206. fi
  10207. if test -z "$CC"; then
  10208. # Extract the first word of "cc", so it can be a program name with args.
  10209. set dummy cc; ac_word=$2
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10211. $as_echo_n "checking for $ac_word... " >&6; }
  10212. if ${ac_cv_prog_CC+:} false; then :
  10213. $as_echo_n "(cached) " >&6
  10214. else
  10215. if test -n "$CC"; then
  10216. ac_cv_prog_CC="$CC" # Let the user override the test.
  10217. else
  10218. ac_prog_rejected=no
  10219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10220. for as_dir in $PATH
  10221. do
  10222. IFS=$as_save_IFS
  10223. test -z "$as_dir" && as_dir=.
  10224. for ac_exec_ext in '' $ac_executable_extensions; do
  10225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10226. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10227. ac_prog_rejected=yes
  10228. continue
  10229. fi
  10230. ac_cv_prog_CC="cc"
  10231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10232. break 2
  10233. fi
  10234. done
  10235. done
  10236. IFS=$as_save_IFS
  10237. if test $ac_prog_rejected = yes; then
  10238. # We found a bogon in the path, so make sure we never use it.
  10239. set dummy $ac_cv_prog_CC
  10240. shift
  10241. if test $# != 0; then
  10242. # We chose a different compiler from the bogus one.
  10243. # However, it has the same basename, so the bogon will be chosen
  10244. # first if we set CC to just the basename; use the full file name.
  10245. shift
  10246. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10247. fi
  10248. fi
  10249. fi
  10250. fi
  10251. CC=$ac_cv_prog_CC
  10252. if test -n "$CC"; then
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10254. $as_echo "$CC" >&6; }
  10255. else
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10257. $as_echo "no" >&6; }
  10258. fi
  10259. fi
  10260. if test -z "$CC"; then
  10261. if test -n "$ac_tool_prefix"; then
  10262. for ac_prog in cl.exe
  10263. do
  10264. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10265. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10267. $as_echo_n "checking for $ac_word... " >&6; }
  10268. if ${ac_cv_prog_CC+:} false; then :
  10269. $as_echo_n "(cached) " >&6
  10270. else
  10271. if test -n "$CC"; then
  10272. ac_cv_prog_CC="$CC" # Let the user override the test.
  10273. else
  10274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10275. for as_dir in $PATH
  10276. do
  10277. IFS=$as_save_IFS
  10278. test -z "$as_dir" && as_dir=.
  10279. for ac_exec_ext in '' $ac_executable_extensions; do
  10280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10281. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10283. break 2
  10284. fi
  10285. done
  10286. done
  10287. IFS=$as_save_IFS
  10288. fi
  10289. fi
  10290. CC=$ac_cv_prog_CC
  10291. if test -n "$CC"; then
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10293. $as_echo "$CC" >&6; }
  10294. else
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10296. $as_echo "no" >&6; }
  10297. fi
  10298. test -n "$CC" && break
  10299. done
  10300. fi
  10301. if test -z "$CC"; then
  10302. ac_ct_CC=$CC
  10303. for ac_prog in cl.exe
  10304. do
  10305. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10306. set dummy $ac_prog; ac_word=$2
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10308. $as_echo_n "checking for $ac_word... " >&6; }
  10309. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. if test -n "$ac_ct_CC"; then
  10313. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10314. else
  10315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10316. for as_dir in $PATH
  10317. do
  10318. IFS=$as_save_IFS
  10319. test -z "$as_dir" && as_dir=.
  10320. for ac_exec_ext in '' $ac_executable_extensions; do
  10321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10322. ac_cv_prog_ac_ct_CC="$ac_prog"
  10323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10324. break 2
  10325. fi
  10326. done
  10327. done
  10328. IFS=$as_save_IFS
  10329. fi
  10330. fi
  10331. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10332. if test -n "$ac_ct_CC"; then
  10333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10334. $as_echo "$ac_ct_CC" >&6; }
  10335. else
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10337. $as_echo "no" >&6; }
  10338. fi
  10339. test -n "$ac_ct_CC" && break
  10340. done
  10341. if test "x$ac_ct_CC" = x; then
  10342. CC=""
  10343. else
  10344. case $cross_compiling:$ac_tool_warned in
  10345. yes:)
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10348. ac_tool_warned=yes ;;
  10349. esac
  10350. CC=$ac_ct_CC
  10351. fi
  10352. fi
  10353. fi
  10354. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10355. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10356. as_fn_error $? "no acceptable C compiler found in \$PATH
  10357. See \`config.log' for more details" "$LINENO" 5; }
  10358. # Provide some information about the compiler.
  10359. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10360. set X $ac_compile
  10361. ac_compiler=$2
  10362. for ac_option in --version -v -V -qversion; do
  10363. { { ac_try="$ac_compiler $ac_option >&5"
  10364. case "(($ac_try" in
  10365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10366. *) ac_try_echo=$ac_try;;
  10367. esac
  10368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10369. $as_echo "$ac_try_echo"; } >&5
  10370. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10371. ac_status=$?
  10372. if test -s conftest.err; then
  10373. sed '10a\
  10374. ... rest of stderr output deleted ...
  10375. 10q' conftest.err >conftest.er1
  10376. cat conftest.er1 >&5
  10377. fi
  10378. rm -f conftest.er1 conftest.err
  10379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10380. test $ac_status = 0; }
  10381. done
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10383. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10384. if ${ac_cv_c_compiler_gnu+:} false; then :
  10385. $as_echo_n "(cached) " >&6
  10386. else
  10387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10388. /* end confdefs.h. */
  10389. int
  10390. main ()
  10391. {
  10392. #ifndef __GNUC__
  10393. choke me
  10394. #endif
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_c_try_compile "$LINENO"; then :
  10400. ac_compiler_gnu=yes
  10401. else
  10402. ac_compiler_gnu=no
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10405. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10406. fi
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10408. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10409. if test $ac_compiler_gnu = yes; then
  10410. GCC=yes
  10411. else
  10412. GCC=
  10413. fi
  10414. ac_test_CFLAGS=${CFLAGS+set}
  10415. ac_save_CFLAGS=$CFLAGS
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10417. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10418. if ${ac_cv_prog_cc_g+:} false; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. ac_save_c_werror_flag=$ac_c_werror_flag
  10422. ac_c_werror_flag=yes
  10423. ac_cv_prog_cc_g=no
  10424. CFLAGS="-g"
  10425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10426. /* end confdefs.h. */
  10427. int
  10428. main ()
  10429. {
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. if ac_fn_c_try_compile "$LINENO"; then :
  10435. ac_cv_prog_cc_g=yes
  10436. else
  10437. CFLAGS=""
  10438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10439. /* end confdefs.h. */
  10440. int
  10441. main ()
  10442. {
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_c_try_compile "$LINENO"; then :
  10448. else
  10449. ac_c_werror_flag=$ac_save_c_werror_flag
  10450. CFLAGS="-g"
  10451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10452. /* end confdefs.h. */
  10453. int
  10454. main ()
  10455. {
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. if ac_fn_c_try_compile "$LINENO"; then :
  10461. ac_cv_prog_cc_g=yes
  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. ac_c_werror_flag=$ac_save_c_werror_flag
  10469. fi
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10471. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10472. if test "$ac_test_CFLAGS" = set; then
  10473. CFLAGS=$ac_save_CFLAGS
  10474. elif test $ac_cv_prog_cc_g = yes; then
  10475. if test "$GCC" = yes; then
  10476. CFLAGS="-g -O2"
  10477. else
  10478. CFLAGS="-g"
  10479. fi
  10480. else
  10481. if test "$GCC" = yes; then
  10482. CFLAGS="-O2"
  10483. else
  10484. CFLAGS=
  10485. fi
  10486. fi
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10488. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10489. if ${ac_cv_prog_cc_c89+:} false; then :
  10490. $as_echo_n "(cached) " >&6
  10491. else
  10492. ac_cv_prog_cc_c89=no
  10493. ac_save_CC=$CC
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. #include <stdarg.h>
  10497. #include <stdio.h>
  10498. struct stat;
  10499. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10500. struct buf { int x; };
  10501. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10502. static char *e (p, i)
  10503. char **p;
  10504. int i;
  10505. {
  10506. return p[i];
  10507. }
  10508. static char *f (char * (*g) (char **, int), char **p, ...)
  10509. {
  10510. char *s;
  10511. va_list v;
  10512. va_start (v,p);
  10513. s = g (p, va_arg (v,int));
  10514. va_end (v);
  10515. return s;
  10516. }
  10517. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10518. function prototypes and stuff, but not '\xHH' hex character constants.
  10519. These don't provoke an error unfortunately, instead are silently treated
  10520. as 'x'. The following induces an error, until -std is added to get
  10521. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10522. array size at least. It's necessary to write '\x00'==0 to get something
  10523. that's true only with -std. */
  10524. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10525. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10526. inside strings and character constants. */
  10527. #define FOO(x) 'x'
  10528. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10529. int test (int i, double x);
  10530. struct s1 {int (*f) (int a);};
  10531. struct s2 {int (*f) (double a);};
  10532. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10533. int argc;
  10534. char **argv;
  10535. int
  10536. main ()
  10537. {
  10538. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10539. ;
  10540. return 0;
  10541. }
  10542. _ACEOF
  10543. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10544. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10545. do
  10546. CC="$ac_save_CC $ac_arg"
  10547. if ac_fn_c_try_compile "$LINENO"; then :
  10548. ac_cv_prog_cc_c89=$ac_arg
  10549. fi
  10550. rm -f core conftest.err conftest.$ac_objext
  10551. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10552. done
  10553. rm -f conftest.$ac_ext
  10554. CC=$ac_save_CC
  10555. fi
  10556. # AC_CACHE_VAL
  10557. case "x$ac_cv_prog_cc_c89" in
  10558. x)
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10560. $as_echo "none needed" >&6; } ;;
  10561. xno)
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10563. $as_echo "unsupported" >&6; } ;;
  10564. *)
  10565. CC="$CC $ac_cv_prog_cc_c89"
  10566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10567. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10568. esac
  10569. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10570. fi
  10571. ac_ext=c
  10572. ac_cpp='$CPP $CPPFLAGS'
  10573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10576. ac_ext=cpp
  10577. ac_cpp='$CXXCPP $CPPFLAGS'
  10578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10581. if test -z "$CXX"; then
  10582. if test -n "$CCC"; then
  10583. CXX=$CCC
  10584. else
  10585. if test -n "$ac_tool_prefix"; then
  10586. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10587. do
  10588. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10589. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10591. $as_echo_n "checking for $ac_word... " >&6; }
  10592. if ${ac_cv_prog_CXX+:} false; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. if test -n "$CXX"; then
  10596. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10597. else
  10598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10599. for as_dir in $PATH
  10600. do
  10601. IFS=$as_save_IFS
  10602. test -z "$as_dir" && as_dir=.
  10603. for ac_exec_ext in '' $ac_executable_extensions; do
  10604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10605. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10607. break 2
  10608. fi
  10609. done
  10610. done
  10611. IFS=$as_save_IFS
  10612. fi
  10613. fi
  10614. CXX=$ac_cv_prog_CXX
  10615. if test -n "$CXX"; then
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10617. $as_echo "$CXX" >&6; }
  10618. else
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10620. $as_echo "no" >&6; }
  10621. fi
  10622. test -n "$CXX" && break
  10623. done
  10624. fi
  10625. if test -z "$CXX"; then
  10626. ac_ct_CXX=$CXX
  10627. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10628. do
  10629. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10630. set dummy $ac_prog; ac_word=$2
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10632. $as_echo_n "checking for $ac_word... " >&6; }
  10633. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10634. $as_echo_n "(cached) " >&6
  10635. else
  10636. if test -n "$ac_ct_CXX"; then
  10637. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10638. else
  10639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10640. for as_dir in $PATH
  10641. do
  10642. IFS=$as_save_IFS
  10643. test -z "$as_dir" && as_dir=.
  10644. for ac_exec_ext in '' $ac_executable_extensions; do
  10645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10646. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10648. break 2
  10649. fi
  10650. done
  10651. done
  10652. IFS=$as_save_IFS
  10653. fi
  10654. fi
  10655. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10656. if test -n "$ac_ct_CXX"; then
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10658. $as_echo "$ac_ct_CXX" >&6; }
  10659. else
  10660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10661. $as_echo "no" >&6; }
  10662. fi
  10663. test -n "$ac_ct_CXX" && break
  10664. done
  10665. if test "x$ac_ct_CXX" = x; then
  10666. CXX="g++"
  10667. else
  10668. case $cross_compiling:$ac_tool_warned in
  10669. yes:)
  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10671. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10672. ac_tool_warned=yes ;;
  10673. esac
  10674. CXX=$ac_ct_CXX
  10675. fi
  10676. fi
  10677. fi
  10678. fi
  10679. # Provide some information about the compiler.
  10680. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10681. set X $ac_compile
  10682. ac_compiler=$2
  10683. for ac_option in --version -v -V -qversion; do
  10684. { { ac_try="$ac_compiler $ac_option >&5"
  10685. case "(($ac_try" in
  10686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10687. *) ac_try_echo=$ac_try;;
  10688. esac
  10689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10690. $as_echo "$ac_try_echo"; } >&5
  10691. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10692. ac_status=$?
  10693. if test -s conftest.err; then
  10694. sed '10a\
  10695. ... rest of stderr output deleted ...
  10696. 10q' conftest.err >conftest.er1
  10697. cat conftest.er1 >&5
  10698. fi
  10699. rm -f conftest.er1 conftest.err
  10700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10701. test $ac_status = 0; }
  10702. done
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10704. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10705. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10706. $as_echo_n "(cached) " >&6
  10707. else
  10708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10709. /* end confdefs.h. */
  10710. int
  10711. main ()
  10712. {
  10713. #ifndef __GNUC__
  10714. choke me
  10715. #endif
  10716. ;
  10717. return 0;
  10718. }
  10719. _ACEOF
  10720. if ac_fn_cxx_try_compile "$LINENO"; then :
  10721. ac_compiler_gnu=yes
  10722. else
  10723. ac_compiler_gnu=no
  10724. fi
  10725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10726. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10727. fi
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10729. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10730. if test $ac_compiler_gnu = yes; then
  10731. GXX=yes
  10732. else
  10733. GXX=
  10734. fi
  10735. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10736. ac_save_CXXFLAGS=$CXXFLAGS
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10738. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10739. if ${ac_cv_prog_cxx_g+:} false; then :
  10740. $as_echo_n "(cached) " >&6
  10741. else
  10742. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10743. ac_cxx_werror_flag=yes
  10744. ac_cv_prog_cxx_g=no
  10745. CXXFLAGS="-g"
  10746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10747. /* end confdefs.h. */
  10748. int
  10749. main ()
  10750. {
  10751. ;
  10752. return 0;
  10753. }
  10754. _ACEOF
  10755. if ac_fn_cxx_try_compile "$LINENO"; then :
  10756. ac_cv_prog_cxx_g=yes
  10757. else
  10758. CXXFLAGS=""
  10759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10760. /* end confdefs.h. */
  10761. int
  10762. main ()
  10763. {
  10764. ;
  10765. return 0;
  10766. }
  10767. _ACEOF
  10768. if ac_fn_cxx_try_compile "$LINENO"; then :
  10769. else
  10770. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10771. CXXFLAGS="-g"
  10772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10773. /* end confdefs.h. */
  10774. int
  10775. main ()
  10776. {
  10777. ;
  10778. return 0;
  10779. }
  10780. _ACEOF
  10781. if ac_fn_cxx_try_compile "$LINENO"; then :
  10782. ac_cv_prog_cxx_g=yes
  10783. fi
  10784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10785. fi
  10786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10787. fi
  10788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10789. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10790. fi
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10792. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10793. if test "$ac_test_CXXFLAGS" = set; then
  10794. CXXFLAGS=$ac_save_CXXFLAGS
  10795. elif test $ac_cv_prog_cxx_g = yes; then
  10796. if test "$GXX" = yes; then
  10797. CXXFLAGS="-g -O2"
  10798. else
  10799. CXXFLAGS="-g"
  10800. fi
  10801. else
  10802. if test "$GXX" = yes; then
  10803. CXXFLAGS="-O2"
  10804. else
  10805. CXXFLAGS=
  10806. fi
  10807. fi
  10808. ac_ext=c
  10809. ac_cpp='$CPP $CPPFLAGS'
  10810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10813. func_stripname_cnf ()
  10814. {
  10815. case ${2} in
  10816. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10817. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10818. esac
  10819. } # func_stripname_cnf
  10820. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10821. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10822. (test "X$CXX" != "Xg++"))) ; then
  10823. ac_ext=cpp
  10824. ac_cpp='$CXXCPP $CPPFLAGS'
  10825. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10826. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10827. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10829. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10830. if test -z "$CXXCPP"; then
  10831. if ${ac_cv_prog_CXXCPP+:} false; then :
  10832. $as_echo_n "(cached) " >&6
  10833. else
  10834. # Double quotes because CXXCPP needs to be expanded
  10835. for CXXCPP in "$CXX -E" "/lib/cpp"
  10836. do
  10837. ac_preproc_ok=false
  10838. for ac_cxx_preproc_warn_flag in '' yes
  10839. do
  10840. # Use a header file that comes with gcc, so configuring glibc
  10841. # with a fresh cross-compiler works.
  10842. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10843. # <limits.h> exists even on freestanding compilers.
  10844. # On the NeXT, cc -E runs the code through the compiler's parser,
  10845. # not just through cpp. "Syntax error" is here to catch this case.
  10846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10847. /* end confdefs.h. */
  10848. #ifdef __STDC__
  10849. # include <limits.h>
  10850. #else
  10851. # include <assert.h>
  10852. #endif
  10853. Syntax error
  10854. _ACEOF
  10855. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10856. else
  10857. # Broken: fails on valid input.
  10858. continue
  10859. fi
  10860. rm -f conftest.err conftest.i conftest.$ac_ext
  10861. # OK, works on sane cases. Now check whether nonexistent headers
  10862. # can be detected and how.
  10863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10864. /* end confdefs.h. */
  10865. #include <ac_nonexistent.h>
  10866. _ACEOF
  10867. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10868. # Broken: success on invalid input.
  10869. continue
  10870. else
  10871. # Passes both tests.
  10872. ac_preproc_ok=:
  10873. break
  10874. fi
  10875. rm -f conftest.err conftest.i conftest.$ac_ext
  10876. done
  10877. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10878. rm -f conftest.i conftest.err conftest.$ac_ext
  10879. if $ac_preproc_ok; then :
  10880. break
  10881. fi
  10882. done
  10883. ac_cv_prog_CXXCPP=$CXXCPP
  10884. fi
  10885. CXXCPP=$ac_cv_prog_CXXCPP
  10886. else
  10887. ac_cv_prog_CXXCPP=$CXXCPP
  10888. fi
  10889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10890. $as_echo "$CXXCPP" >&6; }
  10891. ac_preproc_ok=false
  10892. for ac_cxx_preproc_warn_flag in '' yes
  10893. do
  10894. # Use a header file that comes with gcc, so configuring glibc
  10895. # with a fresh cross-compiler works.
  10896. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10897. # <limits.h> exists even on freestanding compilers.
  10898. # On the NeXT, cc -E runs the code through the compiler's parser,
  10899. # not just through cpp. "Syntax error" is here to catch this case.
  10900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10901. /* end confdefs.h. */
  10902. #ifdef __STDC__
  10903. # include <limits.h>
  10904. #else
  10905. # include <assert.h>
  10906. #endif
  10907. Syntax error
  10908. _ACEOF
  10909. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10910. else
  10911. # Broken: fails on valid input.
  10912. continue
  10913. fi
  10914. rm -f conftest.err conftest.i conftest.$ac_ext
  10915. # OK, works on sane cases. Now check whether nonexistent headers
  10916. # can be detected and how.
  10917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10918. /* end confdefs.h. */
  10919. #include <ac_nonexistent.h>
  10920. _ACEOF
  10921. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10922. # Broken: success on invalid input.
  10923. continue
  10924. else
  10925. # Passes both tests.
  10926. ac_preproc_ok=:
  10927. break
  10928. fi
  10929. rm -f conftest.err conftest.i conftest.$ac_ext
  10930. done
  10931. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10932. rm -f conftest.i conftest.err conftest.$ac_ext
  10933. if $ac_preproc_ok; then :
  10934. else
  10935. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10937. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10938. See \`config.log' for more details" "$LINENO" 5; }
  10939. fi
  10940. ac_ext=c
  10941. ac_cpp='$CPP $CPPFLAGS'
  10942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10945. else
  10946. _lt_caught_CXX_error=yes
  10947. fi
  10948. ac_ext=cpp
  10949. ac_cpp='$CXXCPP $CPPFLAGS'
  10950. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10951. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10952. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10953. archive_cmds_need_lc_CXX=no
  10954. allow_undefined_flag_CXX=
  10955. always_export_symbols_CXX=no
  10956. archive_expsym_cmds_CXX=
  10957. compiler_needs_object_CXX=no
  10958. export_dynamic_flag_spec_CXX=
  10959. hardcode_direct_CXX=no
  10960. hardcode_direct_absolute_CXX=no
  10961. hardcode_libdir_flag_spec_CXX=
  10962. hardcode_libdir_separator_CXX=
  10963. hardcode_minus_L_CXX=no
  10964. hardcode_shlibpath_var_CXX=unsupported
  10965. hardcode_automatic_CXX=no
  10966. inherit_rpath_CXX=no
  10967. module_cmds_CXX=
  10968. module_expsym_cmds_CXX=
  10969. link_all_deplibs_CXX=unknown
  10970. old_archive_cmds_CXX=$old_archive_cmds
  10971. reload_flag_CXX=$reload_flag
  10972. reload_cmds_CXX=$reload_cmds
  10973. no_undefined_flag_CXX=
  10974. whole_archive_flag_spec_CXX=
  10975. enable_shared_with_static_runtimes_CXX=no
  10976. # Source file extension for C++ test sources.
  10977. ac_ext=cpp
  10978. # Object file extension for compiled C++ test sources.
  10979. objext=o
  10980. objext_CXX=$objext
  10981. # No sense in running all these tests if we already determined that
  10982. # the CXX compiler isn't working. Some variables (like enable_shared)
  10983. # are currently assumed to apply to all compilers on this platform,
  10984. # and will be corrupted by setting them based on a non-working compiler.
  10985. if test "$_lt_caught_CXX_error" != yes; then
  10986. # Code to be used in simple compile tests
  10987. lt_simple_compile_test_code="int some_variable = 0;"
  10988. # Code to be used in simple link tests
  10989. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10990. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10991. # If no C compiler was specified, use CC.
  10992. LTCC=${LTCC-"$CC"}
  10993. # If no C compiler flags were specified, use CFLAGS.
  10994. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10995. # Allow CC to be a program name with arguments.
  10996. compiler=$CC
  10997. # save warnings/boilerplate of simple test code
  10998. ac_outfile=conftest.$ac_objext
  10999. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11000. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11001. _lt_compiler_boilerplate=`cat conftest.err`
  11002. $RM conftest*
  11003. ac_outfile=conftest.$ac_objext
  11004. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11005. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11006. _lt_linker_boilerplate=`cat conftest.err`
  11007. $RM -r conftest*
  11008. # Allow CC to be a program name with arguments.
  11009. lt_save_CC=$CC
  11010. lt_save_CFLAGS=$CFLAGS
  11011. lt_save_LD=$LD
  11012. lt_save_GCC=$GCC
  11013. GCC=$GXX
  11014. lt_save_with_gnu_ld=$with_gnu_ld
  11015. lt_save_path_LD=$lt_cv_path_LD
  11016. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11017. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11018. else
  11019. $as_unset lt_cv_prog_gnu_ld
  11020. fi
  11021. if test -n "${lt_cv_path_LDCXX+set}"; then
  11022. lt_cv_path_LD=$lt_cv_path_LDCXX
  11023. else
  11024. $as_unset lt_cv_path_LD
  11025. fi
  11026. test -z "${LDCXX+set}" || LD=$LDCXX
  11027. CC=${CXX-"c++"}
  11028. CFLAGS=$CXXFLAGS
  11029. compiler=$CC
  11030. compiler_CXX=$CC
  11031. for cc_temp in $compiler""; do
  11032. case $cc_temp in
  11033. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11034. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11035. \-*) ;;
  11036. *) break;;
  11037. esac
  11038. done
  11039. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11040. if test -n "$compiler"; then
  11041. # We don't want -fno-exception when compiling C++ code, so set the
  11042. # no_builtin_flag separately
  11043. if test "$GXX" = yes; then
  11044. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11045. else
  11046. lt_prog_compiler_no_builtin_flag_CXX=
  11047. fi
  11048. if test "$GXX" = yes; then
  11049. # Set up default GNU C++ configuration
  11050. # Check whether --with-gnu-ld was given.
  11051. if test "${with_gnu_ld+set}" = set; then :
  11052. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11053. else
  11054. with_gnu_ld=no
  11055. fi
  11056. ac_prog=ld
  11057. if test "$GCC" = yes; then
  11058. # Check if gcc -print-prog-name=ld gives a path.
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11060. $as_echo_n "checking for ld used by $CC... " >&6; }
  11061. case $host in
  11062. *-*-mingw*)
  11063. # gcc leaves a trailing carriage return which upsets mingw
  11064. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11065. *)
  11066. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11067. esac
  11068. case $ac_prog in
  11069. # Accept absolute paths.
  11070. [\\/]* | ?:[\\/]*)
  11071. re_direlt='/[^/][^/]*/\.\./'
  11072. # Canonicalize the pathname of ld
  11073. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11074. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11075. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11076. done
  11077. test -z "$LD" && LD="$ac_prog"
  11078. ;;
  11079. "")
  11080. # If it fails, then pretend we aren't using GCC.
  11081. ac_prog=ld
  11082. ;;
  11083. *)
  11084. # If it is relative, then search for the first ld in PATH.
  11085. with_gnu_ld=unknown
  11086. ;;
  11087. esac
  11088. elif test "$with_gnu_ld" = yes; then
  11089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11090. $as_echo_n "checking for GNU ld... " >&6; }
  11091. else
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11093. $as_echo_n "checking for non-GNU ld... " >&6; }
  11094. fi
  11095. if ${lt_cv_path_LD+:} false; then :
  11096. $as_echo_n "(cached) " >&6
  11097. else
  11098. if test -z "$LD"; then
  11099. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11100. for ac_dir in $PATH; do
  11101. IFS="$lt_save_ifs"
  11102. test -z "$ac_dir" && ac_dir=.
  11103. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11104. lt_cv_path_LD="$ac_dir/$ac_prog"
  11105. # Check to see if the program is GNU ld. I'd rather use --version,
  11106. # but apparently some variants of GNU ld only accept -v.
  11107. # Break only if it was the GNU/non-GNU ld that we prefer.
  11108. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11109. *GNU* | *'with BFD'*)
  11110. test "$with_gnu_ld" != no && break
  11111. ;;
  11112. *)
  11113. test "$with_gnu_ld" != yes && break
  11114. ;;
  11115. esac
  11116. fi
  11117. done
  11118. IFS="$lt_save_ifs"
  11119. else
  11120. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11121. fi
  11122. fi
  11123. LD="$lt_cv_path_LD"
  11124. if test -n "$LD"; then
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11126. $as_echo "$LD" >&6; }
  11127. else
  11128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11129. $as_echo "no" >&6; }
  11130. fi
  11131. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11133. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11134. if ${lt_cv_prog_gnu_ld+:} false; then :
  11135. $as_echo_n "(cached) " >&6
  11136. else
  11137. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11138. case `$LD -v 2>&1 </dev/null` in
  11139. *GNU* | *'with BFD'*)
  11140. lt_cv_prog_gnu_ld=yes
  11141. ;;
  11142. *)
  11143. lt_cv_prog_gnu_ld=no
  11144. ;;
  11145. esac
  11146. fi
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11148. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11149. with_gnu_ld=$lt_cv_prog_gnu_ld
  11150. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11151. # archiving commands below assume that GNU ld is being used.
  11152. if test "$with_gnu_ld" = yes; then
  11153. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11154. 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'
  11155. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11156. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11157. # If archive_cmds runs LD, not CC, wlarc should be empty
  11158. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11159. # investigate it a little bit more. (MM)
  11160. wlarc='${wl}'
  11161. # ancient GNU ld didn't support --whole-archive et. al.
  11162. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11163. $GREP 'no-whole-archive' > /dev/null; then
  11164. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11165. else
  11166. whole_archive_flag_spec_CXX=
  11167. fi
  11168. else
  11169. with_gnu_ld=no
  11170. wlarc=
  11171. # A generic and very simple default shared library creation
  11172. # command for GNU C++ for the case where it uses the native
  11173. # linker, instead of GNU ld. If possible, this setting should
  11174. # overridden to take advantage of the native linker features on
  11175. # the platform it is being used on.
  11176. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11177. fi
  11178. # Commands to make compiler produce verbose output that lists
  11179. # what "hidden" libraries, object files and flags are used when
  11180. # linking a shared library.
  11181. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11182. else
  11183. GXX=no
  11184. with_gnu_ld=no
  11185. wlarc=
  11186. fi
  11187. # PORTME: fill in a description of your system's C++ link characteristics
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11189. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11190. ld_shlibs_CXX=yes
  11191. case $host_os in
  11192. aix3*)
  11193. # FIXME: insert proper C++ library support
  11194. ld_shlibs_CXX=no
  11195. ;;
  11196. aix[4-9]*)
  11197. if test "$host_cpu" = ia64; then
  11198. # On IA64, the linker does run time linking by default, so we don't
  11199. # have to do anything special.
  11200. aix_use_runtimelinking=no
  11201. exp_sym_flag='-Bexport'
  11202. no_entry_flag=""
  11203. else
  11204. aix_use_runtimelinking=no
  11205. # Test if we are trying to use run time linking or normal
  11206. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11207. # need to do runtime linking.
  11208. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11209. for ld_flag in $LDFLAGS; do
  11210. case $ld_flag in
  11211. *-brtl*)
  11212. aix_use_runtimelinking=yes
  11213. break
  11214. ;;
  11215. esac
  11216. done
  11217. ;;
  11218. esac
  11219. exp_sym_flag='-bexport'
  11220. no_entry_flag='-bnoentry'
  11221. fi
  11222. # When large executables or shared objects are built, AIX ld can
  11223. # have problems creating the table of contents. If linking a library
  11224. # or program results in "error TOC overflow" add -mminimal-toc to
  11225. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11226. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11227. archive_cmds_CXX=''
  11228. hardcode_direct_CXX=yes
  11229. hardcode_direct_absolute_CXX=yes
  11230. hardcode_libdir_separator_CXX=':'
  11231. link_all_deplibs_CXX=yes
  11232. file_list_spec_CXX='${wl}-f,'
  11233. if test "$GXX" = yes; then
  11234. case $host_os in aix4.[012]|aix4.[012].*)
  11235. # We only want to do this on AIX 4.2 and lower, the check
  11236. # below for broken collect2 doesn't work under 4.3+
  11237. collect2name=`${CC} -print-prog-name=collect2`
  11238. if test -f "$collect2name" &&
  11239. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11240. then
  11241. # We have reworked collect2
  11242. :
  11243. else
  11244. # We have old collect2
  11245. hardcode_direct_CXX=unsupported
  11246. # It fails to find uninstalled libraries when the uninstalled
  11247. # path is not listed in the libpath. Setting hardcode_minus_L
  11248. # to unsupported forces relinking
  11249. hardcode_minus_L_CXX=yes
  11250. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11251. hardcode_libdir_separator_CXX=
  11252. fi
  11253. esac
  11254. shared_flag='-shared'
  11255. if test "$aix_use_runtimelinking" = yes; then
  11256. shared_flag="$shared_flag "'${wl}-G'
  11257. fi
  11258. else
  11259. # not using gcc
  11260. if test "$host_cpu" = ia64; then
  11261. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11262. # chokes on -Wl,-G. The following line is correct:
  11263. shared_flag='-G'
  11264. else
  11265. if test "$aix_use_runtimelinking" = yes; then
  11266. shared_flag='${wl}-G'
  11267. else
  11268. shared_flag='${wl}-bM:SRE'
  11269. fi
  11270. fi
  11271. fi
  11272. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11273. # It seems that -bexpall does not export symbols beginning with
  11274. # underscore (_), so it is better to generate a list of symbols to
  11275. # export.
  11276. always_export_symbols_CXX=yes
  11277. if test "$aix_use_runtimelinking" = yes; then
  11278. # Warning - without using the other runtime loading flags (-brtl),
  11279. # -berok will link without error, but may produce a broken library.
  11280. allow_undefined_flag_CXX='-berok'
  11281. # Determine the default libpath from the value encoded in an empty
  11282. # executable.
  11283. if test "${lt_cv_aix_libpath+set}" = set; then
  11284. aix_libpath=$lt_cv_aix_libpath
  11285. else
  11286. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11290. /* end confdefs.h. */
  11291. int
  11292. main ()
  11293. {
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. if ac_fn_cxx_try_link "$LINENO"; then :
  11299. lt_aix_libpath_sed='
  11300. /Import File Strings/,/^$/ {
  11301. /^0/ {
  11302. s/^0 *\([^ ]*\) *$/\1/
  11303. p
  11304. }
  11305. }'
  11306. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11307. # Check for a 64-bit object if we didn't find anything.
  11308. if test -z "$lt_cv_aix_libpath__CXX"; then
  11309. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11310. fi
  11311. fi
  11312. rm -f core conftest.err conftest.$ac_objext \
  11313. conftest$ac_exeext conftest.$ac_ext
  11314. if test -z "$lt_cv_aix_libpath__CXX"; then
  11315. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11316. fi
  11317. fi
  11318. aix_libpath=$lt_cv_aix_libpath__CXX
  11319. fi
  11320. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11321. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11322. else
  11323. if test "$host_cpu" = ia64; then
  11324. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11325. allow_undefined_flag_CXX="-z nodefs"
  11326. 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"
  11327. else
  11328. # Determine the default libpath from the value encoded in an
  11329. # empty executable.
  11330. if test "${lt_cv_aix_libpath+set}" = set; then
  11331. aix_libpath=$lt_cv_aix_libpath
  11332. else
  11333. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11334. $as_echo_n "(cached) " >&6
  11335. else
  11336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11337. /* end confdefs.h. */
  11338. int
  11339. main ()
  11340. {
  11341. ;
  11342. return 0;
  11343. }
  11344. _ACEOF
  11345. if ac_fn_cxx_try_link "$LINENO"; then :
  11346. lt_aix_libpath_sed='
  11347. /Import File Strings/,/^$/ {
  11348. /^0/ {
  11349. s/^0 *\([^ ]*\) *$/\1/
  11350. p
  11351. }
  11352. }'
  11353. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11354. # Check for a 64-bit object if we didn't find anything.
  11355. if test -z "$lt_cv_aix_libpath__CXX"; then
  11356. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11357. fi
  11358. fi
  11359. rm -f core conftest.err conftest.$ac_objext \
  11360. conftest$ac_exeext conftest.$ac_ext
  11361. if test -z "$lt_cv_aix_libpath__CXX"; then
  11362. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11363. fi
  11364. fi
  11365. aix_libpath=$lt_cv_aix_libpath__CXX
  11366. fi
  11367. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11368. # Warning - without using the other run time loading flags,
  11369. # -berok will link without error, but may produce a broken library.
  11370. no_undefined_flag_CXX=' ${wl}-bernotok'
  11371. allow_undefined_flag_CXX=' ${wl}-berok'
  11372. if test "$with_gnu_ld" = yes; then
  11373. # We only use this code for GNU lds that support --whole-archive.
  11374. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11375. else
  11376. # Exported symbols can be pulled into shared objects from archives
  11377. whole_archive_flag_spec_CXX='$convenience'
  11378. fi
  11379. archive_cmds_need_lc_CXX=yes
  11380. # This is similar to how AIX traditionally builds its shared
  11381. # libraries.
  11382. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11383. fi
  11384. fi
  11385. ;;
  11386. beos*)
  11387. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11388. allow_undefined_flag_CXX=unsupported
  11389. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11390. # support --undefined. This deserves some investigation. FIXME
  11391. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11392. else
  11393. ld_shlibs_CXX=no
  11394. fi
  11395. ;;
  11396. chorus*)
  11397. case $cc_basename in
  11398. *)
  11399. # FIXME: insert proper C++ library support
  11400. ld_shlibs_CXX=no
  11401. ;;
  11402. esac
  11403. ;;
  11404. cygwin* | mingw* | pw32* | cegcc*)
  11405. case $GXX,$cc_basename in
  11406. ,cl* | no,cl*)
  11407. # Native MSVC
  11408. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11409. # no search path for DLLs.
  11410. hardcode_libdir_flag_spec_CXX=' '
  11411. allow_undefined_flag_CXX=unsupported
  11412. always_export_symbols_CXX=yes
  11413. file_list_spec_CXX='@'
  11414. # Tell ltmain to make .lib files, not .a files.
  11415. libext=lib
  11416. # Tell ltmain to make .dll files, not .so files.
  11417. shrext_cmds=".dll"
  11418. # FIXME: Setting linknames here is a bad hack.
  11419. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11420. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11421. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11422. else
  11423. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11424. fi~
  11425. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11426. linknames='
  11427. # The linker will not automatically build a static lib if we build a DLL.
  11428. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11429. enable_shared_with_static_runtimes_CXX=yes
  11430. # Don't use ranlib
  11431. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11432. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11433. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11434. case $lt_outputfile in
  11435. *.exe|*.EXE) ;;
  11436. *)
  11437. lt_outputfile="$lt_outputfile.exe"
  11438. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11439. ;;
  11440. esac~
  11441. func_to_tool_file "$lt_outputfile"~
  11442. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11443. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11444. $RM "$lt_outputfile.manifest";
  11445. fi'
  11446. ;;
  11447. *)
  11448. # g++
  11449. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11450. # as there is no search path for DLLs.
  11451. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11452. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11453. allow_undefined_flag_CXX=unsupported
  11454. always_export_symbols_CXX=no
  11455. enable_shared_with_static_runtimes_CXX=yes
  11456. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11457. 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'
  11458. # If the export-symbols file already is a .def file (1st line
  11459. # is EXPORTS), use it as is; otherwise, prepend...
  11460. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11461. cp $export_symbols $output_objdir/$soname.def;
  11462. else
  11463. echo EXPORTS > $output_objdir/$soname.def;
  11464. cat $export_symbols >> $output_objdir/$soname.def;
  11465. fi~
  11466. $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'
  11467. else
  11468. ld_shlibs_CXX=no
  11469. fi
  11470. ;;
  11471. esac
  11472. ;;
  11473. darwin* | rhapsody*)
  11474. archive_cmds_need_lc_CXX=no
  11475. hardcode_direct_CXX=no
  11476. hardcode_automatic_CXX=yes
  11477. hardcode_shlibpath_var_CXX=unsupported
  11478. if test "$lt_cv_ld_force_load" = "yes"; then
  11479. 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\"`'
  11480. else
  11481. whole_archive_flag_spec_CXX=''
  11482. fi
  11483. link_all_deplibs_CXX=yes
  11484. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11485. case $cc_basename in
  11486. ifort*) _lt_dar_can_shared=yes ;;
  11487. *) _lt_dar_can_shared=$GCC ;;
  11488. esac
  11489. if test "$_lt_dar_can_shared" = "yes"; then
  11490. output_verbose_link_cmd=func_echo_all
  11491. 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}"
  11492. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11493. 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}"
  11494. 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}"
  11495. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11496. 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}"
  11497. 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}"
  11498. fi
  11499. else
  11500. ld_shlibs_CXX=no
  11501. fi
  11502. ;;
  11503. dgux*)
  11504. case $cc_basename in
  11505. ec++*)
  11506. # FIXME: insert proper C++ library support
  11507. ld_shlibs_CXX=no
  11508. ;;
  11509. ghcx*)
  11510. # Green Hills C++ Compiler
  11511. # FIXME: insert proper C++ library support
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. *)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. esac
  11519. ;;
  11520. freebsd2.*)
  11521. # C++ shared libraries reported to be fairly broken before
  11522. # switch to ELF
  11523. ld_shlibs_CXX=no
  11524. ;;
  11525. freebsd-elf*)
  11526. archive_cmds_need_lc_CXX=no
  11527. ;;
  11528. freebsd* | dragonfly*)
  11529. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11530. # conventions
  11531. ld_shlibs_CXX=yes
  11532. ;;
  11533. gnu*)
  11534. ;;
  11535. haiku*)
  11536. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11537. link_all_deplibs_CXX=yes
  11538. ;;
  11539. hpux9*)
  11540. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11541. hardcode_libdir_separator_CXX=:
  11542. export_dynamic_flag_spec_CXX='${wl}-E'
  11543. hardcode_direct_CXX=yes
  11544. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11545. # but as the default
  11546. # location of the library.
  11547. case $cc_basename in
  11548. CC*)
  11549. # FIXME: insert proper C++ library support
  11550. ld_shlibs_CXX=no
  11551. ;;
  11552. aCC*)
  11553. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11554. # Commands to make compiler produce verbose output that lists
  11555. # what "hidden" libraries, object files and flags are used when
  11556. # linking a shared library.
  11557. #
  11558. # There doesn't appear to be a way to prevent this compiler from
  11559. # explicitly linking system object files so we need to strip them
  11560. # from the output so that they don't get included in the library
  11561. # dependencies.
  11562. 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"'
  11563. ;;
  11564. *)
  11565. if test "$GXX" = yes; then
  11566. 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11567. else
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. fi
  11571. ;;
  11572. esac
  11573. ;;
  11574. hpux10*|hpux11*)
  11575. if test $with_gnu_ld = no; then
  11576. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11577. hardcode_libdir_separator_CXX=:
  11578. case $host_cpu in
  11579. hppa*64*|ia64*)
  11580. ;;
  11581. *)
  11582. export_dynamic_flag_spec_CXX='${wl}-E'
  11583. ;;
  11584. esac
  11585. fi
  11586. case $host_cpu in
  11587. hppa*64*|ia64*)
  11588. hardcode_direct_CXX=no
  11589. hardcode_shlibpath_var_CXX=no
  11590. ;;
  11591. *)
  11592. hardcode_direct_CXX=yes
  11593. hardcode_direct_absolute_CXX=yes
  11594. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11595. # but as the default
  11596. # location of the library.
  11597. ;;
  11598. esac
  11599. case $cc_basename in
  11600. CC*)
  11601. # FIXME: insert proper C++ library support
  11602. ld_shlibs_CXX=no
  11603. ;;
  11604. aCC*)
  11605. case $host_cpu in
  11606. hppa*64*)
  11607. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11608. ;;
  11609. ia64*)
  11610. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11611. ;;
  11612. *)
  11613. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11614. ;;
  11615. esac
  11616. # Commands to make compiler produce verbose output that lists
  11617. # what "hidden" libraries, object files and flags are used when
  11618. # linking a shared library.
  11619. #
  11620. # There doesn't appear to be a way to prevent this compiler from
  11621. # explicitly linking system object files so we need to strip them
  11622. # from the output so that they don't get included in the library
  11623. # dependencies.
  11624. 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"'
  11625. ;;
  11626. *)
  11627. if test "$GXX" = yes; then
  11628. if test $with_gnu_ld = no; then
  11629. case $host_cpu in
  11630. hppa*64*)
  11631. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11632. ;;
  11633. ia64*)
  11634. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11635. ;;
  11636. *)
  11637. 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'
  11638. ;;
  11639. esac
  11640. fi
  11641. else
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. fi
  11645. ;;
  11646. esac
  11647. ;;
  11648. interix[3-9]*)
  11649. hardcode_direct_CXX=no
  11650. hardcode_shlibpath_var_CXX=no
  11651. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11652. export_dynamic_flag_spec_CXX='${wl}-E'
  11653. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11654. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11655. # default) and relocated if they conflict, which is a slow very memory
  11656. # consuming and fragmenting process. To avoid this, we pick a random,
  11657. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11658. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11659. 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'
  11660. 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'
  11661. ;;
  11662. irix5* | irix6*)
  11663. case $cc_basename in
  11664. CC*)
  11665. # SGI C++
  11666. 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'
  11667. # Archives containing C++ object files must be created using
  11668. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11669. # necessary to make sure instantiated templates are included
  11670. # in the archive.
  11671. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11672. ;;
  11673. *)
  11674. if test "$GXX" = yes; then
  11675. if test "$with_gnu_ld" = no; then
  11676. 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'
  11677. else
  11678. 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'
  11679. fi
  11680. fi
  11681. link_all_deplibs_CXX=yes
  11682. ;;
  11683. esac
  11684. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11685. hardcode_libdir_separator_CXX=:
  11686. inherit_rpath_CXX=yes
  11687. ;;
  11688. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11689. case $cc_basename in
  11690. KCC*)
  11691. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11692. # KCC will only create a shared library if the output file
  11693. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11694. # to its proper name (with version) after linking.
  11695. 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'
  11696. 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'
  11697. # Commands to make compiler produce verbose output that lists
  11698. # what "hidden" libraries, object files and flags are used when
  11699. # linking a shared library.
  11700. #
  11701. # There doesn't appear to be a way to prevent this compiler from
  11702. # explicitly linking system object files so we need to strip them
  11703. # from the output so that they don't get included in the library
  11704. # dependencies.
  11705. 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"'
  11706. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11707. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11708. # Archives containing C++ object files must be created using
  11709. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11710. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11711. ;;
  11712. icpc* | ecpc* )
  11713. # Intel C++
  11714. with_gnu_ld=yes
  11715. # version 8.0 and above of icpc choke on multiply defined symbols
  11716. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11717. # earlier do not add the objects themselves.
  11718. case `$CC -V 2>&1` in
  11719. *"Version 7."*)
  11720. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11721. 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'
  11722. ;;
  11723. *) # Version 8.0 or newer
  11724. tmp_idyn=
  11725. case $host_cpu in
  11726. ia64*) tmp_idyn=' -i_dynamic';;
  11727. esac
  11728. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11729. 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'
  11730. ;;
  11731. esac
  11732. archive_cmds_need_lc_CXX=no
  11733. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11734. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11735. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11736. ;;
  11737. pgCC* | pgcpp*)
  11738. # Portland Group C++ compiler
  11739. case `$CC -V` in
  11740. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11741. prelink_cmds_CXX='tpldir=Template.dir~
  11742. rm -rf $tpldir~
  11743. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11744. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11745. old_archive_cmds_CXX='tpldir=Template.dir~
  11746. rm -rf $tpldir~
  11747. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11748. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11749. $RANLIB $oldlib'
  11750. archive_cmds_CXX='tpldir=Template.dir~
  11751. rm -rf $tpldir~
  11752. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11753. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11754. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11755. rm -rf $tpldir~
  11756. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11757. $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'
  11758. ;;
  11759. *) # Version 6 and above use weak symbols
  11760. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11761. 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'
  11762. ;;
  11763. esac
  11764. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11765. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11766. 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'
  11767. ;;
  11768. cxx*)
  11769. # Compaq C++
  11770. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11771. 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'
  11772. runpath_var=LD_RUN_PATH
  11773. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11774. hardcode_libdir_separator_CXX=:
  11775. # Commands to make compiler produce verbose output that lists
  11776. # what "hidden" libraries, object files and flags are used when
  11777. # linking a shared library.
  11778. #
  11779. # There doesn't appear to be a way to prevent this compiler from
  11780. # explicitly linking system object files so we need to strip them
  11781. # from the output so that they don't get included in the library
  11782. # dependencies.
  11783. 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'
  11784. ;;
  11785. xl* | mpixl* | bgxl*)
  11786. # IBM XL 8.0 on PPC, with GNU ld
  11787. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11788. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11789. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11790. if test "x$supports_anon_versioning" = xyes; then
  11791. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11792. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11793. echo "local: *; };" >> $output_objdir/$libname.ver~
  11794. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11795. fi
  11796. ;;
  11797. *)
  11798. case `$CC -V 2>&1 | sed 5q` in
  11799. *Sun\ C*)
  11800. # Sun C++ 5.9
  11801. no_undefined_flag_CXX=' -zdefs'
  11802. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11803. 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'
  11804. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11805. 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'
  11806. compiler_needs_object_CXX=yes
  11807. # Not sure whether something based on
  11808. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11809. # would be better.
  11810. output_verbose_link_cmd='func_echo_all'
  11811. # Archives containing C++ object files must be created using
  11812. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11813. # necessary to make sure instantiated templates are included
  11814. # in the archive.
  11815. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11816. ;;
  11817. esac
  11818. ;;
  11819. esac
  11820. ;;
  11821. lynxos*)
  11822. # FIXME: insert proper C++ library support
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. m88k*)
  11826. # FIXME: insert proper C++ library support
  11827. ld_shlibs_CXX=no
  11828. ;;
  11829. mvs*)
  11830. case $cc_basename in
  11831. cxx*)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. *)
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. ;;
  11839. esac
  11840. ;;
  11841. netbsd*)
  11842. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11843. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11844. wlarc=
  11845. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11846. hardcode_direct_CXX=yes
  11847. hardcode_shlibpath_var_CXX=no
  11848. fi
  11849. # Workaround some broken pre-1.5 toolchains
  11850. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11851. ;;
  11852. *nto* | *qnx*)
  11853. ld_shlibs_CXX=yes
  11854. ;;
  11855. openbsd2*)
  11856. # C++ shared libraries are fairly broken
  11857. ld_shlibs_CXX=no
  11858. ;;
  11859. openbsd*)
  11860. if test -f /usr/libexec/ld.so; then
  11861. hardcode_direct_CXX=yes
  11862. hardcode_shlibpath_var_CXX=no
  11863. hardcode_direct_absolute_CXX=yes
  11864. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11865. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11866. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11867. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11868. export_dynamic_flag_spec_CXX='${wl}-E'
  11869. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11870. fi
  11871. output_verbose_link_cmd=func_echo_all
  11872. else
  11873. ld_shlibs_CXX=no
  11874. fi
  11875. ;;
  11876. osf3* | osf4* | osf5*)
  11877. case $cc_basename in
  11878. KCC*)
  11879. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11880. # KCC will only create a shared library if the output file
  11881. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11882. # to its proper name (with version) after linking.
  11883. 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'
  11884. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11885. hardcode_libdir_separator_CXX=:
  11886. # Archives containing C++ object files must be created using
  11887. # the KAI C++ compiler.
  11888. case $host in
  11889. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11890. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11891. esac
  11892. ;;
  11893. RCC*)
  11894. # Rational C++ 2.4.1
  11895. # FIXME: insert proper C++ library support
  11896. ld_shlibs_CXX=no
  11897. ;;
  11898. cxx*)
  11899. case $host in
  11900. osf3*)
  11901. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11902. 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'
  11903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11904. ;;
  11905. *)
  11906. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11907. 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'
  11908. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11909. echo "-hidden">> $lib.exp~
  11910. $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~
  11911. $RM $lib.exp'
  11912. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11913. ;;
  11914. esac
  11915. hardcode_libdir_separator_CXX=:
  11916. # Commands to make compiler produce verbose output that lists
  11917. # what "hidden" libraries, object files and flags are used when
  11918. # linking a shared library.
  11919. #
  11920. # There doesn't appear to be a way to prevent this compiler from
  11921. # explicitly linking system object files so we need to strip them
  11922. # from the output so that they don't get included in the library
  11923. # dependencies.
  11924. 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"'
  11925. ;;
  11926. *)
  11927. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11928. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11929. case $host in
  11930. osf3*)
  11931. 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'
  11932. ;;
  11933. *)
  11934. 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'
  11935. ;;
  11936. esac
  11937. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11938. hardcode_libdir_separator_CXX=:
  11939. # Commands to make compiler produce verbose output that lists
  11940. # what "hidden" libraries, object files and flags are used when
  11941. # linking a shared library.
  11942. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11943. else
  11944. # FIXME: insert proper C++ library support
  11945. ld_shlibs_CXX=no
  11946. fi
  11947. ;;
  11948. esac
  11949. ;;
  11950. psos*)
  11951. # FIXME: insert proper C++ library support
  11952. ld_shlibs_CXX=no
  11953. ;;
  11954. sunos4*)
  11955. case $cc_basename in
  11956. CC*)
  11957. # Sun C++ 4.x
  11958. # FIXME: insert proper C++ library support
  11959. ld_shlibs_CXX=no
  11960. ;;
  11961. lcc*)
  11962. # Lucid
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. *)
  11967. # FIXME: insert proper C++ library support
  11968. ld_shlibs_CXX=no
  11969. ;;
  11970. esac
  11971. ;;
  11972. solaris*)
  11973. case $cc_basename in
  11974. CC* | sunCC*)
  11975. # Sun C++ 4.2, 5.x and Centerline C++
  11976. archive_cmds_need_lc_CXX=yes
  11977. no_undefined_flag_CXX=' -zdefs'
  11978. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11979. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11980. $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'
  11981. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11982. hardcode_shlibpath_var_CXX=no
  11983. case $host_os in
  11984. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11985. *)
  11986. # The compiler driver will combine and reorder linker options,
  11987. # but understands `-z linker_flag'.
  11988. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11989. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11990. ;;
  11991. esac
  11992. link_all_deplibs_CXX=yes
  11993. output_verbose_link_cmd='func_echo_all'
  11994. # Archives containing C++ object files must be created using
  11995. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11996. # necessary to make sure instantiated templates are included
  11997. # in the archive.
  11998. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11999. ;;
  12000. gcx*)
  12001. # Green Hills C++ Compiler
  12002. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12003. # The C++ compiler must be used to create the archive.
  12004. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12005. ;;
  12006. *)
  12007. # GNU C++ compiler with Solaris linker
  12008. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12009. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12010. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12011. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12012. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12013. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12014. # Commands to make compiler produce verbose output that lists
  12015. # what "hidden" libraries, object files and flags are used when
  12016. # linking a shared library.
  12017. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12018. else
  12019. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12020. # platform.
  12021. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12022. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12023. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12024. # Commands to make compiler produce verbose output that lists
  12025. # what "hidden" libraries, object files and flags are used when
  12026. # linking a shared library.
  12027. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12028. fi
  12029. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12030. case $host_os in
  12031. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12032. *)
  12033. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12034. ;;
  12035. esac
  12036. fi
  12037. ;;
  12038. esac
  12039. ;;
  12040. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12041. no_undefined_flag_CXX='${wl}-z,text'
  12042. archive_cmds_need_lc_CXX=no
  12043. hardcode_shlibpath_var_CXX=no
  12044. runpath_var='LD_RUN_PATH'
  12045. case $cc_basename in
  12046. CC*)
  12047. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12048. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12049. ;;
  12050. *)
  12051. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12052. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12053. ;;
  12054. esac
  12055. ;;
  12056. sysv5* | sco3.2v5* | sco5v6*)
  12057. # Note: We can NOT use -z defs as we might desire, because we do not
  12058. # link with -lc, and that would cause any symbols used from libc to
  12059. # always be unresolved, which means just about no library would
  12060. # ever link correctly. If we're not using GNU ld we use -z text
  12061. # though, which does catch some bad symbols but isn't as heavy-handed
  12062. # as -z defs.
  12063. no_undefined_flag_CXX='${wl}-z,text'
  12064. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12065. archive_cmds_need_lc_CXX=no
  12066. hardcode_shlibpath_var_CXX=no
  12067. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12068. hardcode_libdir_separator_CXX=':'
  12069. link_all_deplibs_CXX=yes
  12070. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12071. runpath_var='LD_RUN_PATH'
  12072. case $cc_basename in
  12073. CC*)
  12074. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12075. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12076. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12077. '"$old_archive_cmds_CXX"
  12078. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12079. '"$reload_cmds_CXX"
  12080. ;;
  12081. *)
  12082. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12083. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12084. ;;
  12085. esac
  12086. ;;
  12087. tandem*)
  12088. case $cc_basename in
  12089. NCC*)
  12090. # NonStop-UX NCC 3.20
  12091. # FIXME: insert proper C++ library support
  12092. ld_shlibs_CXX=no
  12093. ;;
  12094. *)
  12095. # FIXME: insert proper C++ library support
  12096. ld_shlibs_CXX=no
  12097. ;;
  12098. esac
  12099. ;;
  12100. vxworks*)
  12101. # FIXME: insert proper C++ library support
  12102. ld_shlibs_CXX=no
  12103. ;;
  12104. *)
  12105. # FIXME: insert proper C++ library support
  12106. ld_shlibs_CXX=no
  12107. ;;
  12108. esac
  12109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12110. $as_echo "$ld_shlibs_CXX" >&6; }
  12111. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12112. GCC_CXX="$GXX"
  12113. LD_CXX="$LD"
  12114. ## CAVEAT EMPTOR:
  12115. ## There is no encapsulation within the following macros, do not change
  12116. ## the running order or otherwise move them around unless you know exactly
  12117. ## what you are doing...
  12118. # Dependencies to place before and after the object being linked:
  12119. predep_objects_CXX=
  12120. postdep_objects_CXX=
  12121. predeps_CXX=
  12122. postdeps_CXX=
  12123. compiler_lib_search_path_CXX=
  12124. cat > conftest.$ac_ext <<_LT_EOF
  12125. class Foo
  12126. {
  12127. public:
  12128. Foo (void) { a = 0; }
  12129. private:
  12130. int a;
  12131. };
  12132. _LT_EOF
  12133. _lt_libdeps_save_CFLAGS=$CFLAGS
  12134. case "$CC $CFLAGS " in #(
  12135. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12136. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12137. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12138. esac
  12139. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12140. (eval $ac_compile) 2>&5
  12141. ac_status=$?
  12142. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12143. test $ac_status = 0; }; then
  12144. # Parse the compiler output and extract the necessary
  12145. # objects, libraries and library flags.
  12146. # Sentinel used to keep track of whether or not we are before
  12147. # the conftest object file.
  12148. pre_test_object_deps_done=no
  12149. for p in `eval "$output_verbose_link_cmd"`; do
  12150. case ${prev}${p} in
  12151. -L* | -R* | -l*)
  12152. # Some compilers place space between "-{L,R}" and the path.
  12153. # Remove the space.
  12154. if test $p = "-L" ||
  12155. test $p = "-R"; then
  12156. prev=$p
  12157. continue
  12158. fi
  12159. # Expand the sysroot to ease extracting the directories later.
  12160. if test -z "$prev"; then
  12161. case $p in
  12162. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12163. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12164. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12165. esac
  12166. fi
  12167. case $p in
  12168. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12169. esac
  12170. if test "$pre_test_object_deps_done" = no; then
  12171. case ${prev} in
  12172. -L | -R)
  12173. # Internal compiler library paths should come after those
  12174. # provided the user. The postdeps already come after the
  12175. # user supplied libs so there is no need to process them.
  12176. if test -z "$compiler_lib_search_path_CXX"; then
  12177. compiler_lib_search_path_CXX="${prev}${p}"
  12178. else
  12179. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12180. fi
  12181. ;;
  12182. # The "-l" case would never come before the object being
  12183. # linked, so don't bother handling this case.
  12184. esac
  12185. else
  12186. if test -z "$postdeps_CXX"; then
  12187. postdeps_CXX="${prev}${p}"
  12188. else
  12189. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12190. fi
  12191. fi
  12192. prev=
  12193. ;;
  12194. *.lto.$objext) ;; # Ignore GCC LTO objects
  12195. *.$objext)
  12196. # This assumes that the test object file only shows up
  12197. # once in the compiler output.
  12198. if test "$p" = "conftest.$objext"; then
  12199. pre_test_object_deps_done=yes
  12200. continue
  12201. fi
  12202. if test "$pre_test_object_deps_done" = no; then
  12203. if test -z "$predep_objects_CXX"; then
  12204. predep_objects_CXX="$p"
  12205. else
  12206. predep_objects_CXX="$predep_objects_CXX $p"
  12207. fi
  12208. else
  12209. if test -z "$postdep_objects_CXX"; then
  12210. postdep_objects_CXX="$p"
  12211. else
  12212. postdep_objects_CXX="$postdep_objects_CXX $p"
  12213. fi
  12214. fi
  12215. ;;
  12216. *) ;; # Ignore the rest.
  12217. esac
  12218. done
  12219. # Clean up.
  12220. rm -f a.out a.exe
  12221. else
  12222. echo "libtool.m4: error: problem compiling CXX test program"
  12223. fi
  12224. $RM -f confest.$objext
  12225. CFLAGS=$_lt_libdeps_save_CFLAGS
  12226. # PORTME: override above test on systems where it is broken
  12227. case $host_os in
  12228. interix[3-9]*)
  12229. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12230. # hack all around it, let's just trust "g++" to DTRT.
  12231. predep_objects_CXX=
  12232. postdep_objects_CXX=
  12233. postdeps_CXX=
  12234. ;;
  12235. linux*)
  12236. case `$CC -V 2>&1 | sed 5q` in
  12237. *Sun\ C*)
  12238. # Sun C++ 5.9
  12239. # The more standards-conforming stlport4 library is
  12240. # incompatible with the Cstd library. Avoid specifying
  12241. # it if it's in CXXFLAGS. Ignore libCrun as
  12242. # -library=stlport4 depends on it.
  12243. case " $CXX $CXXFLAGS " in
  12244. *" -library=stlport4 "*)
  12245. solaris_use_stlport4=yes
  12246. ;;
  12247. esac
  12248. if test "$solaris_use_stlport4" != yes; then
  12249. postdeps_CXX='-library=Cstd -library=Crun'
  12250. fi
  12251. ;;
  12252. esac
  12253. ;;
  12254. solaris*)
  12255. case $cc_basename in
  12256. CC* | sunCC*)
  12257. # The more standards-conforming stlport4 library is
  12258. # incompatible with the Cstd library. Avoid specifying
  12259. # it if it's in CXXFLAGS. Ignore libCrun as
  12260. # -library=stlport4 depends on it.
  12261. case " $CXX $CXXFLAGS " in
  12262. *" -library=stlport4 "*)
  12263. solaris_use_stlport4=yes
  12264. ;;
  12265. esac
  12266. # Adding this requires a known-good setup of shared libraries for
  12267. # Sun compiler versions before 5.6, else PIC objects from an old
  12268. # archive will be linked into the output, leading to subtle bugs.
  12269. if test "$solaris_use_stlport4" != yes; then
  12270. postdeps_CXX='-library=Cstd -library=Crun'
  12271. fi
  12272. ;;
  12273. esac
  12274. ;;
  12275. esac
  12276. case " $postdeps_CXX " in
  12277. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12278. esac
  12279. compiler_lib_search_dirs_CXX=
  12280. if test -n "${compiler_lib_search_path_CXX}"; then
  12281. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12282. fi
  12283. lt_prog_compiler_wl_CXX=
  12284. lt_prog_compiler_pic_CXX=
  12285. lt_prog_compiler_static_CXX=
  12286. # C++ specific cases for pic, static, wl, etc.
  12287. if test "$GXX" = yes; then
  12288. lt_prog_compiler_wl_CXX='-Wl,'
  12289. lt_prog_compiler_static_CXX='-static'
  12290. case $host_os in
  12291. aix*)
  12292. # All AIX code is PIC.
  12293. if test "$host_cpu" = ia64; then
  12294. # AIX 5 now supports IA64 processor
  12295. lt_prog_compiler_static_CXX='-Bstatic'
  12296. fi
  12297. ;;
  12298. amigaos*)
  12299. case $host_cpu in
  12300. powerpc)
  12301. # see comment about AmigaOS4 .so support
  12302. lt_prog_compiler_pic_CXX='-fPIC'
  12303. ;;
  12304. m68k)
  12305. # FIXME: we need at least 68020 code to build shared libraries, but
  12306. # adding the `-m68020' flag to GCC prevents building anything better,
  12307. # like `-m68040'.
  12308. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12309. ;;
  12310. esac
  12311. ;;
  12312. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12313. # PIC is the default for these OSes.
  12314. ;;
  12315. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12316. # This hack is so that the source file can tell whether it is being
  12317. # built for inclusion in a dll (and should export symbols for example).
  12318. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12319. # (--disable-auto-import) libraries
  12320. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12321. ;;
  12322. darwin* | rhapsody*)
  12323. # PIC is the default on this platform
  12324. # Common symbols not allowed in MH_DYLIB files
  12325. lt_prog_compiler_pic_CXX='-fno-common'
  12326. ;;
  12327. *djgpp*)
  12328. # DJGPP does not support shared libraries at all
  12329. lt_prog_compiler_pic_CXX=
  12330. ;;
  12331. haiku*)
  12332. # PIC is the default for Haiku.
  12333. # The "-static" flag exists, but is broken.
  12334. lt_prog_compiler_static_CXX=
  12335. ;;
  12336. interix[3-9]*)
  12337. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12338. # Instead, we relocate shared libraries at runtime.
  12339. ;;
  12340. sysv4*MP*)
  12341. if test -d /usr/nec; then
  12342. lt_prog_compiler_pic_CXX=-Kconform_pic
  12343. fi
  12344. ;;
  12345. hpux*)
  12346. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12347. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12348. # sets the default TLS model and affects inlining.
  12349. case $host_cpu in
  12350. hppa*64*)
  12351. ;;
  12352. *)
  12353. lt_prog_compiler_pic_CXX='-fPIC'
  12354. ;;
  12355. esac
  12356. ;;
  12357. *qnx* | *nto*)
  12358. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12359. # it will coredump.
  12360. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12361. ;;
  12362. *)
  12363. lt_prog_compiler_pic_CXX='-fPIC'
  12364. ;;
  12365. esac
  12366. else
  12367. case $host_os in
  12368. aix[4-9]*)
  12369. # All AIX code is PIC.
  12370. if test "$host_cpu" = ia64; then
  12371. # AIX 5 now supports IA64 processor
  12372. lt_prog_compiler_static_CXX='-Bstatic'
  12373. else
  12374. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12375. fi
  12376. ;;
  12377. chorus*)
  12378. case $cc_basename in
  12379. cxch68*)
  12380. # Green Hills C++ Compiler
  12381. # _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"
  12382. ;;
  12383. esac
  12384. ;;
  12385. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12386. # This hack is so that the source file can tell whether it is being
  12387. # built for inclusion in a dll (and should export symbols for example).
  12388. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12389. ;;
  12390. dgux*)
  12391. case $cc_basename in
  12392. ec++*)
  12393. lt_prog_compiler_pic_CXX='-KPIC'
  12394. ;;
  12395. ghcx*)
  12396. # Green Hills C++ Compiler
  12397. lt_prog_compiler_pic_CXX='-pic'
  12398. ;;
  12399. *)
  12400. ;;
  12401. esac
  12402. ;;
  12403. freebsd* | dragonfly*)
  12404. # FreeBSD uses GNU C++
  12405. ;;
  12406. hpux9* | hpux10* | hpux11*)
  12407. case $cc_basename in
  12408. CC*)
  12409. lt_prog_compiler_wl_CXX='-Wl,'
  12410. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12411. if test "$host_cpu" != ia64; then
  12412. lt_prog_compiler_pic_CXX='+Z'
  12413. fi
  12414. ;;
  12415. aCC*)
  12416. lt_prog_compiler_wl_CXX='-Wl,'
  12417. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12418. case $host_cpu in
  12419. hppa*64*|ia64*)
  12420. # +Z the default
  12421. ;;
  12422. *)
  12423. lt_prog_compiler_pic_CXX='+Z'
  12424. ;;
  12425. esac
  12426. ;;
  12427. *)
  12428. ;;
  12429. esac
  12430. ;;
  12431. interix*)
  12432. # This is c89, which is MS Visual C++ (no shared libs)
  12433. # Anyone wants to do a port?
  12434. ;;
  12435. irix5* | irix6* | nonstopux*)
  12436. case $cc_basename in
  12437. CC*)
  12438. lt_prog_compiler_wl_CXX='-Wl,'
  12439. lt_prog_compiler_static_CXX='-non_shared'
  12440. # CC pic flag -KPIC is the default.
  12441. ;;
  12442. *)
  12443. ;;
  12444. esac
  12445. ;;
  12446. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12447. case $cc_basename in
  12448. KCC*)
  12449. # KAI C++ Compiler
  12450. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12451. lt_prog_compiler_pic_CXX='-fPIC'
  12452. ;;
  12453. ecpc* )
  12454. # old Intel C++ for x86_64 which still supported -KPIC.
  12455. lt_prog_compiler_wl_CXX='-Wl,'
  12456. lt_prog_compiler_pic_CXX='-KPIC'
  12457. lt_prog_compiler_static_CXX='-static'
  12458. ;;
  12459. icpc* )
  12460. # Intel C++, used to be incompatible with GCC.
  12461. # ICC 10 doesn't accept -KPIC any more.
  12462. lt_prog_compiler_wl_CXX='-Wl,'
  12463. lt_prog_compiler_pic_CXX='-fPIC'
  12464. lt_prog_compiler_static_CXX='-static'
  12465. ;;
  12466. pgCC* | pgcpp*)
  12467. # Portland Group C++ compiler
  12468. lt_prog_compiler_wl_CXX='-Wl,'
  12469. lt_prog_compiler_pic_CXX='-fpic'
  12470. lt_prog_compiler_static_CXX='-Bstatic'
  12471. ;;
  12472. cxx*)
  12473. # Compaq C++
  12474. # Make sure the PIC flag is empty. It appears that all Alpha
  12475. # Linux and Compaq Tru64 Unix objects are PIC.
  12476. lt_prog_compiler_pic_CXX=
  12477. lt_prog_compiler_static_CXX='-non_shared'
  12478. ;;
  12479. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12480. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12481. lt_prog_compiler_wl_CXX='-Wl,'
  12482. lt_prog_compiler_pic_CXX='-qpic'
  12483. lt_prog_compiler_static_CXX='-qstaticlink'
  12484. ;;
  12485. *)
  12486. case `$CC -V 2>&1 | sed 5q` in
  12487. *Sun\ C*)
  12488. # Sun C++ 5.9
  12489. lt_prog_compiler_pic_CXX='-KPIC'
  12490. lt_prog_compiler_static_CXX='-Bstatic'
  12491. lt_prog_compiler_wl_CXX='-Qoption ld '
  12492. ;;
  12493. esac
  12494. ;;
  12495. esac
  12496. ;;
  12497. lynxos*)
  12498. ;;
  12499. m88k*)
  12500. ;;
  12501. mvs*)
  12502. case $cc_basename in
  12503. cxx*)
  12504. lt_prog_compiler_pic_CXX='-W c,exportall'
  12505. ;;
  12506. *)
  12507. ;;
  12508. esac
  12509. ;;
  12510. netbsd*)
  12511. ;;
  12512. *qnx* | *nto*)
  12513. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12514. # it will coredump.
  12515. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12516. ;;
  12517. osf3* | osf4* | osf5*)
  12518. case $cc_basename in
  12519. KCC*)
  12520. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12521. ;;
  12522. RCC*)
  12523. # Rational C++ 2.4.1
  12524. lt_prog_compiler_pic_CXX='-pic'
  12525. ;;
  12526. cxx*)
  12527. # Digital/Compaq C++
  12528. lt_prog_compiler_wl_CXX='-Wl,'
  12529. # Make sure the PIC flag is empty. It appears that all Alpha
  12530. # Linux and Compaq Tru64 Unix objects are PIC.
  12531. lt_prog_compiler_pic_CXX=
  12532. lt_prog_compiler_static_CXX='-non_shared'
  12533. ;;
  12534. *)
  12535. ;;
  12536. esac
  12537. ;;
  12538. psos*)
  12539. ;;
  12540. solaris*)
  12541. case $cc_basename in
  12542. CC* | sunCC*)
  12543. # Sun C++ 4.2, 5.x and Centerline C++
  12544. lt_prog_compiler_pic_CXX='-KPIC'
  12545. lt_prog_compiler_static_CXX='-Bstatic'
  12546. lt_prog_compiler_wl_CXX='-Qoption ld '
  12547. ;;
  12548. gcx*)
  12549. # Green Hills C++ Compiler
  12550. lt_prog_compiler_pic_CXX='-PIC'
  12551. ;;
  12552. *)
  12553. ;;
  12554. esac
  12555. ;;
  12556. sunos4*)
  12557. case $cc_basename in
  12558. CC*)
  12559. # Sun C++ 4.x
  12560. lt_prog_compiler_pic_CXX='-pic'
  12561. lt_prog_compiler_static_CXX='-Bstatic'
  12562. ;;
  12563. lcc*)
  12564. # Lucid
  12565. lt_prog_compiler_pic_CXX='-pic'
  12566. ;;
  12567. *)
  12568. ;;
  12569. esac
  12570. ;;
  12571. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12572. case $cc_basename in
  12573. CC*)
  12574. lt_prog_compiler_wl_CXX='-Wl,'
  12575. lt_prog_compiler_pic_CXX='-KPIC'
  12576. lt_prog_compiler_static_CXX='-Bstatic'
  12577. ;;
  12578. esac
  12579. ;;
  12580. tandem*)
  12581. case $cc_basename in
  12582. NCC*)
  12583. # NonStop-UX NCC 3.20
  12584. lt_prog_compiler_pic_CXX='-KPIC'
  12585. ;;
  12586. *)
  12587. ;;
  12588. esac
  12589. ;;
  12590. vxworks*)
  12591. ;;
  12592. *)
  12593. lt_prog_compiler_can_build_shared_CXX=no
  12594. ;;
  12595. esac
  12596. fi
  12597. case $host_os in
  12598. # For platforms which do not support PIC, -DPIC is meaningless:
  12599. *djgpp*)
  12600. lt_prog_compiler_pic_CXX=
  12601. ;;
  12602. *)
  12603. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12604. ;;
  12605. esac
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12607. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12608. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12609. $as_echo_n "(cached) " >&6
  12610. else
  12611. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12614. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12615. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12616. #
  12617. # Check to make sure the PIC flag actually works.
  12618. #
  12619. if test -n "$lt_prog_compiler_pic_CXX"; then
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12621. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12622. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12623. $as_echo_n "(cached) " >&6
  12624. else
  12625. lt_cv_prog_compiler_pic_works_CXX=no
  12626. ac_outfile=conftest.$ac_objext
  12627. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12628. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12629. # Insert the option either (1) after the last *FLAGS variable, or
  12630. # (2) before a word containing "conftest.", or (3) at the end.
  12631. # Note that $ac_compile itself does not contain backslashes and begins
  12632. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12633. # The option is referenced via a variable to avoid confusing sed.
  12634. lt_compile=`echo "$ac_compile" | $SED \
  12635. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12636. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12637. -e 's:$: $lt_compiler_flag:'`
  12638. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12639. (eval "$lt_compile" 2>conftest.err)
  12640. ac_status=$?
  12641. cat conftest.err >&5
  12642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12643. if (exit $ac_status) && test -s "$ac_outfile"; then
  12644. # The compiler can only warn and ignore the option if not recognized
  12645. # So say no if there are warnings other than the usual output.
  12646. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12647. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12648. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12649. lt_cv_prog_compiler_pic_works_CXX=yes
  12650. fi
  12651. fi
  12652. $RM conftest*
  12653. fi
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12655. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12656. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12657. case $lt_prog_compiler_pic_CXX in
  12658. "" | " "*) ;;
  12659. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12660. esac
  12661. else
  12662. lt_prog_compiler_pic_CXX=
  12663. lt_prog_compiler_can_build_shared_CXX=no
  12664. fi
  12665. fi
  12666. #
  12667. # Check to make sure the static flag actually works.
  12668. #
  12669. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12671. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12672. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12673. $as_echo_n "(cached) " >&6
  12674. else
  12675. lt_cv_prog_compiler_static_works_CXX=no
  12676. save_LDFLAGS="$LDFLAGS"
  12677. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12678. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12679. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12680. # The linker can only warn and ignore the option if not recognized
  12681. # So say no if there are warnings
  12682. if test -s conftest.err; then
  12683. # Append any errors to the config.log.
  12684. cat conftest.err 1>&5
  12685. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12686. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12687. if diff conftest.exp conftest.er2 >/dev/null; then
  12688. lt_cv_prog_compiler_static_works_CXX=yes
  12689. fi
  12690. else
  12691. lt_cv_prog_compiler_static_works_CXX=yes
  12692. fi
  12693. fi
  12694. $RM -r conftest*
  12695. LDFLAGS="$save_LDFLAGS"
  12696. fi
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12698. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12699. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12700. :
  12701. else
  12702. lt_prog_compiler_static_CXX=
  12703. fi
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12705. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12706. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12707. $as_echo_n "(cached) " >&6
  12708. else
  12709. lt_cv_prog_compiler_c_o_CXX=no
  12710. $RM -r conftest 2>/dev/null
  12711. mkdir conftest
  12712. cd conftest
  12713. mkdir out
  12714. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12715. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12716. # Insert the option either (1) after the last *FLAGS variable, or
  12717. # (2) before a word containing "conftest.", or (3) at the end.
  12718. # Note that $ac_compile itself does not contain backslashes and begins
  12719. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12720. lt_compile=`echo "$ac_compile" | $SED \
  12721. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12722. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12723. -e 's:$: $lt_compiler_flag:'`
  12724. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12725. (eval "$lt_compile" 2>out/conftest.err)
  12726. ac_status=$?
  12727. cat out/conftest.err >&5
  12728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12729. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12730. then
  12731. # The compiler can only warn and ignore the option if not recognized
  12732. # So say no if there are warnings
  12733. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12734. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12735. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12736. lt_cv_prog_compiler_c_o_CXX=yes
  12737. fi
  12738. fi
  12739. chmod u+w . 2>&5
  12740. $RM conftest*
  12741. # SGI C++ compiler will create directory out/ii_files/ for
  12742. # template instantiation
  12743. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12744. $RM out/* && rmdir out
  12745. cd ..
  12746. $RM -r conftest
  12747. $RM conftest*
  12748. fi
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12750. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12752. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12753. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12754. $as_echo_n "(cached) " >&6
  12755. else
  12756. lt_cv_prog_compiler_c_o_CXX=no
  12757. $RM -r conftest 2>/dev/null
  12758. mkdir conftest
  12759. cd conftest
  12760. mkdir out
  12761. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12762. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12763. # Insert the option either (1) after the last *FLAGS variable, or
  12764. # (2) before a word containing "conftest.", or (3) at the end.
  12765. # Note that $ac_compile itself does not contain backslashes and begins
  12766. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12767. lt_compile=`echo "$ac_compile" | $SED \
  12768. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12769. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12770. -e 's:$: $lt_compiler_flag:'`
  12771. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12772. (eval "$lt_compile" 2>out/conftest.err)
  12773. ac_status=$?
  12774. cat out/conftest.err >&5
  12775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12776. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12777. then
  12778. # The compiler can only warn and ignore the option if not recognized
  12779. # So say no if there are warnings
  12780. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12781. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12782. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12783. lt_cv_prog_compiler_c_o_CXX=yes
  12784. fi
  12785. fi
  12786. chmod u+w . 2>&5
  12787. $RM conftest*
  12788. # SGI C++ compiler will create directory out/ii_files/ for
  12789. # template instantiation
  12790. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12791. $RM out/* && rmdir out
  12792. cd ..
  12793. $RM -r conftest
  12794. $RM conftest*
  12795. fi
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12797. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12798. hard_links="nottested"
  12799. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12800. # do not overwrite the value of need_locks provided by the user
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12802. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12803. hard_links=yes
  12804. $RM conftest*
  12805. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12806. touch conftest.a
  12807. ln conftest.a conftest.b 2>&5 || hard_links=no
  12808. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12810. $as_echo "$hard_links" >&6; }
  12811. if test "$hard_links" = no; then
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12813. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12814. need_locks=warn
  12815. fi
  12816. else
  12817. need_locks=no
  12818. fi
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12820. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12821. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12822. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12823. case $host_os in
  12824. aix[4-9]*)
  12825. # If we're using GNU nm, then we don't want the "-C" option.
  12826. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12827. # Also, AIX nm treats weak defined symbols like other global defined
  12828. # symbols, whereas GNU nm marks them as "W".
  12829. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12830. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12831. else
  12832. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12833. fi
  12834. ;;
  12835. pw32*)
  12836. export_symbols_cmds_CXX="$ltdll_cmds"
  12837. ;;
  12838. cygwin* | mingw* | cegcc*)
  12839. case $cc_basename in
  12840. cl*)
  12841. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12842. ;;
  12843. *)
  12844. 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'
  12845. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12846. ;;
  12847. esac
  12848. ;;
  12849. *)
  12850. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12851. ;;
  12852. esac
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12854. $as_echo "$ld_shlibs_CXX" >&6; }
  12855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12856. with_gnu_ld_CXX=$with_gnu_ld
  12857. #
  12858. # Do we need to explicitly link libc?
  12859. #
  12860. case "x$archive_cmds_need_lc_CXX" in
  12861. x|xyes)
  12862. # Assume -lc should be added
  12863. archive_cmds_need_lc_CXX=yes
  12864. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12865. case $archive_cmds_CXX in
  12866. *'~'*)
  12867. # FIXME: we may have to deal with multi-command sequences.
  12868. ;;
  12869. '$CC '*)
  12870. # Test whether the compiler implicitly links with -lc since on some
  12871. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12872. # to ld, don't add -lc before -lgcc.
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12874. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12875. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12876. $as_echo_n "(cached) " >&6
  12877. else
  12878. $RM conftest*
  12879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12880. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12881. (eval $ac_compile) 2>&5
  12882. ac_status=$?
  12883. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12884. test $ac_status = 0; } 2>conftest.err; then
  12885. soname=conftest
  12886. lib=conftest
  12887. libobjs=conftest.$ac_objext
  12888. deplibs=
  12889. wl=$lt_prog_compiler_wl_CXX
  12890. pic_flag=$lt_prog_compiler_pic_CXX
  12891. compiler_flags=-v
  12892. linker_flags=-v
  12893. verstring=
  12894. output_objdir=.
  12895. libname=conftest
  12896. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12897. allow_undefined_flag_CXX=
  12898. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12899. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12900. ac_status=$?
  12901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12902. test $ac_status = 0; }
  12903. then
  12904. lt_cv_archive_cmds_need_lc_CXX=no
  12905. else
  12906. lt_cv_archive_cmds_need_lc_CXX=yes
  12907. fi
  12908. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12909. else
  12910. cat conftest.err 1>&5
  12911. fi
  12912. $RM conftest*
  12913. fi
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12915. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12916. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12917. ;;
  12918. esac
  12919. fi
  12920. ;;
  12921. esac
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12923. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12924. library_names_spec=
  12925. libname_spec='lib$name'
  12926. soname_spec=
  12927. shrext_cmds=".so"
  12928. postinstall_cmds=
  12929. postuninstall_cmds=
  12930. finish_cmds=
  12931. finish_eval=
  12932. shlibpath_var=
  12933. shlibpath_overrides_runpath=unknown
  12934. version_type=none
  12935. dynamic_linker="$host_os ld.so"
  12936. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12937. need_lib_prefix=unknown
  12938. hardcode_into_libs=no
  12939. # when you set need_version to no, make sure it does not cause -set_version
  12940. # flags to be left without arguments
  12941. need_version=unknown
  12942. case $host_os in
  12943. aix3*)
  12944. version_type=linux # correct to gnu/linux during the next big refactor
  12945. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12946. shlibpath_var=LIBPATH
  12947. # AIX 3 has no versioning support, so we append a major version to the name.
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. ;;
  12950. aix[4-9]*)
  12951. version_type=linux # correct to gnu/linux during the next big refactor
  12952. need_lib_prefix=no
  12953. need_version=no
  12954. hardcode_into_libs=yes
  12955. if test "$host_cpu" = ia64; then
  12956. # AIX 5 supports IA64
  12957. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12958. shlibpath_var=LD_LIBRARY_PATH
  12959. else
  12960. # With GCC up to 2.95.x, collect2 would create an import file
  12961. # for dependence libraries. The import file would start with
  12962. # the line `#! .'. This would cause the generated library to
  12963. # depend on `.', always an invalid library. This was fixed in
  12964. # development snapshots of GCC prior to 3.0.
  12965. case $host_os in
  12966. aix4 | aix4.[01] | aix4.[01].*)
  12967. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12968. echo ' yes '
  12969. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12970. :
  12971. else
  12972. can_build_shared=no
  12973. fi
  12974. ;;
  12975. esac
  12976. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12977. # soname into executable. Probably we can add versioning support to
  12978. # collect2, so additional links can be useful in future.
  12979. if test "$aix_use_runtimelinking" = yes; then
  12980. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12981. # instead of lib<name>.a to let people know that these are not
  12982. # typical AIX shared libraries.
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12984. else
  12985. # We preserve .a as extension for shared libraries through AIX4.2
  12986. # and later when we are not doing run time linking.
  12987. library_names_spec='${libname}${release}.a $libname.a'
  12988. soname_spec='${libname}${release}${shared_ext}$major'
  12989. fi
  12990. shlibpath_var=LIBPATH
  12991. fi
  12992. ;;
  12993. amigaos*)
  12994. case $host_cpu in
  12995. powerpc)
  12996. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12997. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12999. ;;
  13000. m68k)
  13001. library_names_spec='$libname.ixlibrary $libname.a'
  13002. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13003. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
  13004. ;;
  13005. esac
  13006. ;;
  13007. beos*)
  13008. library_names_spec='${libname}${shared_ext}'
  13009. dynamic_linker="$host_os ld.so"
  13010. shlibpath_var=LIBRARY_PATH
  13011. ;;
  13012. bsdi[45]*)
  13013. version_type=linux # correct to gnu/linux during the next big refactor
  13014. need_version=no
  13015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13016. soname_spec='${libname}${release}${shared_ext}$major'
  13017. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13018. shlibpath_var=LD_LIBRARY_PATH
  13019. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13020. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13021. # the default ld.so.conf also contains /usr/contrib/lib and
  13022. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13023. # libtool to hard-code these into programs
  13024. ;;
  13025. cygwin* | mingw* | pw32* | cegcc*)
  13026. version_type=windows
  13027. shrext_cmds=".dll"
  13028. need_version=no
  13029. need_lib_prefix=no
  13030. case $GCC,$cc_basename in
  13031. yes,*)
  13032. # gcc
  13033. library_names_spec='$libname.dll.a'
  13034. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13035. postinstall_cmds='base_file=`basename \${file}`~
  13036. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13037. dldir=$destdir/`dirname \$dlpath`~
  13038. test -d \$dldir || mkdir -p \$dldir~
  13039. $install_prog $dir/$dlname \$dldir/$dlname~
  13040. chmod a+x \$dldir/$dlname~
  13041. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13042. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13043. fi'
  13044. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13045. dlpath=$dir/\$dldll~
  13046. $RM \$dlpath'
  13047. shlibpath_overrides_runpath=yes
  13048. case $host_os in
  13049. cygwin*)
  13050. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13051. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13052. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13053. ;;
  13054. mingw* | cegcc*)
  13055. # MinGW DLLs use traditional 'lib' prefix
  13056. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13057. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13058. ;;
  13059. pw32*)
  13060. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13061. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13062. ;;
  13063. esac
  13064. dynamic_linker='Win32 ld.exe'
  13065. ;;
  13066. *,cl*)
  13067. # Native MSVC
  13068. libname_spec='$name'
  13069. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13070. library_names_spec='${libname}.dll.lib'
  13071. case $build_os in
  13072. mingw*)
  13073. sys_lib_search_path_spec=
  13074. lt_save_ifs=$IFS
  13075. IFS=';'
  13076. for lt_path in $LIB
  13077. do
  13078. IFS=$lt_save_ifs
  13079. # Let DOS variable expansion print the short 8.3 style file name.
  13080. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13081. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13082. done
  13083. IFS=$lt_save_ifs
  13084. # Convert to MSYS style.
  13085. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13086. ;;
  13087. cygwin*)
  13088. # Convert to unix form, then to dos form, then back to unix form
  13089. # but this time dos style (no spaces!) so that the unix form looks
  13090. # like /cygdrive/c/PROGRA~1:/cygdr...
  13091. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13092. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13093. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13094. ;;
  13095. *)
  13096. sys_lib_search_path_spec="$LIB"
  13097. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13098. # It is most probably a Windows format PATH.
  13099. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13100. else
  13101. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13102. fi
  13103. # FIXME: find the short name or the path components, as spaces are
  13104. # common. (e.g. "Program Files" -> "PROGRA~1")
  13105. ;;
  13106. esac
  13107. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13108. postinstall_cmds='base_file=`basename \${file}`~
  13109. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13110. dldir=$destdir/`dirname \$dlpath`~
  13111. test -d \$dldir || mkdir -p \$dldir~
  13112. $install_prog $dir/$dlname \$dldir/$dlname'
  13113. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13114. dlpath=$dir/\$dldll~
  13115. $RM \$dlpath'
  13116. shlibpath_overrides_runpath=yes
  13117. dynamic_linker='Win32 link.exe'
  13118. ;;
  13119. *)
  13120. # Assume MSVC wrapper
  13121. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13122. dynamic_linker='Win32 ld.exe'
  13123. ;;
  13124. esac
  13125. # FIXME: first we should search . and the directory the executable is in
  13126. shlibpath_var=PATH
  13127. ;;
  13128. darwin* | rhapsody*)
  13129. dynamic_linker="$host_os dyld"
  13130. version_type=darwin
  13131. need_lib_prefix=no
  13132. need_version=no
  13133. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13134. soname_spec='${libname}${release}${major}$shared_ext'
  13135. shlibpath_overrides_runpath=yes
  13136. shlibpath_var=DYLD_LIBRARY_PATH
  13137. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13138. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13139. ;;
  13140. dgux*)
  13141. version_type=linux # correct to gnu/linux during the next big refactor
  13142. need_lib_prefix=no
  13143. need_version=no
  13144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13145. soname_spec='${libname}${release}${shared_ext}$major'
  13146. shlibpath_var=LD_LIBRARY_PATH
  13147. ;;
  13148. freebsd* | dragonfly*)
  13149. # DragonFly does not have aout. When/if they implement a new
  13150. # versioning mechanism, adjust this.
  13151. if test -x /usr/bin/objformat; then
  13152. objformat=`/usr/bin/objformat`
  13153. else
  13154. case $host_os in
  13155. freebsd[23].*) objformat=aout ;;
  13156. *) objformat=elf ;;
  13157. esac
  13158. fi
  13159. version_type=freebsd-$objformat
  13160. case $version_type in
  13161. freebsd-elf*)
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13163. need_version=no
  13164. need_lib_prefix=no
  13165. ;;
  13166. freebsd-*)
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13168. need_version=yes
  13169. ;;
  13170. esac
  13171. shlibpath_var=LD_LIBRARY_PATH
  13172. case $host_os in
  13173. freebsd2.*)
  13174. shlibpath_overrides_runpath=yes
  13175. ;;
  13176. freebsd3.[01]* | freebsdelf3.[01]*)
  13177. shlibpath_overrides_runpath=yes
  13178. hardcode_into_libs=yes
  13179. ;;
  13180. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13181. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13182. shlibpath_overrides_runpath=no
  13183. hardcode_into_libs=yes
  13184. ;;
  13185. *) # from 4.6 on, and DragonFly
  13186. shlibpath_overrides_runpath=yes
  13187. hardcode_into_libs=yes
  13188. ;;
  13189. esac
  13190. ;;
  13191. gnu*)
  13192. version_type=linux # correct to gnu/linux during the next big refactor
  13193. need_lib_prefix=no
  13194. need_version=no
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. shlibpath_overrides_runpath=no
  13199. hardcode_into_libs=yes
  13200. ;;
  13201. haiku*)
  13202. version_type=linux # correct to gnu/linux during the next big refactor
  13203. need_lib_prefix=no
  13204. need_version=no
  13205. dynamic_linker="$host_os runtime_loader"
  13206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13207. soname_spec='${libname}${release}${shared_ext}$major'
  13208. shlibpath_var=LIBRARY_PATH
  13209. shlibpath_overrides_runpath=yes
  13210. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13211. hardcode_into_libs=yes
  13212. ;;
  13213. hpux9* | hpux10* | hpux11*)
  13214. # Give a soname corresponding to the major version so that dld.sl refuses to
  13215. # link against other versions.
  13216. version_type=sunos
  13217. need_lib_prefix=no
  13218. need_version=no
  13219. case $host_cpu in
  13220. ia64*)
  13221. shrext_cmds='.so'
  13222. hardcode_into_libs=yes
  13223. dynamic_linker="$host_os dld.so"
  13224. shlibpath_var=LD_LIBRARY_PATH
  13225. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13227. soname_spec='${libname}${release}${shared_ext}$major'
  13228. if test "X$HPUX_IA64_MODE" = X32; then
  13229. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13230. else
  13231. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13232. fi
  13233. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13234. ;;
  13235. hppa*64*)
  13236. shrext_cmds='.sl'
  13237. hardcode_into_libs=yes
  13238. dynamic_linker="$host_os dld.sl"
  13239. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13240. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13242. soname_spec='${libname}${release}${shared_ext}$major'
  13243. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13244. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13245. ;;
  13246. *)
  13247. shrext_cmds='.sl'
  13248. dynamic_linker="$host_os dld.sl"
  13249. shlibpath_var=SHLIB_PATH
  13250. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13252. soname_spec='${libname}${release}${shared_ext}$major'
  13253. ;;
  13254. esac
  13255. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13256. postinstall_cmds='chmod 555 $lib'
  13257. # or fails outright, so override atomically:
  13258. install_override_mode=555
  13259. ;;
  13260. interix[3-9]*)
  13261. version_type=linux # correct to gnu/linux during the next big refactor
  13262. need_lib_prefix=no
  13263. need_version=no
  13264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13267. shlibpath_var=LD_LIBRARY_PATH
  13268. shlibpath_overrides_runpath=no
  13269. hardcode_into_libs=yes
  13270. ;;
  13271. irix5* | irix6* | nonstopux*)
  13272. case $host_os in
  13273. nonstopux*) version_type=nonstopux ;;
  13274. *)
  13275. if test "$lt_cv_prog_gnu_ld" = yes; then
  13276. version_type=linux # correct to gnu/linux during the next big refactor
  13277. else
  13278. version_type=irix
  13279. fi ;;
  13280. esac
  13281. need_lib_prefix=no
  13282. need_version=no
  13283. soname_spec='${libname}${release}${shared_ext}$major'
  13284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13285. case $host_os in
  13286. irix5* | nonstopux*)
  13287. libsuff= shlibsuff=
  13288. ;;
  13289. *)
  13290. case $LD in # libtool.m4 will add one of these switches to LD
  13291. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13292. libsuff= shlibsuff= libmagic=32-bit;;
  13293. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13294. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13295. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13296. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13297. *) libsuff= shlibsuff= libmagic=never-match;;
  13298. esac
  13299. ;;
  13300. esac
  13301. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13302. shlibpath_overrides_runpath=no
  13303. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13304. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13305. hardcode_into_libs=yes
  13306. ;;
  13307. # No shared lib support for Linux oldld, aout, or coff.
  13308. linux*oldld* | linux*aout* | linux*coff*)
  13309. dynamic_linker=no
  13310. ;;
  13311. # This must be glibc/ELF.
  13312. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13313. version_type=linux # correct to gnu/linux during the next big refactor
  13314. need_lib_prefix=no
  13315. need_version=no
  13316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13317. soname_spec='${libname}${release}${shared_ext}$major'
  13318. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13319. shlibpath_var=LD_LIBRARY_PATH
  13320. shlibpath_overrides_runpath=no
  13321. # Some binutils ld are patched to set DT_RUNPATH
  13322. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13323. $as_echo_n "(cached) " >&6
  13324. else
  13325. lt_cv_shlibpath_overrides_runpath=no
  13326. save_LDFLAGS=$LDFLAGS
  13327. save_libdir=$libdir
  13328. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13329. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13331. /* end confdefs.h. */
  13332. int
  13333. main ()
  13334. {
  13335. ;
  13336. return 0;
  13337. }
  13338. _ACEOF
  13339. if ac_fn_cxx_try_link "$LINENO"; then :
  13340. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13341. lt_cv_shlibpath_overrides_runpath=yes
  13342. fi
  13343. fi
  13344. rm -f core conftest.err conftest.$ac_objext \
  13345. conftest$ac_exeext conftest.$ac_ext
  13346. LDFLAGS=$save_LDFLAGS
  13347. libdir=$save_libdir
  13348. fi
  13349. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13350. # This implies no fast_install, which is unacceptable.
  13351. # Some rework will be needed to allow for fast_install
  13352. # before this can be enabled.
  13353. hardcode_into_libs=yes
  13354. # Append ld.so.conf contents to the search path
  13355. if test -f /etc/ld.so.conf; then
  13356. 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' ' '`
  13357. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13358. fi
  13359. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13360. # powerpc, because MkLinux only supported shared libraries with the
  13361. # GNU dynamic linker. Since this was broken with cross compilers,
  13362. # most powerpc-linux boxes support dynamic linking these days and
  13363. # people can always --disable-shared, the test was removed, and we
  13364. # assume the GNU/Linux dynamic linker is in use.
  13365. dynamic_linker='GNU/Linux ld.so'
  13366. ;;
  13367. netbsd*)
  13368. version_type=sunos
  13369. need_lib_prefix=no
  13370. need_version=no
  13371. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13374. dynamic_linker='NetBSD (a.out) ld.so'
  13375. else
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. dynamic_linker='NetBSD ld.elf_so'
  13379. fi
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=yes
  13382. hardcode_into_libs=yes
  13383. ;;
  13384. newsos6)
  13385. version_type=linux # correct to gnu/linux during the next big refactor
  13386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. shlibpath_overrides_runpath=yes
  13389. ;;
  13390. *nto* | *qnx*)
  13391. version_type=qnx
  13392. need_lib_prefix=no
  13393. need_version=no
  13394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13395. soname_spec='${libname}${release}${shared_ext}$major'
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=no
  13398. hardcode_into_libs=yes
  13399. dynamic_linker='ldqnx.so'
  13400. ;;
  13401. openbsd*)
  13402. version_type=sunos
  13403. sys_lib_dlsearch_path_spec="/usr/lib"
  13404. need_lib_prefix=no
  13405. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13406. case $host_os in
  13407. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13408. *) need_version=no ;;
  13409. esac
  13410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13411. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13412. shlibpath_var=LD_LIBRARY_PATH
  13413. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13414. case $host_os in
  13415. openbsd2.[89] | openbsd2.[89].*)
  13416. shlibpath_overrides_runpath=no
  13417. ;;
  13418. *)
  13419. shlibpath_overrides_runpath=yes
  13420. ;;
  13421. esac
  13422. else
  13423. shlibpath_overrides_runpath=yes
  13424. fi
  13425. ;;
  13426. os2*)
  13427. libname_spec='$name'
  13428. shrext_cmds=".dll"
  13429. need_lib_prefix=no
  13430. library_names_spec='$libname${shared_ext} $libname.a'
  13431. dynamic_linker='OS/2 ld.exe'
  13432. shlibpath_var=LIBPATH
  13433. ;;
  13434. osf3* | osf4* | osf5*)
  13435. version_type=osf
  13436. need_lib_prefix=no
  13437. need_version=no
  13438. soname_spec='${libname}${release}${shared_ext}$major'
  13439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13440. shlibpath_var=LD_LIBRARY_PATH
  13441. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13442. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13443. ;;
  13444. rdos*)
  13445. dynamic_linker=no
  13446. ;;
  13447. solaris*)
  13448. version_type=linux # correct to gnu/linux during the next big refactor
  13449. need_lib_prefix=no
  13450. need_version=no
  13451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13452. soname_spec='${libname}${release}${shared_ext}$major'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. shlibpath_overrides_runpath=yes
  13455. hardcode_into_libs=yes
  13456. # ldd complains unless libraries are executable
  13457. postinstall_cmds='chmod +x $lib'
  13458. ;;
  13459. sunos4*)
  13460. version_type=sunos
  13461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13462. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. shlibpath_overrides_runpath=yes
  13465. if test "$with_gnu_ld" = yes; then
  13466. need_lib_prefix=no
  13467. fi
  13468. need_version=yes
  13469. ;;
  13470. sysv4 | sysv4.3*)
  13471. version_type=linux # correct to gnu/linux during the next big refactor
  13472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13473. soname_spec='${libname}${release}${shared_ext}$major'
  13474. shlibpath_var=LD_LIBRARY_PATH
  13475. case $host_vendor in
  13476. sni)
  13477. shlibpath_overrides_runpath=no
  13478. need_lib_prefix=no
  13479. runpath_var=LD_RUN_PATH
  13480. ;;
  13481. siemens)
  13482. need_lib_prefix=no
  13483. ;;
  13484. motorola)
  13485. need_lib_prefix=no
  13486. need_version=no
  13487. shlibpath_overrides_runpath=no
  13488. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13489. ;;
  13490. esac
  13491. ;;
  13492. sysv4*MP*)
  13493. if test -d /usr/nec ;then
  13494. version_type=linux # correct to gnu/linux during the next big refactor
  13495. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13496. soname_spec='$libname${shared_ext}.$major'
  13497. shlibpath_var=LD_LIBRARY_PATH
  13498. fi
  13499. ;;
  13500. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13501. version_type=freebsd-elf
  13502. need_lib_prefix=no
  13503. need_version=no
  13504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13505. soname_spec='${libname}${release}${shared_ext}$major'
  13506. shlibpath_var=LD_LIBRARY_PATH
  13507. shlibpath_overrides_runpath=yes
  13508. hardcode_into_libs=yes
  13509. if test "$with_gnu_ld" = yes; then
  13510. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13511. else
  13512. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13513. case $host_os in
  13514. sco3.2v5*)
  13515. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13516. ;;
  13517. esac
  13518. fi
  13519. sys_lib_dlsearch_path_spec='/usr/lib'
  13520. ;;
  13521. tpf*)
  13522. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13523. version_type=linux # correct to gnu/linux during the next big refactor
  13524. need_lib_prefix=no
  13525. need_version=no
  13526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13527. shlibpath_var=LD_LIBRARY_PATH
  13528. shlibpath_overrides_runpath=no
  13529. hardcode_into_libs=yes
  13530. ;;
  13531. uts4*)
  13532. version_type=linux # correct to gnu/linux during the next big refactor
  13533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13534. soname_spec='${libname}${release}${shared_ext}$major'
  13535. shlibpath_var=LD_LIBRARY_PATH
  13536. ;;
  13537. *)
  13538. dynamic_linker=no
  13539. ;;
  13540. esac
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13542. $as_echo "$dynamic_linker" >&6; }
  13543. test "$dynamic_linker" = no && can_build_shared=no
  13544. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13545. if test "$GCC" = yes; then
  13546. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13547. fi
  13548. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13549. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13550. fi
  13551. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13552. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13553. fi
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13555. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13556. hardcode_action_CXX=
  13557. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13558. test -n "$runpath_var_CXX" ||
  13559. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13560. # We can hardcode non-existent directories.
  13561. if test "$hardcode_direct_CXX" != no &&
  13562. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13563. # have to relink, otherwise we might link with an installed library
  13564. # when we should be linking with a yet-to-be-installed one
  13565. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13566. test "$hardcode_minus_L_CXX" != no; then
  13567. # Linking always hardcodes the temporary library directory.
  13568. hardcode_action_CXX=relink
  13569. else
  13570. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13571. hardcode_action_CXX=immediate
  13572. fi
  13573. else
  13574. # We cannot hardcode anything, or else we can only hardcode existing
  13575. # directories.
  13576. hardcode_action_CXX=unsupported
  13577. fi
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13579. $as_echo "$hardcode_action_CXX" >&6; }
  13580. if test "$hardcode_action_CXX" = relink ||
  13581. test "$inherit_rpath_CXX" = yes; then
  13582. # Fast installation is not supported
  13583. enable_fast_install=no
  13584. elif test "$shlibpath_overrides_runpath" = yes ||
  13585. test "$enable_shared" = no; then
  13586. # Fast installation is not necessary
  13587. enable_fast_install=needless
  13588. fi
  13589. fi # test -n "$compiler"
  13590. CC=$lt_save_CC
  13591. CFLAGS=$lt_save_CFLAGS
  13592. LDCXX=$LD
  13593. LD=$lt_save_LD
  13594. GCC=$lt_save_GCC
  13595. with_gnu_ld=$lt_save_with_gnu_ld
  13596. lt_cv_path_LDCXX=$lt_cv_path_LD
  13597. lt_cv_path_LD=$lt_save_path_LD
  13598. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13599. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13600. fi # test "$_lt_caught_CXX_error" != yes
  13601. ac_ext=c
  13602. ac_cpp='$CPP $CPPFLAGS'
  13603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13606. # Find a good install program. We prefer a C program (faster),
  13607. # so one script is as good as another. But avoid the broken or
  13608. # incompatible versions:
  13609. # SysV /etc/install, /usr/sbin/install
  13610. # SunOS /usr/etc/install
  13611. # IRIX /sbin/install
  13612. # AIX /bin/install
  13613. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13614. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13615. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13616. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13617. # OS/2's system install, which has a completely different semantic
  13618. # ./install, which can be erroneously created by make from ./install.sh.
  13619. # Reject install programs that cannot install multiple files.
  13620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13621. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13622. if test -z "$INSTALL"; then
  13623. if ${ac_cv_path_install+:} false; then :
  13624. $as_echo_n "(cached) " >&6
  13625. else
  13626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13627. for as_dir in $PATH
  13628. do
  13629. IFS=$as_save_IFS
  13630. test -z "$as_dir" && as_dir=.
  13631. # Account for people who put trailing slashes in PATH elements.
  13632. case $as_dir/ in #((
  13633. ./ | .// | /[cC]/* | \
  13634. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13635. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13636. /usr/ucb/* ) ;;
  13637. *)
  13638. # OSF1 and SCO ODT 3.0 have their own names for install.
  13639. # Don't use installbsd from OSF since it installs stuff as root
  13640. # by default.
  13641. for ac_prog in ginstall scoinst install; do
  13642. for ac_exec_ext in '' $ac_executable_extensions; do
  13643. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13644. if test $ac_prog = install &&
  13645. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13646. # AIX install. It has an incompatible calling convention.
  13647. :
  13648. elif test $ac_prog = install &&
  13649. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13650. # program-specific install script used by HP pwplus--don't use.
  13651. :
  13652. else
  13653. rm -rf conftest.one conftest.two conftest.dir
  13654. echo one > conftest.one
  13655. echo two > conftest.two
  13656. mkdir conftest.dir
  13657. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13658. test -s conftest.one && test -s conftest.two &&
  13659. test -s conftest.dir/conftest.one &&
  13660. test -s conftest.dir/conftest.two
  13661. then
  13662. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13663. break 3
  13664. fi
  13665. fi
  13666. fi
  13667. done
  13668. done
  13669. ;;
  13670. esac
  13671. done
  13672. IFS=$as_save_IFS
  13673. rm -rf conftest.one conftest.two conftest.dir
  13674. fi
  13675. if test "${ac_cv_path_install+set}" = set; then
  13676. INSTALL=$ac_cv_path_install
  13677. else
  13678. # As a last resort, use the slow shell script. Don't cache a
  13679. # value for INSTALL within a source directory, because that will
  13680. # break other packages using the cache if that directory is
  13681. # removed, or if the value is a relative name.
  13682. INSTALL=$ac_install_sh
  13683. fi
  13684. fi
  13685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13686. $as_echo "$INSTALL" >&6; }
  13687. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13688. # It thinks the first close brace ends the variable substitution.
  13689. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13690. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13691. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13693. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13694. set x ${MAKE-make}
  13695. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13696. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13697. $as_echo_n "(cached) " >&6
  13698. else
  13699. cat >conftest.make <<\_ACEOF
  13700. SHELL = /bin/sh
  13701. all:
  13702. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13703. _ACEOF
  13704. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13705. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13706. *@@@%%%=?*=@@@%%%*)
  13707. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13708. *)
  13709. eval ac_cv_prog_make_${ac_make}_set=no;;
  13710. esac
  13711. rm -f conftest.make
  13712. fi
  13713. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13715. $as_echo "yes" >&6; }
  13716. SET_MAKE=
  13717. else
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13719. $as_echo "no" >&6; }
  13720. SET_MAKE="MAKE=${MAKE-make}"
  13721. fi
  13722. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13723. if test -n "$ac_tool_prefix"; then
  13724. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13725. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13727. $as_echo_n "checking for $ac_word... " >&6; }
  13728. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. case $PKG_CONFIG in
  13732. [\\/]* | ?:[\\/]*)
  13733. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13734. ;;
  13735. *)
  13736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13737. for as_dir in $PATH
  13738. do
  13739. IFS=$as_save_IFS
  13740. test -z "$as_dir" && as_dir=.
  13741. for ac_exec_ext in '' $ac_executable_extensions; do
  13742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13743. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13745. break 2
  13746. fi
  13747. done
  13748. done
  13749. IFS=$as_save_IFS
  13750. ;;
  13751. esac
  13752. fi
  13753. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13754. if test -n "$PKG_CONFIG"; then
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13756. $as_echo "$PKG_CONFIG" >&6; }
  13757. else
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13759. $as_echo "no" >&6; }
  13760. fi
  13761. fi
  13762. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13763. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13764. # Extract the first word of "pkg-config", so it can be a program name with args.
  13765. set dummy pkg-config; ac_word=$2
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13767. $as_echo_n "checking for $ac_word... " >&6; }
  13768. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13769. $as_echo_n "(cached) " >&6
  13770. else
  13771. case $ac_pt_PKG_CONFIG in
  13772. [\\/]* | ?:[\\/]*)
  13773. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13774. ;;
  13775. *)
  13776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13777. for as_dir in $PATH
  13778. do
  13779. IFS=$as_save_IFS
  13780. test -z "$as_dir" && as_dir=.
  13781. for ac_exec_ext in '' $ac_executable_extensions; do
  13782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13783. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13785. break 2
  13786. fi
  13787. done
  13788. done
  13789. IFS=$as_save_IFS
  13790. ;;
  13791. esac
  13792. fi
  13793. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13794. if test -n "$ac_pt_PKG_CONFIG"; then
  13795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13796. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13797. else
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13799. $as_echo "no" >&6; }
  13800. fi
  13801. if test "x$ac_pt_PKG_CONFIG" = x; then
  13802. PKG_CONFIG=""
  13803. else
  13804. case $cross_compiling:$ac_tool_warned in
  13805. yes:)
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13807. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13808. ac_tool_warned=yes ;;
  13809. esac
  13810. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13811. fi
  13812. else
  13813. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13814. fi
  13815. fi
  13816. if test -n "$PKG_CONFIG"; then
  13817. _pkg_min_version=0.9.0
  13818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13819. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13820. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13822. $as_echo "yes" >&6; }
  13823. else
  13824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13825. $as_echo "no" >&6; }
  13826. PKG_CONFIG=""
  13827. fi
  13828. fi
  13829. case "$host" in
  13830. *-*-mingw*)
  13831. # Except on msys, where make can't handle full pathnames (bug 1972)
  13832. ;;
  13833. *)
  13834. srcdir=`cd $srcdir && pwd`
  13835. ;;
  13836. esac
  13837. INCLUDE="-I$srcdir/include"
  13838. case "$host" in
  13839. *-*-nto-qnx*)
  13840. ;;
  13841. *)
  13842. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  13843. ;;
  13844. esac
  13845. case "$host" in
  13846. *-*-haiku*)
  13847. LINKER='$(CXX)'
  13848. LIBTOOLLINKERTAG='CXX'
  13849. ;;
  13850. *)
  13851. LINKER='$(CC)'
  13852. LIBTOOLLINKERTAG='CC'
  13853. ;;
  13854. esac
  13855. if test x$srcdir != x.; then
  13856. INCLUDE="-Iinclude $INCLUDE"
  13857. elif test -d .git; then
  13858. as_fn_error $? "
  13859. *** When building from a git clone you should configure and build in a
  13860. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13861. " "$LINENO" 5
  13862. fi
  13863. BASE_CFLAGS=""
  13864. BASE_LDFLAGS=""
  13865. case "$host" in
  13866. *-*-cygwin*)
  13867. # We build SDL on cygwin without the UNIX emulation layer
  13868. save_CFLAGS="$CFLAGS"
  13869. have_no_cygwin=no
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13871. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13872. CFLAGS="$save_CFLAGS -mno-cygwin"
  13873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13874. /* end confdefs.h. */
  13875. int
  13876. main ()
  13877. {
  13878. ;
  13879. return 0;
  13880. }
  13881. _ACEOF
  13882. if ac_fn_c_try_compile "$LINENO"; then :
  13883. have_no_cygwin=yes
  13884. fi
  13885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13887. $as_echo "$have_no_cygwin" >&6; }
  13888. CFLAGS="$save_CFLAGS"
  13889. if test x$have_no_cygwin = xyes; then
  13890. BASE_CFLAGS="-mno-cygwin"
  13891. BASE_LDFLAGS="-mno-cygwin"
  13892. fi
  13893. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13894. ;;
  13895. esac
  13896. # Uncomment the following line if you want to force SDL and applications
  13897. # built with it to be compiled for a particular architecture.
  13898. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13899. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13900. # The default optimization for SDL is -O3 (Bug #31)
  13901. if test "x$orig_CFLAGS" = x; then
  13902. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13903. fi
  13904. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13905. BUILD_LDFLAGS="$LDFLAGS"
  13906. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13907. ## These are common directories to find software packages
  13908. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13909. # if test -d $path/include; then
  13910. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13911. # fi
  13912. # if test -d $path/lib; then
  13913. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13914. # fi
  13915. #done
  13916. SDL_CFLAGS="$BASE_CFLAGS"
  13917. SDL_LIBS="-lSDL2"
  13918. if test "x$BASE_LDFLAGS" != x; then
  13919. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13920. fi
  13921. if test "x$EXTRA_CFLAGS" != x; then
  13922. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13923. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13924. fi
  13925. if test "x$EXTRA_LDFLAGS" != x; then
  13926. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13927. fi
  13928. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13929. find_lib()
  13930. {
  13931. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13932. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13933. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13934. if test "$cross_compiling" = yes; then
  13935. host_lib_path=""
  13936. else
  13937. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13938. fi
  13939. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13940. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13941. if test x$lib != x; then
  13942. echo $lib
  13943. return
  13944. fi
  13945. done
  13946. # Try again, this time allowing more than one version digit after the .so
  13947. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13948. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13949. if test x$lib != x; then
  13950. echo $lib
  13951. return
  13952. fi
  13953. done
  13954. }
  13955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13956. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13957. if ${ac_cv_c_const+:} false; then :
  13958. $as_echo_n "(cached) " >&6
  13959. else
  13960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13961. /* end confdefs.h. */
  13962. int
  13963. main ()
  13964. {
  13965. #ifndef __cplusplus
  13966. /* Ultrix mips cc rejects this sort of thing. */
  13967. typedef int charset[2];
  13968. const charset cs = { 0, 0 };
  13969. /* SunOS 4.1.1 cc rejects this. */
  13970. char const *const *pcpcc;
  13971. char **ppc;
  13972. /* NEC SVR4.0.2 mips cc rejects this. */
  13973. struct point {int x, y;};
  13974. static struct point const zero = {0,0};
  13975. /* AIX XL C 1.02.0.0 rejects this.
  13976. It does not let you subtract one const X* pointer from another in
  13977. an arm of an if-expression whose if-part is not a constant
  13978. expression */
  13979. const char *g = "string";
  13980. pcpcc = &g + (g ? g-g : 0);
  13981. /* HPUX 7.0 cc rejects these. */
  13982. ++pcpcc;
  13983. ppc = (char**) pcpcc;
  13984. pcpcc = (char const *const *) ppc;
  13985. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13986. char tx;
  13987. char *t = &tx;
  13988. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13989. *t++ = 0;
  13990. if (s) return 0;
  13991. }
  13992. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13993. int x[] = {25, 17};
  13994. const int *foo = &x[0];
  13995. ++foo;
  13996. }
  13997. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13998. typedef const int *iptr;
  13999. iptr p = 0;
  14000. ++p;
  14001. }
  14002. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14003. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14004. struct s { int j; const int *ap[3]; } bx;
  14005. struct s *b = &bx; b->j = 5;
  14006. }
  14007. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14008. const int foo = 10;
  14009. if (!foo) return 0;
  14010. }
  14011. return !cs[0] && !zero.x;
  14012. #endif
  14013. ;
  14014. return 0;
  14015. }
  14016. _ACEOF
  14017. if ac_fn_c_try_compile "$LINENO"; then :
  14018. ac_cv_c_const=yes
  14019. else
  14020. ac_cv_c_const=no
  14021. fi
  14022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14023. fi
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14025. $as_echo "$ac_cv_c_const" >&6; }
  14026. if test $ac_cv_c_const = no; then
  14027. $as_echo "#define const /**/" >>confdefs.h
  14028. fi
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14030. $as_echo_n "checking for inline... " >&6; }
  14031. if ${ac_cv_c_inline+:} false; then :
  14032. $as_echo_n "(cached) " >&6
  14033. else
  14034. ac_cv_c_inline=no
  14035. for ac_kw in inline __inline__ __inline; do
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #ifndef __cplusplus
  14039. typedef int foo_t;
  14040. static $ac_kw foo_t static_foo () {return 0; }
  14041. $ac_kw foo_t foo () {return 0; }
  14042. #endif
  14043. _ACEOF
  14044. if ac_fn_c_try_compile "$LINENO"; then :
  14045. ac_cv_c_inline=$ac_kw
  14046. fi
  14047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14048. test "$ac_cv_c_inline" != no && break
  14049. done
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14052. $as_echo "$ac_cv_c_inline" >&6; }
  14053. case $ac_cv_c_inline in
  14054. inline | yes) ;;
  14055. *)
  14056. case $ac_cv_c_inline in
  14057. no) ac_val=;;
  14058. *) ac_val=$ac_cv_c_inline;;
  14059. esac
  14060. cat >>confdefs.h <<_ACEOF
  14061. #ifndef __cplusplus
  14062. #define inline $ac_val
  14063. #endif
  14064. _ACEOF
  14065. ;;
  14066. esac
  14067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14068. $as_echo_n "checking for working volatile... " >&6; }
  14069. if ${ac_cv_c_volatile+:} false; then :
  14070. $as_echo_n "(cached) " >&6
  14071. else
  14072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14073. /* end confdefs.h. */
  14074. int
  14075. main ()
  14076. {
  14077. volatile int x;
  14078. int * volatile y = (int *) 0;
  14079. return !x && !y;
  14080. ;
  14081. return 0;
  14082. }
  14083. _ACEOF
  14084. if ac_fn_c_try_compile "$LINENO"; then :
  14085. ac_cv_c_volatile=yes
  14086. else
  14087. ac_cv_c_volatile=no
  14088. fi
  14089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14090. fi
  14091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14092. $as_echo "$ac_cv_c_volatile" >&6; }
  14093. if test $ac_cv_c_volatile = no; then
  14094. $as_echo "#define volatile /**/" >>confdefs.h
  14095. fi
  14096. # Check whether --enable-assertions was given.
  14097. if test "${enable_assertions+set}" = set; then :
  14098. enableval=$enable_assertions;
  14099. else
  14100. enable_assertions=auto
  14101. fi
  14102. case "$enable_assertions" in
  14103. auto) # Use optimization settings to determine assertion level
  14104. ;;
  14105. disabled)
  14106. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14107. ;;
  14108. release)
  14109. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14110. ;;
  14111. enabled)
  14112. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14113. ;;
  14114. paranoid)
  14115. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14116. ;;
  14117. *)
  14118. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14119. ;;
  14120. esac
  14121. # Check whether --enable-dependency-tracking was given.
  14122. if test "${enable_dependency_tracking+set}" = set; then :
  14123. enableval=$enable_dependency_tracking;
  14124. else
  14125. enable_dependency_tracking=yes
  14126. fi
  14127. if test x$enable_dependency_tracking = xyes; then
  14128. have_gcc_mmd_mt=no
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14130. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. #if !defined(__GNUC__) || __GNUC__ < 3
  14134. #error Dependency tracking requires GCC 3.0 or newer
  14135. #endif
  14136. int
  14137. main ()
  14138. {
  14139. ;
  14140. return 0;
  14141. }
  14142. _ACEOF
  14143. if ac_fn_c_try_compile "$LINENO"; then :
  14144. have_gcc_mmd_mt=yes
  14145. fi
  14146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14148. $as_echo "$have_gcc_mmd_mt" >&6; }
  14149. if test x$have_gcc_mmd_mt = xyes; then
  14150. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14151. fi
  14152. fi
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14154. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14155. have_no_undefined=no
  14156. case "$host" in
  14157. *-*-openbsd*)
  14158. ;;
  14159. *)
  14160. save_LDFLAGS="$LDFLAGS"
  14161. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14163. /* end confdefs.h. */
  14164. int
  14165. main ()
  14166. {
  14167. ;
  14168. return 0;
  14169. }
  14170. _ACEOF
  14171. if ac_fn_c_try_link "$LINENO"; then :
  14172. have_no_undefined=yes
  14173. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  14174. fi
  14175. rm -f core conftest.err conftest.$ac_objext \
  14176. conftest$ac_exeext conftest.$ac_ext
  14177. LDFLAGS="$save_LDFLAGS"
  14178. ;;
  14179. esac
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14181. $as_echo "$have_no_undefined" >&6; }
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14183. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14184. have_dynamicbase=no
  14185. case "$host" in
  14186. *)
  14187. save_LDFLAGS="$LDFLAGS"
  14188. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14190. /* end confdefs.h. */
  14191. int
  14192. main ()
  14193. {
  14194. ;
  14195. return 0;
  14196. }
  14197. _ACEOF
  14198. if ac_fn_c_try_link "$LINENO"; then :
  14199. have_dynamicbase=yes
  14200. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14201. fi
  14202. rm -f core conftest.err conftest.$ac_objext \
  14203. conftest$ac_exeext conftest.$ac_ext
  14204. LDFLAGS="$save_LDFLAGS"
  14205. ;;
  14206. esac
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14208. $as_echo "$have_dynamicbase" >&6; }
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14210. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14211. have_nxcompat=no
  14212. case "$host" in
  14213. *)
  14214. save_LDFLAGS="$LDFLAGS"
  14215. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14217. /* end confdefs.h. */
  14218. int
  14219. main ()
  14220. {
  14221. ;
  14222. return 0;
  14223. }
  14224. _ACEOF
  14225. if ac_fn_c_try_link "$LINENO"; then :
  14226. have_nxcompat=yes
  14227. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14228. fi
  14229. rm -f core conftest.err conftest.$ac_objext \
  14230. conftest$ac_exeext conftest.$ac_ext
  14231. LDFLAGS="$save_LDFLAGS"
  14232. ;;
  14233. esac
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14235. $as_echo "$have_nxcompat" >&6; }
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14237. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14238. have_high_entropy_va=no
  14239. case "$host" in
  14240. *)
  14241. save_LDFLAGS="$LDFLAGS"
  14242. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14244. /* end confdefs.h. */
  14245. int
  14246. main ()
  14247. {
  14248. ;
  14249. return 0;
  14250. }
  14251. _ACEOF
  14252. if ac_fn_c_try_link "$LINENO"; then :
  14253. have_high_entropy_va=yes
  14254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14255. fi
  14256. rm -f core conftest.err conftest.$ac_objext \
  14257. conftest$ac_exeext conftest.$ac_ext
  14258. LDFLAGS="$save_LDFLAGS"
  14259. ;;
  14260. esac
  14261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14262. $as_echo "$have_high_entropy_va" >&6; }
  14263. # Check whether --enable-libc was given.
  14264. if test "${enable_libc+set}" = set; then :
  14265. enableval=$enable_libc;
  14266. else
  14267. enable_libc=yes
  14268. fi
  14269. if test x$enable_libc = xyes; then
  14270. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14272. $as_echo_n "checking for ANSI C header files... " >&6; }
  14273. if ${ac_cv_header_stdc+:} false; then :
  14274. $as_echo_n "(cached) " >&6
  14275. else
  14276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14277. /* end confdefs.h. */
  14278. #include <stdlib.h>
  14279. #include <stdarg.h>
  14280. #include <string.h>
  14281. #include <float.h>
  14282. int
  14283. main ()
  14284. {
  14285. ;
  14286. return 0;
  14287. }
  14288. _ACEOF
  14289. if ac_fn_c_try_compile "$LINENO"; then :
  14290. ac_cv_header_stdc=yes
  14291. else
  14292. ac_cv_header_stdc=no
  14293. fi
  14294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14295. if test $ac_cv_header_stdc = yes; then
  14296. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14298. /* end confdefs.h. */
  14299. #include <string.h>
  14300. _ACEOF
  14301. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14302. $EGREP "memchr" >/dev/null 2>&1; then :
  14303. else
  14304. ac_cv_header_stdc=no
  14305. fi
  14306. rm -f conftest*
  14307. fi
  14308. if test $ac_cv_header_stdc = yes; then
  14309. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14311. /* end confdefs.h. */
  14312. #include <stdlib.h>
  14313. _ACEOF
  14314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14315. $EGREP "free" >/dev/null 2>&1; then :
  14316. else
  14317. ac_cv_header_stdc=no
  14318. fi
  14319. rm -f conftest*
  14320. fi
  14321. if test $ac_cv_header_stdc = yes; then
  14322. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14323. if test "$cross_compiling" = yes; then :
  14324. :
  14325. else
  14326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14327. /* end confdefs.h. */
  14328. #include <ctype.h>
  14329. #include <stdlib.h>
  14330. #if ((' ' & 0x0FF) == 0x020)
  14331. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14332. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14333. #else
  14334. # define ISLOWER(c) \
  14335. (('a' <= (c) && (c) <= 'i') \
  14336. || ('j' <= (c) && (c) <= 'r') \
  14337. || ('s' <= (c) && (c) <= 'z'))
  14338. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14339. #endif
  14340. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14341. int
  14342. main ()
  14343. {
  14344. int i;
  14345. for (i = 0; i < 256; i++)
  14346. if (XOR (islower (i), ISLOWER (i))
  14347. || toupper (i) != TOUPPER (i))
  14348. return 2;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. if ac_fn_c_try_run "$LINENO"; then :
  14353. else
  14354. ac_cv_header_stdc=no
  14355. fi
  14356. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14357. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14358. fi
  14359. fi
  14360. fi
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14362. $as_echo "$ac_cv_header_stdc" >&6; }
  14363. if test $ac_cv_header_stdc = yes; then
  14364. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14365. fi
  14366. for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
  14367. do :
  14368. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14369. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14370. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14371. cat >>confdefs.h <<_ACEOF
  14372. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14373. _ACEOF
  14374. fi
  14375. done
  14376. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14377. if test "x$ac_cv_type_size_t" = xyes; then :
  14378. else
  14379. cat >>confdefs.h <<_ACEOF
  14380. #define size_t unsigned int
  14381. _ACEOF
  14382. fi
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14384. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14385. if ${ac_cv_define_M_PI+:} false; then :
  14386. $as_echo_n "(cached) " >&6
  14387. else
  14388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14389. /* end confdefs.h. */
  14390. #include <math.h>
  14391. #ifdef M_PI
  14392. YES_IS_DEFINED
  14393. #endif
  14394. _ACEOF
  14395. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14396. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14397. ac_cv_define_M_PI=yes
  14398. else
  14399. ac_cv_define_M_PI=no
  14400. fi
  14401. rm -f conftest*
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14404. $as_echo "$ac_cv_define_M_PI" >&6; }
  14405. if test "$ac_cv_define_M_PI" = "yes" ; then
  14406. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14407. fi
  14408. case "$host" in
  14409. *-*-cygwin* | *-*-mingw*)
  14410. ;;
  14411. *)
  14412. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14413. # for constant arguments. Useless!
  14414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14415. $as_echo_n "checking for working alloca.h... " >&6; }
  14416. if ${ac_cv_working_alloca_h+:} false; then :
  14417. $as_echo_n "(cached) " >&6
  14418. else
  14419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14420. /* end confdefs.h. */
  14421. #include <alloca.h>
  14422. int
  14423. main ()
  14424. {
  14425. char *p = (char *) alloca (2 * sizeof (int));
  14426. if (p) return 0;
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. if ac_fn_c_try_link "$LINENO"; then :
  14432. ac_cv_working_alloca_h=yes
  14433. else
  14434. ac_cv_working_alloca_h=no
  14435. fi
  14436. rm -f core conftest.err conftest.$ac_objext \
  14437. conftest$ac_exeext conftest.$ac_ext
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14440. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14441. if test $ac_cv_working_alloca_h = yes; then
  14442. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14443. fi
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14445. $as_echo_n "checking for alloca... " >&6; }
  14446. if ${ac_cv_func_alloca_works+:} false; then :
  14447. $as_echo_n "(cached) " >&6
  14448. else
  14449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14450. /* end confdefs.h. */
  14451. #ifdef __GNUC__
  14452. # define alloca __builtin_alloca
  14453. #else
  14454. # ifdef _MSC_VER
  14455. # include <malloc.h>
  14456. # define alloca _alloca
  14457. # else
  14458. # ifdef HAVE_ALLOCA_H
  14459. # include <alloca.h>
  14460. # else
  14461. # ifdef _AIX
  14462. #pragma alloca
  14463. # else
  14464. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14465. void *alloca (size_t);
  14466. # endif
  14467. # endif
  14468. # endif
  14469. # endif
  14470. #endif
  14471. int
  14472. main ()
  14473. {
  14474. char *p = (char *) alloca (1);
  14475. if (p) return 0;
  14476. ;
  14477. return 0;
  14478. }
  14479. _ACEOF
  14480. if ac_fn_c_try_link "$LINENO"; then :
  14481. ac_cv_func_alloca_works=yes
  14482. else
  14483. ac_cv_func_alloca_works=no
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext \
  14486. conftest$ac_exeext conftest.$ac_ext
  14487. fi
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14489. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14490. if test $ac_cv_func_alloca_works = yes; then
  14491. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14492. else
  14493. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14494. # that cause trouble. Some versions do not even contain alloca or
  14495. # contain a buggy version. If you still want to use their alloca,
  14496. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14497. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14498. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14500. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14501. if ${ac_cv_os_cray+:} false; then :
  14502. $as_echo_n "(cached) " >&6
  14503. else
  14504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14505. /* end confdefs.h. */
  14506. #if defined CRAY && ! defined CRAY2
  14507. webecray
  14508. #else
  14509. wenotbecray
  14510. #endif
  14511. _ACEOF
  14512. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14513. $EGREP "webecray" >/dev/null 2>&1; then :
  14514. ac_cv_os_cray=yes
  14515. else
  14516. ac_cv_os_cray=no
  14517. fi
  14518. rm -f conftest*
  14519. fi
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14521. $as_echo "$ac_cv_os_cray" >&6; }
  14522. if test $ac_cv_os_cray = yes; then
  14523. for ac_func in _getb67 GETB67 getb67; do
  14524. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14525. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14526. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14527. cat >>confdefs.h <<_ACEOF
  14528. #define CRAY_STACKSEG_END $ac_func
  14529. _ACEOF
  14530. break
  14531. fi
  14532. done
  14533. fi
  14534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14535. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14536. if ${ac_cv_c_stack_direction+:} false; then :
  14537. $as_echo_n "(cached) " >&6
  14538. else
  14539. if test "$cross_compiling" = yes; then :
  14540. ac_cv_c_stack_direction=0
  14541. else
  14542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14543. /* end confdefs.h. */
  14544. $ac_includes_default
  14545. int
  14546. find_stack_direction (int *addr, int depth)
  14547. {
  14548. int dir, dummy = 0;
  14549. if (! addr)
  14550. addr = &dummy;
  14551. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14552. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14553. return dir + dummy;
  14554. }
  14555. int
  14556. main (int argc, char **argv)
  14557. {
  14558. return find_stack_direction (0, argc + !argv + 20) < 0;
  14559. }
  14560. _ACEOF
  14561. if ac_fn_c_try_run "$LINENO"; then :
  14562. ac_cv_c_stack_direction=1
  14563. else
  14564. ac_cv_c_stack_direction=-1
  14565. fi
  14566. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14567. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14568. fi
  14569. fi
  14570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14571. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14572. cat >>confdefs.h <<_ACEOF
  14573. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14574. _ACEOF
  14575. fi
  14576. ;;
  14577. esac
  14578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14579. $as_echo_n "checking for working memcmp... " >&6; }
  14580. if ${ac_cv_func_memcmp_working+:} false; then :
  14581. $as_echo_n "(cached) " >&6
  14582. else
  14583. if test "$cross_compiling" = yes; then :
  14584. ac_cv_func_memcmp_working=no
  14585. else
  14586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14587. /* end confdefs.h. */
  14588. $ac_includes_default
  14589. int
  14590. main ()
  14591. {
  14592. /* Some versions of memcmp are not 8-bit clean. */
  14593. char c0 = '\100', c1 = '\200', c2 = '\201';
  14594. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14595. return 1;
  14596. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14597. or more and with at least one buffer not starting on a 4-byte boundary.
  14598. William Lewis provided this test program. */
  14599. {
  14600. char foo[21];
  14601. char bar[21];
  14602. int i;
  14603. for (i = 0; i < 4; i++)
  14604. {
  14605. char *a = foo + i;
  14606. char *b = bar + i;
  14607. strcpy (a, "--------01111111");
  14608. strcpy (b, "--------10000000");
  14609. if (memcmp (a, b, 16) >= 0)
  14610. return 1;
  14611. }
  14612. return 0;
  14613. }
  14614. ;
  14615. return 0;
  14616. }
  14617. _ACEOF
  14618. if ac_fn_c_try_run "$LINENO"; then :
  14619. ac_cv_func_memcmp_working=yes
  14620. else
  14621. ac_cv_func_memcmp_working=no
  14622. fi
  14623. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14624. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14625. fi
  14626. fi
  14627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14628. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14629. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14630. *" memcmp.$ac_objext "* ) ;;
  14631. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14632. ;;
  14633. esac
  14634. if test x$ac_cv_func_memcmp_working = xyes; then
  14635. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14636. fi
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14638. $as_echo_n "checking for working strtod... " >&6; }
  14639. if ${ac_cv_func_strtod+:} false; then :
  14640. $as_echo_n "(cached) " >&6
  14641. else
  14642. if test "$cross_compiling" = yes; then :
  14643. ac_cv_func_strtod=no
  14644. else
  14645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14646. /* end confdefs.h. */
  14647. $ac_includes_default
  14648. #ifndef strtod
  14649. double strtod ();
  14650. #endif
  14651. int
  14652. main()
  14653. {
  14654. {
  14655. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14656. char *string = " +69";
  14657. char *term;
  14658. double value;
  14659. value = strtod (string, &term);
  14660. if (value != 69 || term != (string + 4))
  14661. return 1;
  14662. }
  14663. {
  14664. /* Under Solaris 2.4, strtod returns the wrong value for the
  14665. terminating character under some conditions. */
  14666. char *string = "NaN";
  14667. char *term;
  14668. strtod (string, &term);
  14669. if (term != string && *(term - 1) == 0)
  14670. return 1;
  14671. }
  14672. return 0;
  14673. }
  14674. _ACEOF
  14675. if ac_fn_c_try_run "$LINENO"; then :
  14676. ac_cv_func_strtod=yes
  14677. else
  14678. ac_cv_func_strtod=no
  14679. fi
  14680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14681. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14682. fi
  14683. fi
  14684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14685. $as_echo "$ac_cv_func_strtod" >&6; }
  14686. if test $ac_cv_func_strtod = no; then
  14687. case " $LIBOBJS " in
  14688. *" strtod.$ac_objext "* ) ;;
  14689. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14690. ;;
  14691. esac
  14692. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14693. if test "x$ac_cv_func_pow" = xyes; then :
  14694. fi
  14695. if test $ac_cv_func_pow = no; then
  14696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14697. $as_echo_n "checking for pow in -lm... " >&6; }
  14698. if ${ac_cv_lib_m_pow+:} false; then :
  14699. $as_echo_n "(cached) " >&6
  14700. else
  14701. ac_check_lib_save_LIBS=$LIBS
  14702. LIBS="-lm $LIBS"
  14703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14704. /* end confdefs.h. */
  14705. /* Override any GCC internal prototype to avoid an error.
  14706. Use char because int might match the return type of a GCC
  14707. builtin and then its argument prototype would still apply. */
  14708. #ifdef __cplusplus
  14709. extern "C"
  14710. #endif
  14711. char pow ();
  14712. int
  14713. main ()
  14714. {
  14715. return pow ();
  14716. ;
  14717. return 0;
  14718. }
  14719. _ACEOF
  14720. if ac_fn_c_try_link "$LINENO"; then :
  14721. ac_cv_lib_m_pow=yes
  14722. else
  14723. ac_cv_lib_m_pow=no
  14724. fi
  14725. rm -f core conftest.err conftest.$ac_objext \
  14726. conftest$ac_exeext conftest.$ac_ext
  14727. LIBS=$ac_check_lib_save_LIBS
  14728. fi
  14729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14730. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14731. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14732. POW_LIB=-lm
  14733. else
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14735. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14736. fi
  14737. fi
  14738. fi
  14739. if test x$ac_cv_func_strtod = xyes; then
  14740. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14741. fi
  14742. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14743. if test "x$ac_cv_func_mprotect" = xyes; then :
  14744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14745. /* end confdefs.h. */
  14746. #include <sys/types.h>
  14747. #include <sys/mman.h>
  14748. int
  14749. main ()
  14750. {
  14751. ;
  14752. return 0;
  14753. }
  14754. _ACEOF
  14755. if ac_fn_c_try_compile "$LINENO"; then :
  14756. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14757. fi
  14758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14759. fi
  14760. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat _wcsdup wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr index rindex strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
  14761. do :
  14762. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14763. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14764. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14765. cat >>confdefs.h <<_ACEOF
  14766. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14767. _ACEOF
  14768. fi
  14769. done
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14771. $as_echo_n "checking for pow in -lm... " >&6; }
  14772. if ${ac_cv_lib_m_pow+:} false; then :
  14773. $as_echo_n "(cached) " >&6
  14774. else
  14775. ac_check_lib_save_LIBS=$LIBS
  14776. LIBS="-lm $LIBS"
  14777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14778. /* end confdefs.h. */
  14779. /* Override any GCC internal prototype to avoid an error.
  14780. Use char because int might match the return type of a GCC
  14781. builtin and then its argument prototype would still apply. */
  14782. #ifdef __cplusplus
  14783. extern "C"
  14784. #endif
  14785. char pow ();
  14786. int
  14787. main ()
  14788. {
  14789. return pow ();
  14790. ;
  14791. return 0;
  14792. }
  14793. _ACEOF
  14794. if ac_fn_c_try_link "$LINENO"; then :
  14795. ac_cv_lib_m_pow=yes
  14796. else
  14797. ac_cv_lib_m_pow=no
  14798. fi
  14799. rm -f core conftest.err conftest.$ac_objext \
  14800. conftest$ac_exeext conftest.$ac_ext
  14801. LIBS=$ac_check_lib_save_LIBS
  14802. fi
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14804. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14805. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14806. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14807. fi
  14808. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14809. do :
  14810. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14811. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14812. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14813. cat >>confdefs.h <<_ACEOF
  14814. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14815. _ACEOF
  14816. fi
  14817. done
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14819. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14820. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14821. $as_echo_n "(cached) " >&6
  14822. else
  14823. ac_check_lib_save_LIBS=$LIBS
  14824. LIBS="-liconv $LIBS"
  14825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14826. /* end confdefs.h. */
  14827. /* Override any GCC internal prototype to avoid an error.
  14828. Use char because int might match the return type of a GCC
  14829. builtin and then its argument prototype would still apply. */
  14830. #ifdef __cplusplus
  14831. extern "C"
  14832. #endif
  14833. char iconv_open ();
  14834. int
  14835. main ()
  14836. {
  14837. return iconv_open ();
  14838. ;
  14839. return 0;
  14840. }
  14841. _ACEOF
  14842. if ac_fn_c_try_link "$LINENO"; then :
  14843. ac_cv_lib_iconv_iconv_open=yes
  14844. else
  14845. ac_cv_lib_iconv_iconv_open=no
  14846. fi
  14847. rm -f core conftest.err conftest.$ac_objext \
  14848. conftest$ac_exeext conftest.$ac_ext
  14849. LIBS=$ac_check_lib_save_LIBS
  14850. fi
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14852. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14853. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14854. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14855. fi
  14856. for ac_func in iconv
  14857. do :
  14858. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14859. if test "x$ac_cv_func_iconv" = xyes; then :
  14860. cat >>confdefs.h <<_ACEOF
  14861. #define HAVE_ICONV 1
  14862. _ACEOF
  14863. fi
  14864. done
  14865. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14866. "
  14867. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14868. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14869. fi
  14870. for ac_header in libunwind.h
  14871. do :
  14872. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14873. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14874. cat >>confdefs.h <<_ACEOF
  14875. #define HAVE_LIBUNWIND_H 1
  14876. _ACEOF
  14877. fi
  14878. done
  14879. fi
  14880. # Check whether --enable-gcc-atomics was given.
  14881. if test "${enable_gcc_atomics+set}" = set; then :
  14882. enableval=$enable_gcc_atomics;
  14883. else
  14884. enable_gcc_atomics=yes
  14885. fi
  14886. if test x$enable_gcc_atomics = xyes; then
  14887. have_gcc_atomics=no
  14888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14889. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14891. /* end confdefs.h. */
  14892. int
  14893. main ()
  14894. {
  14895. int a;
  14896. void *x, *y, *z;
  14897. __sync_lock_test_and_set(&a, 4);
  14898. __sync_lock_test_and_set(&x, y);
  14899. __sync_fetch_and_add(&a, 1);
  14900. __sync_bool_compare_and_swap(&a, 5, 10);
  14901. __sync_bool_compare_and_swap(&x, y, z);
  14902. ;
  14903. return 0;
  14904. }
  14905. _ACEOF
  14906. if ac_fn_c_try_link "$LINENO"; then :
  14907. have_gcc_atomics=yes
  14908. fi
  14909. rm -f core conftest.err conftest.$ac_objext \
  14910. conftest$ac_exeext conftest.$ac_ext
  14911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14912. $as_echo "$have_gcc_atomics" >&6; }
  14913. if test x$have_gcc_atomics = xyes; then
  14914. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14915. else
  14916. # See if we have the minimum operation needed for GCC atomics
  14917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14918. /* end confdefs.h. */
  14919. int
  14920. main ()
  14921. {
  14922. int a;
  14923. __sync_lock_test_and_set(&a, 1);
  14924. __sync_lock_release(&a);
  14925. ;
  14926. return 0;
  14927. }
  14928. _ACEOF
  14929. if ac_fn_c_try_link "$LINENO"; then :
  14930. have_gcc_sync_lock_test_and_set=yes
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext \
  14933. conftest$ac_exeext conftest.$ac_ext
  14934. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14935. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14936. fi
  14937. fi
  14938. fi
  14939. # Standard C sources
  14940. SOURCES="$SOURCES $srcdir/src/*.c"
  14941. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14942. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14943. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14944. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14945. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14946. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14947. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14948. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14949. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14950. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  14951. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14952. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14953. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14954. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14955. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14956. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14957. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14958. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14959. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14960. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14961. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  14962. # Check whether --enable-atomic was given.
  14963. if test "${enable_atomic+set}" = set; then :
  14964. enableval=$enable_atomic;
  14965. else
  14966. enable_atomic=yes
  14967. fi
  14968. if test x$enable_atomic != xyes; then
  14969. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14970. else
  14971. SUMMARY_modules="${SUMMARY_modules} atomic"
  14972. fi
  14973. # Check whether --enable-audio was given.
  14974. if test "${enable_audio+set}" = set; then :
  14975. enableval=$enable_audio;
  14976. else
  14977. enable_audio=yes
  14978. fi
  14979. if test x$enable_audio != xyes; then
  14980. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14981. else
  14982. SUMMARY_modules="${SUMMARY_modules} audio"
  14983. fi
  14984. # Check whether --enable-video was given.
  14985. if test "${enable_video+set}" = set; then :
  14986. enableval=$enable_video;
  14987. else
  14988. enable_video=yes
  14989. fi
  14990. if test x$enable_video != xyes; then
  14991. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14992. else
  14993. SUMMARY_modules="${SUMMARY_modules} video"
  14994. fi
  14995. # Check whether --enable-render was given.
  14996. if test "${enable_render+set}" = set; then :
  14997. enableval=$enable_render;
  14998. else
  14999. enable_render=yes
  15000. fi
  15001. if test x$enable_render != xyes; then
  15002. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  15003. else
  15004. SUMMARY_modules="${SUMMARY_modules} render"
  15005. fi
  15006. # Check whether --enable-events was given.
  15007. if test "${enable_events+set}" = set; then :
  15008. enableval=$enable_events;
  15009. else
  15010. enable_events=yes
  15011. fi
  15012. if test x$enable_events != xyes; then
  15013. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  15014. else
  15015. SUMMARY_modules="${SUMMARY_modules} events"
  15016. fi
  15017. # Check whether --enable-joystick was given.
  15018. if test "${enable_joystick+set}" = set; then :
  15019. enableval=$enable_joystick;
  15020. else
  15021. enable_joystick=yes
  15022. fi
  15023. if test x$enable_joystick != xyes; then
  15024. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  15025. else
  15026. SUMMARY_modules="${SUMMARY_modules} joystick"
  15027. fi
  15028. # Check whether --enable-haptic was given.
  15029. if test "${enable_haptic+set}" = set; then :
  15030. enableval=$enable_haptic;
  15031. else
  15032. enable_haptic=yes
  15033. fi
  15034. if test x$enable_haptic != xyes; then
  15035. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15036. else
  15037. SUMMARY_modules="${SUMMARY_modules} haptic"
  15038. fi
  15039. # Check whether --enable-sensor was given.
  15040. if test "${enable_sensor+set}" = set; then :
  15041. enableval=$enable_sensor;
  15042. else
  15043. enable_sensor=yes
  15044. fi
  15045. if test x$enable_sensor != xyes; then
  15046. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15047. else
  15048. SUMMARY_modules="${SUMMARY_modules} sensor"
  15049. fi
  15050. # Check whether --enable-power was given.
  15051. if test "${enable_power+set}" = set; then :
  15052. enableval=$enable_power;
  15053. else
  15054. enable_power=yes
  15055. fi
  15056. if test x$enable_power != xyes; then
  15057. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15058. else
  15059. SUMMARY_modules="${SUMMARY_modules} power"
  15060. fi
  15061. # Check whether --enable-filesystem was given.
  15062. if test "${enable_filesystem+set}" = set; then :
  15063. enableval=$enable_filesystem;
  15064. else
  15065. enable_filesystem=yes
  15066. fi
  15067. if test x$enable_filesystem != xyes; then
  15068. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15069. else
  15070. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15071. fi
  15072. # Check whether --enable-threads was given.
  15073. if test "${enable_threads+set}" = set; then :
  15074. enableval=$enable_threads;
  15075. else
  15076. enable_threads=yes
  15077. fi
  15078. if test x$enable_threads != xyes; then
  15079. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15080. else
  15081. SUMMARY_modules="${SUMMARY_modules} threads"
  15082. fi
  15083. # Check whether --enable-timers was given.
  15084. if test "${enable_timers+set}" = set; then :
  15085. enableval=$enable_timers;
  15086. else
  15087. enable_timers=yes
  15088. fi
  15089. if test x$enable_timers != xyes; then
  15090. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15091. else
  15092. SUMMARY_modules="${SUMMARY_modules} timers"
  15093. fi
  15094. # Check whether --enable-file was given.
  15095. if test "${enable_file+set}" = set; then :
  15096. enableval=$enable_file;
  15097. else
  15098. enable_file=yes
  15099. fi
  15100. if test x$enable_file != xyes; then
  15101. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15102. else
  15103. SUMMARY_modules="${SUMMARY_modules} file"
  15104. fi
  15105. # Check whether --enable-loadso was given.
  15106. if test "${enable_loadso+set}" = set; then :
  15107. enableval=$enable_loadso;
  15108. else
  15109. enable_loadso=yes
  15110. fi
  15111. if test x$enable_loadso != xyes; then
  15112. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15113. else
  15114. SUMMARY_modules="${SUMMARY_modules} loadso"
  15115. fi
  15116. # Check whether --enable-cpuinfo was given.
  15117. if test "${enable_cpuinfo+set}" = set; then :
  15118. enableval=$enable_cpuinfo;
  15119. else
  15120. enable_cpuinfo=yes
  15121. fi
  15122. if test x$enable_cpuinfo != xyes; then
  15123. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15124. else
  15125. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15126. fi
  15127. # Check whether --enable-assembly was given.
  15128. if test "${enable_assembly+set}" = set; then :
  15129. enableval=$enable_assembly;
  15130. else
  15131. enable_assembly=yes
  15132. fi
  15133. if test x$enable_assembly = xyes; then
  15134. SUMMARY_modules="${SUMMARY_modules} assembly"
  15135. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15136. # Make sure that we don't generate floating point code that would
  15137. # cause illegal instruction exceptions on older processors
  15138. case "$host" in
  15139. *-*-darwin*)
  15140. # Don't need to worry about Apple hardware, it's all SSE capable
  15141. default_ssemath=yes
  15142. ;;
  15143. *64-*-*)
  15144. # x86 64-bit architectures all have SSE instructions
  15145. default_ssemath=yes
  15146. ;;
  15147. *)
  15148. default_ssemath=no
  15149. ;;
  15150. esac
  15151. # Check whether --enable-ssemath was given.
  15152. if test "${enable_ssemath+set}" = set; then :
  15153. enableval=$enable_ssemath;
  15154. else
  15155. enable_ssemath=$default_ssemath
  15156. fi
  15157. if test x$enable_ssemath = xno; then
  15158. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15159. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15160. fi
  15161. fi
  15162. # Check whether --enable-mmx was given.
  15163. if test "${enable_mmx+set}" = set; then :
  15164. enableval=$enable_mmx;
  15165. else
  15166. enable_mmx=yes
  15167. fi
  15168. if test x$enable_mmx = xyes; then
  15169. save_CFLAGS="$CFLAGS"
  15170. have_gcc_mmx=no
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15172. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15173. mmx_CFLAGS="-mmmx"
  15174. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15176. /* end confdefs.h. */
  15177. #ifdef __MINGW32__
  15178. #include <_mingw.h>
  15179. #ifdef __MINGW64_VERSION_MAJOR
  15180. #include <intrin.h>
  15181. #else
  15182. #include <mmintrin.h>
  15183. #endif
  15184. #else
  15185. #include <mmintrin.h>
  15186. #endif
  15187. #ifndef __MMX__
  15188. #error Assembler CPP flag not enabled
  15189. #endif
  15190. int
  15191. main ()
  15192. {
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_compile "$LINENO"; then :
  15198. have_gcc_mmx=yes
  15199. fi
  15200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15202. $as_echo "$have_gcc_mmx" >&6; }
  15203. CFLAGS="$save_CFLAGS"
  15204. if test x$have_gcc_mmx = xyes; then
  15205. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15206. SUMMARY_math="${SUMMARY_math} mmx"
  15207. fi
  15208. fi
  15209. # Check whether --enable-3dnow was given.
  15210. if test "${enable_3dnow+set}" = set; then :
  15211. enableval=$enable_3dnow;
  15212. else
  15213. enable_3dnow=yes
  15214. fi
  15215. if test x$enable_3dnow = xyes; then
  15216. save_CFLAGS="$CFLAGS"
  15217. have_gcc_3dnow=no
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15219. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15220. amd3dnow_CFLAGS="-m3dnow"
  15221. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. #include <mm3dnow.h>
  15225. #ifndef __3dNOW__
  15226. #error Assembler CPP flag not enabled
  15227. #endif
  15228. int
  15229. main ()
  15230. {
  15231. void *p = 0;
  15232. _m_prefetch(p);
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_link "$LINENO"; then :
  15238. have_gcc_3dnow=yes
  15239. fi
  15240. rm -f core conftest.err conftest.$ac_objext \
  15241. conftest$ac_exeext conftest.$ac_ext
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15243. $as_echo "$have_gcc_3dnow" >&6; }
  15244. CFLAGS="$save_CFLAGS"
  15245. if test x$have_gcc_3dnow = xyes; then
  15246. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15247. SUMMARY_math="${SUMMARY_math} 3dnow"
  15248. fi
  15249. fi
  15250. # Check whether --enable-sse was given.
  15251. if test "${enable_sse+set}" = set; then :
  15252. enableval=$enable_sse;
  15253. else
  15254. enable_sse=yes
  15255. fi
  15256. if test x$enable_sse = xyes; then
  15257. save_CFLAGS="$CFLAGS"
  15258. have_gcc_sse=no
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15260. $as_echo_n "checking for GCC -msse option... " >&6; }
  15261. sse_CFLAGS="-msse"
  15262. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15264. /* end confdefs.h. */
  15265. #ifdef __MINGW32__
  15266. #include <_mingw.h>
  15267. #ifdef __MINGW64_VERSION_MAJOR
  15268. #include <intrin.h>
  15269. #else
  15270. #include <xmmintrin.h>
  15271. #endif
  15272. #else
  15273. #include <xmmintrin.h>
  15274. #endif
  15275. #ifndef __SSE__
  15276. #error Assembler CPP flag not enabled
  15277. #endif
  15278. int
  15279. main ()
  15280. {
  15281. ;
  15282. return 0;
  15283. }
  15284. _ACEOF
  15285. if ac_fn_c_try_compile "$LINENO"; then :
  15286. have_gcc_sse=yes
  15287. fi
  15288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15290. $as_echo "$have_gcc_sse" >&6; }
  15291. CFLAGS="$save_CFLAGS"
  15292. if test x$have_gcc_sse = xyes; then
  15293. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15294. SUMMARY_math="${SUMMARY_math} sse"
  15295. fi
  15296. fi
  15297. # Check whether --enable-sse2 was given.
  15298. if test "${enable_sse2+set}" = set; then :
  15299. enableval=$enable_sse2;
  15300. else
  15301. enable_sse2=$default_ssemath
  15302. fi
  15303. if test x$enable_sse2 = xyes; then
  15304. save_CFLAGS="$CFLAGS"
  15305. have_gcc_sse2=no
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15307. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15308. sse2_CFLAGS="-msse2"
  15309. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15311. /* end confdefs.h. */
  15312. #ifdef __MINGW32__
  15313. #include <_mingw.h>
  15314. #ifdef __MINGW64_VERSION_MAJOR
  15315. #include <intrin.h>
  15316. #else
  15317. #include <emmintrin.h>
  15318. #endif
  15319. #else
  15320. #include <emmintrin.h>
  15321. #endif
  15322. #ifndef __SSE2__
  15323. #error Assembler CPP flag not enabled
  15324. #endif
  15325. int
  15326. main ()
  15327. {
  15328. ;
  15329. return 0;
  15330. }
  15331. _ACEOF
  15332. if ac_fn_c_try_compile "$LINENO"; then :
  15333. have_gcc_sse2=yes
  15334. fi
  15335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15337. $as_echo "$have_gcc_sse2" >&6; }
  15338. CFLAGS="$save_CFLAGS"
  15339. if test x$have_gcc_sse2 = xyes; then
  15340. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15341. SUMMARY_math="${SUMMARY_math} sse2"
  15342. fi
  15343. fi
  15344. # Check whether --enable-sse3 was given.
  15345. if test "${enable_sse3+set}" = set; then :
  15346. enableval=$enable_sse3;
  15347. else
  15348. enable_sse3=$default_ssemath
  15349. fi
  15350. if test x$enable_sse3 = xyes; then
  15351. save_CFLAGS="$CFLAGS"
  15352. have_gcc_sse3=no
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15354. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15355. sse3_CFLAGS="-msse3"
  15356. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15358. /* end confdefs.h. */
  15359. #ifdef __MINGW32__
  15360. #include <_mingw.h>
  15361. #ifdef __MINGW64_VERSION_MAJOR
  15362. #include <intrin.h>
  15363. #else
  15364. #include <pmmintrin.h>
  15365. #endif
  15366. #else
  15367. #include <pmmintrin.h>
  15368. #endif
  15369. #ifndef __SSE2__
  15370. #error Assembler CPP flag not enabled
  15371. #endif
  15372. int
  15373. main ()
  15374. {
  15375. ;
  15376. return 0;
  15377. }
  15378. _ACEOF
  15379. if ac_fn_c_try_compile "$LINENO"; then :
  15380. have_gcc_sse3=yes
  15381. fi
  15382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15384. $as_echo "$have_gcc_sse3" >&6; }
  15385. CFLAGS="$save_CFLAGS"
  15386. if test x$have_gcc_sse3 = xyes; then
  15387. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15388. SUMMARY_math="${SUMMARY_math} sse3"
  15389. fi
  15390. fi
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  15392. $as_echo_n "checking for immintrin.h... " >&6; }
  15393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15394. /* end confdefs.h. */
  15395. #include <immintrin.h>
  15396. int
  15397. main ()
  15398. {
  15399. ;
  15400. return 0;
  15401. }
  15402. _ACEOF
  15403. if ac_fn_c_try_compile "$LINENO"; then :
  15404. have_immintrin_h_hdr=yes
  15405. else
  15406. have_immintrin_h_hdr=no
  15407. fi
  15408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  15410. $as_echo "$have_immintrin_h_hdr" >&6; }
  15411. if test x$have_immintrin_h_hdr = xyes; then
  15412. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15413. fi
  15414. # Check whether --enable-altivec was given.
  15415. if test "${enable_altivec+set}" = set; then :
  15416. enableval=$enable_altivec;
  15417. else
  15418. enable_altivec=yes
  15419. fi
  15420. if test x$enable_altivec = xyes; then
  15421. save_CFLAGS="$CFLAGS"
  15422. have_gcc_altivec=no
  15423. have_altivec_h_hdr=no
  15424. altivec_CFLAGS="-maltivec"
  15425. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15427. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15429. /* end confdefs.h. */
  15430. #include <altivec.h>
  15431. vector unsigned int vzero() {
  15432. return vec_splat_u32(0);
  15433. }
  15434. int
  15435. main ()
  15436. {
  15437. ;
  15438. return 0;
  15439. }
  15440. _ACEOF
  15441. if ac_fn_c_try_compile "$LINENO"; then :
  15442. have_gcc_altivec=yes
  15443. have_altivec_h_hdr=yes
  15444. fi
  15445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15447. $as_echo "$have_gcc_altivec" >&6; }
  15448. if test x$have_gcc_altivec = xno; then
  15449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15450. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h. */
  15453. vector unsigned int vzero() {
  15454. return vec_splat_u32(0);
  15455. }
  15456. int
  15457. main ()
  15458. {
  15459. ;
  15460. return 0;
  15461. }
  15462. _ACEOF
  15463. if ac_fn_c_try_compile "$LINENO"; then :
  15464. have_gcc_altivec=yes
  15465. fi
  15466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15468. $as_echo "$have_gcc_altivec" >&6; }
  15469. fi
  15470. if test x$have_gcc_altivec = xno; then
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15472. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15473. altivec_CFLAGS="-faltivec"
  15474. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15476. /* end confdefs.h. */
  15477. #include <altivec.h>
  15478. vector unsigned int vzero() {
  15479. return vec_splat_u32(0);
  15480. }
  15481. int
  15482. main ()
  15483. {
  15484. ;
  15485. return 0;
  15486. }
  15487. _ACEOF
  15488. if ac_fn_c_try_compile "$LINENO"; then :
  15489. have_gcc_altivec=yes
  15490. have_altivec_h_hdr=yes
  15491. fi
  15492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15494. $as_echo "$have_gcc_altivec" >&6; }
  15495. fi
  15496. if test x$have_gcc_altivec = xno; then
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15498. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15500. /* end confdefs.h. */
  15501. vector unsigned int vzero() {
  15502. return vec_splat_u32(0);
  15503. }
  15504. int
  15505. main ()
  15506. {
  15507. ;
  15508. return 0;
  15509. }
  15510. _ACEOF
  15511. if ac_fn_c_try_compile "$LINENO"; then :
  15512. have_gcc_altivec=yes
  15513. fi
  15514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15516. $as_echo "$have_gcc_altivec" >&6; }
  15517. fi
  15518. CFLAGS="$save_CFLAGS"
  15519. if test x$have_gcc_altivec = xyes; then
  15520. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15521. if test x$have_altivec_h_hdr = xyes; then
  15522. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15523. fi
  15524. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15525. SUMMARY_math="${SUMMARY_math} altivec"
  15526. fi
  15527. fi
  15528. fi
  15529. CheckOSS()
  15530. {
  15531. # Check whether --enable-oss was given.
  15532. if test "${enable_oss+set}" = set; then :
  15533. enableval=$enable_oss;
  15534. else
  15535. enable_oss=maybe
  15536. fi
  15537. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15538. # use sndio instead. So on there, we default to disabled. You can force
  15539. # it on if you really want, though.
  15540. if test x$enable_oss = xmaybe; then
  15541. enable_oss=yes
  15542. case "$host" in
  15543. *-*-openbsd*)
  15544. enable_oss=no;;
  15545. esac
  15546. fi
  15547. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15549. $as_echo_n "checking for OSS audio support... " >&6; }
  15550. have_oss=no
  15551. if test x$have_oss != xyes; then
  15552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15553. /* end confdefs.h. */
  15554. #include <sys/soundcard.h>
  15555. int
  15556. main ()
  15557. {
  15558. int arg = SNDCTL_DSP_SETFRAGMENT;
  15559. ;
  15560. return 0;
  15561. }
  15562. _ACEOF
  15563. if ac_fn_c_try_compile "$LINENO"; then :
  15564. have_oss=yes
  15565. fi
  15566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15567. fi
  15568. if test x$have_oss != xyes; then
  15569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15570. /* end confdefs.h. */
  15571. #include <soundcard.h>
  15572. int
  15573. main ()
  15574. {
  15575. int arg = SNDCTL_DSP_SETFRAGMENT;
  15576. ;
  15577. return 0;
  15578. }
  15579. _ACEOF
  15580. if ac_fn_c_try_compile "$LINENO"; then :
  15581. have_oss=yes
  15582. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15583. fi
  15584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15585. fi
  15586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15587. $as_echo "$have_oss" >&6; }
  15588. if test x$have_oss = xyes; then
  15589. SUMMARY_audio="${SUMMARY_audio} oss"
  15590. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15591. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15592. have_audio=yes
  15593. # We may need to link with ossaudio emulation library
  15594. case "$host" in
  15595. *-*-openbsd*|*-*-netbsd*)
  15596. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15597. esac
  15598. fi
  15599. fi
  15600. }
  15601. CheckALSA()
  15602. {
  15603. # Check whether --enable-alsa was given.
  15604. if test "${enable_alsa+set}" = set; then :
  15605. enableval=$enable_alsa;
  15606. else
  15607. enable_alsa=yes
  15608. fi
  15609. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15610. alsa_save_CFLAGS="$CFLAGS"
  15611. alsa_save_LDFLAGS="$LDFLAGS"
  15612. alsa_save_LIBS="$LIBS"
  15613. alsa_found=yes
  15614. # Check whether --with-alsa-prefix was given.
  15615. if test "${with_alsa_prefix+set}" = set; then :
  15616. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15617. else
  15618. alsa_prefix=""
  15619. fi
  15620. # Check whether --with-alsa-inc-prefix was given.
  15621. if test "${with_alsa_inc_prefix+set}" = set; then :
  15622. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15623. else
  15624. alsa_inc_prefix=""
  15625. fi
  15626. # Check whether --enable-alsatest was given.
  15627. if test "${enable_alsatest+set}" = set; then :
  15628. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15629. else
  15630. enable_alsatest=yes
  15631. fi
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15633. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15634. if test "$alsa_inc_prefix" != "" ; then
  15635. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15636. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15637. fi
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15639. $as_echo "$ALSA_CFLAGS" >&6; }
  15640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15641. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15642. if test "$alsa_prefix" != "" ; then
  15643. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15644. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15645. fi
  15646. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15647. LIBS=`echo $LIBS | sed 's/-lm//'`
  15648. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15649. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15650. LIBS=`echo $LIBS | sed 's/ //'`
  15651. LIBS="$ALSA_LIBS $LIBS"
  15652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15653. $as_echo "$ALSA_LIBS" >&6; }
  15654. min_alsa_version=1.0.11
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15656. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15657. no_alsa=""
  15658. alsa_min_major_version=`echo $min_alsa_version | \
  15659. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15660. alsa_min_minor_version=`echo $min_alsa_version | \
  15661. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15662. alsa_min_micro_version=`echo $min_alsa_version | \
  15663. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15664. ac_ext=c
  15665. ac_cpp='$CPP $CPPFLAGS'
  15666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15670. /* end confdefs.h. */
  15671. #include <alsa/asoundlib.h>
  15672. int
  15673. main ()
  15674. {
  15675. /* ensure backward compatibility */
  15676. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15677. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15678. #endif
  15679. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15680. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15681. #endif
  15682. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15683. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15684. #endif
  15685. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15686. exit(0);
  15687. # else
  15688. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15689. # error not present
  15690. # endif
  15691. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15692. exit(0);
  15693. # else
  15694. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15695. # error not present
  15696. # endif
  15697. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15698. # error not present
  15699. # endif
  15700. # endif
  15701. # endif
  15702. exit(0);
  15703. ;
  15704. return 0;
  15705. }
  15706. _ACEOF
  15707. if ac_fn_c_try_compile "$LINENO"; then :
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15709. $as_echo "found." >&6; }
  15710. else
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15712. $as_echo "not present." >&6; }
  15713. alsa_found=no
  15714. fi
  15715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15716. ac_ext=c
  15717. ac_cpp='$CPP $CPPFLAGS'
  15718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15721. if test "x$enable_alsatest" = "xyes"; then
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15723. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15724. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15725. $as_echo_n "(cached) " >&6
  15726. else
  15727. ac_check_lib_save_LIBS=$LIBS
  15728. LIBS="-lasound $LIBS"
  15729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15730. /* end confdefs.h. */
  15731. /* Override any GCC internal prototype to avoid an error.
  15732. Use char because int might match the return type of a GCC
  15733. builtin and then its argument prototype would still apply. */
  15734. #ifdef __cplusplus
  15735. extern "C"
  15736. #endif
  15737. char snd_ctl_open ();
  15738. int
  15739. main ()
  15740. {
  15741. return snd_ctl_open ();
  15742. ;
  15743. return 0;
  15744. }
  15745. _ACEOF
  15746. if ac_fn_c_try_link "$LINENO"; then :
  15747. ac_cv_lib_asound_snd_ctl_open=yes
  15748. else
  15749. ac_cv_lib_asound_snd_ctl_open=no
  15750. fi
  15751. rm -f core conftest.err conftest.$ac_objext \
  15752. conftest$ac_exeext conftest.$ac_ext
  15753. LIBS=$ac_check_lib_save_LIBS
  15754. fi
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15756. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15757. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15758. cat >>confdefs.h <<_ACEOF
  15759. #define HAVE_LIBASOUND 1
  15760. _ACEOF
  15761. LIBS="-lasound $LIBS"
  15762. else
  15763. alsa_found=no
  15764. fi
  15765. fi
  15766. if test "x$alsa_found" = "xyes" ; then
  15767. have_alsa=yes
  15768. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15769. LIBS=`echo $LIBS | sed 's/ //'`
  15770. LIBS="-lasound $LIBS"
  15771. fi
  15772. if test "x$alsa_found" = "xno" ; then
  15773. have_alsa=no
  15774. CFLAGS="$alsa_save_CFLAGS"
  15775. LDFLAGS="$alsa_save_LDFLAGS"
  15776. LIBS="$alsa_save_LIBS"
  15777. ALSA_CFLAGS=""
  15778. ALSA_LIBS=""
  15779. fi
  15780. # Restore all flags from before the ALSA detection runs
  15781. CFLAGS="$alsa_save_CFLAGS"
  15782. LDFLAGS="$alsa_save_LDFLAGS"
  15783. LIBS="$alsa_save_LIBS"
  15784. if test x$have_alsa = xyes; then
  15785. # Check whether --enable-alsa-shared was given.
  15786. if test "${enable_alsa_shared+set}" = set; then :
  15787. enableval=$enable_alsa_shared;
  15788. else
  15789. enable_alsa_shared=yes
  15790. fi
  15791. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15792. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15793. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15794. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15795. if test x$have_loadso != xyes && \
  15796. test x$enable_alsa_shared = xyes; then
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15798. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15799. fi
  15800. if test x$have_loadso = xyes && \
  15801. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15802. echo "-- dynamic libasound -> $alsa_lib"
  15803. cat >>confdefs.h <<_ACEOF
  15804. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15805. _ACEOF
  15806. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15807. else
  15808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15809. SUMMARY_audio="${SUMMARY_audio} alsa"
  15810. fi
  15811. have_audio=yes
  15812. fi
  15813. fi
  15814. }
  15815. CheckJACK()
  15816. {
  15817. # Check whether --enable-jack was given.
  15818. if test "${enable_jack+set}" = set; then :
  15819. enableval=$enable_jack;
  15820. else
  15821. enable_jack=yes
  15822. fi
  15823. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15824. pkg_failed=no
  15825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  15826. $as_echo_n "checking for jack >= 0.125... " >&6; }
  15827. if test -n "$JACK_CFLAGS"; then
  15828. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15829. elif test -n "$PKG_CONFIG"; then
  15830. if test -n "$PKG_CONFIG" && \
  15831. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15832. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15833. ac_status=$?
  15834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15835. test $ac_status = 0; }; then
  15836. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15837. test "x$?" != "x0" && pkg_failed=yes
  15838. else
  15839. pkg_failed=yes
  15840. fi
  15841. else
  15842. pkg_failed=untried
  15843. fi
  15844. if test -n "$JACK_LIBS"; then
  15845. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15846. elif test -n "$PKG_CONFIG"; then
  15847. if test -n "$PKG_CONFIG" && \
  15848. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15849. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15850. ac_status=$?
  15851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15852. test $ac_status = 0; }; then
  15853. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15854. test "x$?" != "x0" && pkg_failed=yes
  15855. else
  15856. pkg_failed=yes
  15857. fi
  15858. else
  15859. pkg_failed=untried
  15860. fi
  15861. if test $pkg_failed = yes; then
  15862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15863. $as_echo "no" >&6; }
  15864. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15865. _pkg_short_errors_supported=yes
  15866. else
  15867. _pkg_short_errors_supported=no
  15868. fi
  15869. if test $_pkg_short_errors_supported = yes; then
  15870. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15871. else
  15872. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  15873. fi
  15874. # Put the nasty error message in config.log where it belongs
  15875. echo "$JACK_PKG_ERRORS" >&5
  15876. audio_jack=no
  15877. elif test $pkg_failed = untried; then
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15879. $as_echo "no" >&6; }
  15880. audio_jack=no
  15881. else
  15882. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15883. JACK_LIBS=$pkg_cv_JACK_LIBS
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15885. $as_echo "yes" >&6; }
  15886. audio_jack=yes
  15887. fi
  15888. if test x$audio_jack = xyes; then
  15889. # Check whether --enable-jack-shared was given.
  15890. if test "${enable_jack_shared+set}" = set; then :
  15891. enableval=$enable_jack_shared;
  15892. else
  15893. enable_jack_shared=yes
  15894. fi
  15895. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15896. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15897. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15898. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15899. if test x$have_loadso != xyes && \
  15900. test x$enable_jack_shared = xyes; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15902. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15903. fi
  15904. if test x$have_loadso = xyes && \
  15905. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15906. echo "-- dynamic libjack -> $jack_lib"
  15907. cat >>confdefs.h <<_ACEOF
  15908. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15909. _ACEOF
  15910. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15911. case "$host" in
  15912. # On Solaris, jack must be linked deferred explicitly
  15913. # to prevent undefined symbol failures.
  15914. *-*-solaris*)
  15915. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15916. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15917. esac
  15918. else
  15919. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15920. SUMMARY_audio="${SUMMARY_audio} jack"
  15921. fi
  15922. have_audio=yes
  15923. fi
  15924. fi
  15925. }
  15926. CheckESD()
  15927. {
  15928. # Check whether --enable-esd was given.
  15929. if test "${enable_esd+set}" = set; then :
  15930. enableval=$enable_esd;
  15931. else
  15932. enable_esd=yes
  15933. fi
  15934. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15935. # Check whether --with-esd-prefix was given.
  15936. if test "${with_esd_prefix+set}" = set; then :
  15937. withval=$with_esd_prefix; esd_prefix="$withval"
  15938. else
  15939. esd_prefix=""
  15940. fi
  15941. # Check whether --with-esd-exec-prefix was given.
  15942. if test "${with_esd_exec_prefix+set}" = set; then :
  15943. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15944. else
  15945. esd_exec_prefix=""
  15946. fi
  15947. # Check whether --enable-esdtest was given.
  15948. if test "${enable_esdtest+set}" = set; then :
  15949. enableval=$enable_esdtest;
  15950. else
  15951. enable_esdtest=yes
  15952. fi
  15953. if test x$esd_exec_prefix != x ; then
  15954. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15955. if test x${ESD_CONFIG+set} != xset ; then
  15956. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15957. fi
  15958. fi
  15959. if test x$esd_prefix != x ; then
  15960. esd_args="$esd_args --prefix=$esd_prefix"
  15961. if test x${ESD_CONFIG+set} != xset ; then
  15962. ESD_CONFIG=$esd_prefix/bin/esd-config
  15963. fi
  15964. fi
  15965. # Extract the first word of "esd-config", so it can be a program name with args.
  15966. set dummy esd-config; ac_word=$2
  15967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15968. $as_echo_n "checking for $ac_word... " >&6; }
  15969. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15970. $as_echo_n "(cached) " >&6
  15971. else
  15972. case $ESD_CONFIG in
  15973. [\\/]* | ?:[\\/]*)
  15974. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15975. ;;
  15976. *)
  15977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15978. for as_dir in $PATH
  15979. do
  15980. IFS=$as_save_IFS
  15981. test -z "$as_dir" && as_dir=.
  15982. for ac_exec_ext in '' $ac_executable_extensions; do
  15983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15984. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15986. break 2
  15987. fi
  15988. done
  15989. done
  15990. IFS=$as_save_IFS
  15991. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15992. ;;
  15993. esac
  15994. fi
  15995. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15996. if test -n "$ESD_CONFIG"; then
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15998. $as_echo "$ESD_CONFIG" >&6; }
  15999. else
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16001. $as_echo "no" >&6; }
  16002. fi
  16003. min_esd_version=0.2.8
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  16005. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  16006. no_esd=""
  16007. if test "$ESD_CONFIG" = "no" ; then
  16008. no_esd=yes
  16009. else
  16010. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  16011. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  16012. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  16013. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  16014. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  16015. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  16016. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  16017. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  16018. if test "x$enable_esdtest" = "xyes" ; then
  16019. ac_ext=c
  16020. ac_cpp='$CPP $CPPFLAGS'
  16021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16024. ac_save_CFLAGS="$CFLAGS"
  16025. ac_save_LIBS="$LIBS"
  16026. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16027. LIBS="$LIBS $ESD_LIBS"
  16028. rm -f conf.esdtest
  16029. if test "$cross_compiling" = yes; then :
  16030. echo $ac_n "cross compiling; assumed OK... $ac_c"
  16031. else
  16032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16033. /* end confdefs.h. */
  16034. #include <stdio.h>
  16035. #include <stdlib.h>
  16036. #include <esd.h>
  16037. int main (void)
  16038. {
  16039. int major, minor, micro;
  16040. FILE *fp = fopen("conf.esdtest", "w");
  16041. if (fp) fclose(fp);
  16042. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  16043. printf("%s, bad version string\n", "$min_esd_version");
  16044. exit(1);
  16045. }
  16046. if (($esd_major_version > major) ||
  16047. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16048. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16049. {
  16050. return 0;
  16051. }
  16052. else
  16053. {
  16054. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16055. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16056. printf("*** best to upgrade to the required version.\n");
  16057. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16058. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16059. printf("*** config.cache before re-running configure\n");
  16060. return 1;
  16061. }
  16062. }
  16063. _ACEOF
  16064. if ac_fn_c_try_run "$LINENO"; then :
  16065. else
  16066. no_esd=yes
  16067. fi
  16068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16069. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16070. fi
  16071. CFLAGS="$ac_save_CFLAGS"
  16072. LIBS="$ac_save_LIBS"
  16073. ac_ext=c
  16074. ac_cpp='$CPP $CPPFLAGS'
  16075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16078. fi
  16079. fi
  16080. if test "x$no_esd" = x ; then
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16082. $as_echo "yes" >&6; }
  16083. have_esd=yes
  16084. else
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16086. $as_echo "no" >&6; }
  16087. if test "$ESD_CONFIG" = "no" ; then
  16088. echo "*** The esd-config script installed by ESD could not be found"
  16089. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16090. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16091. echo "*** full path to esd-config."
  16092. else
  16093. if test -f conf.esdtest ; then
  16094. :
  16095. else
  16096. echo "*** Could not run ESD test program, checking why..."
  16097. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16098. LIBS="$LIBS $ESD_LIBS"
  16099. ac_ext=c
  16100. ac_cpp='$CPP $CPPFLAGS'
  16101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16105. /* end confdefs.h. */
  16106. #include <stdio.h>
  16107. #include <esd.h>
  16108. int
  16109. main ()
  16110. {
  16111. return 0;
  16112. ;
  16113. return 0;
  16114. }
  16115. _ACEOF
  16116. if ac_fn_c_try_link "$LINENO"; then :
  16117. echo "*** The test program compiled, but did not run. This usually means"
  16118. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16119. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16120. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16121. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16122. echo "*** is required on your system"
  16123. echo "***"
  16124. echo "*** If you have an old version installed, it is best to remove it, although"
  16125. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16126. else
  16127. echo "*** The test program failed to compile or link. See the file config.log for the"
  16128. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16129. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16130. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16131. fi
  16132. rm -f core conftest.err conftest.$ac_objext \
  16133. conftest$ac_exeext conftest.$ac_ext
  16134. CFLAGS="$ac_save_CFLAGS"
  16135. LIBS="$ac_save_LIBS"
  16136. ac_ext=c
  16137. ac_cpp='$CPP $CPPFLAGS'
  16138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16141. fi
  16142. fi
  16143. ESD_CFLAGS=""
  16144. ESD_LIBS=""
  16145. have_esd=no
  16146. fi
  16147. rm -f conf.esdtest
  16148. if test x$have_esd = xyes; then
  16149. # Check whether --enable-esd-shared was given.
  16150. if test "${enable_esd_shared+set}" = set; then :
  16151. enableval=$enable_esd_shared;
  16152. else
  16153. enable_esd_shared=yes
  16154. fi
  16155. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16156. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16157. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16158. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16159. if test x$have_loadso != xyes && \
  16160. test x$enable_esd_shared = xyes; then
  16161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16162. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16163. fi
  16164. if test x$have_loadso = xyes && \
  16165. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16166. echo "-- dynamic libesd -> $esd_lib"
  16167. cat >>confdefs.h <<_ACEOF
  16168. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16169. _ACEOF
  16170. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16171. else
  16172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16173. SUMMARY_audio="${SUMMARY_audio} esd"
  16174. fi
  16175. have_audio=yes
  16176. fi
  16177. fi
  16178. }
  16179. CheckPipewire()
  16180. {
  16181. # Check whether --enable-pipewire was given.
  16182. if test "${enable_pipewire+set}" = set; then :
  16183. enableval=$enable_pipewire;
  16184. else
  16185. enable_pipewire=yes
  16186. fi
  16187. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  16188. pkg_failed=no
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  16190. $as_echo_n "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  16191. if test -n "$PIPEWIRE_CFLAGS"; then
  16192. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  16193. elif test -n "$PKG_CONFIG"; then
  16194. if test -n "$PKG_CONFIG" && \
  16195. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16196. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16197. ac_status=$?
  16198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16199. test $ac_status = 0; }; then
  16200. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16201. test "x$?" != "x0" && pkg_failed=yes
  16202. else
  16203. pkg_failed=yes
  16204. fi
  16205. else
  16206. pkg_failed=untried
  16207. fi
  16208. if test -n "$PIPEWIRE_LIBS"; then
  16209. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  16210. elif test -n "$PKG_CONFIG"; then
  16211. if test -n "$PKG_CONFIG" && \
  16212. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  16213. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  16214. ac_status=$?
  16215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16216. test $ac_status = 0; }; then
  16217. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  16218. test "x$?" != "x0" && pkg_failed=yes
  16219. else
  16220. pkg_failed=yes
  16221. fi
  16222. else
  16223. pkg_failed=untried
  16224. fi
  16225. if test $pkg_failed = yes; then
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16227. $as_echo "no" >&6; }
  16228. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16229. _pkg_short_errors_supported=yes
  16230. else
  16231. _pkg_short_errors_supported=no
  16232. fi
  16233. if test $_pkg_short_errors_supported = yes; then
  16234. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16235. else
  16236. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  16237. fi
  16238. # Put the nasty error message in config.log where it belongs
  16239. echo "$PIPEWIRE_PKG_ERRORS" >&5
  16240. audio_pipewire=no
  16241. elif test $pkg_failed = untried; then
  16242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16243. $as_echo "no" >&6; }
  16244. audio_pipewire=no
  16245. else
  16246. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  16247. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16249. $as_echo "yes" >&6; }
  16250. audio_pipewire=yes
  16251. fi
  16252. if test x$audio_pipewire = xyes; then
  16253. # Check whether --enable-pipewire-shared was given.
  16254. if test "${enable_pipewire_shared+set}" = set; then :
  16255. enableval=$enable_pipewire_shared;
  16256. else
  16257. enable_pipewire_shared=yes
  16258. fi
  16259. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16260. $as_echo "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  16261. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  16262. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  16263. if test x$have_loadso != xyes && \
  16264. test x$enable_pipewire_shared = xyes; then
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  16266. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  16267. fi
  16268. if test x$have_loadso = xyes && \
  16269. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  16270. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  16271. cat >>confdefs.h <<_ACEOF
  16272. #define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC "$pipewire_lib"
  16273. _ACEOF
  16274. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  16275. else
  16276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  16277. SUMMARY_audio="${SUMMARY_audio} pipewire"
  16278. fi
  16279. have_audio=yes
  16280. fi
  16281. fi
  16282. }
  16283. CheckPulseAudio()
  16284. {
  16285. # Check whether --enable-pulseaudio was given.
  16286. if test "${enable_pulseaudio+set}" = set; then :
  16287. enableval=$enable_pulseaudio;
  16288. else
  16289. enable_pulseaudio=yes
  16290. fi
  16291. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16292. pkg_failed=no
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  16294. $as_echo_n "checking for libpulse-simple >= 0.9... " >&6; }
  16295. if test -n "$PULSEAUDIO_CFLAGS"; then
  16296. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16297. elif test -n "$PKG_CONFIG"; then
  16298. if test -n "$PKG_CONFIG" && \
  16299. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16300. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16301. ac_status=$?
  16302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16303. test $ac_status = 0; }; then
  16304. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16305. test "x$?" != "x0" && pkg_failed=yes
  16306. else
  16307. pkg_failed=yes
  16308. fi
  16309. else
  16310. pkg_failed=untried
  16311. fi
  16312. if test -n "$PULSEAUDIO_LIBS"; then
  16313. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16314. elif test -n "$PKG_CONFIG"; then
  16315. if test -n "$PKG_CONFIG" && \
  16316. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16317. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16318. ac_status=$?
  16319. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16320. test $ac_status = 0; }; then
  16321. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16322. test "x$?" != "x0" && pkg_failed=yes
  16323. else
  16324. pkg_failed=yes
  16325. fi
  16326. else
  16327. pkg_failed=untried
  16328. fi
  16329. if test $pkg_failed = yes; then
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16331. $as_echo "no" >&6; }
  16332. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16333. _pkg_short_errors_supported=yes
  16334. else
  16335. _pkg_short_errors_supported=no
  16336. fi
  16337. if test $_pkg_short_errors_supported = yes; then
  16338. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16339. else
  16340. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  16341. fi
  16342. # Put the nasty error message in config.log where it belongs
  16343. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16344. audio_pulseaudio=no
  16345. elif test $pkg_failed = untried; then
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16347. $as_echo "no" >&6; }
  16348. audio_pulseaudio=no
  16349. else
  16350. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16351. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16353. $as_echo "yes" >&6; }
  16354. audio_pulseaudio=yes
  16355. fi
  16356. if test x$audio_pulseaudio = xyes; then
  16357. # Check whether --enable-pulseaudio-shared was given.
  16358. if test "${enable_pulseaudio_shared+set}" = set; then :
  16359. enableval=$enable_pulseaudio_shared;
  16360. else
  16361. enable_pulseaudio_shared=yes
  16362. fi
  16363. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16364. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16365. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16366. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16367. if test x$have_loadso != xyes && \
  16368. test x$enable_pulseaudio_shared = xyes; then
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16370. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16371. fi
  16372. if test x$have_loadso = xyes && \
  16373. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16374. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16375. cat >>confdefs.h <<_ACEOF
  16376. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16377. _ACEOF
  16378. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16379. case "$host" in
  16380. # On Solaris, pulseaudio must be linked deferred explicitly
  16381. # to prevent undefined symbol failures.
  16382. *-*-solaris*)
  16383. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16385. esac
  16386. else
  16387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16388. SUMMARY_audio="${SUMMARY_audio} pulse"
  16389. fi
  16390. have_audio=yes
  16391. fi
  16392. fi
  16393. }
  16394. CheckARTSC()
  16395. {
  16396. # Check whether --enable-arts was given.
  16397. if test "${enable_arts+set}" = set; then :
  16398. enableval=$enable_arts;
  16399. else
  16400. enable_arts=yes
  16401. fi
  16402. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16403. # Extract the first word of "artsc-config", so it can be a program name with args.
  16404. set dummy artsc-config; ac_word=$2
  16405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16406. $as_echo_n "checking for $ac_word... " >&6; }
  16407. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16408. $as_echo_n "(cached) " >&6
  16409. else
  16410. case $ARTSCONFIG in
  16411. [\\/]* | ?:[\\/]*)
  16412. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16413. ;;
  16414. *)
  16415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16416. for as_dir in $PATH
  16417. do
  16418. IFS=$as_save_IFS
  16419. test -z "$as_dir" && as_dir=.
  16420. for ac_exec_ext in '' $ac_executable_extensions; do
  16421. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16422. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16423. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16424. break 2
  16425. fi
  16426. done
  16427. done
  16428. IFS=$as_save_IFS
  16429. ;;
  16430. esac
  16431. fi
  16432. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16433. if test -n "$ARTSCONFIG"; then
  16434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16435. $as_echo "$ARTSCONFIG" >&6; }
  16436. else
  16437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16438. $as_echo "no" >&6; }
  16439. fi
  16440. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16441. : # arts isn't installed
  16442. else
  16443. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16444. ARTS_LIBS=`$ARTSCONFIG --libs`
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16446. $as_echo_n "checking for aRts development environment... " >&6; }
  16447. audio_arts=no
  16448. save_CFLAGS="$CFLAGS"
  16449. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16451. /* end confdefs.h. */
  16452. #include <artsc.h>
  16453. int
  16454. main ()
  16455. {
  16456. arts_stream_t stream;
  16457. ;
  16458. return 0;
  16459. }
  16460. _ACEOF
  16461. if ac_fn_c_try_compile "$LINENO"; then :
  16462. audio_arts=yes
  16463. fi
  16464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16465. CFLAGS="$save_CFLAGS"
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16467. $as_echo "$audio_arts" >&6; }
  16468. if test x$audio_arts = xyes; then
  16469. # Check whether --enable-arts-shared was given.
  16470. if test "${enable_arts_shared+set}" = set; then :
  16471. enableval=$enable_arts_shared;
  16472. else
  16473. enable_arts_shared=yes
  16474. fi
  16475. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16476. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16477. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16478. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16479. if test x$have_loadso != xyes && \
  16480. test x$enable_arts_shared = xyes; then
  16481. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16482. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16483. fi
  16484. if test x$have_loadso = xyes && \
  16485. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16486. echo "-- dynamic libartsc -> $arts_lib"
  16487. cat >>confdefs.h <<_ACEOF
  16488. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16489. _ACEOF
  16490. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16491. else
  16492. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16493. SUMMARY_audio="${SUMMARY_audio} arts"
  16494. fi
  16495. have_audio=yes
  16496. fi
  16497. fi
  16498. fi
  16499. }
  16500. CheckNAS()
  16501. {
  16502. # Check whether --enable-nas was given.
  16503. if test "${enable_nas+set}" = set; then :
  16504. enableval=$enable_nas;
  16505. else
  16506. enable_nas=yes
  16507. fi
  16508. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16509. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16510. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16511. have_nas_hdr=yes
  16512. fi
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16514. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16515. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16516. $as_echo_n "(cached) " >&6
  16517. else
  16518. ac_check_lib_save_LIBS=$LIBS
  16519. LIBS="-laudio $LIBS"
  16520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16521. /* end confdefs.h. */
  16522. /* Override any GCC internal prototype to avoid an error.
  16523. Use char because int might match the return type of a GCC
  16524. builtin and then its argument prototype would still apply. */
  16525. #ifdef __cplusplus
  16526. extern "C"
  16527. #endif
  16528. char AuOpenServer ();
  16529. int
  16530. main ()
  16531. {
  16532. return AuOpenServer ();
  16533. ;
  16534. return 0;
  16535. }
  16536. _ACEOF
  16537. if ac_fn_c_try_link "$LINENO"; then :
  16538. ac_cv_lib_audio_AuOpenServer=yes
  16539. else
  16540. ac_cv_lib_audio_AuOpenServer=no
  16541. fi
  16542. rm -f core conftest.err conftest.$ac_objext \
  16543. conftest$ac_exeext conftest.$ac_ext
  16544. LIBS=$ac_check_lib_save_LIBS
  16545. fi
  16546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16547. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16548. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16549. have_nas_lib=yes
  16550. fi
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16552. $as_echo_n "checking for NAS audio support... " >&6; }
  16553. have_nas=no
  16554. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16555. have_nas=yes
  16556. NAS_LIBS="-laudio"
  16557. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16558. have_nas=yes
  16559. NAS_CFLAGS="-I/usr/X11R6/include/"
  16560. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16561. fi
  16562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16563. $as_echo "$have_nas" >&6; }
  16564. if test x$have_nas = xyes; then
  16565. # Check whether --enable-nas-shared was given.
  16566. if test "${enable_nas_shared+set}" = set; then :
  16567. enableval=$enable_nas_shared;
  16568. else
  16569. enable_nas_shared=yes
  16570. fi
  16571. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16572. if test x$have_loadso != xyes && \
  16573. test x$enable_nas_shared = xyes; then
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16575. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16576. fi
  16577. if test x$have_loadso = xyes && \
  16578. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16579. echo "-- dynamic libaudio -> $nas_lib"
  16580. cat >>confdefs.h <<_ACEOF
  16581. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16582. _ACEOF
  16583. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16584. else
  16585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16586. SUMMARY_audio="${SUMMARY_audio} nas"
  16587. fi
  16588. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16589. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16590. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16591. have_audio=yes
  16592. fi
  16593. fi
  16594. }
  16595. CheckSNDIO()
  16596. {
  16597. # Check whether --enable-sndio was given.
  16598. if test "${enable_sndio+set}" = set; then :
  16599. enableval=$enable_sndio;
  16600. else
  16601. enable_sndio=yes
  16602. fi
  16603. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16604. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16605. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16606. have_sndio_hdr=yes
  16607. fi
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16609. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16610. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16611. $as_echo_n "(cached) " >&6
  16612. else
  16613. ac_check_lib_save_LIBS=$LIBS
  16614. LIBS="-lsndio $LIBS"
  16615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16616. /* end confdefs.h. */
  16617. /* Override any GCC internal prototype to avoid an error.
  16618. Use char because int might match the return type of a GCC
  16619. builtin and then its argument prototype would still apply. */
  16620. #ifdef __cplusplus
  16621. extern "C"
  16622. #endif
  16623. char sio_open ();
  16624. int
  16625. main ()
  16626. {
  16627. return sio_open ();
  16628. ;
  16629. return 0;
  16630. }
  16631. _ACEOF
  16632. if ac_fn_c_try_link "$LINENO"; then :
  16633. ac_cv_lib_sndio_sio_open=yes
  16634. else
  16635. ac_cv_lib_sndio_sio_open=no
  16636. fi
  16637. rm -f core conftest.err conftest.$ac_objext \
  16638. conftest$ac_exeext conftest.$ac_ext
  16639. LIBS=$ac_check_lib_save_LIBS
  16640. fi
  16641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16642. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16643. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16644. have_sndio_lib=yes
  16645. fi
  16646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16647. $as_echo_n "checking for sndio audio support... " >&6; }
  16648. have_sndio=no
  16649. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16650. have_sndio=yes
  16651. SNDIO_LIBS="-lsndio"
  16652. fi
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16654. $as_echo "$have_sndio" >&6; }
  16655. if test x$have_sndio = xyes; then
  16656. # Check whether --enable-sndio-shared was given.
  16657. if test "${enable_sndio_shared+set}" = set; then :
  16658. enableval=$enable_sndio_shared;
  16659. else
  16660. enable_sndio_shared=yes
  16661. fi
  16662. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16663. if test x$have_loadso != xyes && \
  16664. test x$enable_sndio_shared = xyes; then
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16666. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16667. fi
  16668. if test x$have_loadso = xyes && \
  16669. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16670. echo "-- dynamic libsndio -> $sndio_lib"
  16671. cat >>confdefs.h <<_ACEOF
  16672. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16673. _ACEOF
  16674. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16675. else
  16676. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16677. SUMMARY_audio="${SUMMARY_audio} sndio"
  16678. fi
  16679. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16680. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16681. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16682. have_audio=yes
  16683. fi
  16684. fi
  16685. }
  16686. CheckFusionSound()
  16687. {
  16688. # Check whether --enable-fusionsound was given.
  16689. if test "${enable_fusionsound+set}" = set; then :
  16690. enableval=$enable_fusionsound;
  16691. else
  16692. enable_fusionsound=no
  16693. fi
  16694. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16695. pkg_failed=no
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  16697. $as_echo_n "checking for fusionsound >= 1.1.1... " >&6; }
  16698. if test -n "$FUSIONSOUND_CFLAGS"; then
  16699. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16700. elif test -n "$PKG_CONFIG"; then
  16701. if test -n "$PKG_CONFIG" && \
  16702. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16703. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16704. ac_status=$?
  16705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16706. test $ac_status = 0; }; then
  16707. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16708. test "x$?" != "x0" && pkg_failed=yes
  16709. else
  16710. pkg_failed=yes
  16711. fi
  16712. else
  16713. pkg_failed=untried
  16714. fi
  16715. if test -n "$FUSIONSOUND_LIBS"; then
  16716. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16717. elif test -n "$PKG_CONFIG"; then
  16718. if test -n "$PKG_CONFIG" && \
  16719. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16720. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16721. ac_status=$?
  16722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16723. test $ac_status = 0; }; then
  16724. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16725. test "x$?" != "x0" && pkg_failed=yes
  16726. else
  16727. pkg_failed=yes
  16728. fi
  16729. else
  16730. pkg_failed=untried
  16731. fi
  16732. if test $pkg_failed = yes; then
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16734. $as_echo "no" >&6; }
  16735. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16736. _pkg_short_errors_supported=yes
  16737. else
  16738. _pkg_short_errors_supported=no
  16739. fi
  16740. if test $_pkg_short_errors_supported = yes; then
  16741. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16742. else
  16743. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  16744. fi
  16745. # Put the nasty error message in config.log where it belongs
  16746. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16747. fusionsound=no
  16748. elif test $pkg_failed = untried; then
  16749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16750. $as_echo "no" >&6; }
  16751. fusionsound=no
  16752. else
  16753. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16754. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16756. $as_echo "yes" >&6; }
  16757. fusionsound=yes
  16758. fi
  16759. if test x$fusionsound = xyes; then
  16760. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16761. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16762. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16763. # Check whether --enable-fusionsound-shared was given.
  16764. if test "${enable_fusionsound_shared+set}" = set; then :
  16765. enableval=$enable_fusionsound_shared;
  16766. else
  16767. enable_fusionsound_shared=yes
  16768. fi
  16769. fusionsound_shared=no
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16771. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16772. if test x$have_loadso != xyes && \
  16773. test x$enable_fusionsound_shared = xyes; then
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16775. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16776. fi
  16777. if test x$have_loadso = xyes && \
  16778. test x$enable_fusionsound_shared = xyes; then
  16779. cat >>confdefs.h <<_ACEOF
  16780. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16781. _ACEOF
  16782. fusionsound_shared=yes
  16783. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16784. else
  16785. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16786. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16787. fi
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16789. $as_echo "$fusionsound_shared" >&6; }
  16790. have_audio=yes
  16791. fi
  16792. fi
  16793. }
  16794. CheckDiskAudio()
  16795. {
  16796. # Check whether --enable-diskaudio was given.
  16797. if test "${enable_diskaudio+set}" = set; then :
  16798. enableval=$enable_diskaudio;
  16799. else
  16800. enable_diskaudio=yes
  16801. fi
  16802. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16803. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16804. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16805. SUMMARY_audio="${SUMMARY_audio} disk"
  16806. fi
  16807. }
  16808. CheckDummyAudio()
  16809. {
  16810. # Check whether --enable-dummyaudio was given.
  16811. if test "${enable_dummyaudio+set}" = set; then :
  16812. enableval=$enable_dummyaudio;
  16813. else
  16814. enable_dummyaudio=yes
  16815. fi
  16816. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16817. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16818. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16819. SUMMARY_audio="${SUMMARY_audio} dummy"
  16820. fi
  16821. }
  16822. CheckLibSampleRate()
  16823. {
  16824. # Check whether --enable-libsamplerate was given.
  16825. if test "${enable_libsamplerate+set}" = set; then :
  16826. enableval=$enable_libsamplerate;
  16827. else
  16828. enable_libsamplerate=yes
  16829. fi
  16830. if test x$enable_libsamplerate = xyes; then
  16831. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16832. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16833. have_samplerate_h_hdr=yes
  16834. else
  16835. have_samplerate_h_hdr=no
  16836. fi
  16837. if test x$have_samplerate_h_hdr = xyes; then
  16838. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16839. # Check whether --enable-libsamplerate-shared was given.
  16840. if test "${enable_libsamplerate_shared+set}" = set; then :
  16841. enableval=$enable_libsamplerate_shared;
  16842. else
  16843. enable_libsamplerate_shared=yes
  16844. fi
  16845. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16846. if test x$have_loadso != xyes && \
  16847. test x$enable_libsamplerate_shared = xyes; then
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16849. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16850. fi
  16851. if test x$have_loadso = xyes && \
  16852. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16853. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16854. cat >>confdefs.h <<_ACEOF
  16855. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16856. _ACEOF
  16857. else
  16858. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16859. fi
  16860. fi
  16861. fi
  16862. }
  16863. CheckARM()
  16864. {
  16865. # Check whether --enable-arm-simd was given.
  16866. if test "${enable_arm_simd+set}" = set; then :
  16867. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16868. else
  16869. enable_arm_simd=no
  16870. fi
  16871. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16872. save_CFLAGS="$CFLAGS"
  16873. have_arm_simd=no
  16874. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16876. $as_echo_n "checking for ARM SIMD... " >&6; }
  16877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16878. /* end confdefs.h. */
  16879. .text
  16880. .arch armv6
  16881. .object_arch armv4
  16882. .arm
  16883. .altmacro
  16884. #ifndef __ARM_EABI__
  16885. #error EABI is required (to be sure that calling conventions are compatible)
  16886. #endif
  16887. pld [r0]
  16888. uqadd8 r0, r0, r0
  16889. _ACEOF
  16890. if ac_fn_c_try_compile "$LINENO"; then :
  16891. have_arm_simd=yes
  16892. fi
  16893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16895. $as_echo "$have_arm_simd" >&6; }
  16896. CFLAGS="$save_CFLAGS"
  16897. if test x$have_arm_simd = xyes; then
  16898. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16899. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16900. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16901. fi
  16902. fi
  16903. }
  16904. CheckNEON()
  16905. {
  16906. # Check whether --enable-arm-neon was given.
  16907. if test "${enable_arm_neon+set}" = set; then :
  16908. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16909. else
  16910. enable_arm_neon=no
  16911. fi
  16912. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16913. save_CFLAGS="$CFLAGS"
  16914. have_arm_neon=no
  16915. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16917. $as_echo_n "checking for ARM NEON... " >&6; }
  16918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16919. /* end confdefs.h. */
  16920. .text
  16921. .fpu neon
  16922. .arch armv7a
  16923. .object_arch armv4
  16924. .eabi_attribute 10, 0
  16925. .arm
  16926. .altmacro
  16927. #ifndef __ARM_EABI__
  16928. #error EABI is required (to be sure that calling conventions are compatible)
  16929. #endif
  16930. pld [r0]
  16931. vmovn.u16 d0, q0
  16932. _ACEOF
  16933. if ac_fn_c_try_compile "$LINENO"; then :
  16934. have_arm_neon=yes
  16935. fi
  16936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16938. $as_echo "$have_arm_neon" >&6; }
  16939. CFLAGS="$save_CFLAGS"
  16940. if test x$have_arm_neon = xyes; then
  16941. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16942. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16943. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16944. fi
  16945. fi
  16946. }
  16947. CheckVisibilityHidden()
  16948. {
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16950. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16951. have_gcc_fvisibility=no
  16952. visibility_CFLAGS="-fvisibility=hidden"
  16953. save_CFLAGS="$CFLAGS"
  16954. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16956. /* end confdefs.h. */
  16957. #if !defined(__GNUC__) || __GNUC__ < 4
  16958. #error SDL only uses visibility attributes in GCC 4 or newer
  16959. #endif
  16960. int
  16961. main ()
  16962. {
  16963. ;
  16964. return 0;
  16965. }
  16966. _ACEOF
  16967. if ac_fn_c_try_compile "$LINENO"; then :
  16968. have_gcc_fvisibility=yes
  16969. fi
  16970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16972. $as_echo "$have_gcc_fvisibility" >&6; }
  16973. CFLAGS="$save_CFLAGS"
  16974. if test x$have_gcc_fvisibility = xyes; then
  16975. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16976. fi
  16977. }
  16978. CheckNoStrictAliasing()
  16979. {
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16981. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16982. have_gcc_no_strict_aliasing=no
  16983. save_CFLAGS="$CFLAGS"
  16984. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16986. /* end confdefs.h. */
  16987. int x = 0;
  16988. int
  16989. main ()
  16990. {
  16991. ;
  16992. return 0;
  16993. }
  16994. _ACEOF
  16995. if ac_fn_c_try_compile "$LINENO"; then :
  16996. have_gcc_no_strict_aliasing=yes
  16997. fi
  16998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  17000. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  17001. CFLAGS="$save_CFLAGS"
  17002. if test x$have_gcc_no_strict_aliasing = xyes; then
  17003. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  17004. fi
  17005. }
  17006. CheckStackBoundary()
  17007. {
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  17009. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  17010. have_gcc_preferred_stack_boundary=no
  17011. save_CFLAGS="$CFLAGS"
  17012. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  17013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17014. /* end confdefs.h. */
  17015. int x = 0;
  17016. int
  17017. main ()
  17018. {
  17019. ;
  17020. return 0;
  17021. }
  17022. _ACEOF
  17023. if ac_fn_c_try_compile "$LINENO"; then :
  17024. have_gcc_preferred_stack_boundary=yes
  17025. fi
  17026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  17028. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  17029. CFLAGS="$save_CFLAGS"
  17030. if test x$have_gcc_preferred_stack_boundary = xyes; then
  17031. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  17032. fi
  17033. }
  17034. CheckDeclarationAfterStatement()
  17035. {
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  17037. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  17038. have_gcc_declaration_after_statement=no
  17039. save_CFLAGS="$CFLAGS"
  17040. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. int x = 0;
  17044. int
  17045. main ()
  17046. {
  17047. ;
  17048. return 0;
  17049. }
  17050. _ACEOF
  17051. if ac_fn_c_try_compile "$LINENO"; then :
  17052. have_gcc_declaration_after_statement=yes
  17053. fi
  17054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  17056. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  17057. CFLAGS="$save_CFLAGS"
  17058. if test x$have_gcc_declaration_after_statement = xyes; then
  17059. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  17060. fi
  17061. }
  17062. CheckWarnAll()
  17063. {
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  17065. $as_echo_n "checking for GCC -Wall option... " >&6; }
  17066. have_gcc_Wall=no
  17067. save_CFLAGS="$CFLAGS"
  17068. CFLAGS="$save_CFLAGS -Wall"
  17069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17070. /* end confdefs.h. */
  17071. int x = 0;
  17072. int
  17073. main ()
  17074. {
  17075. ;
  17076. return 0;
  17077. }
  17078. _ACEOF
  17079. if ac_fn_c_try_compile "$LINENO"; then :
  17080. have_gcc_Wall=yes
  17081. fi
  17082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  17084. $as_echo "$have_gcc_Wall" >&6; }
  17085. CFLAGS="$save_CFLAGS"
  17086. if test x$have_gcc_Wall = xyes; then
  17087. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  17088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  17089. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  17090. need_gcc_Wno_multichar=no
  17091. case "$host" in
  17092. *-*-haiku*)
  17093. need_gcc_Wno_multichar=yes
  17094. ;;
  17095. esac
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  17097. $as_echo "$need_gcc_Wno_multichar" >&6; }
  17098. if test x$need_gcc_Wno_multichar = xyes; then
  17099. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  17100. fi
  17101. fi
  17102. }
  17103. CheckWayland()
  17104. {
  17105. # Check whether --enable-video-wayland was given.
  17106. if test "${enable_video_wayland+set}" = set; then :
  17107. enableval=$enable_video_wayland;
  17108. else
  17109. enable_video_wayland=yes
  17110. fi
  17111. # Check whether --enable-video-wayland-qt-touch was given.
  17112. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  17113. enableval=$enable_video_wayland_qt_touch;
  17114. else
  17115. enable_video_wayland_qt_touch=yes
  17116. fi
  17117. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  17119. $as_echo_n "checking for Wayland support... " >&6; }
  17120. video_wayland=no
  17121. if test x$video_opengl_egl = xyes && \
  17122. test x$video_opengles_v2 = xyes; then
  17123. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  17124. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  17125. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  17126. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  17127. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'; then :
  17128. WAYLAND_SCANNER_CODE_MODE=private-code
  17129. else
  17130. WAYLAND_SCANNER_CODE_MODE=code
  17131. fi
  17132. video_wayland=yes
  17133. fi
  17134. fi
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  17136. $as_echo "$video_wayland" >&6; }
  17137. if test x$video_wayland = xyes; then
  17138. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  17139. if test x$enable_video_wayland_qt_touch = xyes; then
  17140. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  17141. fi
  17142. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  17143. SOURCES="$SOURCES $WAYLAND_SOURCES"
  17144. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  17145. # Check whether --enable-wayland-shared was given.
  17146. if test "${enable_wayland_shared+set}" = set; then :
  17147. enableval=$enable_wayland_shared;
  17148. else
  17149. enable_wayland_shared=maybe
  17150. fi
  17151. case "$host" in
  17152. *)
  17153. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17154. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17155. if test x$wayland_egl_lib = x; then
  17156. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17157. fi
  17158. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17159. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  17160. ;;
  17161. esac
  17162. if test x$enable_wayland_shared = xmaybe; then
  17163. enable_wayland_shared=yes
  17164. fi
  17165. if test x$have_loadso != xyes && \
  17166. test x$enable_wayland_shared = xyes; then
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17168. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17169. enable_wayland_shared=no
  17170. fi
  17171. if test x$have_loadso = xyes && \
  17172. test x$enable_wayland_shared = xyes && \
  17173. test x$wayland_client_lib != x && \
  17174. test x$wayland_egl_lib != x && \
  17175. test x$wayland_cursor_lib != x && \
  17176. test x$xkbcommon_lib != x; then
  17177. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17178. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17179. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17180. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17181. cat >>confdefs.h <<_ACEOF
  17182. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17183. _ACEOF
  17184. cat >>confdefs.h <<_ACEOF
  17185. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17186. _ACEOF
  17187. cat >>confdefs.h <<_ACEOF
  17188. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17189. _ACEOF
  17190. cat >>confdefs.h <<_ACEOF
  17191. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17192. _ACEOF
  17193. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17194. else
  17195. enable_wayland_shared=no
  17196. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17197. SUMMARY_video="${SUMMARY_video} wayland"
  17198. fi
  17199. have_video=yes
  17200. # Check whether --enable-libdecor was given.
  17201. if test "${enable_libdecor+set}" = set; then :
  17202. enableval=$enable_libdecor;
  17203. else
  17204. enable_libdecor=yes
  17205. fi
  17206. if test x$enable_libdecor = xyes; then
  17207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdecor support" >&5
  17208. $as_echo_n "checking for libdecor support... " >&6; }
  17209. if $PKG_CONFIG --exists libdecor-0; then :
  17210. video_libdecor=yes
  17211. else
  17212. video_libdecor=no
  17213. fi
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_libdecor" >&5
  17215. $as_echo "$video_libdecor" >&6; }
  17216. if test x$video_libdecor = xyes; then
  17217. EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags libdecor-0`"
  17218. $as_echo "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  17219. # Check whether --enable-libdecor-shared was given.
  17220. if test "${enable_libdecor_shared+set}" = set; then :
  17221. enableval=$enable_libdecor_shared;
  17222. else
  17223. enable_libdecor_shared=yes
  17224. fi
  17225. if test x$enable_wayland_shared != xyes; then
  17226. enable_libdecor_shared=no
  17227. fi
  17228. decor_lib=`find_lib "libdecor-0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  17229. if test x$have_loadso != xyes && \
  17230. test x$enable_libdecor_shared = xyes; then
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  17232. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  17233. fi
  17234. if test x$have_loadso = xyes && \
  17235. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  17236. echo "-- dynamic libdecor -> $decor_lib"
  17237. cat >>confdefs.h <<_ACEOF
  17238. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR "$decor_lib"
  17239. _ACEOF
  17240. else
  17241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs libdecor-0`"
  17242. fi
  17243. fi
  17244. fi
  17245. fi
  17246. fi
  17247. }
  17248. CheckNativeClient()
  17249. {
  17250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17251. /* end confdefs.h. */
  17252. #if !defined(__native_client__)
  17253. #error "NO NACL"
  17254. #endif
  17255. int
  17256. main ()
  17257. {
  17258. ;
  17259. return 0;
  17260. }
  17261. _ACEOF
  17262. if ac_fn_c_try_compile "$LINENO"; then :
  17263. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17264. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17265. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17266. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17267. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17268. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17269. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17270. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17271. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17272. SUMMARY_audio="${SUMMARY_audio} nacl"
  17273. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17274. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17275. fi
  17276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17277. }
  17278. CheckRPI()
  17279. {
  17280. # Check whether --enable-video-rpi was given.
  17281. if test "${enable_video_rpi+set}" = set; then :
  17282. enableval=$enable_video_rpi;
  17283. else
  17284. enable_video_rpi=yes
  17285. fi
  17286. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17287. pkg_failed=no
  17288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  17289. $as_echo_n "checking for bcm_host brcmegl... " >&6; }
  17290. if test -n "$RPI_CFLAGS"; then
  17291. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17292. elif test -n "$PKG_CONFIG"; then
  17293. if test -n "$PKG_CONFIG" && \
  17294. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17295. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17296. ac_status=$?
  17297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17298. test $ac_status = 0; }; then
  17299. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17300. test "x$?" != "x0" && pkg_failed=yes
  17301. else
  17302. pkg_failed=yes
  17303. fi
  17304. else
  17305. pkg_failed=untried
  17306. fi
  17307. if test -n "$RPI_LIBS"; then
  17308. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17309. elif test -n "$PKG_CONFIG"; then
  17310. if test -n "$PKG_CONFIG" && \
  17311. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17312. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17313. ac_status=$?
  17314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17315. test $ac_status = 0; }; then
  17316. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17317. test "x$?" != "x0" && pkg_failed=yes
  17318. else
  17319. pkg_failed=yes
  17320. fi
  17321. else
  17322. pkg_failed=untried
  17323. fi
  17324. if test $pkg_failed = yes; then
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17326. $as_echo "no" >&6; }
  17327. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17328. _pkg_short_errors_supported=yes
  17329. else
  17330. _pkg_short_errors_supported=no
  17331. fi
  17332. if test $_pkg_short_errors_supported = yes; then
  17333. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17334. else
  17335. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  17336. fi
  17337. # Put the nasty error message in config.log where it belongs
  17338. echo "$RPI_PKG_ERRORS" >&5
  17339. video_rpi=no
  17340. elif test $pkg_failed = untried; then
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17342. $as_echo "no" >&6; }
  17343. video_rpi=no
  17344. else
  17345. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17346. RPI_LIBS=$pkg_cv_RPI_LIBS
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17348. $as_echo "yes" >&6; }
  17349. video_rpi=yes
  17350. fi
  17351. if test x$video_rpi = xno; then
  17352. if test x$ARCH = xnetbsd; then
  17353. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17354. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17355. else
  17356. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17357. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17358. fi
  17359. fi
  17360. # Save the original compiler flags and libraries
  17361. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17362. # Add the Raspberry Pi compiler flags and libraries
  17363. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17365. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17366. have_video_rpi=no
  17367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17368. /* end confdefs.h. */
  17369. #include <bcm_host.h>
  17370. int
  17371. main ()
  17372. {
  17373. bcm_host_init();
  17374. ;
  17375. return 0;
  17376. }
  17377. _ACEOF
  17378. if ac_fn_c_try_link "$LINENO"; then :
  17379. have_video_rpi=yes
  17380. fi
  17381. rm -f core conftest.err conftest.$ac_objext \
  17382. conftest$ac_exeext conftest.$ac_ext
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17384. $as_echo "$have_video_rpi" >&6; }
  17385. # Restore the compiler flags and libraries
  17386. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17387. if test x$have_video_rpi = xyes; then
  17388. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17389. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17390. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17391. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17392. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17393. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17394. SUMMARY_video="${SUMMARY_video} rpi"
  17395. fi
  17396. fi
  17397. }
  17398. CheckX11()
  17399. {
  17400. # Check whether --enable-video-x11 was given.
  17401. if test "${enable_video_x11+set}" = set; then :
  17402. enableval=$enable_video_x11;
  17403. else
  17404. enable_video_x11=yes
  17405. fi
  17406. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17407. case "$host" in
  17408. *-*-darwin*)
  17409. # This isn't necessary for X11, but fixes GLX detection
  17410. if test "x$x_includes" = xNONE && \
  17411. test "x$x_libraries" = xNONE && \
  17412. test -d /opt/X11/include && \
  17413. test -d /opt/X11/lib; then
  17414. x_includes="/opt/X11/include"
  17415. x_libraries="/opt/X11/lib"
  17416. fi
  17417. ;;
  17418. esac
  17419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17420. $as_echo_n "checking for X... " >&6; }
  17421. # Check whether --with-x was given.
  17422. if test "${with_x+set}" = set; then :
  17423. withval=$with_x;
  17424. fi
  17425. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17426. if test "x$with_x" = xno; then
  17427. # The user explicitly disabled X.
  17428. have_x=disabled
  17429. else
  17430. case $x_includes,$x_libraries in #(
  17431. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17432. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17433. $as_echo_n "(cached) " >&6
  17434. else
  17435. # One or both of the vars are not set, and there is no cached value.
  17436. ac_x_includes=no
  17437. ac_x_libraries=no
  17438. # Do we need to do anything special at all?
  17439. ac_save_LIBS=$LIBS
  17440. LIBS="-lX11 $LIBS"
  17441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17442. /* end confdefs.h. */
  17443. #include <X11/Xlib.h>
  17444. int
  17445. main ()
  17446. {
  17447. XrmInitialize ()
  17448. ;
  17449. return 0;
  17450. }
  17451. _ACEOF
  17452. if ac_fn_c_try_link "$LINENO"; then :
  17453. # We can compile and link X programs with no special options.
  17454. ac_x_includes=
  17455. ac_x_libraries=
  17456. fi
  17457. rm -f core conftest.err conftest.$ac_objext \
  17458. conftest$ac_exeext conftest.$ac_ext
  17459. LIBS="$ac_save_LIBS"
  17460. # If that didn't work, only try xmkmf and filesystem searches
  17461. # for native compilation.
  17462. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no; then :
  17463. rm -f -r conftest.dir
  17464. if mkdir conftest.dir; then
  17465. cd conftest.dir
  17466. cat >Imakefile <<'_ACEOF'
  17467. incroot:
  17468. @echo incroot='${INCROOT}'
  17469. usrlibdir:
  17470. @echo usrlibdir='${USRLIBDIR}'
  17471. libdir:
  17472. @echo libdir='${LIBDIR}'
  17473. _ACEOF
  17474. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17475. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17476. for ac_var in incroot usrlibdir libdir; do
  17477. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17478. done
  17479. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17480. for ac_extension in a so sl dylib la dll; do
  17481. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17482. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17483. ac_im_usrlibdir=$ac_im_libdir; break
  17484. fi
  17485. done
  17486. # Screen out bogus values from the imake configuration. They are
  17487. # bogus both because they are the default anyway, and because
  17488. # using them would break gcc on systems where it needs fixed includes.
  17489. case $ac_im_incroot in
  17490. /usr/include) ac_x_includes= ;;
  17491. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17492. esac
  17493. case $ac_im_usrlibdir in
  17494. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17495. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17496. esac
  17497. fi
  17498. cd ..
  17499. rm -f -r conftest.dir
  17500. fi
  17501. # Standard set of common directories for X headers.
  17502. # Check X11 before X11Rn because it is often a symlink to the current release.
  17503. ac_x_header_dirs='
  17504. /usr/X11/include
  17505. /usr/X11R7/include
  17506. /usr/X11R6/include
  17507. /usr/X11R5/include
  17508. /usr/X11R4/include
  17509. /usr/include/X11
  17510. /usr/include/X11R7
  17511. /usr/include/X11R6
  17512. /usr/include/X11R5
  17513. /usr/include/X11R4
  17514. /usr/local/X11/include
  17515. /usr/local/X11R7/include
  17516. /usr/local/X11R6/include
  17517. /usr/local/X11R5/include
  17518. /usr/local/X11R4/include
  17519. /usr/local/include/X11
  17520. /usr/local/include/X11R7
  17521. /usr/local/include/X11R6
  17522. /usr/local/include/X11R5
  17523. /usr/local/include/X11R4
  17524. /opt/X11/include
  17525. /usr/X386/include
  17526. /usr/x386/include
  17527. /usr/XFree86/include/X11
  17528. /usr/include
  17529. /usr/local/include
  17530. /usr/unsupported/include
  17531. /usr/athena/include
  17532. /usr/local/x11r5/include
  17533. /usr/lpp/Xamples/include
  17534. /usr/openwin/include
  17535. /usr/openwin/share/include'
  17536. if test "$ac_x_includes" = no; then
  17537. # Guess where to find include files, by looking for Xlib.h.
  17538. # First, try using that file with no special directory specified.
  17539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17540. /* end confdefs.h. */
  17541. #include <X11/Xlib.h>
  17542. _ACEOF
  17543. if ac_fn_c_try_cpp "$LINENO"; then :
  17544. # We can compile using X headers with no special include directory.
  17545. ac_x_includes=
  17546. else
  17547. for ac_dir in $ac_x_header_dirs; do
  17548. if test -r "$ac_dir/X11/Xlib.h"; then
  17549. ac_x_includes=$ac_dir
  17550. break
  17551. fi
  17552. done
  17553. fi
  17554. rm -f conftest.err conftest.i conftest.$ac_ext
  17555. fi # $ac_x_includes = no
  17556. if test "$ac_x_libraries" = no; then
  17557. # Check for the libraries.
  17558. # See if we find them without any special options.
  17559. # Don't add to $LIBS permanently.
  17560. ac_save_LIBS=$LIBS
  17561. LIBS="-lX11 $LIBS"
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. #include <X11/Xlib.h>
  17565. int
  17566. main ()
  17567. {
  17568. XrmInitialize ()
  17569. ;
  17570. return 0;
  17571. }
  17572. _ACEOF
  17573. if ac_fn_c_try_link "$LINENO"; then :
  17574. LIBS=$ac_save_LIBS
  17575. # We can link X programs with no special library path.
  17576. ac_x_libraries=
  17577. else
  17578. LIBS=$ac_save_LIBS
  17579. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17580. do
  17581. # Don't even attempt the hair of trying to link an X program!
  17582. for ac_extension in a so sl dylib la dll; do
  17583. if test -r "$ac_dir/libX11.$ac_extension"; then
  17584. ac_x_libraries=$ac_dir
  17585. break 2
  17586. fi
  17587. done
  17588. done
  17589. fi
  17590. rm -f core conftest.err conftest.$ac_objext \
  17591. conftest$ac_exeext conftest.$ac_ext
  17592. fi # $ac_x_libraries = no
  17593. fi
  17594. # Record the results.
  17595. case $ac_x_includes,$ac_x_libraries in #(
  17596. no,* | *,no | *\'*) :
  17597. # Didn't find X, or a directory has "'" in its name.
  17598. ac_cv_have_x="have_x=no" ;; #(
  17599. *) :
  17600. # Record where we found X for the cache.
  17601. ac_cv_have_x="have_x=yes\
  17602. ac_x_includes='$ac_x_includes'\
  17603. ac_x_libraries='$ac_x_libraries'" ;;
  17604. esac
  17605. fi
  17606. ;; #(
  17607. *) have_x=yes;;
  17608. esac
  17609. eval "$ac_cv_have_x"
  17610. fi # $with_x != no
  17611. if test "$have_x" != yes; then
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17613. $as_echo "$have_x" >&6; }
  17614. no_x=yes
  17615. else
  17616. # If each of the values was on the command line, it overrides each guess.
  17617. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17618. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17619. # Update the cache value to reflect the command line values.
  17620. ac_cv_have_x="have_x=yes\
  17621. ac_x_includes='$x_includes'\
  17622. ac_x_libraries='$x_libraries'"
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17624. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17625. fi
  17626. if test "$no_x" = yes; then
  17627. # Not all programs may use this symbol, but it does not hurt to define it.
  17628. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17629. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17630. else
  17631. if test -n "$x_includes"; then
  17632. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17633. fi
  17634. # It would also be nice to do this for all -L options, not just this one.
  17635. if test -n "$x_libraries"; then
  17636. X_LIBS="$X_LIBS -L$x_libraries"
  17637. # For Solaris; some versions of Sun CC require a space after -R and
  17638. # others require no space. Words are not sufficient . . . .
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17640. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17641. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17642. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17643. ac_c_werror_flag=yes
  17644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17645. /* end confdefs.h. */
  17646. int
  17647. main ()
  17648. {
  17649. ;
  17650. return 0;
  17651. }
  17652. _ACEOF
  17653. if ac_fn_c_try_link "$LINENO"; then :
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17655. $as_echo "no" >&6; }
  17656. X_LIBS="$X_LIBS -R$x_libraries"
  17657. else
  17658. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17660. /* end confdefs.h. */
  17661. int
  17662. main ()
  17663. {
  17664. ;
  17665. return 0;
  17666. }
  17667. _ACEOF
  17668. if ac_fn_c_try_link "$LINENO"; then :
  17669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17670. $as_echo "yes" >&6; }
  17671. X_LIBS="$X_LIBS -R $x_libraries"
  17672. else
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17674. $as_echo "neither works" >&6; }
  17675. fi
  17676. rm -f core conftest.err conftest.$ac_objext \
  17677. conftest$ac_exeext conftest.$ac_ext
  17678. fi
  17679. rm -f core conftest.err conftest.$ac_objext \
  17680. conftest$ac_exeext conftest.$ac_ext
  17681. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17682. LIBS=$ac_xsave_LIBS
  17683. fi
  17684. # Check for system-dependent libraries X programs must link with.
  17685. # Do this before checking for the system-independent R6 libraries
  17686. # (-lICE), since we may need -lsocket or whatever for X linking.
  17687. if test "$ISC" = yes; then
  17688. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17689. else
  17690. # Martyn Johnson says this is needed for Ultrix, if the X
  17691. # libraries were built with DECnet support. And Karl Berry says
  17692. # the Alpha needs dnet_stub (dnet does not exist).
  17693. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17695. /* end confdefs.h. */
  17696. /* Override any GCC internal prototype to avoid an error.
  17697. Use char because int might match the return type of a GCC
  17698. builtin and then its argument prototype would still apply. */
  17699. #ifdef __cplusplus
  17700. extern "C"
  17701. #endif
  17702. char XOpenDisplay ();
  17703. int
  17704. main ()
  17705. {
  17706. return XOpenDisplay ();
  17707. ;
  17708. return 0;
  17709. }
  17710. _ACEOF
  17711. if ac_fn_c_try_link "$LINENO"; then :
  17712. else
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17714. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17715. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17716. $as_echo_n "(cached) " >&6
  17717. else
  17718. ac_check_lib_save_LIBS=$LIBS
  17719. LIBS="-ldnet $LIBS"
  17720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17721. /* end confdefs.h. */
  17722. /* Override any GCC internal prototype to avoid an error.
  17723. Use char because int might match the return type of a GCC
  17724. builtin and then its argument prototype would still apply. */
  17725. #ifdef __cplusplus
  17726. extern "C"
  17727. #endif
  17728. char dnet_ntoa ();
  17729. int
  17730. main ()
  17731. {
  17732. return dnet_ntoa ();
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. if ac_fn_c_try_link "$LINENO"; then :
  17738. ac_cv_lib_dnet_dnet_ntoa=yes
  17739. else
  17740. ac_cv_lib_dnet_dnet_ntoa=no
  17741. fi
  17742. rm -f core conftest.err conftest.$ac_objext \
  17743. conftest$ac_exeext conftest.$ac_ext
  17744. LIBS=$ac_check_lib_save_LIBS
  17745. fi
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17747. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17748. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17749. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17750. fi
  17751. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17753. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17754. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17755. $as_echo_n "(cached) " >&6
  17756. else
  17757. ac_check_lib_save_LIBS=$LIBS
  17758. LIBS="-ldnet_stub $LIBS"
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. /* Override any GCC internal prototype to avoid an error.
  17762. Use char because int might match the return type of a GCC
  17763. builtin and then its argument prototype would still apply. */
  17764. #ifdef __cplusplus
  17765. extern "C"
  17766. #endif
  17767. char dnet_ntoa ();
  17768. int
  17769. main ()
  17770. {
  17771. return dnet_ntoa ();
  17772. ;
  17773. return 0;
  17774. }
  17775. _ACEOF
  17776. if ac_fn_c_try_link "$LINENO"; then :
  17777. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17778. else
  17779. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17780. fi
  17781. rm -f core conftest.err conftest.$ac_objext \
  17782. conftest$ac_exeext conftest.$ac_ext
  17783. LIBS=$ac_check_lib_save_LIBS
  17784. fi
  17785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17786. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17787. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17788. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17789. fi
  17790. fi
  17791. fi
  17792. rm -f core conftest.err conftest.$ac_objext \
  17793. conftest$ac_exeext conftest.$ac_ext
  17794. LIBS="$ac_xsave_LIBS"
  17795. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17796. # to get the SysV transport functions.
  17797. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17798. # needs -lnsl.
  17799. # The nsl library prevents programs from opening the X display
  17800. # on Irix 5.2, according to T.E. Dickey.
  17801. # The functions gethostbyname, getservbyname, and inet_addr are
  17802. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17803. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17804. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17805. fi
  17806. if test $ac_cv_func_gethostbyname = no; then
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17808. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17809. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17810. $as_echo_n "(cached) " >&6
  17811. else
  17812. ac_check_lib_save_LIBS=$LIBS
  17813. LIBS="-lnsl $LIBS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. /* Override any GCC internal prototype to avoid an error.
  17817. Use char because int might match the return type of a GCC
  17818. builtin and then its argument prototype would still apply. */
  17819. #ifdef __cplusplus
  17820. extern "C"
  17821. #endif
  17822. char gethostbyname ();
  17823. int
  17824. main ()
  17825. {
  17826. return gethostbyname ();
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. if ac_fn_c_try_link "$LINENO"; then :
  17832. ac_cv_lib_nsl_gethostbyname=yes
  17833. else
  17834. ac_cv_lib_nsl_gethostbyname=no
  17835. fi
  17836. rm -f core conftest.err conftest.$ac_objext \
  17837. conftest$ac_exeext conftest.$ac_ext
  17838. LIBS=$ac_check_lib_save_LIBS
  17839. fi
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17841. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17842. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17843. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17844. fi
  17845. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17847. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17848. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17849. $as_echo_n "(cached) " >&6
  17850. else
  17851. ac_check_lib_save_LIBS=$LIBS
  17852. LIBS="-lbsd $LIBS"
  17853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17854. /* end confdefs.h. */
  17855. /* Override any GCC internal prototype to avoid an error.
  17856. Use char because int might match the return type of a GCC
  17857. builtin and then its argument prototype would still apply. */
  17858. #ifdef __cplusplus
  17859. extern "C"
  17860. #endif
  17861. char gethostbyname ();
  17862. int
  17863. main ()
  17864. {
  17865. return gethostbyname ();
  17866. ;
  17867. return 0;
  17868. }
  17869. _ACEOF
  17870. if ac_fn_c_try_link "$LINENO"; then :
  17871. ac_cv_lib_bsd_gethostbyname=yes
  17872. else
  17873. ac_cv_lib_bsd_gethostbyname=no
  17874. fi
  17875. rm -f core conftest.err conftest.$ac_objext \
  17876. conftest$ac_exeext conftest.$ac_ext
  17877. LIBS=$ac_check_lib_save_LIBS
  17878. fi
  17879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17880. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17881. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17882. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17883. fi
  17884. fi
  17885. fi
  17886. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17887. # socket/setsockopt and other routines are undefined under SCO ODT
  17888. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17889. # on later versions), says Simon Leinen: it contains gethostby*
  17890. # variants that don't use the name server (or something). -lsocket
  17891. # must be given before -lnsl if both are needed. We assume that
  17892. # if connect needs -lnsl, so does gethostbyname.
  17893. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17894. if test "x$ac_cv_func_connect" = xyes; then :
  17895. fi
  17896. if test $ac_cv_func_connect = no; then
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17898. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17899. if ${ac_cv_lib_socket_connect+:} false; then :
  17900. $as_echo_n "(cached) " >&6
  17901. else
  17902. ac_check_lib_save_LIBS=$LIBS
  17903. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17905. /* end confdefs.h. */
  17906. /* Override any GCC internal prototype to avoid an error.
  17907. Use char because int might match the return type of a GCC
  17908. builtin and then its argument prototype would still apply. */
  17909. #ifdef __cplusplus
  17910. extern "C"
  17911. #endif
  17912. char connect ();
  17913. int
  17914. main ()
  17915. {
  17916. return connect ();
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_link "$LINENO"; then :
  17922. ac_cv_lib_socket_connect=yes
  17923. else
  17924. ac_cv_lib_socket_connect=no
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext \
  17927. conftest$ac_exeext conftest.$ac_ext
  17928. LIBS=$ac_check_lib_save_LIBS
  17929. fi
  17930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17931. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17932. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17933. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17934. fi
  17935. fi
  17936. # Guillermo Gomez says -lposix is necessary on A/UX.
  17937. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17938. if test "x$ac_cv_func_remove" = xyes; then :
  17939. fi
  17940. if test $ac_cv_func_remove = no; then
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17942. $as_echo_n "checking for remove in -lposix... " >&6; }
  17943. if ${ac_cv_lib_posix_remove+:} false; then :
  17944. $as_echo_n "(cached) " >&6
  17945. else
  17946. ac_check_lib_save_LIBS=$LIBS
  17947. LIBS="-lposix $LIBS"
  17948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17949. /* end confdefs.h. */
  17950. /* Override any GCC internal prototype to avoid an error.
  17951. Use char because int might match the return type of a GCC
  17952. builtin and then its argument prototype would still apply. */
  17953. #ifdef __cplusplus
  17954. extern "C"
  17955. #endif
  17956. char remove ();
  17957. int
  17958. main ()
  17959. {
  17960. return remove ();
  17961. ;
  17962. return 0;
  17963. }
  17964. _ACEOF
  17965. if ac_fn_c_try_link "$LINENO"; then :
  17966. ac_cv_lib_posix_remove=yes
  17967. else
  17968. ac_cv_lib_posix_remove=no
  17969. fi
  17970. rm -f core conftest.err conftest.$ac_objext \
  17971. conftest$ac_exeext conftest.$ac_ext
  17972. LIBS=$ac_check_lib_save_LIBS
  17973. fi
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17975. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17976. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17977. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17978. fi
  17979. fi
  17980. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17981. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17982. if test "x$ac_cv_func_shmat" = xyes; then :
  17983. fi
  17984. if test $ac_cv_func_shmat = no; then
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17986. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17987. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17988. $as_echo_n "(cached) " >&6
  17989. else
  17990. ac_check_lib_save_LIBS=$LIBS
  17991. LIBS="-lipc $LIBS"
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. /* Override any GCC internal prototype to avoid an error.
  17995. Use char because int might match the return type of a GCC
  17996. builtin and then its argument prototype would still apply. */
  17997. #ifdef __cplusplus
  17998. extern "C"
  17999. #endif
  18000. char shmat ();
  18001. int
  18002. main ()
  18003. {
  18004. return shmat ();
  18005. ;
  18006. return 0;
  18007. }
  18008. _ACEOF
  18009. if ac_fn_c_try_link "$LINENO"; then :
  18010. ac_cv_lib_ipc_shmat=yes
  18011. else
  18012. ac_cv_lib_ipc_shmat=no
  18013. fi
  18014. rm -f core conftest.err conftest.$ac_objext \
  18015. conftest$ac_exeext conftest.$ac_ext
  18016. LIBS=$ac_check_lib_save_LIBS
  18017. fi
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  18019. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  18020. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  18021. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  18022. fi
  18023. fi
  18024. fi
  18025. # Check for libraries that X11R6 Xt/Xaw programs need.
  18026. ac_save_LDFLAGS=$LDFLAGS
  18027. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  18028. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  18029. # check for ICE first), but we must link in the order -lSM -lICE or
  18030. # we get undefined symbols. So assume we have SM if we have ICE.
  18031. # These have to be linked with before -lX11, unlike the other
  18032. # libraries we check for below, so use a different variable.
  18033. # John Interrante, Karl Berry
  18034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  18035. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  18036. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  18037. $as_echo_n "(cached) " >&6
  18038. else
  18039. ac_check_lib_save_LIBS=$LIBS
  18040. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. /* Override any GCC internal prototype to avoid an error.
  18044. Use char because int might match the return type of a GCC
  18045. builtin and then its argument prototype would still apply. */
  18046. #ifdef __cplusplus
  18047. extern "C"
  18048. #endif
  18049. char IceConnectionNumber ();
  18050. int
  18051. main ()
  18052. {
  18053. return IceConnectionNumber ();
  18054. ;
  18055. return 0;
  18056. }
  18057. _ACEOF
  18058. if ac_fn_c_try_link "$LINENO"; then :
  18059. ac_cv_lib_ICE_IceConnectionNumber=yes
  18060. else
  18061. ac_cv_lib_ICE_IceConnectionNumber=no
  18062. fi
  18063. rm -f core conftest.err conftest.$ac_objext \
  18064. conftest$ac_exeext conftest.$ac_ext
  18065. LIBS=$ac_check_lib_save_LIBS
  18066. fi
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  18068. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  18069. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  18070. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  18071. fi
  18072. LDFLAGS=$ac_save_LDFLAGS
  18073. fi
  18074. if test x$have_x = xyes; then
  18075. # Check whether --enable-x11-shared was given.
  18076. if test "${enable_x11_shared+set}" = set; then :
  18077. enableval=$enable_x11_shared;
  18078. else
  18079. enable_x11_shared=maybe
  18080. fi
  18081. case "$host" in
  18082. *-*-darwin*)
  18083. # Apple now puts this in /opt/X11
  18084. x11_lib='/opt/X11/lib/libX11.6.dylib'
  18085. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  18086. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  18087. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  18088. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  18089. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  18090. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  18091. xss_lib='/opt/X11/lib/libXss.1.dylib'
  18092. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  18093. ;;
  18094. *-*-openbsd*)
  18095. x11_lib='libX11.so'
  18096. x11ext_lib='libXext.so'
  18097. xcursor_lib='libXcursor.so'
  18098. xinerama_lib='libXinerama.so'
  18099. xinput_lib='libXi.so'
  18100. xrandr_lib='libXrandr.so'
  18101. xrender_lib='libXrender.so'
  18102. xss_lib='libXss.so'
  18103. xvidmode_lib='libXxf86vm.so'
  18104. ;;
  18105. *)
  18106. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18107. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18108. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18109. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18110. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18111. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18112. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18113. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18114. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  18115. ;;
  18116. esac
  18117. if test x$ac_cv_func_shmat != xyes; then
  18118. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  18119. fi
  18120. CFLAGS="$CFLAGS $X_CFLAGS"
  18121. LDFLAGS="$LDFLAGS $X_LIBS"
  18122. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  18123. #include <X11/Xproto.h>
  18124. "
  18125. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  18126. have_xext_h_hdr=yes
  18127. else
  18128. have_xext_h_hdr=no
  18129. fi
  18130. if test x$have_xext_h_hdr != xyes; then
  18131. as_fn_error $? "
  18132. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  18133. " "$LINENO" 5
  18134. fi
  18135. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  18136. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  18137. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  18138. # Needed so SDL applications can include SDL_syswm.h
  18139. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  18140. if test x$enable_x11_shared = xmaybe; then
  18141. enable_x11_shared=yes
  18142. fi
  18143. if test x$have_loadso != xyes && \
  18144. test x$enable_x11_shared = xyes; then
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  18146. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  18147. enable_x11_shared=no
  18148. fi
  18149. if test x$have_loadso = xyes && \
  18150. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  18151. echo "-- dynamic libX11 -> $x11_lib"
  18152. echo "-- dynamic libX11ext -> $x11ext_lib"
  18153. cat >>confdefs.h <<_ACEOF
  18154. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  18155. _ACEOF
  18156. cat >>confdefs.h <<_ACEOF
  18157. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  18158. _ACEOF
  18159. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  18160. else
  18161. enable_x11_shared=no
  18162. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  18163. SUMMARY_video="${SUMMARY_video} x11"
  18164. fi
  18165. have_video=yes
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  18167. $as_echo_n "checking for XGenericEvent... " >&6; }
  18168. have_XGenericEvent=no
  18169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18170. /* end confdefs.h. */
  18171. #include <X11/Xlib.h>
  18172. int
  18173. main ()
  18174. {
  18175. Display *display;
  18176. XEvent event;
  18177. XGenericEventCookie *cookie = &event.xcookie;
  18178. XNextEvent(display, &event);
  18179. XGetEventData(display, cookie);
  18180. XFreeEventData(display, cookie);
  18181. ;
  18182. return 0;
  18183. }
  18184. _ACEOF
  18185. if ac_fn_c_try_compile "$LINENO"; then :
  18186. have_XGenericEvent=yes
  18187. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  18188. fi
  18189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  18191. $as_echo "$have_XGenericEvent" >&6; }
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  18193. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  18194. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  18195. $as_echo_n "(cached) " >&6
  18196. else
  18197. ac_check_lib_save_LIBS=$LIBS
  18198. LIBS="-lX11 $LIBS"
  18199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18200. /* end confdefs.h. */
  18201. /* Override any GCC internal prototype to avoid an error.
  18202. Use char because int might match the return type of a GCC
  18203. builtin and then its argument prototype would still apply. */
  18204. #ifdef __cplusplus
  18205. extern "C"
  18206. #endif
  18207. char XkbKeycodeToKeysym ();
  18208. int
  18209. main ()
  18210. {
  18211. return XkbKeycodeToKeysym ();
  18212. ;
  18213. return 0;
  18214. }
  18215. _ACEOF
  18216. if ac_fn_c_try_link "$LINENO"; then :
  18217. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18218. else
  18219. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18220. fi
  18221. rm -f core conftest.err conftest.$ac_objext \
  18222. conftest$ac_exeext conftest.$ac_ext
  18223. LIBS=$ac_check_lib_save_LIBS
  18224. fi
  18225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18226. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18227. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18228. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18229. fi
  18230. # Check whether --enable-video-x11-xcursor was given.
  18231. if test "${enable_video_x11_xcursor+set}" = set; then :
  18232. enableval=$enable_video_x11_xcursor;
  18233. else
  18234. enable_video_x11_xcursor=yes
  18235. fi
  18236. if test x$enable_video_x11_xcursor = xyes; then
  18237. definitely_enable_video_x11_xcursor=no
  18238. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18239. "
  18240. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18241. have_xcursor_h_hdr=yes
  18242. else
  18243. have_xcursor_h_hdr=no
  18244. fi
  18245. if test x$have_xcursor_h_hdr = xyes; then
  18246. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18247. echo "-- dynamic libXcursor -> $xcursor_lib"
  18248. cat >>confdefs.h <<_ACEOF
  18249. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18250. _ACEOF
  18251. definitely_enable_video_x11_xcursor=yes
  18252. else
  18253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18254. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18255. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18256. $as_echo_n "(cached) " >&6
  18257. else
  18258. ac_check_lib_save_LIBS=$LIBS
  18259. LIBS="-lXcursor $LIBS"
  18260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18261. /* end confdefs.h. */
  18262. /* Override any GCC internal prototype to avoid an error.
  18263. Use char because int might match the return type of a GCC
  18264. builtin and then its argument prototype would still apply. */
  18265. #ifdef __cplusplus
  18266. extern "C"
  18267. #endif
  18268. char XcursorImageCreate ();
  18269. int
  18270. main ()
  18271. {
  18272. return XcursorImageCreate ();
  18273. ;
  18274. return 0;
  18275. }
  18276. _ACEOF
  18277. if ac_fn_c_try_link "$LINENO"; then :
  18278. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18279. else
  18280. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18281. fi
  18282. rm -f core conftest.err conftest.$ac_objext \
  18283. conftest$ac_exeext conftest.$ac_ext
  18284. LIBS=$ac_check_lib_save_LIBS
  18285. fi
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18287. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18288. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18289. have_xcursor_lib=yes
  18290. fi
  18291. if test x$have_xcursor_lib = xyes ; then
  18292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18293. definitely_enable_video_x11_xcursor=yes
  18294. fi
  18295. fi
  18296. fi
  18297. fi
  18298. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18299. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18300. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18301. fi
  18302. # Check whether --enable-video-x11-xdbe was given.
  18303. if test "${enable_video_x11_xdbe+set}" = set; then :
  18304. enableval=$enable_video_x11_xdbe;
  18305. else
  18306. enable_video_x11_xdbe=yes
  18307. fi
  18308. if test x$enable_video_x11_xdbe = xyes; then
  18309. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18310. "
  18311. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18312. have_dbe_h_hdr=yes
  18313. else
  18314. have_dbe_h_hdr=no
  18315. fi
  18316. if test x$have_dbe_h_hdr = xyes; then
  18317. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18318. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18319. fi
  18320. fi
  18321. # Check whether --enable-video-x11-xinerama was given.
  18322. if test "${enable_video_x11_xinerama+set}" = set; then :
  18323. enableval=$enable_video_x11_xinerama;
  18324. else
  18325. enable_video_x11_xinerama=yes
  18326. fi
  18327. if test x$enable_video_x11_xinerama = xyes; then
  18328. definitely_enable_video_x11_xinerama=no
  18329. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18330. "
  18331. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18332. have_xinerama_h_hdr=yes
  18333. else
  18334. have_xinerama_h_hdr=no
  18335. fi
  18336. if test x$have_xinerama_h_hdr = xyes; then
  18337. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18338. echo "-- dynamic libXinerama -> $xinerama_lib"
  18339. cat >>confdefs.h <<_ACEOF
  18340. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18341. _ACEOF
  18342. definitely_enable_video_x11_xinerama=yes
  18343. else
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18345. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18346. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18347. $as_echo_n "(cached) " >&6
  18348. else
  18349. ac_check_lib_save_LIBS=$LIBS
  18350. LIBS="-lXinerama $LIBS"
  18351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. /* end confdefs.h. */
  18353. /* Override any GCC internal prototype to avoid an error.
  18354. Use char because int might match the return type of a GCC
  18355. builtin and then its argument prototype would still apply. */
  18356. #ifdef __cplusplus
  18357. extern "C"
  18358. #endif
  18359. char XineramaQueryExtension ();
  18360. int
  18361. main ()
  18362. {
  18363. return XineramaQueryExtension ();
  18364. ;
  18365. return 0;
  18366. }
  18367. _ACEOF
  18368. if ac_fn_c_try_link "$LINENO"; then :
  18369. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18370. else
  18371. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18372. fi
  18373. rm -f core conftest.err conftest.$ac_objext \
  18374. conftest$ac_exeext conftest.$ac_ext
  18375. LIBS=$ac_check_lib_save_LIBS
  18376. fi
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18378. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18379. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18380. have_xinerama_lib=yes
  18381. fi
  18382. if test x$have_xinerama_lib = xyes ; then
  18383. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18384. definitely_enable_video_x11_xinerama=yes
  18385. fi
  18386. fi
  18387. fi
  18388. fi
  18389. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18390. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18391. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18392. fi
  18393. # Check whether --enable-video-x11-xinput was given.
  18394. if test "${enable_video_x11_xinput+set}" = set; then :
  18395. enableval=$enable_video_x11_xinput;
  18396. else
  18397. enable_video_x11_xinput=yes
  18398. fi
  18399. if test x$enable_video_x11_xinput = xyes; then
  18400. definitely_enable_video_x11_xinput=no
  18401. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18402. "
  18403. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18404. have_xinput_h_hdr=yes
  18405. else
  18406. have_xinput_h_hdr=no
  18407. fi
  18408. if test x$have_xinput_h_hdr = xyes; then
  18409. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18410. echo "-- dynamic libXi -> $xinput_lib"
  18411. cat >>confdefs.h <<_ACEOF
  18412. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18413. _ACEOF
  18414. definitely_enable_video_x11_xinput=yes
  18415. else
  18416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18417. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18418. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18419. $as_echo_n "(cached) " >&6
  18420. else
  18421. ac_check_lib_save_LIBS=$LIBS
  18422. LIBS="-lXi $LIBS"
  18423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18424. /* end confdefs.h. */
  18425. /* Override any GCC internal prototype to avoid an error.
  18426. Use char because int might match the return type of a GCC
  18427. builtin and then its argument prototype would still apply. */
  18428. #ifdef __cplusplus
  18429. extern "C"
  18430. #endif
  18431. char XOpenDevice ();
  18432. int
  18433. main ()
  18434. {
  18435. return XOpenDevice ();
  18436. ;
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. if ac_fn_c_try_link "$LINENO"; then :
  18441. ac_cv_lib_Xi_XOpenDevice=yes
  18442. else
  18443. ac_cv_lib_Xi_XOpenDevice=no
  18444. fi
  18445. rm -f core conftest.err conftest.$ac_objext \
  18446. conftest$ac_exeext conftest.$ac_ext
  18447. LIBS=$ac_check_lib_save_LIBS
  18448. fi
  18449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18450. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18451. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18452. have_xinput_lib=yes
  18453. fi
  18454. if test x$have_xinput_lib = xyes ; then
  18455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18456. definitely_enable_video_x11_xinput=yes
  18457. fi
  18458. fi
  18459. fi
  18460. fi
  18461. if test x$definitely_enable_video_x11_xinput = xyes; then
  18462. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18463. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18465. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18466. have_xinput2_multitouch=no
  18467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18468. /* end confdefs.h. */
  18469. #include <X11/Xlib.h>
  18470. #include <X11/Xproto.h>
  18471. #include <X11/extensions/XInput2.h>
  18472. int
  18473. main ()
  18474. {
  18475. int event_type = XI_TouchBegin;
  18476. XITouchClassInfo *t;
  18477. ;
  18478. return 0;
  18479. }
  18480. _ACEOF
  18481. if ac_fn_c_try_compile "$LINENO"; then :
  18482. have_xinput2_multitouch=yes
  18483. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18484. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18485. fi
  18486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18488. $as_echo "$have_xinput2_multitouch" >&6; }
  18489. fi
  18490. # Check whether --enable-video-x11-xrandr was given.
  18491. if test "${enable_video_x11_xrandr+set}" = set; then :
  18492. enableval=$enable_video_x11_xrandr;
  18493. else
  18494. enable_video_x11_xrandr=yes
  18495. fi
  18496. if test x$enable_video_x11_xrandr = xyes; then
  18497. definitely_enable_video_x11_xrandr=no
  18498. have_xrandr_h_hdr=no
  18499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18500. /* end confdefs.h. */
  18501. #include <X11/Xlib.h>
  18502. #include <X11/extensions/Xrandr.h>
  18503. int
  18504. main ()
  18505. {
  18506. XRRScreenResources *res = NULL;
  18507. ;
  18508. return 0;
  18509. }
  18510. _ACEOF
  18511. if ac_fn_c_try_compile "$LINENO"; then :
  18512. have_xrandr_h_hdr=yes
  18513. fi
  18514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18515. if test x$have_xrandr_h_hdr = xyes; then
  18516. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18517. echo "-- dynamic libXrandr -> $xrandr_lib"
  18518. cat >>confdefs.h <<_ACEOF
  18519. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18520. _ACEOF
  18521. definitely_enable_video_x11_xrandr=yes
  18522. else
  18523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18524. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18525. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18526. $as_echo_n "(cached) " >&6
  18527. else
  18528. ac_check_lib_save_LIBS=$LIBS
  18529. LIBS="-lXrandr $LIBS"
  18530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18531. /* end confdefs.h. */
  18532. /* Override any GCC internal prototype to avoid an error.
  18533. Use char because int might match the return type of a GCC
  18534. builtin and then its argument prototype would still apply. */
  18535. #ifdef __cplusplus
  18536. extern "C"
  18537. #endif
  18538. char XRRQueryExtension ();
  18539. int
  18540. main ()
  18541. {
  18542. return XRRQueryExtension ();
  18543. ;
  18544. return 0;
  18545. }
  18546. _ACEOF
  18547. if ac_fn_c_try_link "$LINENO"; then :
  18548. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18549. else
  18550. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18551. fi
  18552. rm -f core conftest.err conftest.$ac_objext \
  18553. conftest$ac_exeext conftest.$ac_ext
  18554. LIBS=$ac_check_lib_save_LIBS
  18555. fi
  18556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18557. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18558. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18559. have_xrandr_lib=yes
  18560. fi
  18561. if test x$have_xrandr_lib = xyes ; then
  18562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18563. definitely_enable_video_x11_xrandr=yes
  18564. fi
  18565. fi
  18566. fi
  18567. fi
  18568. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18569. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18570. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18571. fi
  18572. # Check whether --enable-video-x11-scrnsaver was given.
  18573. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18574. enableval=$enable_video_x11_scrnsaver;
  18575. else
  18576. enable_video_x11_scrnsaver=yes
  18577. fi
  18578. if test x$enable_video_x11_scrnsaver = xyes; then
  18579. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18580. "
  18581. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18582. have_scrnsaver_h_hdr=yes
  18583. else
  18584. have_scrnsaver_h_hdr=no
  18585. fi
  18586. if test x$have_scrnsaver_h_hdr = xyes; then
  18587. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18588. echo "-- dynamic libXss -> $xss_lib"
  18589. cat >>confdefs.h <<_ACEOF
  18590. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18591. _ACEOF
  18592. definitely_enable_video_x11_scrnsaver=yes
  18593. else
  18594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18595. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18596. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18597. $as_echo_n "(cached) " >&6
  18598. else
  18599. ac_check_lib_save_LIBS=$LIBS
  18600. LIBS="-lXss $LIBS"
  18601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18602. /* end confdefs.h. */
  18603. /* Override any GCC internal prototype to avoid an error.
  18604. Use char because int might match the return type of a GCC
  18605. builtin and then its argument prototype would still apply. */
  18606. #ifdef __cplusplus
  18607. extern "C"
  18608. #endif
  18609. char XScreenSaverSuspend ();
  18610. int
  18611. main ()
  18612. {
  18613. return XScreenSaverSuspend ();
  18614. ;
  18615. return 0;
  18616. }
  18617. _ACEOF
  18618. if ac_fn_c_try_link "$LINENO"; then :
  18619. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18620. else
  18621. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18622. fi
  18623. rm -f core conftest.err conftest.$ac_objext \
  18624. conftest$ac_exeext conftest.$ac_ext
  18625. LIBS=$ac_check_lib_save_LIBS
  18626. fi
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18628. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18629. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18630. have_xss_lib=yes
  18631. fi
  18632. if test x$have_xss_lib = xyes ; then
  18633. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18634. definitely_enable_video_x11_scrnsaver=yes
  18635. fi
  18636. fi
  18637. fi
  18638. fi
  18639. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18640. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18641. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18642. fi
  18643. # Check whether --enable-video-x11-xshape was given.
  18644. if test "${enable_video_x11_xshape+set}" = set; then :
  18645. enableval=$enable_video_x11_xshape;
  18646. else
  18647. enable_video_x11_xshape=yes
  18648. fi
  18649. if test x$enable_video_x11_xshape = xyes; then
  18650. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18651. "
  18652. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18653. have_shape_h_hdr=yes
  18654. else
  18655. have_shape_h_hdr=no
  18656. fi
  18657. if test x$have_shape_h_hdr = xyes; then
  18658. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18659. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18660. fi
  18661. fi
  18662. # Check whether --enable-video-x11-vm was given.
  18663. if test "${enable_video_x11_vm+set}" = set; then :
  18664. enableval=$enable_video_x11_vm;
  18665. else
  18666. enable_video_x11_vm=yes
  18667. fi
  18668. if test x$enable_video_x11_vm = xyes; then
  18669. definitely_enable_video_x11_vm=no
  18670. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18671. "
  18672. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18673. have_vm_h_hdr=yes
  18674. else
  18675. have_vm_h_hdr=no
  18676. fi
  18677. if test x$have_vm_h_hdr = xyes; then
  18678. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18679. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18680. cat >>confdefs.h <<_ACEOF
  18681. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18682. _ACEOF
  18683. definitely_enable_video_x11_vm=yes
  18684. else
  18685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18686. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18687. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18688. $as_echo_n "(cached) " >&6
  18689. else
  18690. ac_check_lib_save_LIBS=$LIBS
  18691. LIBS="-lXxf86vm $LIBS"
  18692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18693. /* end confdefs.h. */
  18694. /* Override any GCC internal prototype to avoid an error.
  18695. Use char because int might match the return type of a GCC
  18696. builtin and then its argument prototype would still apply. */
  18697. #ifdef __cplusplus
  18698. extern "C"
  18699. #endif
  18700. char XF86VidModeQueryVersion ();
  18701. int
  18702. main ()
  18703. {
  18704. return XF86VidModeQueryVersion ();
  18705. ;
  18706. return 0;
  18707. }
  18708. _ACEOF
  18709. if ac_fn_c_try_link "$LINENO"; then :
  18710. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18711. else
  18712. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18713. fi
  18714. rm -f core conftest.err conftest.$ac_objext \
  18715. conftest$ac_exeext conftest.$ac_ext
  18716. LIBS=$ac_check_lib_save_LIBS
  18717. fi
  18718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18719. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18720. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18721. have_vm_lib=yes
  18722. fi
  18723. if test x$have_vm_lib = xyes ; then
  18724. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18725. definitely_enable_video_x11_vm=yes
  18726. fi
  18727. fi
  18728. fi
  18729. fi
  18730. if test x$definitely_enable_video_x11_vm = xyes; then
  18731. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18732. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18733. fi
  18734. fi
  18735. fi
  18736. if test x$have_x != xyes; then
  18737. # Prevent Mesa from including X11 headers
  18738. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18739. fi
  18740. }
  18741. CheckVivanteVideo()
  18742. {
  18743. # Check whether --enable-video-vivante was given.
  18744. if test "${enable_video_vivante+set}" = set; then :
  18745. enableval=$enable_video_vivante;
  18746. else
  18747. enable_video_vivante=yes
  18748. fi
  18749. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18751. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18752. have_vivante_vdk=no
  18753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18754. /* end confdefs.h. */
  18755. #define LINUX
  18756. #define EGL_API_FB
  18757. #include <gc_vdk.h>
  18758. int
  18759. main ()
  18760. {
  18761. ;
  18762. return 0;
  18763. }
  18764. _ACEOF
  18765. if ac_fn_c_try_compile "$LINENO"; then :
  18766. have_vivante_vdk=yes
  18767. fi
  18768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18770. $as_echo "$have_vivante_vdk" >&6; }
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18772. $as_echo_n "checking for Vivante FB API... " >&6; }
  18773. have_vivante_egl=no
  18774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18775. /* end confdefs.h. */
  18776. #define LINUX
  18777. #define EGL_API_FB
  18778. #include <EGL/eglvivante.h>
  18779. int
  18780. main ()
  18781. {
  18782. ;
  18783. return 0;
  18784. }
  18785. _ACEOF
  18786. if ac_fn_c_try_compile "$LINENO"; then :
  18787. have_vivante_egl=yes
  18788. fi
  18789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18791. $as_echo "$have_vivante_egl" >&6; }
  18792. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18793. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18794. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18795. if test x$have_vivante_vdk = xyes; then
  18796. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18797. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18798. fi
  18799. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18800. SUMMARY_video="${SUMMARY_video} vivante"
  18801. have_video=yes
  18802. fi
  18803. fi
  18804. }
  18805. CheckHaikuVideo()
  18806. {
  18807. if test x$enable_video = xyes; then
  18808. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18809. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18810. have_video=yes
  18811. SUMMARY_video="${SUMMARY_video} haiku"
  18812. fi
  18813. }
  18814. CheckCOCOA()
  18815. {
  18816. # Check whether --enable-video-cocoa was given.
  18817. if test "${enable_video_cocoa+set}" = set; then :
  18818. enableval=$enable_video_cocoa;
  18819. else
  18820. enable_video_cocoa=yes
  18821. fi
  18822. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18823. save_CFLAGS="$CFLAGS"
  18824. CFLAGS="$CFLAGS -x objective-c"
  18825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18826. $as_echo_n "checking for Cocoa framework... " >&6; }
  18827. have_cocoa=no
  18828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18829. /* end confdefs.h. */
  18830. #import <Cocoa/Cocoa.h>
  18831. int
  18832. main ()
  18833. {
  18834. ;
  18835. return 0;
  18836. }
  18837. _ACEOF
  18838. if ac_fn_c_try_compile "$LINENO"; then :
  18839. have_cocoa=yes
  18840. fi
  18841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18843. $as_echo "$have_cocoa" >&6; }
  18844. CFLAGS="$save_CFLAGS"
  18845. if test x$have_cocoa = xyes; then
  18846. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18847. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18848. SUMMARY_video="${SUMMARY_video} cocoa"
  18849. have_video=yes
  18850. fi
  18851. fi
  18852. }
  18853. CheckMETAL()
  18854. {
  18855. # Check whether --enable-video-metal was given.
  18856. if test "${enable_video_metal+set}" = set; then :
  18857. enableval=$enable_video_metal;
  18858. else
  18859. enable_video_metal=yes
  18860. fi
  18861. # Check whether --enable-render-metal was given.
  18862. if test "${enable_render_metal+set}" = set; then :
  18863. enableval=$enable_render_metal;
  18864. else
  18865. enable_render_metal=yes
  18866. fi
  18867. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18868. save_CFLAGS="$CFLAGS"
  18869. CFLAGS="$CFLAGS -x objective-c"
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18871. $as_echo_n "checking for Metal framework... " >&6; }
  18872. have_metal=no
  18873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18874. /* end confdefs.h. */
  18875. #import <Cocoa/Cocoa.h>
  18876. #import <Metal/Metal.h>
  18877. #import <QuartzCore/CAMetalLayer.h>
  18878. #if TARGET_CPU_X86
  18879. #error Metal doesn't work on this configuration
  18880. #endif
  18881. int
  18882. main ()
  18883. {
  18884. ;
  18885. return 0;
  18886. }
  18887. _ACEOF
  18888. if ac_fn_c_try_compile "$LINENO"; then :
  18889. have_metal=yes
  18890. fi
  18891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18892. CFLAGS="$save_CFLAGS"
  18893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18894. $as_echo "$have_metal" >&6; }
  18895. if test x$have_metal = xyes; then
  18896. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18897. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18898. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18899. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18900. fi
  18901. SUMMARY_video="${SUMMARY_video} metal"
  18902. else
  18903. enable_video_metal=no
  18904. enable_render_metal=no
  18905. fi
  18906. fi
  18907. }
  18908. CheckDirectFB()
  18909. {
  18910. # Check whether --enable-video-directfb was given.
  18911. if test "${enable_video_directfb+set}" = set; then :
  18912. enableval=$enable_video_directfb;
  18913. else
  18914. enable_video_directfb=no
  18915. fi
  18916. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18917. pkg_failed=no
  18918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  18919. $as_echo_n "checking for directfb >= 1.0.0... " >&6; }
  18920. if test -n "$DIRECTFB_CFLAGS"; then
  18921. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18922. elif test -n "$PKG_CONFIG"; then
  18923. if test -n "$PKG_CONFIG" && \
  18924. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18925. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18926. ac_status=$?
  18927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18928. test $ac_status = 0; }; then
  18929. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18930. test "x$?" != "x0" && pkg_failed=yes
  18931. else
  18932. pkg_failed=yes
  18933. fi
  18934. else
  18935. pkg_failed=untried
  18936. fi
  18937. if test -n "$DIRECTFB_LIBS"; then
  18938. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18939. elif test -n "$PKG_CONFIG"; then
  18940. if test -n "$PKG_CONFIG" && \
  18941. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18942. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18943. ac_status=$?
  18944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18945. test $ac_status = 0; }; then
  18946. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18947. test "x$?" != "x0" && pkg_failed=yes
  18948. else
  18949. pkg_failed=yes
  18950. fi
  18951. else
  18952. pkg_failed=untried
  18953. fi
  18954. if test $pkg_failed = yes; then
  18955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18956. $as_echo "no" >&6; }
  18957. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18958. _pkg_short_errors_supported=yes
  18959. else
  18960. _pkg_short_errors_supported=no
  18961. fi
  18962. if test $_pkg_short_errors_supported = yes; then
  18963. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18964. else
  18965. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  18966. fi
  18967. # Put the nasty error message in config.log where it belongs
  18968. echo "$DIRECTFB_PKG_ERRORS" >&5
  18969. video_directfb=no
  18970. elif test $pkg_failed = untried; then
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18972. $as_echo "no" >&6; }
  18973. video_directfb=no
  18974. else
  18975. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18976. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18978. $as_echo "yes" >&6; }
  18979. video_directfb=yes
  18980. fi
  18981. if test x$video_directfb = xyes; then
  18982. # SuSE 11.1 installs directfb-config without directfb-devel
  18983. save_CPPFLAGS="$CPPFLAGS"
  18984. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18985. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18986. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18987. have_directfb_hdr=yes
  18988. else
  18989. have_directfb_hdr=no
  18990. fi
  18991. CPPFLAGS="$save_CPPFLAGS"
  18992. video_directfb=$have_directfb_hdr
  18993. fi
  18994. if test x$video_directfb = xyes; then
  18995. # Check whether --enable-directfb-shared was given.
  18996. if test "${enable_directfb_shared+set}" = set; then :
  18997. enableval=$enable_directfb_shared;
  18998. else
  18999. enable_directfb_shared=yes
  19000. fi
  19001. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  19002. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  19003. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  19004. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  19005. directfb_shared=no
  19006. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19007. if test x$have_loadso != xyes && \
  19008. test x$enable_directfb_shared = xyes; then
  19009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  19010. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  19011. fi
  19012. if test x$have_loadso = xyes && \
  19013. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  19014. directfb_shared=yes
  19015. echo "-- dynamic libdirectfb -> $directfb_lib"
  19016. cat >>confdefs.h <<_ACEOF
  19017. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  19018. _ACEOF
  19019. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  19020. else
  19021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  19022. SUMMARY_video="${SUMMARY_video} directfb"
  19023. fi
  19024. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  19025. have_video=yes
  19026. fi
  19027. fi
  19028. }
  19029. CheckKMSDRM()
  19030. {
  19031. # Check whether --enable-video-kmsdrm was given.
  19032. if test "${enable_video_kmsdrm+set}" = set; then :
  19033. enableval=$enable_video_kmsdrm;
  19034. else
  19035. enable_video_kmsdrm=yes
  19036. fi
  19037. if test x$enable_video = xyes && \
  19038. test x$enable_video_kmsdrm = xyes && \
  19039. test x$video_opengl_egl = xyes; then
  19040. video_kmsdrm=no
  19041. pkg_failed=no
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  19043. $as_echo_n "checking for libdrm >= 1.4.82... " >&6; }
  19044. if test -n "$LIBDRM_CFLAGS"; then
  19045. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  19046. elif test -n "$PKG_CONFIG"; then
  19047. if test -n "$PKG_CONFIG" && \
  19048. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19049. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19050. ac_status=$?
  19051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19052. test $ac_status = 0; }; then
  19053. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  19054. test "x$?" != "x0" && pkg_failed=yes
  19055. else
  19056. pkg_failed=yes
  19057. fi
  19058. else
  19059. pkg_failed=untried
  19060. fi
  19061. if test -n "$LIBDRM_LIBS"; then
  19062. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  19063. elif test -n "$PKG_CONFIG"; then
  19064. if test -n "$PKG_CONFIG" && \
  19065. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  19066. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  19067. ac_status=$?
  19068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19069. test $ac_status = 0; }; then
  19070. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  19071. test "x$?" != "x0" && pkg_failed=yes
  19072. else
  19073. pkg_failed=yes
  19074. fi
  19075. else
  19076. pkg_failed=untried
  19077. fi
  19078. if test $pkg_failed = yes; then
  19079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19080. $as_echo "no" >&6; }
  19081. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19082. _pkg_short_errors_supported=yes
  19083. else
  19084. _pkg_short_errors_supported=no
  19085. fi
  19086. if test $_pkg_short_errors_supported = yes; then
  19087. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19088. else
  19089. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  19090. fi
  19091. # Put the nasty error message in config.log where it belongs
  19092. echo "$LIBDRM_PKG_ERRORS" >&5
  19093. libdrm_avail=no
  19094. elif test $pkg_failed = untried; then
  19095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19096. $as_echo "no" >&6; }
  19097. libdrm_avail=no
  19098. else
  19099. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  19100. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19102. $as_echo "yes" >&6; }
  19103. libdrm_avail=yes
  19104. fi
  19105. pkg_failed=no
  19106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  19107. $as_echo_n "checking for gbm >= 11.1.0... " >&6; }
  19108. if test -n "$LIBGBM_CFLAGS"; then
  19109. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  19110. elif test -n "$PKG_CONFIG"; then
  19111. if test -n "$PKG_CONFIG" && \
  19112. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19113. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19114. ac_status=$?
  19115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19116. test $ac_status = 0; }; then
  19117. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  19118. test "x$?" != "x0" && pkg_failed=yes
  19119. else
  19120. pkg_failed=yes
  19121. fi
  19122. else
  19123. pkg_failed=untried
  19124. fi
  19125. if test -n "$LIBGBM_LIBS"; then
  19126. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  19127. elif test -n "$PKG_CONFIG"; then
  19128. if test -n "$PKG_CONFIG" && \
  19129. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  19130. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  19131. ac_status=$?
  19132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19133. test $ac_status = 0; }; then
  19134. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  19135. test "x$?" != "x0" && pkg_failed=yes
  19136. else
  19137. pkg_failed=yes
  19138. fi
  19139. else
  19140. pkg_failed=untried
  19141. fi
  19142. if test $pkg_failed = yes; then
  19143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19144. $as_echo "no" >&6; }
  19145. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19146. _pkg_short_errors_supported=yes
  19147. else
  19148. _pkg_short_errors_supported=no
  19149. fi
  19150. if test $_pkg_short_errors_supported = yes; then
  19151. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19152. else
  19153. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  19154. fi
  19155. # Put the nasty error message in config.log where it belongs
  19156. echo "$LIBGBM_PKG_ERRORS" >&5
  19157. libgbm_avail=no
  19158. elif test $pkg_failed = untried; then
  19159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19160. $as_echo "no" >&6; }
  19161. libgbm_avail=no
  19162. else
  19163. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  19164. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19166. $as_echo "yes" >&6; }
  19167. libgbm_avail=yes
  19168. fi
  19169. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  19170. video_kmsdrm=yes
  19171. fi
  19172. if test x$video_kmsdrm = xyes; then
  19173. # Check whether --enable-kmsdrm-shared was given.
  19174. if test "${enable_kmsdrm_shared+set}" = set; then :
  19175. enableval=$enable_kmsdrm_shared;
  19176. else
  19177. enable_kmsdrm_shared=yes
  19178. fi
  19179. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  19180. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  19181. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  19182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  19183. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  19184. kmsdrm_shared=no
  19185. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  19186. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  19187. if test x$have_loadso != xyes && \
  19188. test x$enable_kmsdrm_shared = xyes; then
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  19190. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  19191. fi
  19192. if test x$have_loadso = xyes && \
  19193. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  19194. kmsdrm_shared=yes
  19195. cat >>confdefs.h <<_ACEOF
  19196. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  19197. _ACEOF
  19198. cat >>confdefs.h <<_ACEOF
  19199. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  19200. _ACEOF
  19201. cat >>confdefs.h <<_ACEOF
  19202. #define HAVE_KMSDRM_SHARED "TRUE"
  19203. _ACEOF
  19204. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  19205. else
  19206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  19207. SUMMARY_video="${SUMMARY_video} kmsdrm"
  19208. fi
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  19210. $as_echo "$kmsdrm_shared" >&6; }
  19211. if test x$kmsdrm_shared = xyes; then
  19212. echo "-- dynamic libdrm -> $drm_lib"
  19213. echo "-- dynamic libgmb -> $gbm_lib"
  19214. fi
  19215. have_video=yes
  19216. fi
  19217. fi
  19218. }
  19219. CheckDummyVideo()
  19220. {
  19221. # Check whether --enable-video-dummy was given.
  19222. if test "${enable_video_dummy+set}" = set; then :
  19223. enableval=$enable_video_dummy;
  19224. else
  19225. enable_video_dummy=yes
  19226. fi
  19227. if test x$enable_video_dummy = xyes; then
  19228. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19229. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19230. have_video=yes
  19231. SUMMARY_video="${SUMMARY_video} dummy"
  19232. fi
  19233. }
  19234. CheckQNXVideo()
  19235. {
  19236. if test x$enable_video = xyes; then
  19237. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19238. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19239. have_video=yes
  19240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19241. SUMMARY_video="${SUMMARY_video} qnx"
  19242. fi
  19243. }
  19244. CheckQNXAudio()
  19245. {
  19246. if test x$enable_audio = xyes; then
  19247. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19248. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19249. have_audio=yes
  19250. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19251. SUMMARY_audio="${SUMMARY_audio} qsa"
  19252. fi
  19253. }
  19254. # Check whether --enable-video-opengl was given.
  19255. if test "${enable_video_opengl+set}" = set; then :
  19256. enableval=$enable_video_opengl;
  19257. else
  19258. enable_video_opengl=yes
  19259. fi
  19260. CheckGLX()
  19261. {
  19262. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  19264. $as_echo_n "checking for GLX support... " >&6; }
  19265. video_opengl_glx=no
  19266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19267. /* end confdefs.h. */
  19268. #include <GL/glx.h>
  19269. int
  19270. main ()
  19271. {
  19272. ;
  19273. return 0;
  19274. }
  19275. _ACEOF
  19276. if ac_fn_c_try_compile "$LINENO"; then :
  19277. video_opengl_glx=yes
  19278. fi
  19279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  19281. $as_echo "$video_opengl_glx" >&6; }
  19282. if test x$video_opengl_glx = xyes; then
  19283. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19284. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19285. fi
  19286. fi
  19287. }
  19288. # Check whether --enable-video-opengles was given.
  19289. if test "${enable_video_opengles+set}" = set; then :
  19290. enableval=$enable_video_opengles;
  19291. else
  19292. enable_video_opengles=yes
  19293. fi
  19294. # Check whether --enable-video-opengles1 was given.
  19295. if test "${enable_video_opengles1+set}" = set; then :
  19296. enableval=$enable_video_opengles1;
  19297. else
  19298. enable_video_opengles1=yes
  19299. fi
  19300. # Check whether --enable-video-opengles2 was given.
  19301. if test "${enable_video_opengles2+set}" = set; then :
  19302. enableval=$enable_video_opengles2;
  19303. else
  19304. enable_video_opengles2=yes
  19305. fi
  19306. CheckEGL()
  19307. {
  19308. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19310. $as_echo_n "checking for EGL support... " >&6; }
  19311. video_opengl_egl=no
  19312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19313. /* end confdefs.h. */
  19314. #define LINUX
  19315. #define EGL_API_FB
  19316. #define MESA_EGL_NO_X11_HEADERS
  19317. #define EGL_NO_X11
  19318. #include <EGL/egl.h>
  19319. #include <EGL/eglext.h>
  19320. int
  19321. main ()
  19322. {
  19323. ;
  19324. return 0;
  19325. }
  19326. _ACEOF
  19327. if ac_fn_c_try_compile "$LINENO"; then :
  19328. video_opengl_egl=yes
  19329. fi
  19330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19332. $as_echo "$video_opengl_egl" >&6; }
  19333. if test x$video_opengl_egl = xyes; then
  19334. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19335. fi
  19336. fi
  19337. }
  19338. CheckOpenGL()
  19339. {
  19340. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  19342. $as_echo_n "checking for OpenGL headers... " >&6; }
  19343. video_opengl=no
  19344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19345. /* end confdefs.h. */
  19346. #include <GL/gl.h>
  19347. #include <GL/glext.h>
  19348. int
  19349. main ()
  19350. {
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_compile "$LINENO"; then :
  19356. video_opengl=yes
  19357. fi
  19358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19360. $as_echo "$video_opengl" >&6; }
  19361. if test x$video_opengl = xyes; then
  19362. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19363. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19364. SUMMARY_video="${SUMMARY_video} opengl"
  19365. fi
  19366. fi
  19367. }
  19368. CheckOpenGLES()
  19369. {
  19370. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19371. if test x$enable_video_opengles1 = xyes; then
  19372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19373. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19374. video_opengles_v1=no
  19375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19376. /* end confdefs.h. */
  19377. #include <GLES/gl.h>
  19378. #include <GLES/glext.h>
  19379. int
  19380. main ()
  19381. {
  19382. ;
  19383. return 0;
  19384. }
  19385. _ACEOF
  19386. if ac_fn_c_try_compile "$LINENO"; then :
  19387. video_opengles_v1=yes
  19388. fi
  19389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19391. $as_echo "$video_opengles_v1" >&6; }
  19392. if test x$video_opengles_v1 = xyes; then
  19393. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19394. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19395. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19396. fi
  19397. fi
  19398. if test x$enable_video_opengles2 = xyes; then
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19400. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19401. video_opengles_v2=no
  19402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19403. /* end confdefs.h. */
  19404. #include <GLES2/gl2.h>
  19405. #include <GLES2/gl2ext.h>
  19406. int
  19407. main ()
  19408. {
  19409. ;
  19410. return 0;
  19411. }
  19412. _ACEOF
  19413. if ac_fn_c_try_compile "$LINENO"; then :
  19414. video_opengles_v2=yes
  19415. fi
  19416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19418. $as_echo "$video_opengles_v2" >&6; }
  19419. if test x$video_opengles_v2 = xyes; then
  19420. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19421. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19422. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19423. fi
  19424. fi
  19425. fi
  19426. }
  19427. CheckWINDOWSGL()
  19428. {
  19429. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19430. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19431. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19432. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19433. SUMMARY_video="${SUMMARY_video} opengl"
  19434. fi
  19435. }
  19436. CheckWINDOWSGLES()
  19437. {
  19438. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19440. $as_echo_n "checking for EGL support... " >&6; }
  19441. video_opengl_egl=no
  19442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19443. /* end confdefs.h. */
  19444. #include <EGL/egl.h>
  19445. int
  19446. main ()
  19447. {
  19448. ;
  19449. return 0;
  19450. }
  19451. _ACEOF
  19452. if ac_fn_c_try_compile "$LINENO"; then :
  19453. video_opengl_egl=yes
  19454. fi
  19455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19457. $as_echo "$video_opengl_egl" >&6; }
  19458. if test x$video_opengl_egl = xyes; then
  19459. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19460. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19461. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19462. fi
  19463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19464. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19465. video_opengles_v2=no
  19466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19467. /* end confdefs.h. */
  19468. #include <GLES2/gl2.h>
  19469. #include <GLES2/gl2ext.h>
  19470. int
  19471. main ()
  19472. {
  19473. ;
  19474. return 0;
  19475. }
  19476. _ACEOF
  19477. if ac_fn_c_try_compile "$LINENO"; then :
  19478. video_opengles_v2=yes
  19479. fi
  19480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19482. $as_echo "$video_opengles_v2" >&6; }
  19483. if test x$video_opengles_v2 = xyes; then
  19484. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19485. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19486. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19487. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19488. fi
  19489. fi
  19490. }
  19491. CheckHaikuGL()
  19492. {
  19493. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19494. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19495. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19496. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19498. SUMMARY_video="${SUMMARY_video} opengl"
  19499. fi
  19500. }
  19501. CheckMacGL()
  19502. {
  19503. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19504. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19505. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19506. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19507. SUMMARY_video="${SUMMARY_video} opengl"
  19508. fi
  19509. }
  19510. CheckMacGLES()
  19511. {
  19512. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19513. video_opengl_egl=yes
  19514. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19515. video_opengles_v2=yes
  19516. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19517. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19518. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19519. fi
  19520. }
  19521. CheckEmscriptenGLES()
  19522. {
  19523. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19525. $as_echo_n "checking for EGL support... " >&6; }
  19526. video_opengl_egl=no
  19527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19528. /* end confdefs.h. */
  19529. #include <EGL/egl.h>
  19530. int
  19531. main ()
  19532. {
  19533. ;
  19534. return 0;
  19535. }
  19536. _ACEOF
  19537. if ac_fn_c_try_compile "$LINENO"; then :
  19538. video_opengl_egl=yes
  19539. fi
  19540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19542. $as_echo "$video_opengl_egl" >&6; }
  19543. if test x$video_opengl_egl = xyes; then
  19544. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19545. fi
  19546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19547. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19548. video_opengles_v2=no
  19549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19550. /* end confdefs.h. */
  19551. #include <GLES2/gl2.h>
  19552. #include <GLES2/gl2ext.h>
  19553. int
  19554. main ()
  19555. {
  19556. ;
  19557. return 0;
  19558. }
  19559. _ACEOF
  19560. if ac_fn_c_try_compile "$LINENO"; then :
  19561. video_opengles_v2=yes
  19562. fi
  19563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19565. $as_echo "$video_opengles_v2" >&6; }
  19566. if test x$video_opengles_v2 = xyes; then
  19567. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19568. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19569. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19570. fi
  19571. fi
  19572. }
  19573. # Check whether --enable-video-vulkan was given.
  19574. if test "${enable_video_vulkan+set}" = set; then :
  19575. enableval=$enable_video_vulkan;
  19576. else
  19577. enable_video_vulkan=yes
  19578. fi
  19579. CheckVulkan()
  19580. {
  19581. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19582. case "$host" in
  19583. *-*-android*)
  19584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19585. /* end confdefs.h. */
  19586. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19587. #error Vulkan doesn't work on this configuration
  19588. #endif
  19589. int
  19590. main ()
  19591. {
  19592. ;
  19593. return 0;
  19594. }
  19595. _ACEOF
  19596. if ac_fn_c_try_compile "$LINENO"; then :
  19597. else
  19598. enable_video_vulkan=no
  19599. fi
  19600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19601. ;;
  19602. *-*-darwin*)
  19603. save_CFLAGS="$CFLAGS"
  19604. CFLAGS="$CFLAGS -x objective-c"
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. #include <Cocoa/Cocoa.h>
  19608. #include <Metal/Metal.h>
  19609. #include <QuartzCore/CAMetalLayer.h>
  19610. #if TARGET_CPU_X86
  19611. #error Vulkan doesn't work on this configuration
  19612. #endif
  19613. int
  19614. main ()
  19615. {
  19616. ;
  19617. return 0;
  19618. }
  19619. _ACEOF
  19620. if ac_fn_c_try_compile "$LINENO"; then :
  19621. else
  19622. enable_video_vulkan=no
  19623. fi
  19624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19625. CFLAGS="$save_CFLAGS"
  19626. ;;
  19627. *)
  19628. ;;
  19629. esac
  19630. if test x$enable_video_vulkan = xno; then
  19631. # For reasons I am totally unable to see, I get an undefined macro error if
  19632. # I put this in the AC_TRY_COMPILE.
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19634. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19635. fi
  19636. fi
  19637. if test x$have_loadso != xyes; then
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  19639. $as_echo "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  19640. enable_video_vulkan=no
  19641. fi
  19642. if test x$enable_video_vulkan = xyes; then
  19643. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19644. SUMMARY_video="${SUMMARY_video} vulkan"
  19645. fi
  19646. }
  19647. CheckInputEvents()
  19648. {
  19649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19650. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19651. use_input_events=no
  19652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19653. /* end confdefs.h. */
  19654. #include <linux/input.h>
  19655. int
  19656. main ()
  19657. {
  19658. #ifndef EVIOCGNAME
  19659. #error EVIOCGNAME() ioctl not available
  19660. #endif
  19661. ;
  19662. return 0;
  19663. }
  19664. _ACEOF
  19665. if ac_fn_c_try_compile "$LINENO"; then :
  19666. use_input_events=yes
  19667. fi
  19668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19670. $as_echo "$use_input_events" >&6; }
  19671. if test x$use_input_events = xyes; then
  19672. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19673. SUMMARY_input="${SUMMARY_input} linuxev"
  19674. fi
  19675. }
  19676. CheckInputKD()
  19677. {
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19679. $as_echo_n "checking for Linux kd.h... " >&6; }
  19680. use_input_kd=no
  19681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19682. /* end confdefs.h. */
  19683. #include <linux/kd.h>
  19684. #include <linux/keyboard.h>
  19685. int
  19686. main ()
  19687. {
  19688. struct kbentry kbe;
  19689. kbe.kb_table = KG_CTRL;
  19690. ioctl(0, KDGKBENT, &kbe);
  19691. ;
  19692. return 0;
  19693. }
  19694. _ACEOF
  19695. if ac_fn_c_try_compile "$LINENO"; then :
  19696. use_input_kd=yes
  19697. fi
  19698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19700. $as_echo "$use_input_kd" >&6; }
  19701. if test x$use_input_kd = xyes; then
  19702. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19703. SUMMARY_input="${SUMMARY_input} linuxkd"
  19704. fi
  19705. }
  19706. CheckInputKBIO()
  19707. {
  19708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  19709. $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
  19710. use_input_kbio=no
  19711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19712. /* end confdefs.h. */
  19713. #include <sys/kbio.h>
  19714. #include <sys/ioctl.h>
  19715. int
  19716. main ()
  19717. {
  19718. accentmap_t accTable;
  19719. ioctl(0, KDENABIO, 1);
  19720. ;
  19721. return 0;
  19722. }
  19723. _ACEOF
  19724. if ac_fn_c_try_compile "$LINENO"; then :
  19725. use_input_kbio=yes
  19726. fi
  19727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  19729. $as_echo "$use_input_kbio" >&6; }
  19730. if test x$use_input_kbio = xyes; then
  19731. $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  19732. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  19733. fi
  19734. }
  19735. CheckInputWSCONS()
  19736. {
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  19738. $as_echo_n "checking for OpenBSD wscons... " >&6; }
  19739. use_input_wscons=no
  19740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19741. /* end confdefs.h. */
  19742. #include <sys/time.h>
  19743. #include <dev/wscons/wsconsio.h>
  19744. #include <dev/wscons/wsksymdef.h>
  19745. #include <dev/wscons/wsksymvar.h>
  19746. #include <sys/ioctl.h>
  19747. int
  19748. main ()
  19749. {
  19750. struct wskbd_map_data data;
  19751. ioctl(0, WSKBDIO_GETMAP, &data);
  19752. ;
  19753. return 0;
  19754. }
  19755. _ACEOF
  19756. if ac_fn_c_try_compile "$LINENO"; then :
  19757. use_input_wscons=yes
  19758. fi
  19759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  19761. $as_echo "$use_input_wscons" >&6; }
  19762. if test x$use_input_wscons = xyes; then
  19763. $as_echo "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  19764. SUMMARY_input="${SUMMARY_input} wscons"
  19765. fi
  19766. }
  19767. CheckLibUDev()
  19768. {
  19769. # Check whether --enable-libudev was given.
  19770. if test "${enable_libudev+set}" = set; then :
  19771. enableval=$enable_libudev;
  19772. else
  19773. enable_libudev=yes
  19774. fi
  19775. if test x$enable_libudev = xyes; then
  19776. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19777. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19778. have_libudev_h_hdr=yes
  19779. else
  19780. have_libudev_h_hdr=no
  19781. fi
  19782. if test x$have_libudev_h_hdr = xyes; then
  19783. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19784. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19785. if test x$udev_lib != x; then
  19786. echo "-- dynamic udev -> $udev_lib"
  19787. cat >>confdefs.h <<_ACEOF
  19788. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19789. _ACEOF
  19790. fi
  19791. fi
  19792. fi
  19793. }
  19794. CheckDBus()
  19795. {
  19796. # Check whether --enable-dbus was given.
  19797. if test "${enable_dbus+set}" = set; then :
  19798. enableval=$enable_dbus;
  19799. else
  19800. enable_dbus=yes
  19801. fi
  19802. if test x$enable_dbus = xyes; then
  19803. pkg_failed=no
  19804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  19805. $as_echo_n "checking for dbus-1... " >&6; }
  19806. if test -n "$DBUS_CFLAGS"; then
  19807. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19808. elif test -n "$PKG_CONFIG"; then
  19809. if test -n "$PKG_CONFIG" && \
  19810. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19811. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19812. ac_status=$?
  19813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19814. test $ac_status = 0; }; then
  19815. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19816. test "x$?" != "x0" && pkg_failed=yes
  19817. else
  19818. pkg_failed=yes
  19819. fi
  19820. else
  19821. pkg_failed=untried
  19822. fi
  19823. if test -n "$DBUS_LIBS"; then
  19824. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19825. elif test -n "$PKG_CONFIG"; then
  19826. if test -n "$PKG_CONFIG" && \
  19827. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19828. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19829. ac_status=$?
  19830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19831. test $ac_status = 0; }; then
  19832. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19833. test "x$?" != "x0" && pkg_failed=yes
  19834. else
  19835. pkg_failed=yes
  19836. fi
  19837. else
  19838. pkg_failed=untried
  19839. fi
  19840. if test $pkg_failed = yes; then
  19841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19842. $as_echo "no" >&6; }
  19843. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19844. _pkg_short_errors_supported=yes
  19845. else
  19846. _pkg_short_errors_supported=no
  19847. fi
  19848. if test $_pkg_short_errors_supported = yes; then
  19849. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  19850. else
  19851. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  19852. fi
  19853. # Put the nasty error message in config.log where it belongs
  19854. echo "$DBUS_PKG_ERRORS" >&5
  19855. have_dbus=no
  19856. elif test $pkg_failed = untried; then
  19857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19858. $as_echo "no" >&6; }
  19859. have_dbus=no
  19860. else
  19861. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19862. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19864. $as_echo "yes" >&6; }
  19865. have_dbus=yes
  19866. fi
  19867. save_CPPFLAGS="$CPPFLAGS"
  19868. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  19869. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19870. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19871. have_dbus_dbus_h_hdr=yes
  19872. else
  19873. have_dbus_dbus_h_hdr=no
  19874. fi
  19875. CPPFLAGS="$save_CPPFLAGS"
  19876. if test x$have_dbus_dbus_h_hdr = xyes; then
  19877. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19878. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19879. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19880. fi
  19881. fi
  19882. }
  19883. CheckIME()
  19884. {
  19885. # Check whether --enable-ime was given.
  19886. if test "${enable_ime+set}" = set; then :
  19887. enableval=$enable_ime;
  19888. else
  19889. enable_ime=yes
  19890. fi
  19891. if test x$enable_ime = xyes; then
  19892. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19893. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19894. fi
  19895. }
  19896. CheckInotify()
  19897. {
  19898. save_LIBS="$LIBS"
  19899. case "$host" in
  19900. *-*-freebsd*) LIBS="$LIBS -linotify"
  19901. ;;
  19902. esac
  19903. for ac_header in sys/inotify.h
  19904. do :
  19905. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19906. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19907. cat >>confdefs.h <<_ACEOF
  19908. #define HAVE_SYS_INOTIFY_H 1
  19909. _ACEOF
  19910. have_inotify_inotify_h_hdr=yes
  19911. fi
  19912. done
  19913. for ac_func in inotify_init
  19914. do :
  19915. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  19916. if test "x$ac_cv_func_inotify_init" = xyes; then :
  19917. cat >>confdefs.h <<_ACEOF
  19918. #define HAVE_INOTIFY_INIT 1
  19919. _ACEOF
  19920. have_inotify=yes
  19921. fi
  19922. done
  19923. for ac_func in inotify_init1
  19924. do :
  19925. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  19926. if test "x$ac_cv_func_inotify_init1" = xyes; then :
  19927. cat >>confdefs.h <<_ACEOF
  19928. #define HAVE_INOTIFY_INIT1 1
  19929. _ACEOF
  19930. fi
  19931. done
  19932. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  19933. $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
  19934. case "$host" in
  19935. *-*-freebsd*)
  19936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  19937. ;;
  19938. esac
  19939. fi
  19940. LIBS="$save_LIBS"
  19941. }
  19942. CheckIBus()
  19943. {
  19944. # Check whether --enable-ibus was given.
  19945. if test "${enable_ibus+set}" = set; then :
  19946. enableval=$enable_ibus;
  19947. else
  19948. enable_ibus=yes
  19949. fi
  19950. if test x$enable_ibus = xyes; then
  19951. pkg_failed=no
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  19953. $as_echo_n "checking for ibus-1.0... " >&6; }
  19954. if test -n "$IBUS_CFLAGS"; then
  19955. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19956. elif test -n "$PKG_CONFIG"; then
  19957. if test -n "$PKG_CONFIG" && \
  19958. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19959. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19960. ac_status=$?
  19961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19962. test $ac_status = 0; }; then
  19963. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19964. test "x$?" != "x0" && pkg_failed=yes
  19965. else
  19966. pkg_failed=yes
  19967. fi
  19968. else
  19969. pkg_failed=untried
  19970. fi
  19971. if test -n "$IBUS_LIBS"; then
  19972. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19973. elif test -n "$PKG_CONFIG"; then
  19974. if test -n "$PKG_CONFIG" && \
  19975. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19976. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19977. ac_status=$?
  19978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19979. test $ac_status = 0; }; then
  19980. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19981. test "x$?" != "x0" && pkg_failed=yes
  19982. else
  19983. pkg_failed=yes
  19984. fi
  19985. else
  19986. pkg_failed=untried
  19987. fi
  19988. if test $pkg_failed = yes; then
  19989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19990. $as_echo "no" >&6; }
  19991. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19992. _pkg_short_errors_supported=yes
  19993. else
  19994. _pkg_short_errors_supported=no
  19995. fi
  19996. if test $_pkg_short_errors_supported = yes; then
  19997. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  19998. else
  19999. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  20000. fi
  20001. # Put the nasty error message in config.log where it belongs
  20002. echo "$IBUS_PKG_ERRORS" >&5
  20003. have_ibus=no
  20004. elif test $pkg_failed = untried; then
  20005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20006. $as_echo "no" >&6; }
  20007. have_ibus=no
  20008. else
  20009. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  20010. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  20011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20012. $as_echo "yes" >&6; }
  20013. have_ibus=yes
  20014. fi
  20015. save_CPPFLAGS="$CPPFLAGS"
  20016. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  20017. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  20018. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  20019. have_ibus_ibus_h_hdr=yes
  20020. else
  20021. have_ibus_ibus_h_hdr=no
  20022. fi
  20023. CPPFLAGS="$save_CPPFLAGS"
  20024. if test x$have_ibus_ibus_h_hdr = xyes; then
  20025. if test x$enable_ime != xyes; then
  20026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  20027. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  20028. have_ibus_ibus_h_hdr=no
  20029. elif test x$enable_dbus != xyes; then
  20030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  20031. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  20032. have_ibus_ibus_h_hdr=no
  20033. elif test x$have_inotify_inotify_h_hdr != xyes; then
  20034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  20035. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  20036. have_ibus_ibus_h_hdr=no
  20037. else
  20038. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  20039. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  20040. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  20041. fi
  20042. fi
  20043. fi
  20044. }
  20045. CheckFcitx()
  20046. {
  20047. # Check whether --enable-fcitx was given.
  20048. if test "${enable_fcitx+set}" = set; then :
  20049. enableval=$enable_fcitx;
  20050. else
  20051. enable_fcitx=yes
  20052. fi
  20053. if test x$enable_fcitx = xyes; then
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  20055. $as_echo_n "checking for fcitx support... " >&6; }
  20056. have_fcitx=no
  20057. if test x$enable_ime != xyes; then
  20058. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  20059. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  20060. elif test x$have_dbus_dbus_h_hdr != xyes; then
  20061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  20062. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  20063. else
  20064. have_fcitx=yes
  20065. $as_echo "#define HAVE_FCITX 1" >>confdefs.h
  20066. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  20067. fi
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  20069. $as_echo "$have_fcitx" >&6; }
  20070. fi
  20071. }
  20072. CheckJoystickMFI()
  20073. {
  20074. # Check whether --enable-joystick-mfi was given.
  20075. if test "${enable_joystick_mfi+set}" = set; then :
  20076. enableval=$enable_joystick_mfi;
  20077. else
  20078. enable_joystick_mfi=yes
  20079. fi
  20080. if test x$enable_joystick_mfi = xyes; then
  20081. save_CFLAGS="$CFLAGS"
  20082. save_LDFLAGS="$LDFLAGS"
  20083. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  20084. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  20086. $as_echo_n "checking for GameController framework... " >&6; }
  20087. enable_joystick_mfi=no
  20088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20089. /* end confdefs.h. */
  20090. #include <AvailabilityMacros.h>
  20091. #include <TargetConditionals.h>
  20092. #import <GameController/GameController.h>
  20093. int
  20094. main ()
  20095. {
  20096. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  20097. #error GameController framework doesn't work on this configuration
  20098. #endif
  20099. #if TARGET_CPU_X86
  20100. #error GameController framework doesn't work on this configuration
  20101. #endif
  20102. ;
  20103. return 0;
  20104. }
  20105. _ACEOF
  20106. if ac_fn_c_try_link "$LINENO"; then :
  20107. enable_joystick_mfi=yes
  20108. fi
  20109. rm -f core conftest.err conftest.$ac_objext \
  20110. conftest$ac_exeext conftest.$ac_ext
  20111. CFLAGS="$save_CFLAGS"
  20112. LDFLAGS="$save_LDFLAGS"
  20113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  20114. $as_echo "$enable_joystick_mfi" >&6; }
  20115. if test x$enable_joystick_mfi = xyes; then
  20116. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20117. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  20118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  20119. fi
  20120. fi
  20121. }
  20122. CheckPTHREAD()
  20123. {
  20124. case "$host" in
  20125. *-*-emscripten*)
  20126. enable_pthreads_default=no
  20127. ;;
  20128. *)
  20129. enable_pthreads_default=yes
  20130. ;;
  20131. esac
  20132. # Check whether --enable-pthreads was given.
  20133. if test "${enable_pthreads+set}" = set; then :
  20134. enableval=$enable_pthreads;
  20135. else
  20136. enable_pthreads=maybe
  20137. fi
  20138. # Check whether --enable-pthread-sem was given.
  20139. if test "${enable_pthread_sem+set}" = set; then :
  20140. enableval=$enable_pthread_sem;
  20141. else
  20142. enable_pthread_sem=maybe
  20143. fi
  20144. if test x$enable_pthreads = xmaybe; then
  20145. enable_pthreads=$enable_pthreads_default
  20146. fi
  20147. if test x$enable_pthread_sem = xmaybe; then
  20148. enable_pthread_sem=$enable_pthreads
  20149. fi
  20150. case "$host" in
  20151. *-*-android*)
  20152. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20153. pthread_lib=""
  20154. ;;
  20155. *-*-linux*|*-*-uclinux*)
  20156. pthread_cflags="-D_REENTRANT"
  20157. pthread_lib="-lpthread"
  20158. ;;
  20159. *-*-bsdi*)
  20160. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20161. pthread_lib=""
  20162. ;;
  20163. *-*-darwin*)
  20164. pthread_cflags="-D_THREAD_SAFE"
  20165. # causes Carbon.p complaints?
  20166. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20167. ;;
  20168. *-*-freebsd*|*-*-dragonfly*)
  20169. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20170. pthread_lib="-pthread"
  20171. ;;
  20172. *-*-netbsd*)
  20173. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  20174. pthread_lib="-lpthread"
  20175. ;;
  20176. *-*-openbsd*)
  20177. pthread_cflags="-D_REENTRANT"
  20178. pthread_lib="-pthread"
  20179. ;;
  20180. *-*-solaris2.9)
  20181. # From Solaris 9+, posix4's preferred name is rt.
  20182. pthread_cflags="-D_REENTRANT"
  20183. pthread_lib="-lpthread -lrt"
  20184. ;;
  20185. *-*-solaris2.10)
  20186. # Solaris 10+ merged pthread into libc.
  20187. pthread_cflags="-D_REENTRANT"
  20188. pthread_lib="-lrt"
  20189. ;;
  20190. *-*-solaris*)
  20191. # Solaris 11+ merged rt into libc.
  20192. pthread_cflags="-D_REENTRANT"
  20193. pthread_lib=""
  20194. ;;
  20195. *-*-sysv5*)
  20196. pthread_cflags="-D_REENTRANT -Kthread"
  20197. pthread_lib=""
  20198. ;;
  20199. *-*-aix*)
  20200. pthread_cflags="-D_REENTRANT -mthreads"
  20201. pthread_lib="-lpthread"
  20202. ;;
  20203. *-*-hpux11*)
  20204. pthread_cflags="-D_REENTRANT"
  20205. pthread_lib="-L/usr/lib -lpthread"
  20206. ;;
  20207. *-*-haiku*)
  20208. pthread_cflags="-D_REENTRANT"
  20209. pthread_lib=""
  20210. ;;
  20211. *-*-nto*)
  20212. pthread_cflags="-D_REENTRANT"
  20213. pthread_lib=""
  20214. ;;
  20215. *-*-emscripten*)
  20216. pthread_cflags="-D_REENTRANT -pthread"
  20217. pthread_lib="-pthread"
  20218. ;;
  20219. *)
  20220. pthread_cflags="-D_REENTRANT"
  20221. pthread_lib="-lpthread"
  20222. ;;
  20223. esac
  20224. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  20225. # Save the original compiler flags and libraries
  20226. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20227. # Add the pthread compiler flags and libraries
  20228. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20229. # Check to see if we have pthread support on this system
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  20231. $as_echo_n "checking for pthreads... " >&6; }
  20232. use_pthreads=no
  20233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20234. /* end confdefs.h. */
  20235. #include <pthread.h>
  20236. int
  20237. main ()
  20238. {
  20239. pthread_attr_t type;
  20240. pthread_attr_init(&type);
  20241. ;
  20242. return 0;
  20243. }
  20244. _ACEOF
  20245. if ac_fn_c_try_link "$LINENO"; then :
  20246. use_pthreads=yes
  20247. fi
  20248. rm -f core conftest.err conftest.$ac_objext \
  20249. conftest$ac_exeext conftest.$ac_ext
  20250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  20251. $as_echo "$use_pthreads" >&6; }
  20252. # Restore the compiler flags and libraries
  20253. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20254. # Do futher testing if we have pthread support...
  20255. if test x$use_pthreads = xyes; then
  20256. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  20257. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  20258. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  20259. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  20260. # Save the original compiler flags and libraries
  20261. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20262. # Add the pthread compiler flags and libraries
  20263. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  20264. # Check to see if recursive mutexes are available
  20265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  20266. $as_echo_n "checking for recursive mutexes... " >&6; }
  20267. has_recursive_mutexes=no
  20268. if test x$has_recursive_mutexes = xno; then
  20269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20270. /* end confdefs.h. */
  20271. #define _GNU_SOURCE 1
  20272. #include <pthread.h>
  20273. int
  20274. main ()
  20275. {
  20276. pthread_mutexattr_t attr;
  20277. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  20278. ;
  20279. return 0;
  20280. }
  20281. _ACEOF
  20282. if ac_fn_c_try_link "$LINENO"; then :
  20283. has_recursive_mutexes=yes
  20284. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  20285. fi
  20286. rm -f core conftest.err conftest.$ac_objext \
  20287. conftest$ac_exeext conftest.$ac_ext
  20288. fi
  20289. if test x$has_recursive_mutexes = xno; then
  20290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20291. /* end confdefs.h. */
  20292. #define _GNU_SOURCE 1
  20293. #include <pthread.h>
  20294. int
  20295. main ()
  20296. {
  20297. pthread_mutexattr_t attr;
  20298. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  20299. ;
  20300. return 0;
  20301. }
  20302. _ACEOF
  20303. if ac_fn_c_try_link "$LINENO"; then :
  20304. has_recursive_mutexes=yes
  20305. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  20306. fi
  20307. rm -f core conftest.err conftest.$ac_objext \
  20308. conftest$ac_exeext conftest.$ac_ext
  20309. fi
  20310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  20311. $as_echo "$has_recursive_mutexes" >&6; }
  20312. # Check to see if pthread semaphore support is missing
  20313. if test x$enable_pthread_sem = xyes; then
  20314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  20315. $as_echo_n "checking for pthread semaphores... " >&6; }
  20316. have_pthread_sem=no
  20317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20318. /* end confdefs.h. */
  20319. #include <pthread.h>
  20320. #include <semaphore.h>
  20321. int
  20322. main ()
  20323. {
  20324. ;
  20325. return 0;
  20326. }
  20327. _ACEOF
  20328. if ac_fn_c_try_compile "$LINENO"; then :
  20329. have_pthread_sem=yes
  20330. fi
  20331. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20333. $as_echo "$have_pthread_sem" >&6; }
  20334. fi
  20335. if test x$have_pthread_sem = xyes; then
  20336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20337. $as_echo_n "checking for sem_timedwait... " >&6; }
  20338. have_sem_timedwait=no
  20339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20340. /* end confdefs.h. */
  20341. #include <pthread.h>
  20342. #include <semaphore.h>
  20343. int
  20344. main ()
  20345. {
  20346. sem_timedwait(NULL, NULL);
  20347. ;
  20348. return 0;
  20349. }
  20350. _ACEOF
  20351. if ac_fn_c_try_link "$LINENO"; then :
  20352. have_sem_timedwait=yes
  20353. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20354. fi
  20355. rm -f core conftest.err conftest.$ac_objext \
  20356. conftest$ac_exeext conftest.$ac_ext
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20358. $as_echo "$have_sem_timedwait" >&6; }
  20359. fi
  20360. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20361. "
  20362. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20363. have_pthread_np_h=yes
  20364. else
  20365. have_pthread_np_h=no
  20366. fi
  20367. if test x$have_pthread_np_h = xyes; then
  20368. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20369. fi
  20370. # Check to see if pthread naming is available
  20371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20372. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20374. /* end confdefs.h. */
  20375. /* Override any GCC internal prototype to avoid an error.
  20376. Use char because int might match the return type of a GCC
  20377. builtin and then its argument prototype would still apply. */
  20378. #ifdef __cplusplus
  20379. extern "C"
  20380. #endif
  20381. char pthread_setname_np ();
  20382. int
  20383. main ()
  20384. {
  20385. return pthread_setname_np ();
  20386. ;
  20387. return 0;
  20388. }
  20389. _ACEOF
  20390. if ac_fn_c_try_link "$LINENO"; then :
  20391. has_pthread_setname_np=yes
  20392. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20393. else
  20394. has_pthread_setname_np=no
  20395. fi
  20396. rm -f core conftest.err conftest.$ac_objext \
  20397. conftest$ac_exeext conftest.$ac_ext
  20398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20399. $as_echo "$has_pthread_setname_np" >&6; }
  20400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20401. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20403. /* end confdefs.h. */
  20404. /* Override any GCC internal prototype to avoid an error.
  20405. Use char because int might match the return type of a GCC
  20406. builtin and then its argument prototype would still apply. */
  20407. #ifdef __cplusplus
  20408. extern "C"
  20409. #endif
  20410. char pthread_set_name_np ();
  20411. int
  20412. main ()
  20413. {
  20414. return pthread_set_name_np ();
  20415. ;
  20416. return 0;
  20417. }
  20418. _ACEOF
  20419. if ac_fn_c_try_link "$LINENO"; then :
  20420. has_pthread_set_name_np=yes
  20421. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20422. else
  20423. has_pthread_set_name_np=no
  20424. fi
  20425. rm -f core conftest.err conftest.$ac_objext \
  20426. conftest$ac_exeext conftest.$ac_ext
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20428. $as_echo "$has_pthread_set_name_np" >&6; }
  20429. # Restore the compiler flags and libraries
  20430. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20431. # Basic thread creation functions
  20432. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20433. # Semaphores
  20434. # We can fake these with mutexes and condition variables if necessary
  20435. if test x$have_pthread_sem = xyes; then
  20436. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20437. else
  20438. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20439. fi
  20440. # Mutexes
  20441. # We can fake these with semaphores if necessary
  20442. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20443. # Condition variables
  20444. # We can fake these with semaphores and mutexes if necessary
  20445. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20446. # Thread local storage
  20447. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20448. have_threads=yes
  20449. fi
  20450. fi
  20451. }
  20452. CheckWINDOWS()
  20453. {
  20454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20455. $as_echo_n "checking Windows compiler... " >&6; }
  20456. have_win32_gcc=no
  20457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20458. /* end confdefs.h. */
  20459. #include <windows.h>
  20460. int
  20461. main ()
  20462. {
  20463. ;
  20464. return 0;
  20465. }
  20466. _ACEOF
  20467. if ac_fn_c_try_compile "$LINENO"; then :
  20468. have_win32_gcc=yes
  20469. fi
  20470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20472. $as_echo "$have_win32_gcc" >&6; }
  20473. if test x$have_win32_gcc != xyes; then
  20474. as_fn_error $? "
  20475. *** Your compiler ($CC) does not produce Windows executables!
  20476. " "$LINENO" 5
  20477. fi
  20478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20479. $as_echo_n "checking Windows CE... " >&6; }
  20480. have_wince=no
  20481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20482. /* end confdefs.h. */
  20483. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20484. #error This is not Windows CE
  20485. #endif
  20486. int
  20487. main ()
  20488. {
  20489. ;
  20490. return 0;
  20491. }
  20492. _ACEOF
  20493. if ac_fn_c_try_compile "$LINENO"; then :
  20494. have_wince=yes
  20495. as_fn_error $? "
  20496. *** Sorry, Windows CE is no longer supported.
  20497. " "$LINENO" 5
  20498. fi
  20499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20501. $as_echo "$have_wince" >&6; }
  20502. # This fixes Windows stack alignment with newer GCC
  20503. CheckStackBoundary
  20504. }
  20505. CheckDIRECTX()
  20506. {
  20507. # Check whether --enable-directx was given.
  20508. if test "${enable_directx+set}" = set; then :
  20509. enableval=$enable_directx;
  20510. else
  20511. enable_directx=yes
  20512. fi
  20513. if test x$enable_directx = xyes; then
  20514. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20515. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20516. have_d3d=yes
  20517. fi
  20518. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20519. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20520. have_d3d11=yes
  20521. fi
  20522. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20523. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20524. have_ddraw=yes
  20525. fi
  20526. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20527. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20528. have_dsound=yes
  20529. fi
  20530. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20531. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20532. have_dinput=yes
  20533. fi
  20534. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20535. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20536. have_dxgi=yes
  20537. fi
  20538. if test x$have_ddraw = xyes; then
  20539. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20540. fi
  20541. if test x$have_dinput = xyes; then
  20542. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20543. fi
  20544. if test x$have_dsound = xyes; then
  20545. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20546. fi
  20547. if test x$have_dxgi = xyes; then
  20548. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20549. fi
  20550. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20551. # FIXME: ...so force it off for now.
  20552. case "$host" in
  20553. *-*-cygwin*)
  20554. have_dinput=false
  20555. ;;
  20556. esac
  20557. fi
  20558. # Check whether --enable-xinput was given.
  20559. if test "${enable_xinput+set}" = set; then :
  20560. enableval=$enable_xinput;
  20561. else
  20562. enable_xinput=yes
  20563. fi
  20564. if test x$enable_xinput = xyes; then
  20565. have_xinput_gamepadex=no
  20566. have_xinput_stateex=no
  20567. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20568. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20569. have_xinput=yes
  20570. fi
  20571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  20572. $as_echo_n "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  20573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20574. /* end confdefs.h. */
  20575. #include <windows.h>
  20576. #include <xinput.h>
  20577. XINPUT_GAMEPAD_EX x1;
  20578. int
  20579. main ()
  20580. {
  20581. ;
  20582. return 0;
  20583. }
  20584. _ACEOF
  20585. if ac_fn_c_try_compile "$LINENO"; then :
  20586. have_xinput_gamepadex=yes
  20587. fi
  20588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  20590. $as_echo "$have_xinput_gamepadex" >&6; }
  20591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  20592. $as_echo_n "checking for struct XINPUT_STATE_EX... " >&6; }
  20593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20594. /* end confdefs.h. */
  20595. #include <windows.h>
  20596. #include <xinput.h>
  20597. XINPUT_STATE_EX s1;
  20598. int
  20599. main ()
  20600. {
  20601. ;
  20602. return 0;
  20603. }
  20604. _ACEOF
  20605. if ac_fn_c_try_compile "$LINENO"; then :
  20606. have_xinput_stateex=yes
  20607. fi
  20608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  20610. $as_echo "$have_xinput_stateex" >&6; }
  20611. if test x$have_xinput = xyes; then
  20612. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20613. fi
  20614. if test x$have_xinput_gamepadex = xyes; then
  20615. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20616. fi
  20617. if test x$have_xinput_stateex = xyes; then
  20618. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20619. fi
  20620. fi
  20621. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20622. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20623. have_wasapi=yes
  20624. fi
  20625. if test x$have_wasapi = xyes; then
  20626. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20627. fi
  20628. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20629. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20630. else
  20631. have_wasapi=no
  20632. fi
  20633. if test x$have_wasapi = xyes; then
  20634. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20635. fi
  20636. # Check whether --enable-wasapi was given.
  20637. if test "${enable_wasapi+set}" = set; then :
  20638. enableval=$enable_wasapi;
  20639. else
  20640. enable_wasapi=yes
  20641. fi
  20642. }
  20643. CheckDLOPEN()
  20644. {
  20645. $as_echo "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  20646. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  20647. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  20648. have_dlfcn_h=yes
  20649. else
  20650. have_dlfcn_h=no
  20651. fi
  20652. have_dlopen=no
  20653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20654. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20655. if ${ac_cv_lib_c_dlopen+:} false; then :
  20656. $as_echo_n "(cached) " >&6
  20657. else
  20658. ac_check_lib_save_LIBS=$LIBS
  20659. LIBS="-lc $LIBS"
  20660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20661. /* end confdefs.h. */
  20662. /* Override any GCC internal prototype to avoid an error.
  20663. Use char because int might match the return type of a GCC
  20664. builtin and then its argument prototype would still apply. */
  20665. #ifdef __cplusplus
  20666. extern "C"
  20667. #endif
  20668. char dlopen ();
  20669. int
  20670. main ()
  20671. {
  20672. return dlopen ();
  20673. ;
  20674. return 0;
  20675. }
  20676. _ACEOF
  20677. if ac_fn_c_try_link "$LINENO"; then :
  20678. ac_cv_lib_c_dlopen=yes
  20679. else
  20680. ac_cv_lib_c_dlopen=no
  20681. fi
  20682. rm -f core conftest.err conftest.$ac_objext \
  20683. conftest$ac_exeext conftest.$ac_ext
  20684. LIBS=$ac_check_lib_save_LIBS
  20685. fi
  20686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20687. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20688. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20689. have_dlopen=yes
  20690. else
  20691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20692. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20693. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20694. $as_echo_n "(cached) " >&6
  20695. else
  20696. ac_check_lib_save_LIBS=$LIBS
  20697. LIBS="-ldl $LIBS"
  20698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20699. /* end confdefs.h. */
  20700. /* Override any GCC internal prototype to avoid an error.
  20701. Use char because int might match the return type of a GCC
  20702. builtin and then its argument prototype would still apply. */
  20703. #ifdef __cplusplus
  20704. extern "C"
  20705. #endif
  20706. char dlopen ();
  20707. int
  20708. main ()
  20709. {
  20710. return dlopen ();
  20711. ;
  20712. return 0;
  20713. }
  20714. _ACEOF
  20715. if ac_fn_c_try_link "$LINENO"; then :
  20716. ac_cv_lib_dl_dlopen=yes
  20717. else
  20718. ac_cv_lib_dl_dlopen=no
  20719. fi
  20720. rm -f core conftest.err conftest.$ac_objext \
  20721. conftest$ac_exeext conftest.$ac_ext
  20722. LIBS=$ac_check_lib_save_LIBS
  20723. fi
  20724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20725. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20726. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20727. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20728. fi
  20729. fi
  20730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20731. $as_echo_n "checking for dlopen... " >&6; }
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20733. $as_echo "$have_dlopen" >&6; }
  20734. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  20735. $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
  20736. if test x$enable_loadso = xyes; then
  20737. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20738. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20739. have_loadso=yes
  20740. fi
  20741. fi
  20742. }
  20743. CheckUSBHID()
  20744. {
  20745. case "$host" in
  20746. *-*-*bsd*|*-*-dragonfly*)
  20747. if test x$enable_joystick = xyes; then
  20748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20749. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20750. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20751. $as_echo_n "(cached) " >&6
  20752. else
  20753. ac_check_lib_save_LIBS=$LIBS
  20754. LIBS="-lusbhid $LIBS"
  20755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20756. /* end confdefs.h. */
  20757. /* Override any GCC internal prototype to avoid an error.
  20758. Use char because int might match the return type of a GCC
  20759. builtin and then its argument prototype would still apply. */
  20760. #ifdef __cplusplus
  20761. extern "C"
  20762. #endif
  20763. char hid_init ();
  20764. int
  20765. main ()
  20766. {
  20767. return hid_init ();
  20768. ;
  20769. return 0;
  20770. }
  20771. _ACEOF
  20772. if ac_fn_c_try_link "$LINENO"; then :
  20773. ac_cv_lib_usbhid_hid_init=yes
  20774. else
  20775. ac_cv_lib_usbhid_hid_init=no
  20776. fi
  20777. rm -f core conftest.err conftest.$ac_objext \
  20778. conftest$ac_exeext conftest.$ac_ext
  20779. LIBS=$ac_check_lib_save_LIBS
  20780. fi
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20782. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20783. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20784. have_libusbhid=yes
  20785. fi
  20786. if test x$have_libusbhid = xyes; then
  20787. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20788. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20789. USB_CFLAGS="-DHAVE_USBHID_H"
  20790. fi
  20791. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20792. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20793. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20794. fi
  20795. USB_LIBS="$USB_LIBS -lusbhid"
  20796. else
  20797. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20798. if test "x$ac_cv_header_usb_h" = xyes; then :
  20799. USB_CFLAGS="-DHAVE_USB_H"
  20800. fi
  20801. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20802. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20803. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20804. fi
  20805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20806. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20807. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20808. $as_echo_n "(cached) " >&6
  20809. else
  20810. ac_check_lib_save_LIBS=$LIBS
  20811. LIBS="-lusb $LIBS"
  20812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20813. /* end confdefs.h. */
  20814. /* Override any GCC internal prototype to avoid an error.
  20815. Use char because int might match the return type of a GCC
  20816. builtin and then its argument prototype would still apply. */
  20817. #ifdef __cplusplus
  20818. extern "C"
  20819. #endif
  20820. char hid_init ();
  20821. int
  20822. main ()
  20823. {
  20824. return hid_init ();
  20825. ;
  20826. return 0;
  20827. }
  20828. _ACEOF
  20829. if ac_fn_c_try_link "$LINENO"; then :
  20830. ac_cv_lib_usb_hid_init=yes
  20831. else
  20832. ac_cv_lib_usb_hid_init=no
  20833. fi
  20834. rm -f core conftest.err conftest.$ac_objext \
  20835. conftest$ac_exeext conftest.$ac_ext
  20836. LIBS=$ac_check_lib_save_LIBS
  20837. fi
  20838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20839. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20840. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20841. USB_LIBS="$USB_LIBS -lusb"
  20842. fi
  20843. fi
  20844. save_CFLAGS="$CFLAGS"
  20845. CFLAGS="$CFLAGS $USB_CFLAGS"
  20846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20847. $as_echo_n "checking for usbhid... " >&6; }
  20848. have_usbhid=no
  20849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20850. /* end confdefs.h. */
  20851. #include <sys/types.h>
  20852. #if defined(HAVE_USB_H)
  20853. #include <usb.h>
  20854. #endif
  20855. #ifdef __DragonFly__
  20856. # include <bus/u4b/usb.h>
  20857. # include <bus/u4b/usbhid.h>
  20858. #else
  20859. # include <dev/usb/usb.h>
  20860. # include <dev/usb/usbhid.h>
  20861. #endif
  20862. #if defined(HAVE_USBHID_H)
  20863. #include <usbhid.h>
  20864. #elif defined(HAVE_LIBUSB_H)
  20865. #include <libusb.h>
  20866. #elif defined(HAVE_LIBUSBHID_H)
  20867. #include <libusbhid.h>
  20868. #endif
  20869. int
  20870. main ()
  20871. {
  20872. struct report_desc *repdesc;
  20873. struct usb_ctl_report *repbuf;
  20874. hid_kind_t hidkind;
  20875. ;
  20876. return 0;
  20877. }
  20878. _ACEOF
  20879. if ac_fn_c_try_compile "$LINENO"; then :
  20880. have_usbhid=yes
  20881. fi
  20882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20884. $as_echo "$have_usbhid" >&6; }
  20885. if test x$have_usbhid = xyes; then
  20886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20887. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20888. have_usbhid_ucr_data=no
  20889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20890. /* end confdefs.h. */
  20891. #include <sys/types.h>
  20892. #if defined(HAVE_USB_H)
  20893. #include <usb.h>
  20894. #endif
  20895. #ifdef __DragonFly__
  20896. # include <bus/u4b/usb.h>
  20897. # include <bus/u4b/usbhid.h>
  20898. #else
  20899. # include <dev/usb/usb.h>
  20900. # include <dev/usb/usbhid.h>
  20901. #endif
  20902. #if defined(HAVE_USBHID_H)
  20903. #include <usbhid.h>
  20904. #elif defined(HAVE_LIBUSB_H)
  20905. #include <libusb.h>
  20906. #elif defined(HAVE_LIBUSBHID_H)
  20907. #include <libusbhid.h>
  20908. #endif
  20909. int
  20910. main ()
  20911. {
  20912. struct usb_ctl_report buf;
  20913. if (buf.ucr_data) { }
  20914. ;
  20915. return 0;
  20916. }
  20917. _ACEOF
  20918. if ac_fn_c_try_compile "$LINENO"; then :
  20919. have_usbhid_ucr_data=yes
  20920. fi
  20921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20922. if test x$have_usbhid_ucr_data = xyes; then
  20923. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20924. fi
  20925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20926. $as_echo "$have_usbhid_ucr_data" >&6; }
  20927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20928. $as_echo_n "checking for new usbhid API... " >&6; }
  20929. have_usbhid_new=no
  20930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20931. /* end confdefs.h. */
  20932. #include <sys/types.h>
  20933. #if defined(HAVE_USB_H)
  20934. #include <usb.h>
  20935. #endif
  20936. #ifdef __DragonFly__
  20937. #include <bus/u4b/usb.h>
  20938. #include <bus/u4b/usbhid.h>
  20939. #else
  20940. #include <dev/usb/usb.h>
  20941. #include <dev/usb/usbhid.h>
  20942. #endif
  20943. #if defined(HAVE_USBHID_H)
  20944. #include <usbhid.h>
  20945. #elif defined(HAVE_LIBUSB_H)
  20946. #include <libusb.h>
  20947. #elif defined(HAVE_LIBUSBHID_H)
  20948. #include <libusbhid.h>
  20949. #endif
  20950. int
  20951. main ()
  20952. {
  20953. report_desc_t d;
  20954. hid_start_parse(d, 1, 1);
  20955. ;
  20956. return 0;
  20957. }
  20958. _ACEOF
  20959. if ac_fn_c_try_compile "$LINENO"; then :
  20960. have_usbhid_new=yes
  20961. fi
  20962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20963. if test x$have_usbhid_new = xyes; then
  20964. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20965. fi
  20966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20967. $as_echo "$have_usbhid_new" >&6; }
  20968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20969. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20970. have_machine_joystick=no
  20971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20972. /* end confdefs.h. */
  20973. #include <machine/joystick.h>
  20974. int
  20975. main ()
  20976. {
  20977. struct joystick t;
  20978. ;
  20979. return 0;
  20980. }
  20981. _ACEOF
  20982. if ac_fn_c_try_compile "$LINENO"; then :
  20983. have_machine_joystick=yes
  20984. fi
  20985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20986. if test x$have_machine_joystick = xyes; then
  20987. $as_echo "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20988. fi
  20989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20990. $as_echo "$have_machine_joystick" >&6; }
  20991. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20992. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20993. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20994. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20995. have_joystick=yes
  20996. fi
  20997. CFLAGS="$save_CFLAGS"
  20998. fi
  20999. ;;
  21000. esac
  21001. }
  21002. CheckHIDAPI()
  21003. {
  21004. # Check whether --enable-hidapi was given.
  21005. if test "${enable_hidapi+set}" = set; then :
  21006. enableval=$enable_hidapi;
  21007. else
  21008. enable_hidapi=yes
  21009. fi
  21010. # Check whether --enable-hidapi-libusb was given.
  21011. if test "${enable_hidapi_libusb+set}" = set; then :
  21012. enableval=$enable_hidapi_libusb;
  21013. else
  21014. enable_hidapi_libusb=maybe
  21015. fi
  21016. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  21017. case "$host" in
  21018. # libusb does not support iOS
  21019. *-ios-* )
  21020. enable_hidapi_libusb=no
  21021. ;;
  21022. # On the other hand, *BSD specifically uses libusb only
  21023. *-*-*bsd* )
  21024. enable_hidapi_libusb=yes
  21025. require_hidapi_libusb=yes
  21026. ;;
  21027. esac
  21028. hidapi_support=yes
  21029. if test x$enable_hidapi_libusb = xyes; then
  21030. pkg_failed=no
  21031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  21032. $as_echo_n "checking for libusb-1.0... " >&6; }
  21033. if test -n "$LIBUSB_CFLAGS"; then
  21034. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  21035. elif test -n "$PKG_CONFIG"; then
  21036. if test -n "$PKG_CONFIG" && \
  21037. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21038. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21039. ac_status=$?
  21040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21041. test $ac_status = 0; }; then
  21042. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  21043. test "x$?" != "x0" && pkg_failed=yes
  21044. else
  21045. pkg_failed=yes
  21046. fi
  21047. else
  21048. pkg_failed=untried
  21049. fi
  21050. if test -n "$LIBUSB_LIBS"; then
  21051. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  21052. elif test -n "$PKG_CONFIG"; then
  21053. if test -n "$PKG_CONFIG" && \
  21054. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  21055. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  21056. ac_status=$?
  21057. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21058. test $ac_status = 0; }; then
  21059. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  21060. test "x$?" != "x0" && pkg_failed=yes
  21061. else
  21062. pkg_failed=yes
  21063. fi
  21064. else
  21065. pkg_failed=untried
  21066. fi
  21067. if test $pkg_failed = yes; then
  21068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21069. $as_echo "no" >&6; }
  21070. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21071. _pkg_short_errors_supported=yes
  21072. else
  21073. _pkg_short_errors_supported=no
  21074. fi
  21075. if test $_pkg_short_errors_supported = yes; then
  21076. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21077. else
  21078. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  21079. fi
  21080. # Put the nasty error message in config.log where it belongs
  21081. echo "$LIBUSB_PKG_ERRORS" >&5
  21082. have_libusb=no
  21083. elif test $pkg_failed = untried; then
  21084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21085. $as_echo "no" >&6; }
  21086. have_libusb=no
  21087. else
  21088. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  21089. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  21090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21091. $as_echo "yes" >&6; }
  21092. have_libusb=yes
  21093. fi
  21094. save_CPPFLAGS="$CPPFLAGS"
  21095. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  21096. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  21097. if test "x$ac_cv_header_libusb_h" = xyes; then :
  21098. have_libusb_h=yes
  21099. else
  21100. have_libusb_h=no
  21101. fi
  21102. CPPFLAGS="$save_CPPFLAGS"
  21103. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  21104. hidapi_support=no
  21105. fi
  21106. fi
  21107. if test x$hidapi_support = xyes; then
  21108. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  21109. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  21110. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  21111. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  21112. if test x$have_libusb_h = xyes; then
  21113. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  21114. if test x$require_hidapi_libusb = xyes; then
  21115. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  21116. else
  21117. if test x$have_loadso != xyes; then
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  21119. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  21120. fi
  21121. # libusb is loaded dynamically, so don't add it to LDFLAGS
  21122. libusb_lib=""
  21123. case "$host" in
  21124. *-*-darwin* )
  21125. libusb_lib="libusb-1.0.0.dylib"
  21126. ;;
  21127. *-*-cygwin* | *-*-mingw* )
  21128. libusb_lib="libusb-1.0.dll"
  21129. ;;
  21130. esac
  21131. if test x$libusb_lib = x; then
  21132. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21133. fi
  21134. cat >>confdefs.h <<_ACEOF
  21135. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  21136. _ACEOF
  21137. fi
  21138. fi
  21139. fi
  21140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  21141. $as_echo_n "checking for hidapi support... " >&6; }
  21142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  21143. $as_echo "$hidapi_support" >&6; }
  21144. fi
  21145. }
  21146. CheckClockGettime()
  21147. {
  21148. # Check whether --enable-clock_gettime was given.
  21149. if test "${enable_clock_gettime+set}" = set; then :
  21150. enableval=$enable_clock_gettime;
  21151. else
  21152. enable_clock_gettime=yes
  21153. fi
  21154. if test x$enable_clock_gettime = xyes; then
  21155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  21156. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  21157. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  21158. $as_echo_n "(cached) " >&6
  21159. else
  21160. ac_check_lib_save_LIBS=$LIBS
  21161. LIBS="-lrt $LIBS"
  21162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21163. /* end confdefs.h. */
  21164. /* Override any GCC internal prototype to avoid an error.
  21165. Use char because int might match the return type of a GCC
  21166. builtin and then its argument prototype would still apply. */
  21167. #ifdef __cplusplus
  21168. extern "C"
  21169. #endif
  21170. char clock_gettime ();
  21171. int
  21172. main ()
  21173. {
  21174. return clock_gettime ();
  21175. ;
  21176. return 0;
  21177. }
  21178. _ACEOF
  21179. if ac_fn_c_try_link "$LINENO"; then :
  21180. ac_cv_lib_rt_clock_gettime=yes
  21181. else
  21182. ac_cv_lib_rt_clock_gettime=no
  21183. fi
  21184. rm -f core conftest.err conftest.$ac_objext \
  21185. conftest$ac_exeext conftest.$ac_ext
  21186. LIBS=$ac_check_lib_save_LIBS
  21187. fi
  21188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  21189. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  21190. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  21191. have_clock_gettime=yes
  21192. fi
  21193. if test x$have_clock_gettime = xyes; then
  21194. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  21196. else
  21197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  21198. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  21199. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  21200. $as_echo_n "(cached) " >&6
  21201. else
  21202. ac_check_lib_save_LIBS=$LIBS
  21203. LIBS="-lc $LIBS"
  21204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21205. /* end confdefs.h. */
  21206. /* Override any GCC internal prototype to avoid an error.
  21207. Use char because int might match the return type of a GCC
  21208. builtin and then its argument prototype would still apply. */
  21209. #ifdef __cplusplus
  21210. extern "C"
  21211. #endif
  21212. char clock_gettime ();
  21213. int
  21214. main ()
  21215. {
  21216. return clock_gettime ();
  21217. ;
  21218. return 0;
  21219. }
  21220. _ACEOF
  21221. if ac_fn_c_try_link "$LINENO"; then :
  21222. ac_cv_lib_c_clock_gettime=yes
  21223. else
  21224. ac_cv_lib_c_clock_gettime=no
  21225. fi
  21226. rm -f core conftest.err conftest.$ac_objext \
  21227. conftest$ac_exeext conftest.$ac_ext
  21228. LIBS=$ac_check_lib_save_LIBS
  21229. fi
  21230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  21231. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  21232. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  21233. have_clock_gettime=yes
  21234. fi
  21235. if test x$have_clock_gettime = xyes; then
  21236. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  21237. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  21238. fi
  21239. fi
  21240. fi
  21241. }
  21242. CheckLinuxVersion()
  21243. {
  21244. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  21245. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  21246. have_linux_version_h=yes
  21247. fi
  21248. if test x$have_linux_version_h = xyes; then
  21249. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  21250. fi
  21251. }
  21252. CheckRPATH()
  21253. {
  21254. # Check whether --enable-rpath was given.
  21255. if test "${enable_rpath+set}" = set; then :
  21256. enableval=$enable_rpath;
  21257. else
  21258. enable_rpath=yes
  21259. fi
  21260. }
  21261. CheckEventSignals()
  21262. {
  21263. # Check whether --enable-backgrounding-signal was given.
  21264. if test "${enable_backgrounding_signal+set}" = set; then :
  21265. enableval=$enable_backgrounding_signal;
  21266. else
  21267. enable_backgrounding_signal=no
  21268. fi
  21269. if test x$enable_backgrounding_signal != xno; then
  21270. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  21271. fi
  21272. # Check whether --enable-foregrounding-signal was given.
  21273. if test "${enable_foregrounding_signal+set}" = set; then :
  21274. enableval=$enable_foregrounding_signal;
  21275. else
  21276. enable_foregrounding_signal=no
  21277. fi
  21278. if test x$enable_foregrounding_signal != xno; then
  21279. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  21280. fi
  21281. }
  21282. CheckVirtualJoystick()
  21283. {
  21284. # Check whether --enable-joystick-virtual was given.
  21285. if test "${enable_joystick_virtual+set}" = set; then :
  21286. enableval=$enable_joystick_virtual;
  21287. else
  21288. enable_joystick_virtual=yes
  21289. fi
  21290. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21291. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21292. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21293. have_joystick_virtual=yes
  21294. fi
  21295. }
  21296. CheckWarnAll
  21297. CheckNoStrictAliasing
  21298. CheckEventSignals
  21299. have_locale=no
  21300. case "$host" in
  21301. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21302. case "$host" in
  21303. *-*-android*)
  21304. # Android
  21305. ARCH=android
  21306. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21307. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21308. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21309. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21311. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21312. if test x$enable_video = xyes; then
  21313. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21314. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21315. SUMMARY_video="${SUMMARY_video} android"
  21316. fi
  21317. ;;
  21318. *-*-linux*) ARCH=linux ;;
  21319. *-*-uclinux*) ARCH=linux ;;
  21320. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21321. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21322. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21323. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21324. *-*-bsdi*) ARCH=bsdi ;;
  21325. *-*-freebsd*) ARCH=freebsd ;;
  21326. *-*-dragonfly*) ARCH=freebsd ;;
  21327. *-*-netbsd*) ARCH=netbsd ;;
  21328. *-*-openbsd*) ARCH=openbsd ;;
  21329. *-*-sysv5*) ARCH=sysv5 ;;
  21330. *-*-solaris*) ARCH=solaris ;;
  21331. *-*-hpux*) ARCH=hpux ;;
  21332. *-*-aix*) ARCH=aix ;;
  21333. *-*-minix*) ARCH=minix ;;
  21334. *-*-nto*) ARCH=nto
  21335. CheckQNXVideo
  21336. ;;
  21337. esac
  21338. CheckVisibilityHidden
  21339. CheckDeclarationAfterStatement
  21340. CheckDummyVideo
  21341. CheckDiskAudio
  21342. CheckDummyAudio
  21343. CheckDLOPEN
  21344. CheckARM
  21345. CheckNEON
  21346. CheckOSS
  21347. CheckALSA
  21348. CheckPipewire
  21349. CheckPulseAudio
  21350. CheckJACK
  21351. CheckARTSC
  21352. CheckESD
  21353. CheckNAS
  21354. CheckSNDIO
  21355. CheckFusionSound
  21356. CheckLibSampleRate
  21357. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21358. CheckRPI
  21359. CheckX11
  21360. CheckDirectFB
  21361. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  21362. CheckEGL
  21363. CheckKMSDRM
  21364. CheckGLX
  21365. CheckOpenGL
  21366. CheckOpenGLES
  21367. CheckVulkan
  21368. CheckWayland
  21369. CheckInputEvents
  21370. CheckLibUDev
  21371. CheckDBus
  21372. CheckIME
  21373. CheckInotify
  21374. CheckIBus
  21375. CheckFcitx
  21376. case $ARCH in
  21377. linux)
  21378. CheckInputKD
  21379. ;;
  21380. freebsd)
  21381. CheckInputKBIO
  21382. ;;
  21383. openbsd|netbsd)
  21384. CheckInputWSCONS
  21385. ;;
  21386. esac
  21387. CheckUSBHID
  21388. CheckHIDAPI
  21389. CheckPTHREAD
  21390. CheckClockGettime
  21391. CheckLinuxVersion
  21392. CheckRPATH
  21393. CheckVivanteVideo
  21394. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  21395. have_misc=yes
  21396. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  21397. have_locale=yes
  21398. # Set up files for the audio library
  21399. if test x$enable_audio = xyes; then
  21400. case $ARCH in
  21401. sysv5|solaris|hpux)
  21402. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21403. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21404. SUMMARY_audio="${SUMMARY_audio} sun"
  21405. have_audio=yes
  21406. ;;
  21407. netbsd) # Don't use this on OpenBSD, it's busted.
  21408. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21409. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21410. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21411. have_audio=yes
  21412. ;;
  21413. aix)
  21414. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21415. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21416. SUMMARY_audio="${SUMMARY_audio} paudio"
  21417. have_audio=yes
  21418. ;;
  21419. android)
  21420. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21421. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21422. SUMMARY_audio="${SUMMARY_audio} android"
  21423. $as_echo "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  21424. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  21425. SUMMARY_audio="${SUMMARY_audio} openslES"
  21426. $as_echo "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  21427. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  21428. SUMMARY_audio="${SUMMARY_audio} aaudio"
  21429. have_audio=yes
  21430. ;;
  21431. nto)
  21432. CheckQNXAudio
  21433. ;;
  21434. esac
  21435. fi
  21436. # Set up files for the joystick library
  21437. if test x$enable_joystick = xyes; then
  21438. case $ARCH in
  21439. linux)
  21440. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21441. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21442. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21443. have_joystick=yes
  21444. ;;
  21445. freebsd)
  21446. if test x$use_input_events = xyes; then
  21447. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21448. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21449. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21450. have_joystick=yes
  21451. fi
  21452. ;;
  21453. android)
  21454. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21455. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21456. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21457. have_joystick=yes
  21458. ;;
  21459. esac
  21460. fi
  21461. # Set up files for the haptic library
  21462. if test x$enable_haptic = xyes; then
  21463. case $ARCH in
  21464. linux|freebsd)
  21465. if test x$use_input_events = xyes; then
  21466. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21467. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21468. have_haptic=yes
  21469. fi
  21470. ;;
  21471. android)
  21472. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21473. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21474. have_haptic=yes
  21475. ;;
  21476. esac
  21477. fi
  21478. # Set up files for the sensor library
  21479. if test x$enable_sensor = xyes; then
  21480. case $ARCH in
  21481. android)
  21482. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21484. have_sensor=yes
  21485. ;;
  21486. esac
  21487. fi
  21488. # Set up files for the power library
  21489. if test x$enable_power = xyes; then
  21490. case $ARCH in
  21491. linux)
  21492. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21493. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21494. have_power=yes
  21495. ;;
  21496. android)
  21497. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21498. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21499. have_power=yes
  21500. ;;
  21501. esac
  21502. fi
  21503. # Set up files for the filesystem library
  21504. if test x$enable_filesystem = xyes; then
  21505. case $ARCH in
  21506. android)
  21507. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21508. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21509. have_filesystem=yes
  21510. ;;
  21511. *)
  21512. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21513. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21514. have_filesystem=yes
  21515. ;;
  21516. esac
  21517. fi
  21518. # Set up files for the timer library
  21519. if test x$enable_timers = xyes; then
  21520. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21521. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21522. have_timers=yes
  21523. fi
  21524. # Set up files for udev hotplugging support
  21525. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21526. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21527. fi
  21528. # Set up files for evdev input
  21529. if test x$use_input_events = xyes; then
  21530. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  21531. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  21532. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  21533. fi
  21534. # Set up files for wscons input
  21535. if test x$use_input_wscons = xyes; then
  21536. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  21537. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  21538. fi
  21539. # Set up other core UNIX files
  21540. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  21541. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21542. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21543. ;;
  21544. *-*-cygwin* | *-*-mingw*)
  21545. ARCH=win32
  21546. if test "$build" != "$host"; then # cross-compiling
  21547. # Default cross-compile location
  21548. ac_default_prefix=/usr/local/cross-tools/$host
  21549. else
  21550. # Look for the location of the tools and install there
  21551. if test "$BUILD_PREFIX" != ""; then
  21552. ac_default_prefix=$BUILD_PREFIX
  21553. fi
  21554. fi
  21555. if test x$enable_loadso = xyes; then
  21556. have_loadso=yes
  21557. fi
  21558. CheckDeclarationAfterStatement
  21559. CheckDummyVideo
  21560. CheckDiskAudio
  21561. CheckDummyAudio
  21562. CheckWINDOWS
  21563. CheckWINDOWSGL
  21564. CheckWINDOWSGLES
  21565. CheckVulkan
  21566. CheckDIRECTX
  21567. CheckHIDAPI
  21568. # Set up the core platform files
  21569. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21570. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  21571. have_misc=yes
  21572. # Use the Windows locale APIs.
  21573. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  21574. have_locale=yes
  21575. # Set up files for the video library
  21576. if test x$enable_video = xyes; then
  21577. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21578. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21579. have_video=yes
  21580. # Check whether --enable-render-d3d was given.
  21581. if test "${enable_render_d3d+set}" = set; then :
  21582. enableval=$enable_render_d3d;
  21583. else
  21584. enable_render_d3d=yes
  21585. fi
  21586. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21587. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21588. SUMMARY_video="${SUMMARY_video} d3d9"
  21589. fi
  21590. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21591. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21592. SUMMARY_video="${SUMMARY_video} d3d11"
  21593. fi
  21594. fi
  21595. # Set up files for the audio library
  21596. if test x$enable_audio = xyes; then
  21597. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21598. SUMMARY_audio="${SUMMARY_audio} winmm"
  21599. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21600. if test x$have_dsound = xyes; then
  21601. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21602. SUMMARY_audio="${SUMMARY_audio} directsound"
  21603. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21604. fi
  21605. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21606. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21607. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21608. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21609. fi
  21610. have_audio=yes
  21611. fi
  21612. # Set up files for the joystick library
  21613. if test x$enable_joystick = xyes; then
  21614. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  21615. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21616. if test x$have_xinput = xyes; then
  21617. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21618. fi
  21619. if test x$have_dinput = xyes; then
  21620. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21622. fi
  21623. else
  21624. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21625. fi
  21626. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21627. have_joystick=yes
  21628. fi
  21629. if test x$enable_haptic = xyes; then
  21630. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21631. if test x$have_xinput = xyes; then
  21632. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21633. fi
  21634. if test x$have_dinput = xyes; then
  21635. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21636. fi
  21637. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21638. have_haptic=yes
  21639. fi
  21640. fi
  21641. # Set up files for the sensor library
  21642. ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  21643. if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
  21644. have_winsensors=yes
  21645. else
  21646. have_winsensors=no
  21647. fi
  21648. if test x$have_winsensors = xyes; then
  21649. $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  21650. fi
  21651. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  21652. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21653. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21654. have_sensor=yes
  21655. fi
  21656. # Set up files for the power library
  21657. if test x$enable_power = xyes; then
  21658. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21659. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21660. have_power=yes
  21661. fi
  21662. # Set up files for the filesystem library
  21663. if test x$enable_filesystem = xyes; then
  21664. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21665. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21666. have_filesystem=yes
  21667. fi
  21668. # Set up files for the thread library
  21669. if test x$enable_threads = xyes; then
  21670. $as_echo "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  21671. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21672. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21673. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21674. have_threads=yes
  21675. fi
  21676. # Set up files for the timer library
  21677. if test x$enable_timers = xyes; then
  21678. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21679. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21680. have_timers=yes
  21681. fi
  21682. # Set up files for the shared object loading library
  21683. if test x$enable_loadso = xyes; then
  21684. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21685. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21686. fi
  21687. # Set up the system libraries we need
  21688. if test -f /lib/w32api/libuuid.a; then
  21689. LIBUUID=/lib/w32api/libuuid.a
  21690. else
  21691. LIBUUID=-luuid
  21692. fi
  21693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  21694. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  21695. # The Windows platform requires special setup
  21696. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21697. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21698. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21699. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21700. # Check to see if this is a mingw or cygwin build
  21701. have_mingw32=
  21702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21703. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21704. if ${ac_cv_lib_mingw32_main+:} false; then :
  21705. $as_echo_n "(cached) " >&6
  21706. else
  21707. ac_check_lib_save_LIBS=$LIBS
  21708. LIBS="-lmingw32 $LIBS"
  21709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21710. /* end confdefs.h. */
  21711. int
  21712. main ()
  21713. {
  21714. return main ();
  21715. ;
  21716. return 0;
  21717. }
  21718. _ACEOF
  21719. if ac_fn_c_try_link "$LINENO"; then :
  21720. ac_cv_lib_mingw32_main=yes
  21721. else
  21722. ac_cv_lib_mingw32_main=no
  21723. fi
  21724. rm -f core conftest.err conftest.$ac_objext \
  21725. conftest$ac_exeext conftest.$ac_ext
  21726. LIBS=$ac_check_lib_save_LIBS
  21727. fi
  21728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21729. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21730. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21731. have_mingw32=yes
  21732. fi
  21733. if test x$have_mingw32 = xyes; then
  21734. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21735. else
  21736. SDL_LIBS="-lcygwin $SDL_LIBS"
  21737. fi
  21738. ;;
  21739. *-*-beos*)
  21740. as_fn_error $? "
  21741. *** BeOS support has been removed as of SDL 2.0.2.
  21742. " "$LINENO" 5
  21743. ;;
  21744. *-*-haiku*)
  21745. ARCH=haiku
  21746. ac_default_prefix=/boot/system
  21747. CheckDummyVideo
  21748. CheckDiskAudio
  21749. CheckDummyAudio
  21750. CheckDLOPEN
  21751. CheckHaikuVideo
  21752. CheckHaikuGL
  21753. CheckPTHREAD
  21754. # Set up files for the audio library
  21755. if test x$enable_audio = xyes; then
  21756. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21757. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21758. SUMMARY_audio="${SUMMARY_audio} haiku"
  21759. have_audio=yes
  21760. fi
  21761. # Set up files for the joystick library
  21762. if test x$enable_joystick = xyes; then
  21763. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21764. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21765. have_joystick=yes
  21766. fi
  21767. # Set up files for the timer library
  21768. if test x$enable_timers = xyes; then
  21769. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21770. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21771. have_timers=yes
  21772. fi
  21773. # Set up files for the system power library
  21774. if test x$enable_power = xyes; then
  21775. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21776. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21777. have_power=yes
  21778. fi
  21779. # Set up files for the system filesystem library
  21780. if test x$enable_filesystem = xyes; then
  21781. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21782. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21783. have_filesystem=yes
  21784. fi
  21785. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  21786. have_misc=yes
  21787. # Set up files for the locale library
  21788. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  21789. have_locale=yes
  21790. # The Haiku platform requires special setup.
  21791. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21793. ;;
  21794. *-ios-*)
  21795. ARCH=ios
  21796. CheckVisibilityHidden
  21797. CheckDeclarationAfterStatement
  21798. CheckDummyVideo
  21799. CheckDiskAudio
  21800. CheckDummyAudio
  21801. CheckDLOPEN
  21802. CheckMETAL
  21803. CheckVulkan
  21804. CheckPTHREAD
  21805. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  21806. have_misc=yes
  21807. # Set up files for the locale library
  21808. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21809. have_locale=yes
  21810. # Set up files for the audio library
  21811. if test x$enable_audio = xyes; then
  21812. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21813. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21814. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21815. have_audio=yes
  21816. fi
  21817. # Set up files for the joystick library
  21818. if test x$enable_joystick = xyes; then
  21819. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21820. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21821. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21822. have_joystick=yes
  21823. else
  21824. # Need this code for accelerometer as joystick support
  21825. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21826. fi
  21827. # Set up files for the haptic library
  21828. #if test x$enable_haptic = xyes; then
  21829. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21830. # have_haptic=yes
  21831. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21832. #fi
  21833. # Set up files for the sensor library
  21834. if test x$enable_sensor = xyes; then
  21835. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21836. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21837. have_sensor=yes
  21838. fi
  21839. # Set up files for the power library
  21840. if test x$enable_power = xyes; then
  21841. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21842. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21843. have_power=yes
  21844. fi
  21845. # Set up files for the filesystem library
  21846. if test x$enable_filesystem = xyes; then
  21847. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21848. have_filesystem=yes
  21849. fi
  21850. # Set up additional files for the file library
  21851. if test x$enable_file = xyes; then
  21852. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21853. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21854. fi
  21855. # Set up files for the timer library
  21856. if test x$enable_timers = xyes; then
  21857. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21858. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21859. have_timers=yes
  21860. fi
  21861. # Set up other core UNIX files
  21862. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21863. # The iOS platform requires special setup.
  21864. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21865. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21866. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21867. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21868. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21869. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21871. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21872. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21874. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21876. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21878. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21879. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21880. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21881. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21883. fi
  21884. ;;
  21885. *-*-darwin* )
  21886. # This could be either full "Mac OS X", or plain "Darwin" which is
  21887. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21888. # Next line is broken, and a few files below require Mac OS X (full)
  21889. ARCH=macosx
  21890. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21891. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21892. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21893. CheckVisibilityHidden
  21894. CheckDeclarationAfterStatement
  21895. CheckDummyVideo
  21896. CheckDiskAudio
  21897. CheckDummyAudio
  21898. CheckDLOPEN
  21899. CheckCOCOA
  21900. CheckMETAL
  21901. CheckX11
  21902. CheckMacGL
  21903. CheckMacGLES
  21904. CheckGLX
  21905. CheckOpenGL
  21906. CheckVulkan
  21907. CheckPTHREAD
  21908. CheckHIDAPI
  21909. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  21910. have_misc=yes
  21911. # Set up files for the locale library
  21912. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  21913. have_locale=yes
  21914. # Set up files for the audio library
  21915. if test x$enable_audio = xyes; then
  21916. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21917. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21918. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21919. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21920. have_audio=yes
  21921. fi
  21922. # Set up files for the joystick library
  21923. if test x$enable_joystick = xyes; then
  21924. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21925. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21926. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21927. CheckJoystickMFI
  21928. have_joystick=yes
  21929. fi
  21930. # Set up files for the haptic library
  21931. if test x$enable_haptic = xyes; then
  21932. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21933. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21935. have_haptic=yes
  21936. fi
  21937. # Set up files for the power library
  21938. if test x$enable_power = xyes; then
  21939. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21940. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21941. have_power=yes
  21942. fi
  21943. # Set up files for the filesystem library
  21944. if test x$enable_filesystem = xyes; then
  21945. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21946. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21947. have_filesystem=yes
  21948. fi
  21949. # Set up files for the timer library
  21950. if test x$enable_timers = xyes; then
  21951. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21952. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21953. have_timers=yes
  21954. fi
  21955. # Set up additional files for the file library
  21956. if test x$enable_file = xyes; then
  21957. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21958. fi
  21959. # Set up other core UNIX files
  21960. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21961. # The Mac OS X platform requires special setup.
  21962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21963. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21964. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21965. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21967. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21969. fi
  21970. ;;
  21971. *-nacl|*-pnacl)
  21972. ARCH=nacl
  21973. CheckNativeClient
  21974. CheckDummyAudio
  21975. CheckDummyVideo
  21976. CheckInputEvents
  21977. CheckPTHREAD
  21978. # Set up files for the timer library
  21979. if test x$enable_timers = xyes; then
  21980. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21981. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21982. have_timers=yes
  21983. fi
  21984. if test x$enable_filesystem = xyes; then
  21985. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21986. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21987. have_filesystem=yes
  21988. fi
  21989. ;;
  21990. *-*-emscripten* )
  21991. if test x$enable_video = xyes; then
  21992. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21993. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21994. have_video=yes
  21995. SUMMARY_video="${SUMMARY_video} emscripten"
  21996. fi
  21997. if test x$enable_audio = xyes; then
  21998. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21999. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  22000. have_audio=yes
  22001. SUMMARY_audio="${SUMMARY_audio} emscripten"
  22002. fi
  22003. CheckVisibilityHidden
  22004. CheckDeclarationAfterStatement
  22005. CheckDummyVideo
  22006. CheckDiskAudio
  22007. CheckDummyAudio
  22008. CheckPTHREAD
  22009. CheckDLOPEN
  22010. CheckClockGettime
  22011. CheckEmscriptenGLES
  22012. # Set up files for the power library
  22013. if test x$enable_power = xyes; then
  22014. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  22015. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  22016. have_power=yes
  22017. fi
  22018. # Set up files for the power library
  22019. if test x$enable_joystick = xyes; then
  22020. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  22021. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  22022. have_joystick=yes
  22023. fi
  22024. # Set up files for the filesystem library
  22025. if test x$enable_filesystem = xyes; then
  22026. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  22027. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  22028. have_filesystem=yes
  22029. fi
  22030. # Set up files for the timer library
  22031. if test x$enable_timers = xyes; then
  22032. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22033. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22034. have_timers=yes
  22035. fi
  22036. # Set up files for the locale library
  22037. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  22038. have_locale=yes
  22039. ;;
  22040. *-*-riscos*)
  22041. ARCH=riscos
  22042. CheckVisibilityHidden
  22043. CheckDeclarationAfterStatement
  22044. CheckDummyVideo
  22045. CheckDiskAudio
  22046. CheckDummyAudio
  22047. CheckDLOPEN
  22048. CheckOSS
  22049. CheckPTHREAD
  22050. CheckClockGettime
  22051. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  22052. have_misc=yes
  22053. # Set up files for the timer library
  22054. if test x$enable_timers = xyes; then
  22055. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  22056. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  22057. have_timers=yes
  22058. fi
  22059. ;;
  22060. *)
  22061. as_fn_error $? "
  22062. *** Unsupported host: Please add to configure.ac
  22063. " "$LINENO" 5
  22064. ;;
  22065. esac
  22066. CheckVirtualJoystick
  22067. # Check whether to install sdl2-config
  22068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  22069. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  22070. # Check whether --enable-sdl2-config was given.
  22071. if test "${enable_sdl2_config+set}" = set; then :
  22072. enableval=$enable_sdl2_config; case "${enableval}" in
  22073. yes) enable_sdl2_config="TRUE" ;;
  22074. no) enable_sdl2_config="FALSE" ;;
  22075. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  22076. esac
  22077. else
  22078. enable_sdl2_config="TRUE"
  22079. fi
  22080. if test "$enable_sdl2_config" = "TRUE"; then
  22081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22082. $as_echo "yes" >&6; }
  22083. else
  22084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22085. $as_echo "no" >&6; }
  22086. fi
  22087. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  22088. # Verify that we have all the platform specific files we need
  22089. if test x$have_misc != xyes; then
  22090. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  22091. fi
  22092. if test x$have_locale != xyes; then
  22093. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  22094. fi
  22095. if test x$have_joystick != xyes; then
  22096. if test x$enable_joystick = xyes; then
  22097. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  22098. fi
  22099. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  22100. fi
  22101. if test x$have_haptic != xyes; then
  22102. if test x$enable_haptic = xyes; then
  22103. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  22104. fi
  22105. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  22106. fi
  22107. if test x$have_sensor != xyes; then
  22108. if test x$enable_sensor = xyes; then
  22109. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  22110. fi
  22111. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  22112. fi
  22113. if test x$have_threads != xyes; then
  22114. if test x$enable_threads = xyes; then
  22115. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  22116. fi
  22117. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  22118. fi
  22119. if test x$have_timers != xyes; then
  22120. if test x$enable_timers = xyes; then
  22121. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  22122. fi
  22123. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  22124. fi
  22125. if test x$have_filesystem != xyes; then
  22126. if test x$enable_filesystem = xyes; then
  22127. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  22128. fi
  22129. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  22130. fi
  22131. if test x$have_loadso != xyes; then
  22132. if test x$enable_loadso = xyes; then
  22133. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  22134. fi
  22135. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  22136. fi
  22137. if test x$SDLMAIN_SOURCES = x; then
  22138. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  22139. fi
  22140. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  22141. if test x$video_wayland = xyes; then
  22142. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  22143. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  22144. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  22145. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  22146. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  22147. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  22148. echo ;\
  22149. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22150. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22151. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  22152. echo ;\
  22153. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  22154. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  22155. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  22156. echo ;\
  22157. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  22158. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  22159. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  22160. done ;\
  22161. echo ;\
  22162. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  22163. fi
  22164. OBJECTS=`echo $SOURCES`
  22165. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  22166. for EXT in asm cc m c S; do
  22167. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  22168. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  22169. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  22170. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22171. done
  22172. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22173. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  22174. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  22175. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  22176. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  22177. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  22178. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  22179. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  22180. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  22181. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22182. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22183. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22184. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22185. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  22186. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  22187. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  22188. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  22189. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  22190. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  22191. # Set runtime shared library paths as needed
  22192. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  22193. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  22194. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  22195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  22196. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  22197. have_enable_new_dtags=no
  22198. save_LDFLAGS="$LDFLAGS"
  22199. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  22200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22201. /* end confdefs.h. */
  22202. int
  22203. main ()
  22204. {
  22205. ;
  22206. return 0;
  22207. }
  22208. _ACEOF
  22209. if ac_fn_c_try_link "$LINENO"; then :
  22210. have_enable_new_dtags=yes
  22211. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  22212. fi
  22213. rm -f core conftest.err conftest.$ac_objext \
  22214. conftest$ac_exeext conftest.$ac_ext
  22215. LDFLAGS="$save_LDFLAGS"
  22216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  22217. $as_echo "$have_enable_new_dtags" >&6; }
  22218. fi
  22219. if test $ARCH = solaris; then
  22220. SDL_RLD_FLAGS="-R\${libdir}"
  22221. fi
  22222. else
  22223. SDL_RLD_FLAGS=""
  22224. fi
  22225. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  22226. if test x$enable_shared = xyes; then
  22227. PKGCONFIG_LIBS_PRIV="
  22228. Libs.private:"
  22229. ENABLE_SHARED_TRUE=
  22230. ENABLE_SHARED_FALSE="#"
  22231. else
  22232. PKGCONFIG_LIBS_PRIV=
  22233. ENABLE_SHARED_TRUE="#"
  22234. ENABLE_SHARED_FALSE=
  22235. fi
  22236. if test x$enable_static = xyes; then
  22237. ENABLE_STATIC_TRUE=
  22238. ENABLE_STATIC_FALSE="#"
  22239. else
  22240. ENABLE_STATIC_TRUE="#"
  22241. ENABLE_STATIC_FALSE=
  22242. fi
  22243. cat >Makefile.rules <<__EOF__
  22244. # Build rules for objects
  22245. -include \$(OBJECTS:.lo=.d)
  22246. # Special dependency for SDL.c, since it depends on SDL_revision.h
  22247. $srcdir/src/SDL.c: update-revision
  22248. $DEPENDS
  22249. $VERSION_DEPENDS
  22250. $SDLMAIN_DEPENDS
  22251. $SDLTEST_DEPENDS
  22252. $WAYLAND_PROTOCOLS_DEPENDS
  22253. __EOF__
  22254. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  22255. ac_config_commands="$ac_config_commands sdl2_config"
  22256. SUMMARY="SDL2 Configure Summary:\n"
  22257. if test x$enable_shared = xyes; then
  22258. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  22259. fi
  22260. if test x$enable_static = xyes; then
  22261. SUMMARY="${SUMMARY}Building Static Libraries\n"
  22262. fi
  22263. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  22264. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  22265. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  22266. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  22267. if test x$have_x = xyes; then
  22268. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  22269. fi
  22270. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  22271. if test x$have_joystick_virtual = xyes; then
  22272. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  22273. else
  22274. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  22275. fi
  22276. if test x$have_samplerate_h_hdr = xyes; then
  22277. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  22278. else
  22279. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  22280. fi
  22281. if test x$have_libudev_h_hdr = xyes; then
  22282. SUMMARY="${SUMMARY}Using libudev : YES\n"
  22283. else
  22284. SUMMARY="${SUMMARY}Using libudev : NO\n"
  22285. fi
  22286. if test x$have_dbus_dbus_h_hdr = xyes; then
  22287. SUMMARY="${SUMMARY}Using dbus : YES\n"
  22288. else
  22289. SUMMARY="${SUMMARY}Using dbus : NO\n"
  22290. fi
  22291. if test x$enable_ime = xyes; then
  22292. SUMMARY="${SUMMARY}Using ime : YES\n"
  22293. else
  22294. SUMMARY="${SUMMARY}Using ime : NO\n"
  22295. fi
  22296. if test x$have_ibus_ibus_h_hdr = xyes; then
  22297. SUMMARY="${SUMMARY}Using ibus : YES\n"
  22298. else
  22299. SUMMARY="${SUMMARY}Using ibus : NO\n"
  22300. fi
  22301. if test x$have_fcitx = xyes; then
  22302. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  22303. else
  22304. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  22305. fi
  22306. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  22307. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  22308. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22309. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22310. SUMMARY="${SUMMARY}configure script with:\n"
  22311. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  22312. fi
  22313. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  22314. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  22315. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  22316. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  22317. SUMMARY="${SUMMARY}configure script with:\n"
  22318. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  22319. fi
  22320. ac_config_commands="$ac_config_commands summary"
  22321. cat >confcache <<\_ACEOF
  22322. # This file is a shell script that caches the results of configure
  22323. # tests run on this system so they can be shared between configure
  22324. # scripts and configure runs, see configure's option --config-cache.
  22325. # It is not useful on other systems. If it contains results you don't
  22326. # want to keep, you may remove or edit it.
  22327. #
  22328. # config.status only pays attention to the cache file if you give it
  22329. # the --recheck option to rerun configure.
  22330. #
  22331. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22332. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22333. # following values.
  22334. _ACEOF
  22335. # The following way of writing the cache mishandles newlines in values,
  22336. # but we know of no workaround that is simple, portable, and efficient.
  22337. # So, we kill variables containing newlines.
  22338. # Ultrix sh set writes to stderr and can't be redirected directly,
  22339. # and sets the high bit in the cache file unless we assign to the vars.
  22340. (
  22341. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22342. eval ac_val=\$$ac_var
  22343. case $ac_val in #(
  22344. *${as_nl}*)
  22345. case $ac_var in #(
  22346. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22347. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22348. esac
  22349. case $ac_var in #(
  22350. _ | IFS | as_nl) ;; #(
  22351. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22352. *) { eval $ac_var=; unset $ac_var;} ;;
  22353. esac ;;
  22354. esac
  22355. done
  22356. (set) 2>&1 |
  22357. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22358. *${as_nl}ac_space=\ *)
  22359. # `set' does not quote correctly, so add quotes: double-quote
  22360. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22361. sed -n \
  22362. "s/'/'\\\\''/g;
  22363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22364. ;; #(
  22365. *)
  22366. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22367. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22368. ;;
  22369. esac |
  22370. sort
  22371. ) |
  22372. sed '
  22373. /^ac_cv_env_/b end
  22374. t clear
  22375. :clear
  22376. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22377. t end
  22378. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22379. :end' >>confcache
  22380. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22381. if test -w "$cache_file"; then
  22382. if test "x$cache_file" != "x/dev/null"; then
  22383. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22384. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22385. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22386. cat confcache >"$cache_file"
  22387. else
  22388. case $cache_file in #(
  22389. */* | ?:*)
  22390. mv -f confcache "$cache_file"$$ &&
  22391. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22392. *)
  22393. mv -f confcache "$cache_file" ;;
  22394. esac
  22395. fi
  22396. fi
  22397. else
  22398. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22399. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22400. fi
  22401. fi
  22402. rm -f confcache
  22403. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22404. # Let make expand exec_prefix.
  22405. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22406. DEFS=-DHAVE_CONFIG_H
  22407. ac_libobjs=
  22408. ac_ltlibobjs=
  22409. U=
  22410. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22411. # 1. Remove the extension, and $U if already installed.
  22412. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22413. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22414. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22415. # will be set to the directory where LIBOBJS objects are built.
  22416. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22417. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22418. done
  22419. LIBOBJS=$ac_libobjs
  22420. LTLIBOBJS=$ac_ltlibobjs
  22421. : "${CONFIG_STATUS=./config.status}"
  22422. ac_write_fail=0
  22423. ac_clean_files_save=$ac_clean_files
  22424. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22425. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22426. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22427. as_write_fail=0
  22428. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22429. #! $SHELL
  22430. # Generated by $as_me.
  22431. # Run this file to recreate the current configuration.
  22432. # Compiler output produced by configure, useful for debugging
  22433. # configure, is in config.log if it exists.
  22434. debug=false
  22435. ac_cs_recheck=false
  22436. ac_cs_silent=false
  22437. SHELL=\${CONFIG_SHELL-$SHELL}
  22438. export SHELL
  22439. _ASEOF
  22440. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22441. ## -------------------- ##
  22442. ## M4sh Initialization. ##
  22443. ## -------------------- ##
  22444. # Be more Bourne compatible
  22445. DUALCASE=1; export DUALCASE # for MKS sh
  22446. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22447. emulate sh
  22448. NULLCMD=:
  22449. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22450. # is contrary to our usage. Disable this feature.
  22451. alias -g '${1+"$@"}'='"$@"'
  22452. setopt NO_GLOB_SUBST
  22453. else
  22454. case `(set -o) 2>/dev/null` in #(
  22455. *posix*) :
  22456. set -o posix ;; #(
  22457. *) :
  22458. ;;
  22459. esac
  22460. fi
  22461. as_nl='
  22462. '
  22463. export as_nl
  22464. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22465. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22466. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22467. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22468. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22469. # but without wasting forks for bash or zsh.
  22470. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22471. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22472. as_echo='print -r --'
  22473. as_echo_n='print -rn --'
  22474. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22475. as_echo='printf %s\n'
  22476. as_echo_n='printf %s'
  22477. else
  22478. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22479. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22480. as_echo_n='/usr/ucb/echo -n'
  22481. else
  22482. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22483. as_echo_n_body='eval
  22484. arg=$1;
  22485. case $arg in #(
  22486. *"$as_nl"*)
  22487. expr "X$arg" : "X\\(.*\\)$as_nl";
  22488. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22489. esac;
  22490. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22491. '
  22492. export as_echo_n_body
  22493. as_echo_n='sh -c $as_echo_n_body as_echo'
  22494. fi
  22495. export as_echo_body
  22496. as_echo='sh -c $as_echo_body as_echo'
  22497. fi
  22498. # The user is always right.
  22499. if test "${PATH_SEPARATOR+set}" != set; then
  22500. PATH_SEPARATOR=:
  22501. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22502. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22503. PATH_SEPARATOR=';'
  22504. }
  22505. fi
  22506. # IFS
  22507. # We need space, tab and new line, in precisely that order. Quoting is
  22508. # there to prevent editors from complaining about space-tab.
  22509. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22510. # splitting by setting IFS to empty value.)
  22511. IFS=" "" $as_nl"
  22512. # Find who we are. Look in the path if we contain no directory separator.
  22513. as_myself=
  22514. case $0 in #((
  22515. *[\\/]* ) as_myself=$0 ;;
  22516. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22517. for as_dir in $PATH
  22518. do
  22519. IFS=$as_save_IFS
  22520. test -z "$as_dir" && as_dir=.
  22521. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22522. done
  22523. IFS=$as_save_IFS
  22524. ;;
  22525. esac
  22526. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22527. # in which case we are not to be found in the path.
  22528. if test "x$as_myself" = x; then
  22529. as_myself=$0
  22530. fi
  22531. if test ! -f "$as_myself"; then
  22532. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22533. exit 1
  22534. fi
  22535. # Unset variables that we do not need and which cause bugs (e.g. in
  22536. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22537. # suppresses any "Segmentation fault" message there. '((' could
  22538. # trigger a bug in pdksh 5.2.14.
  22539. for as_var in BASH_ENV ENV MAIL MAILPATH
  22540. do eval test x\${$as_var+set} = xset \
  22541. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22542. done
  22543. PS1='$ '
  22544. PS2='> '
  22545. PS4='+ '
  22546. # NLS nuisances.
  22547. LC_ALL=C
  22548. export LC_ALL
  22549. LANGUAGE=C
  22550. export LANGUAGE
  22551. # CDPATH.
  22552. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22553. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22554. # ----------------------------------------
  22555. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22556. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22557. # script with STATUS, using 1 if that was 0.
  22558. as_fn_error ()
  22559. {
  22560. as_status=$1; test $as_status -eq 0 && as_status=1
  22561. if test "$4"; then
  22562. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22563. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22564. fi
  22565. $as_echo "$as_me: error: $2" >&2
  22566. as_fn_exit $as_status
  22567. } # as_fn_error
  22568. # as_fn_set_status STATUS
  22569. # -----------------------
  22570. # Set $? to STATUS, without forking.
  22571. as_fn_set_status ()
  22572. {
  22573. return $1
  22574. } # as_fn_set_status
  22575. # as_fn_exit STATUS
  22576. # -----------------
  22577. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22578. as_fn_exit ()
  22579. {
  22580. set +e
  22581. as_fn_set_status $1
  22582. exit $1
  22583. } # as_fn_exit
  22584. # as_fn_unset VAR
  22585. # ---------------
  22586. # Portably unset VAR.
  22587. as_fn_unset ()
  22588. {
  22589. { eval $1=; unset $1;}
  22590. }
  22591. as_unset=as_fn_unset
  22592. # as_fn_append VAR VALUE
  22593. # ----------------------
  22594. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22595. # advantage of any shell optimizations that allow amortized linear growth over
  22596. # repeated appends, instead of the typical quadratic growth present in naive
  22597. # implementations.
  22598. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22599. eval 'as_fn_append ()
  22600. {
  22601. eval $1+=\$2
  22602. }'
  22603. else
  22604. as_fn_append ()
  22605. {
  22606. eval $1=\$$1\$2
  22607. }
  22608. fi # as_fn_append
  22609. # as_fn_arith ARG...
  22610. # ------------------
  22611. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22612. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22613. # must be portable across $(()) and expr.
  22614. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22615. eval 'as_fn_arith ()
  22616. {
  22617. as_val=$(( $* ))
  22618. }'
  22619. else
  22620. as_fn_arith ()
  22621. {
  22622. as_val=`expr "$@" || test $? -eq 1`
  22623. }
  22624. fi # as_fn_arith
  22625. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22626. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22627. as_expr=expr
  22628. else
  22629. as_expr=false
  22630. fi
  22631. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22632. as_basename=basename
  22633. else
  22634. as_basename=false
  22635. fi
  22636. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22637. as_dirname=dirname
  22638. else
  22639. as_dirname=false
  22640. fi
  22641. as_me=`$as_basename -- "$0" ||
  22642. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22643. X"$0" : 'X\(//\)$' \| \
  22644. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22645. $as_echo X/"$0" |
  22646. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22647. s//\1/
  22648. q
  22649. }
  22650. /^X\/\(\/\/\)$/{
  22651. s//\1/
  22652. q
  22653. }
  22654. /^X\/\(\/\).*/{
  22655. s//\1/
  22656. q
  22657. }
  22658. s/.*/./; q'`
  22659. # Avoid depending upon Character Ranges.
  22660. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22661. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22662. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22663. as_cr_digits='0123456789'
  22664. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22665. ECHO_C= ECHO_N= ECHO_T=
  22666. case `echo -n x` in #(((((
  22667. -n*)
  22668. case `echo 'xy\c'` in
  22669. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22670. xy) ECHO_C='\c';;
  22671. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22672. ECHO_T=' ';;
  22673. esac;;
  22674. *)
  22675. ECHO_N='-n';;
  22676. esac
  22677. rm -f conf$$ conf$$.exe conf$$.file
  22678. if test -d conf$$.dir; then
  22679. rm -f conf$$.dir/conf$$.file
  22680. else
  22681. rm -f conf$$.dir
  22682. mkdir conf$$.dir 2>/dev/null
  22683. fi
  22684. if (echo >conf$$.file) 2>/dev/null; then
  22685. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22686. as_ln_s='ln -s'
  22687. # ... but there are two gotchas:
  22688. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22689. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22690. # In both cases, we have to default to `cp -pR'.
  22691. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22692. as_ln_s='cp -pR'
  22693. elif ln conf$$.file conf$$ 2>/dev/null; then
  22694. as_ln_s=ln
  22695. else
  22696. as_ln_s='cp -pR'
  22697. fi
  22698. else
  22699. as_ln_s='cp -pR'
  22700. fi
  22701. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22702. rmdir conf$$.dir 2>/dev/null
  22703. # as_fn_mkdir_p
  22704. # -------------
  22705. # Create "$as_dir" as a directory, including parents if necessary.
  22706. as_fn_mkdir_p ()
  22707. {
  22708. case $as_dir in #(
  22709. -*) as_dir=./$as_dir;;
  22710. esac
  22711. test -d "$as_dir" || eval $as_mkdir_p || {
  22712. as_dirs=
  22713. while :; do
  22714. case $as_dir in #(
  22715. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22716. *) as_qdir=$as_dir;;
  22717. esac
  22718. as_dirs="'$as_qdir' $as_dirs"
  22719. as_dir=`$as_dirname -- "$as_dir" ||
  22720. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22721. X"$as_dir" : 'X\(//\)[^/]' \| \
  22722. X"$as_dir" : 'X\(//\)$' \| \
  22723. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22724. $as_echo X"$as_dir" |
  22725. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22726. s//\1/
  22727. q
  22728. }
  22729. /^X\(\/\/\)[^/].*/{
  22730. s//\1/
  22731. q
  22732. }
  22733. /^X\(\/\/\)$/{
  22734. s//\1/
  22735. q
  22736. }
  22737. /^X\(\/\).*/{
  22738. s//\1/
  22739. q
  22740. }
  22741. s/.*/./; q'`
  22742. test -d "$as_dir" && break
  22743. done
  22744. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22745. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22746. } # as_fn_mkdir_p
  22747. if mkdir -p . 2>/dev/null; then
  22748. as_mkdir_p='mkdir -p "$as_dir"'
  22749. else
  22750. test -d ./-p && rmdir ./-p
  22751. as_mkdir_p=false
  22752. fi
  22753. # as_fn_executable_p FILE
  22754. # -----------------------
  22755. # Test if FILE is an executable regular file.
  22756. as_fn_executable_p ()
  22757. {
  22758. test -f "$1" && test -x "$1"
  22759. } # as_fn_executable_p
  22760. as_test_x='test -x'
  22761. as_executable_p=as_fn_executable_p
  22762. # Sed expression to map a string onto a valid CPP name.
  22763. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22764. # Sed expression to map a string onto a valid variable name.
  22765. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22766. exec 6>&1
  22767. ## ----------------------------------- ##
  22768. ## Main body of $CONFIG_STATUS script. ##
  22769. ## ----------------------------------- ##
  22770. _ASEOF
  22771. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22773. # Save the log message, to keep $0 and so on meaningful, and to
  22774. # report actual input values of CONFIG_FILES etc. instead of their
  22775. # values after options handling.
  22776. ac_log="
  22777. This file was extended by $as_me, which was
  22778. generated by GNU Autoconf 2.69. Invocation command line was
  22779. CONFIG_FILES = $CONFIG_FILES
  22780. CONFIG_HEADERS = $CONFIG_HEADERS
  22781. CONFIG_LINKS = $CONFIG_LINKS
  22782. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22783. $ $0 $@
  22784. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22785. "
  22786. _ACEOF
  22787. case $ac_config_files in *"
  22788. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22789. esac
  22790. case $ac_config_headers in *"
  22791. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22792. esac
  22793. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22794. # Files that config.status was made for.
  22795. config_files="$ac_config_files"
  22796. config_headers="$ac_config_headers"
  22797. config_commands="$ac_config_commands"
  22798. _ACEOF
  22799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22800. ac_cs_usage="\
  22801. \`$as_me' instantiates files and other configuration actions
  22802. from templates according to the current configuration. Unless the files
  22803. and actions are specified as TAGs, all are instantiated by default.
  22804. Usage: $0 [OPTION]... [TAG]...
  22805. -h, --help print this help, then exit
  22806. -V, --version print version number and configuration settings, then exit
  22807. --config print configuration, then exit
  22808. -q, --quiet, --silent
  22809. do not print progress messages
  22810. -d, --debug don't remove temporary files
  22811. --recheck update $as_me by reconfiguring in the same conditions
  22812. --file=FILE[:TEMPLATE]
  22813. instantiate the configuration file FILE
  22814. --header=FILE[:TEMPLATE]
  22815. instantiate the configuration header FILE
  22816. Configuration files:
  22817. $config_files
  22818. Configuration headers:
  22819. $config_headers
  22820. Configuration commands:
  22821. $config_commands
  22822. Report bugs to the package provider."
  22823. _ACEOF
  22824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22825. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22826. ac_cs_version="\\
  22827. config.status
  22828. configured by $0, generated by GNU Autoconf 2.69,
  22829. with options \\"\$ac_cs_config\\"
  22830. Copyright (C) 2012 Free Software Foundation, Inc.
  22831. This config.status script is free software; the Free Software Foundation
  22832. gives unlimited permission to copy, distribute and modify it."
  22833. ac_pwd='$ac_pwd'
  22834. srcdir='$srcdir'
  22835. INSTALL='$INSTALL'
  22836. AWK='$AWK'
  22837. test -n "\$AWK" || AWK=awk
  22838. _ACEOF
  22839. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22840. # The default lists apply if the user does not specify any file.
  22841. ac_need_defaults=:
  22842. while test $# != 0
  22843. do
  22844. case $1 in
  22845. --*=?*)
  22846. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22847. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22848. ac_shift=:
  22849. ;;
  22850. --*=)
  22851. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22852. ac_optarg=
  22853. ac_shift=:
  22854. ;;
  22855. *)
  22856. ac_option=$1
  22857. ac_optarg=$2
  22858. ac_shift=shift
  22859. ;;
  22860. esac
  22861. case $ac_option in
  22862. # Handling of the options.
  22863. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22864. ac_cs_recheck=: ;;
  22865. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22866. $as_echo "$ac_cs_version"; exit ;;
  22867. --config | --confi | --conf | --con | --co | --c )
  22868. $as_echo "$ac_cs_config"; exit ;;
  22869. --debug | --debu | --deb | --de | --d | -d )
  22870. debug=: ;;
  22871. --file | --fil | --fi | --f )
  22872. $ac_shift
  22873. case $ac_optarg in
  22874. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22875. '') as_fn_error $? "missing file argument" ;;
  22876. esac
  22877. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22878. ac_need_defaults=false;;
  22879. --header | --heade | --head | --hea )
  22880. $ac_shift
  22881. case $ac_optarg in
  22882. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22883. esac
  22884. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22885. ac_need_defaults=false;;
  22886. --he | --h)
  22887. # Conflict between --help and --header
  22888. as_fn_error $? "ambiguous option: \`$1'
  22889. Try \`$0 --help' for more information.";;
  22890. --help | --hel | -h )
  22891. $as_echo "$ac_cs_usage"; exit ;;
  22892. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22893. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22894. ac_cs_silent=: ;;
  22895. # This is an error.
  22896. -*) as_fn_error $? "unrecognized option: \`$1'
  22897. Try \`$0 --help' for more information." ;;
  22898. *) as_fn_append ac_config_targets " $1"
  22899. ac_need_defaults=false ;;
  22900. esac
  22901. shift
  22902. done
  22903. ac_configure_extra_args=
  22904. if $ac_cs_silent; then
  22905. exec 6>/dev/null
  22906. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22907. fi
  22908. _ACEOF
  22909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22910. if \$ac_cs_recheck; then
  22911. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22912. shift
  22913. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22914. CONFIG_SHELL='$SHELL'
  22915. export CONFIG_SHELL
  22916. exec "\$@"
  22917. fi
  22918. _ACEOF
  22919. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22920. exec 5>>config.log
  22921. {
  22922. echo
  22923. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22924. ## Running $as_me. ##
  22925. _ASBOX
  22926. $as_echo "$ac_log"
  22927. } >&5
  22928. _ACEOF
  22929. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22930. #
  22931. # INIT-COMMANDS
  22932. #
  22933. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22934. # if CDPATH is set.
  22935. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22936. sed_quote_subst='$sed_quote_subst'
  22937. double_quote_subst='$double_quote_subst'
  22938. delay_variable_subst='$delay_variable_subst'
  22939. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22940. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22941. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22942. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22943. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22944. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22945. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22946. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22947. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22948. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22949. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22950. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22951. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22952. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22953. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22954. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22955. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22956. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22957. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22958. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22959. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22960. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22961. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22962. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22963. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22964. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22965. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22966. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22967. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22968. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22969. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22970. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22971. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22972. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22973. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22974. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22975. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22976. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22977. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22978. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22979. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22980. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22981. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22982. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22983. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22984. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22985. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22986. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22987. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22988. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22989. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22990. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22991. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22992. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22993. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22994. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22995. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22996. 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"`'
  22997. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22998. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22999. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  23000. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  23001. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  23002. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  23003. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  23004. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  23005. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  23006. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  23007. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  23008. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  23009. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  23010. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  23011. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  23012. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  23013. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  23014. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  23015. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23016. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  23017. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  23018. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  23019. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  23020. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  23021. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  23022. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  23023. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  23024. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23025. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  23026. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  23027. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  23028. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23029. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  23030. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  23031. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  23032. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  23033. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  23034. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  23035. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23036. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  23037. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  23038. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  23039. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  23040. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  23041. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  23042. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  23043. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  23044. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  23045. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  23046. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  23047. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  23048. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  23049. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  23050. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  23051. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  23052. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  23053. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  23054. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  23055. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  23056. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  23057. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  23058. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  23059. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  23060. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  23061. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  23062. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  23063. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  23064. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  23065. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  23066. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  23067. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  23068. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  23069. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  23070. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  23071. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  23072. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  23073. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  23074. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  23075. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  23076. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  23077. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  23078. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  23079. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23080. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23081. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23082. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23083. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23084. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  23085. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  23086. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  23087. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  23088. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  23089. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23090. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  23091. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  23092. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  23093. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  23094. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  23095. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  23096. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  23097. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  23098. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  23099. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  23100. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  23101. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  23102. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23103. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23104. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23105. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23106. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  23107. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  23108. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23109. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23110. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23111. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23112. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23113. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23114. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23115. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23116. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23117. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23118. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23119. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23120. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  23121. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  23122. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23123. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23124. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  23125. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  23126. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  23127. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23128. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  23129. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  23130. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  23131. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  23132. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  23133. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  23134. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  23135. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  23136. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  23137. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  23138. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  23139. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  23140. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  23141. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  23142. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  23143. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  23144. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  23145. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  23146. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23147. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23148. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23149. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23150. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  23151. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  23152. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23153. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23154. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  23155. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  23156. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  23157. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  23158. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  23159. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  23160. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  23161. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  23162. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23163. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23164. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  23165. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  23166. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  23167. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  23168. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  23169. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  23170. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  23171. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  23172. LTCC='$LTCC'
  23173. LTCFLAGS='$LTCFLAGS'
  23174. compiler='$compiler_DEFAULT'
  23175. # A function that is used when there is no print builtin or printf.
  23176. func_fallback_echo ()
  23177. {
  23178. eval 'cat <<_LTECHO_EOF
  23179. \$1
  23180. _LTECHO_EOF'
  23181. }
  23182. # Quote evaled strings.
  23183. for var in AS \
  23184. DLLTOOL \
  23185. OBJDUMP \
  23186. SHELL \
  23187. ECHO \
  23188. PATH_SEPARATOR \
  23189. SED \
  23190. GREP \
  23191. EGREP \
  23192. FGREP \
  23193. LD \
  23194. NM \
  23195. LN_S \
  23196. lt_SP2NL \
  23197. lt_NL2SP \
  23198. reload_flag \
  23199. deplibs_check_method \
  23200. file_magic_cmd \
  23201. file_magic_glob \
  23202. want_nocaseglob \
  23203. sharedlib_from_linklib_cmd \
  23204. AR \
  23205. AR_FLAGS \
  23206. archiver_list_spec \
  23207. STRIP \
  23208. RANLIB \
  23209. CC \
  23210. CFLAGS \
  23211. compiler \
  23212. lt_cv_sys_global_symbol_pipe \
  23213. lt_cv_sys_global_symbol_to_cdecl \
  23214. lt_cv_sys_global_symbol_to_c_name_address \
  23215. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  23216. nm_file_list_spec \
  23217. lt_prog_compiler_no_builtin_flag \
  23218. lt_prog_compiler_pic \
  23219. lt_prog_compiler_wl \
  23220. lt_prog_compiler_static \
  23221. lt_cv_prog_compiler_c_o \
  23222. need_locks \
  23223. MANIFEST_TOOL \
  23224. DSYMUTIL \
  23225. NMEDIT \
  23226. LIPO \
  23227. OTOOL \
  23228. OTOOL64 \
  23229. shrext_cmds \
  23230. export_dynamic_flag_spec \
  23231. whole_archive_flag_spec \
  23232. compiler_needs_object \
  23233. with_gnu_ld \
  23234. allow_undefined_flag \
  23235. no_undefined_flag \
  23236. hardcode_libdir_flag_spec \
  23237. hardcode_libdir_separator \
  23238. exclude_expsyms \
  23239. include_expsyms \
  23240. file_list_spec \
  23241. variables_saved_for_relink \
  23242. libname_spec \
  23243. library_names_spec \
  23244. soname_spec \
  23245. install_override_mode \
  23246. finish_eval \
  23247. old_striplib \
  23248. striplib \
  23249. compiler_lib_search_dirs \
  23250. predep_objects \
  23251. postdep_objects \
  23252. predeps \
  23253. postdeps \
  23254. compiler_lib_search_path \
  23255. LD_RC \
  23256. LD_CXX \
  23257. reload_flag_RC \
  23258. reload_flag_CXX \
  23259. compiler_RC \
  23260. compiler_CXX \
  23261. lt_prog_compiler_no_builtin_flag_RC \
  23262. lt_prog_compiler_no_builtin_flag_CXX \
  23263. lt_prog_compiler_pic_RC \
  23264. lt_prog_compiler_pic_CXX \
  23265. lt_prog_compiler_wl_RC \
  23266. lt_prog_compiler_wl_CXX \
  23267. lt_prog_compiler_static_RC \
  23268. lt_prog_compiler_static_CXX \
  23269. lt_cv_prog_compiler_c_o_RC \
  23270. lt_cv_prog_compiler_c_o_CXX \
  23271. export_dynamic_flag_spec_RC \
  23272. export_dynamic_flag_spec_CXX \
  23273. whole_archive_flag_spec_RC \
  23274. whole_archive_flag_spec_CXX \
  23275. compiler_needs_object_RC \
  23276. compiler_needs_object_CXX \
  23277. with_gnu_ld_RC \
  23278. with_gnu_ld_CXX \
  23279. allow_undefined_flag_RC \
  23280. allow_undefined_flag_CXX \
  23281. no_undefined_flag_RC \
  23282. no_undefined_flag_CXX \
  23283. hardcode_libdir_flag_spec_RC \
  23284. hardcode_libdir_flag_spec_CXX \
  23285. hardcode_libdir_separator_RC \
  23286. hardcode_libdir_separator_CXX \
  23287. exclude_expsyms_RC \
  23288. exclude_expsyms_CXX \
  23289. include_expsyms_RC \
  23290. include_expsyms_CXX \
  23291. file_list_spec_RC \
  23292. file_list_spec_CXX \
  23293. compiler_lib_search_dirs_RC \
  23294. compiler_lib_search_dirs_CXX \
  23295. predep_objects_RC \
  23296. predep_objects_CXX \
  23297. postdep_objects_RC \
  23298. postdep_objects_CXX \
  23299. predeps_RC \
  23300. predeps_CXX \
  23301. postdeps_RC \
  23302. postdeps_CXX \
  23303. compiler_lib_search_path_RC \
  23304. compiler_lib_search_path_CXX; do
  23305. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23306. *[\\\\\\\`\\"\\\$]*)
  23307. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  23308. ;;
  23309. *)
  23310. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23311. ;;
  23312. esac
  23313. done
  23314. # Double-quote double-evaled strings.
  23315. for var in reload_cmds \
  23316. old_postinstall_cmds \
  23317. old_postuninstall_cmds \
  23318. old_archive_cmds \
  23319. extract_expsyms_cmds \
  23320. old_archive_from_new_cmds \
  23321. old_archive_from_expsyms_cmds \
  23322. archive_cmds \
  23323. archive_expsym_cmds \
  23324. module_cmds \
  23325. module_expsym_cmds \
  23326. export_symbols_cmds \
  23327. prelink_cmds \
  23328. postlink_cmds \
  23329. postinstall_cmds \
  23330. postuninstall_cmds \
  23331. finish_cmds \
  23332. sys_lib_search_path_spec \
  23333. sys_lib_dlsearch_path_spec \
  23334. reload_cmds_RC \
  23335. reload_cmds_CXX \
  23336. old_archive_cmds_RC \
  23337. old_archive_cmds_CXX \
  23338. old_archive_from_new_cmds_RC \
  23339. old_archive_from_new_cmds_CXX \
  23340. old_archive_from_expsyms_cmds_RC \
  23341. old_archive_from_expsyms_cmds_CXX \
  23342. archive_cmds_RC \
  23343. archive_cmds_CXX \
  23344. archive_expsym_cmds_RC \
  23345. archive_expsym_cmds_CXX \
  23346. module_cmds_RC \
  23347. module_cmds_CXX \
  23348. module_expsym_cmds_RC \
  23349. module_expsym_cmds_CXX \
  23350. export_symbols_cmds_RC \
  23351. export_symbols_cmds_CXX \
  23352. prelink_cmds_RC \
  23353. prelink_cmds_CXX \
  23354. postlink_cmds_RC \
  23355. postlink_cmds_CXX; do
  23356. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23357. *[\\\\\\\`\\"\\\$]*)
  23358. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23359. ;;
  23360. *)
  23361. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23362. ;;
  23363. esac
  23364. done
  23365. ac_aux_dir='$ac_aux_dir'
  23366. xsi_shell='$xsi_shell'
  23367. lt_shell_append='$lt_shell_append'
  23368. # See if we are running on zsh, and set the options which allow our
  23369. # commands through without removal of \ escapes INIT.
  23370. if test -n "\${ZSH_VERSION+set}" ; then
  23371. setopt NO_GLOB_SUBST
  23372. fi
  23373. PACKAGE='$PACKAGE'
  23374. VERSION='$VERSION'
  23375. TIMESTAMP='$TIMESTAMP'
  23376. RM='$RM'
  23377. ofile='$ofile'
  23378. SUMMARY="$SUMMARY"
  23379. _ACEOF
  23380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23381. # Handling of arguments.
  23382. for ac_config_target in $ac_config_targets
  23383. do
  23384. case $ac_config_target in
  23385. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23386. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23387. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23388. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23389. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23390. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23391. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23392. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23393. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23394. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23395. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23396. esac
  23397. done
  23398. # If the user did not use the arguments to specify the items to instantiate,
  23399. # then the envvar interface is used. Set only those that are not.
  23400. # We use the long form for the default assignment because of an extremely
  23401. # bizarre bug on SunOS 4.1.3.
  23402. if $ac_need_defaults; then
  23403. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23404. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23405. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23406. fi
  23407. # Have a temporary directory for convenience. Make it in the build tree
  23408. # simply because there is no reason against having it here, and in addition,
  23409. # creating and moving files from /tmp can sometimes cause problems.
  23410. # Hook for its removal unless debugging.
  23411. # Note that there is a small window in which the directory will not be cleaned:
  23412. # after its creation but before its name has been assigned to `$tmp'.
  23413. $debug ||
  23414. {
  23415. tmp= ac_tmp=
  23416. trap 'exit_status=$?
  23417. : "${ac_tmp:=$tmp}"
  23418. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23419. ' 0
  23420. trap 'as_fn_exit 1' 1 2 13 15
  23421. }
  23422. # Create a (secure) tmp directory for tmp files.
  23423. {
  23424. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23425. test -d "$tmp"
  23426. } ||
  23427. {
  23428. tmp=./conf$$-$RANDOM
  23429. (umask 077 && mkdir "$tmp")
  23430. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23431. ac_tmp=$tmp
  23432. # Set up the scripts for CONFIG_FILES section.
  23433. # No need to generate them if there are no CONFIG_FILES.
  23434. # This happens for instance with `./config.status config.h'.
  23435. if test -n "$CONFIG_FILES"; then
  23436. ac_cr=`echo X | tr X '\015'`
  23437. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23438. # But we know of no other shell where ac_cr would be empty at this
  23439. # point, so we can use a bashism as a fallback.
  23440. if test "x$ac_cr" = x; then
  23441. eval ac_cr=\$\'\\r\'
  23442. fi
  23443. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23444. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23445. ac_cs_awk_cr='\\r'
  23446. else
  23447. ac_cs_awk_cr=$ac_cr
  23448. fi
  23449. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23450. _ACEOF
  23451. {
  23452. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23453. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23454. echo "_ACEOF"
  23455. } >conf$$subs.sh ||
  23456. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23457. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23458. ac_delim='%!_!# '
  23459. for ac_last_try in false false false false false :; do
  23460. . ./conf$$subs.sh ||
  23461. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23462. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23463. if test $ac_delim_n = $ac_delim_num; then
  23464. break
  23465. elif $ac_last_try; then
  23466. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23467. else
  23468. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23469. fi
  23470. done
  23471. rm -f conf$$subs.sh
  23472. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23473. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23474. _ACEOF
  23475. sed -n '
  23476. h
  23477. s/^/S["/; s/!.*/"]=/
  23478. p
  23479. g
  23480. s/^[^!]*!//
  23481. :repl
  23482. t repl
  23483. s/'"$ac_delim"'$//
  23484. t delim
  23485. :nl
  23486. h
  23487. s/\(.\{148\}\)..*/\1/
  23488. t more1
  23489. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23490. p
  23491. n
  23492. b repl
  23493. :more1
  23494. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23495. p
  23496. g
  23497. s/.\{148\}//
  23498. t nl
  23499. :delim
  23500. h
  23501. s/\(.\{148\}\)..*/\1/
  23502. t more2
  23503. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23504. p
  23505. b
  23506. :more2
  23507. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23508. p
  23509. g
  23510. s/.\{148\}//
  23511. t delim
  23512. ' <conf$$subs.awk | sed '
  23513. /^[^""]/{
  23514. N
  23515. s/\n//
  23516. }
  23517. ' >>$CONFIG_STATUS || ac_write_fail=1
  23518. rm -f conf$$subs.awk
  23519. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23520. _ACAWK
  23521. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23522. for (key in S) S_is_set[key] = 1
  23523. FS = ""
  23524. }
  23525. {
  23526. line = $ 0
  23527. nfields = split(line, field, "@")
  23528. substed = 0
  23529. len = length(field[1])
  23530. for (i = 2; i < nfields; i++) {
  23531. key = field[i]
  23532. keylen = length(key)
  23533. if (S_is_set[key]) {
  23534. value = S[key]
  23535. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23536. len += length(value) + length(field[++i])
  23537. substed = 1
  23538. } else
  23539. len += 1 + keylen
  23540. }
  23541. print line
  23542. }
  23543. _ACAWK
  23544. _ACEOF
  23545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23546. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23547. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23548. else
  23549. cat
  23550. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23551. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23552. _ACEOF
  23553. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23554. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23555. # trailing colons and then remove the whole line if VPATH becomes empty
  23556. # (actually we leave an empty line to preserve line numbers).
  23557. if test "x$srcdir" = x.; then
  23558. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23559. h
  23560. s///
  23561. s/^/:/
  23562. s/[ ]*$/:/
  23563. s/:\$(srcdir):/:/g
  23564. s/:\${srcdir}:/:/g
  23565. s/:@srcdir@:/:/g
  23566. s/^:*//
  23567. s/:*$//
  23568. x
  23569. s/\(=[ ]*\).*/\1/
  23570. G
  23571. s/\n//
  23572. s/^[^=]*=[ ]*$//
  23573. }'
  23574. fi
  23575. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23576. fi # test -n "$CONFIG_FILES"
  23577. # Set up the scripts for CONFIG_HEADERS section.
  23578. # No need to generate them if there are no CONFIG_HEADERS.
  23579. # This happens for instance with `./config.status Makefile'.
  23580. if test -n "$CONFIG_HEADERS"; then
  23581. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23582. BEGIN {
  23583. _ACEOF
  23584. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23585. # here-document in config.status, that substitutes the proper values into
  23586. # config.h.in to produce config.h.
  23587. # Create a delimiter string that does not exist in confdefs.h, to ease
  23588. # handling of long lines.
  23589. ac_delim='%!_!# '
  23590. for ac_last_try in false false :; do
  23591. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23592. if test -z "$ac_tt"; then
  23593. break
  23594. elif $ac_last_try; then
  23595. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23596. else
  23597. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23598. fi
  23599. done
  23600. # For the awk script, D is an array of macro values keyed by name,
  23601. # likewise P contains macro parameters if any. Preserve backslash
  23602. # newline sequences.
  23603. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23604. sed -n '
  23605. s/.\{148\}/&'"$ac_delim"'/g
  23606. t rset
  23607. :rset
  23608. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23609. t def
  23610. d
  23611. :def
  23612. s/\\$//
  23613. t bsnl
  23614. s/["\\]/\\&/g
  23615. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23616. D["\1"]=" \3"/p
  23617. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23618. d
  23619. :bsnl
  23620. s/["\\]/\\&/g
  23621. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23622. D["\1"]=" \3\\\\\\n"\\/p
  23623. t cont
  23624. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23625. t cont
  23626. d
  23627. :cont
  23628. n
  23629. s/.\{148\}/&'"$ac_delim"'/g
  23630. t clear
  23631. :clear
  23632. s/\\$//
  23633. t bsnlc
  23634. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23635. d
  23636. :bsnlc
  23637. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23638. b cont
  23639. ' <confdefs.h | sed '
  23640. s/'"$ac_delim"'/"\\\
  23641. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23642. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23643. for (key in D) D_is_set[key] = 1
  23644. FS = ""
  23645. }
  23646. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23647. line = \$ 0
  23648. split(line, arg, " ")
  23649. if (arg[1] == "#") {
  23650. defundef = arg[2]
  23651. mac1 = arg[3]
  23652. } else {
  23653. defundef = substr(arg[1], 2)
  23654. mac1 = arg[2]
  23655. }
  23656. split(mac1, mac2, "(") #)
  23657. macro = mac2[1]
  23658. prefix = substr(line, 1, index(line, defundef) - 1)
  23659. if (D_is_set[macro]) {
  23660. # Preserve the white space surrounding the "#".
  23661. print prefix "define", macro P[macro] D[macro]
  23662. next
  23663. } else {
  23664. # Replace #undef with comments. This is necessary, for example,
  23665. # in the case of _POSIX_SOURCE, which is predefined and required
  23666. # on some systems where configure will not decide to define it.
  23667. if (defundef == "undef") {
  23668. print "/*", prefix defundef, macro, "*/"
  23669. next
  23670. }
  23671. }
  23672. }
  23673. { print }
  23674. _ACAWK
  23675. _ACEOF
  23676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23677. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23678. fi # test -n "$CONFIG_HEADERS"
  23679. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23680. shift
  23681. for ac_tag
  23682. do
  23683. case $ac_tag in
  23684. :[FHLC]) ac_mode=$ac_tag; continue;;
  23685. esac
  23686. case $ac_mode$ac_tag in
  23687. :[FHL]*:*);;
  23688. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23689. :[FH]-) ac_tag=-:-;;
  23690. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23691. esac
  23692. ac_save_IFS=$IFS
  23693. IFS=:
  23694. set x $ac_tag
  23695. IFS=$ac_save_IFS
  23696. shift
  23697. ac_file=$1
  23698. shift
  23699. case $ac_mode in
  23700. :L) ac_source=$1;;
  23701. :[FH])
  23702. ac_file_inputs=
  23703. for ac_f
  23704. do
  23705. case $ac_f in
  23706. -) ac_f="$ac_tmp/stdin";;
  23707. *) # Look for the file first in the build tree, then in the source tree
  23708. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23709. # because $ac_f cannot contain `:'.
  23710. test -f "$ac_f" ||
  23711. case $ac_f in
  23712. [\\/$]*) false;;
  23713. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23714. esac ||
  23715. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23716. esac
  23717. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23718. as_fn_append ac_file_inputs " '$ac_f'"
  23719. done
  23720. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23721. # use $as_me), people would be surprised to read:
  23722. # /* config.h. Generated by config.status. */
  23723. configure_input='Generated from '`
  23724. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23725. `' by configure.'
  23726. if test x"$ac_file" != x-; then
  23727. configure_input="$ac_file. $configure_input"
  23728. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23729. $as_echo "$as_me: creating $ac_file" >&6;}
  23730. fi
  23731. # Neutralize special characters interpreted by sed in replacement strings.
  23732. case $configure_input in #(
  23733. *\&* | *\|* | *\\* )
  23734. ac_sed_conf_input=`$as_echo "$configure_input" |
  23735. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23736. *) ac_sed_conf_input=$configure_input;;
  23737. esac
  23738. case $ac_tag in
  23739. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23740. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23741. esac
  23742. ;;
  23743. esac
  23744. ac_dir=`$as_dirname -- "$ac_file" ||
  23745. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23746. X"$ac_file" : 'X\(//\)[^/]' \| \
  23747. X"$ac_file" : 'X\(//\)$' \| \
  23748. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23749. $as_echo X"$ac_file" |
  23750. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23751. s//\1/
  23752. q
  23753. }
  23754. /^X\(\/\/\)[^/].*/{
  23755. s//\1/
  23756. q
  23757. }
  23758. /^X\(\/\/\)$/{
  23759. s//\1/
  23760. q
  23761. }
  23762. /^X\(\/\).*/{
  23763. s//\1/
  23764. q
  23765. }
  23766. s/.*/./; q'`
  23767. as_dir="$ac_dir"; as_fn_mkdir_p
  23768. ac_builddir=.
  23769. case "$ac_dir" in
  23770. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23771. *)
  23772. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23773. # A ".." for each directory in $ac_dir_suffix.
  23774. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23775. case $ac_top_builddir_sub in
  23776. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23777. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23778. esac ;;
  23779. esac
  23780. ac_abs_top_builddir=$ac_pwd
  23781. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23782. # for backward compatibility:
  23783. ac_top_builddir=$ac_top_build_prefix
  23784. case $srcdir in
  23785. .) # We are building in place.
  23786. ac_srcdir=.
  23787. ac_top_srcdir=$ac_top_builddir_sub
  23788. ac_abs_top_srcdir=$ac_pwd ;;
  23789. [\\/]* | ?:[\\/]* ) # Absolute name.
  23790. ac_srcdir=$srcdir$ac_dir_suffix;
  23791. ac_top_srcdir=$srcdir
  23792. ac_abs_top_srcdir=$srcdir ;;
  23793. *) # Relative name.
  23794. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23795. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23796. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23797. esac
  23798. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23799. case $ac_mode in
  23800. :F)
  23801. #
  23802. # CONFIG_FILE
  23803. #
  23804. case $INSTALL in
  23805. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23806. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23807. esac
  23808. _ACEOF
  23809. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23810. # If the template does not know about datarootdir, expand it.
  23811. # FIXME: This hack should be removed a few years after 2.60.
  23812. ac_datarootdir_hack=; ac_datarootdir_seen=
  23813. ac_sed_dataroot='
  23814. /datarootdir/ {
  23815. p
  23816. q
  23817. }
  23818. /@datadir@/p
  23819. /@docdir@/p
  23820. /@infodir@/p
  23821. /@localedir@/p
  23822. /@mandir@/p'
  23823. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23824. *datarootdir*) ac_datarootdir_seen=yes;;
  23825. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23827. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23828. _ACEOF
  23829. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23830. ac_datarootdir_hack='
  23831. s&@datadir@&$datadir&g
  23832. s&@docdir@&$docdir&g
  23833. s&@infodir@&$infodir&g
  23834. s&@localedir@&$localedir&g
  23835. s&@mandir@&$mandir&g
  23836. s&\\\${datarootdir}&$datarootdir&g' ;;
  23837. esac
  23838. _ACEOF
  23839. # Neutralize VPATH when `$srcdir' = `.'.
  23840. # Shell code in configure.ac might set extrasub.
  23841. # FIXME: do we really want to maintain this feature?
  23842. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23843. ac_sed_extra="$ac_vpsub
  23844. $extrasub
  23845. _ACEOF
  23846. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23847. :t
  23848. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23849. s|@configure_input@|$ac_sed_conf_input|;t t
  23850. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23851. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23852. s&@srcdir@&$ac_srcdir&;t t
  23853. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23854. s&@top_srcdir@&$ac_top_srcdir&;t t
  23855. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23856. s&@builddir@&$ac_builddir&;t t
  23857. s&@abs_builddir@&$ac_abs_builddir&;t t
  23858. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23859. s&@INSTALL@&$ac_INSTALL&;t t
  23860. $ac_datarootdir_hack
  23861. "
  23862. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23863. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23864. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23865. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23866. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23867. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23869. which seems to be undefined. Please make sure it is defined" >&5
  23870. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23871. which seems to be undefined. Please make sure it is defined" >&2;}
  23872. rm -f "$ac_tmp/stdin"
  23873. case $ac_file in
  23874. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23875. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23876. esac \
  23877. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23878. ;;
  23879. :H)
  23880. #
  23881. # CONFIG_HEADER
  23882. #
  23883. if test x"$ac_file" != x-; then
  23884. {
  23885. $as_echo "/* $configure_input */" \
  23886. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23887. } >"$ac_tmp/config.h" \
  23888. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23889. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23890. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23891. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23892. else
  23893. rm -f "$ac_file"
  23894. mv "$ac_tmp/config.h" "$ac_file" \
  23895. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23896. fi
  23897. else
  23898. $as_echo "/* $configure_input */" \
  23899. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23900. || as_fn_error $? "could not create -" "$LINENO" 5
  23901. fi
  23902. ;;
  23903. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23904. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23905. ;;
  23906. esac
  23907. case $ac_file$ac_mode in
  23908. "libtool":C)
  23909. # See if we are running on zsh, and set the options which allow our
  23910. # commands through without removal of \ escapes.
  23911. if test -n "${ZSH_VERSION+set}" ; then
  23912. setopt NO_GLOB_SUBST
  23913. fi
  23914. cfgfile="${ofile}T"
  23915. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23916. $RM "$cfgfile"
  23917. cat <<_LT_EOF >> "$cfgfile"
  23918. #! $SHELL
  23919. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23920. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23921. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23922. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23923. #
  23924. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23925. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23926. # Foundation, Inc.
  23927. # Written by Gordon Matzigkeit, 1996
  23928. #
  23929. # This file is part of GNU Libtool.
  23930. #
  23931. # GNU Libtool is free software; you can redistribute it and/or
  23932. # modify it under the terms of the GNU General Public License as
  23933. # published by the Free Software Foundation; either version 2 of
  23934. # the License, or (at your option) any later version.
  23935. #
  23936. # As a special exception to the GNU General Public License,
  23937. # if you distribute this file as part of a program or library that
  23938. # is built using GNU Libtool, you may include this file under the
  23939. # same distribution terms that you use for the rest of that program.
  23940. #
  23941. # GNU Libtool is distributed in the hope that it will be useful,
  23942. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23943. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23944. # GNU General Public License for more details.
  23945. #
  23946. # You should have received a copy of the GNU General Public License
  23947. # along with GNU Libtool; see the file COPYING. If not, a copy
  23948. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23949. # obtained by writing to the Free Software Foundation, Inc.,
  23950. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23951. # The names of the tagged configurations supported by this script.
  23952. available_tags="RC CXX "
  23953. # ### BEGIN LIBTOOL CONFIG
  23954. # Which release of libtool.m4 was used?
  23955. macro_version=$macro_version
  23956. macro_revision=$macro_revision
  23957. # Assembler program.
  23958. AS=$lt_AS
  23959. # DLL creation program.
  23960. DLLTOOL=$lt_DLLTOOL
  23961. # Object dumper program.
  23962. OBJDUMP=$lt_OBJDUMP
  23963. # Whether or not to build shared libraries.
  23964. build_libtool_libs=$enable_shared
  23965. # Whether or not to build static libraries.
  23966. build_old_libs=$enable_static
  23967. # What type of objects to build.
  23968. pic_mode=$pic_mode
  23969. # Whether or not to optimize for fast installation.
  23970. fast_install=$enable_fast_install
  23971. # Shell to use when invoking shell scripts.
  23972. SHELL=$lt_SHELL
  23973. # An echo program that protects backslashes.
  23974. ECHO=$lt_ECHO
  23975. # The PATH separator for the build system.
  23976. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23977. # The host system.
  23978. host_alias=$host_alias
  23979. host=$host
  23980. host_os=$host_os
  23981. # The build system.
  23982. build_alias=$build_alias
  23983. build=$build
  23984. build_os=$build_os
  23985. # A sed program that does not truncate output.
  23986. SED=$lt_SED
  23987. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23988. Xsed="\$SED -e 1s/^X//"
  23989. # A grep program that handles long lines.
  23990. GREP=$lt_GREP
  23991. # An ERE matcher.
  23992. EGREP=$lt_EGREP
  23993. # A literal string matcher.
  23994. FGREP=$lt_FGREP
  23995. # A BSD- or MS-compatible name lister.
  23996. NM=$lt_NM
  23997. # Whether we need soft or hard links.
  23998. LN_S=$lt_LN_S
  23999. # What is the maximum length of a command?
  24000. max_cmd_len=$max_cmd_len
  24001. # Object file suffix (normally "o").
  24002. objext=$ac_objext
  24003. # Executable file suffix (normally "").
  24004. exeext=$exeext
  24005. # whether the shell understands "unset".
  24006. lt_unset=$lt_unset
  24007. # turn spaces into newlines.
  24008. SP2NL=$lt_lt_SP2NL
  24009. # turn newlines into spaces.
  24010. NL2SP=$lt_lt_NL2SP
  24011. # convert \$build file names to \$host format.
  24012. to_host_file_cmd=$lt_cv_to_host_file_cmd
  24013. # convert \$build files to toolchain format.
  24014. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  24015. # Method to check whether dependent libraries are shared objects.
  24016. deplibs_check_method=$lt_deplibs_check_method
  24017. # Command to use when deplibs_check_method = "file_magic".
  24018. file_magic_cmd=$lt_file_magic_cmd
  24019. # How to find potential files when deplibs_check_method = "file_magic".
  24020. file_magic_glob=$lt_file_magic_glob
  24021. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  24022. want_nocaseglob=$lt_want_nocaseglob
  24023. # Command to associate shared and link libraries.
  24024. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  24025. # The archiver.
  24026. AR=$lt_AR
  24027. # Flags to create an archive.
  24028. AR_FLAGS=$lt_AR_FLAGS
  24029. # How to feed a file listing to the archiver.
  24030. archiver_list_spec=$lt_archiver_list_spec
  24031. # A symbol stripping program.
  24032. STRIP=$lt_STRIP
  24033. # Commands used to install an old-style archive.
  24034. RANLIB=$lt_RANLIB
  24035. old_postinstall_cmds=$lt_old_postinstall_cmds
  24036. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  24037. # Whether to use a lock for old archive extraction.
  24038. lock_old_archive_extraction=$lock_old_archive_extraction
  24039. # A C compiler.
  24040. LTCC=$lt_CC
  24041. # LTCC compiler flags.
  24042. LTCFLAGS=$lt_CFLAGS
  24043. # Take the output of nm and produce a listing of raw symbols and C names.
  24044. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  24045. # Transform the output of nm in a proper C declaration.
  24046. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  24047. # Transform the output of nm in a C name address pair.
  24048. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  24049. # Transform the output of nm in a C name address pair when lib prefix is needed.
  24050. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  24051. # Specify filename containing input files for \$NM.
  24052. nm_file_list_spec=$lt_nm_file_list_spec
  24053. # The root where to search for dependent libraries,and in which our libraries should be installed.
  24054. lt_sysroot=$lt_sysroot
  24055. # The name of the directory that contains temporary libtool files.
  24056. objdir=$objdir
  24057. # Used to examine libraries when file_magic_cmd begins with "file".
  24058. MAGIC_CMD=$MAGIC_CMD
  24059. # Must we lock files when doing compilation?
  24060. need_locks=$lt_need_locks
  24061. # Manifest tool.
  24062. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  24063. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  24064. DSYMUTIL=$lt_DSYMUTIL
  24065. # Tool to change global to local symbols on Mac OS X.
  24066. NMEDIT=$lt_NMEDIT
  24067. # Tool to manipulate fat objects and archives on Mac OS X.
  24068. LIPO=$lt_LIPO
  24069. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  24070. OTOOL=$lt_OTOOL
  24071. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  24072. OTOOL64=$lt_OTOOL64
  24073. # Old archive suffix (normally "a").
  24074. libext=$libext
  24075. # Shared library suffix (normally ".so").
  24076. shrext_cmds=$lt_shrext_cmds
  24077. # The commands to extract the exported symbol list from a shared archive.
  24078. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  24079. # Variables whose values should be saved in libtool wrapper scripts and
  24080. # restored at link time.
  24081. variables_saved_for_relink=$lt_variables_saved_for_relink
  24082. # Do we need the "lib" prefix for modules?
  24083. need_lib_prefix=$need_lib_prefix
  24084. # Do we need a version for libraries?
  24085. need_version=$need_version
  24086. # Library versioning type.
  24087. version_type=$version_type
  24088. # Shared library runtime path variable.
  24089. runpath_var=$runpath_var
  24090. # Shared library path variable.
  24091. shlibpath_var=$shlibpath_var
  24092. # Is shlibpath searched before the hard-coded library search path?
  24093. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  24094. # Format of library name prefix.
  24095. libname_spec=$lt_libname_spec
  24096. # List of archive names. First name is the real one, the rest are links.
  24097. # The last name is the one that the linker finds with -lNAME
  24098. library_names_spec=$lt_library_names_spec
  24099. # The coded name of the library, if different from the real name.
  24100. soname_spec=$lt_soname_spec
  24101. # Permission mode override for installation of shared libraries.
  24102. install_override_mode=$lt_install_override_mode
  24103. # Command to use after installation of a shared archive.
  24104. postinstall_cmds=$lt_postinstall_cmds
  24105. # Command to use after uninstallation of a shared archive.
  24106. postuninstall_cmds=$lt_postuninstall_cmds
  24107. # Commands used to finish a libtool library installation in a directory.
  24108. finish_cmds=$lt_finish_cmds
  24109. # As "finish_cmds", except a single script fragment to be evaled but
  24110. # not shown.
  24111. finish_eval=$lt_finish_eval
  24112. # Whether we should hardcode library paths into libraries.
  24113. hardcode_into_libs=$hardcode_into_libs
  24114. # Compile-time system search path for libraries.
  24115. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  24116. # Run-time system search path for libraries.
  24117. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  24118. # Whether dlopen is supported.
  24119. dlopen_support=$enable_dlopen
  24120. # Whether dlopen of programs is supported.
  24121. dlopen_self=$enable_dlopen_self
  24122. # Whether dlopen of statically linked programs is supported.
  24123. dlopen_self_static=$enable_dlopen_self_static
  24124. # Commands to strip libraries.
  24125. old_striplib=$lt_old_striplib
  24126. striplib=$lt_striplib
  24127. # The linker used to build libraries.
  24128. LD=$lt_LD
  24129. # How to create reloadable object files.
  24130. reload_flag=$lt_reload_flag
  24131. reload_cmds=$lt_reload_cmds
  24132. # Commands used to build an old-style archive.
  24133. old_archive_cmds=$lt_old_archive_cmds
  24134. # A language specific compiler.
  24135. CC=$lt_compiler
  24136. # Is the compiler the GNU compiler?
  24137. with_gcc=$GCC
  24138. # Compiler flag to turn off builtin functions.
  24139. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  24140. # Additional compiler flags for building library objects.
  24141. pic_flag=$lt_lt_prog_compiler_pic
  24142. # How to pass a linker flag through the compiler.
  24143. wl=$lt_lt_prog_compiler_wl
  24144. # Compiler flag to prevent dynamic linking.
  24145. link_static_flag=$lt_lt_prog_compiler_static
  24146. # Does compiler simultaneously support -c and -o options?
  24147. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  24148. # Whether or not to add -lc for building shared libraries.
  24149. build_libtool_need_lc=$archive_cmds_need_lc
  24150. # Whether or not to disallow shared libs when runtime libs are static.
  24151. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  24152. # Compiler flag to allow reflexive dlopens.
  24153. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  24154. # Compiler flag to generate shared objects directly from archives.
  24155. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  24156. # Whether the compiler copes with passing no objects directly.
  24157. compiler_needs_object=$lt_compiler_needs_object
  24158. # Create an old-style archive from a shared archive.
  24159. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  24160. # Create a temporary old-style archive to link instead of a shared archive.
  24161. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  24162. # Commands used to build a shared archive.
  24163. archive_cmds=$lt_archive_cmds
  24164. archive_expsym_cmds=$lt_archive_expsym_cmds
  24165. # Commands used to build a loadable module if different from building
  24166. # a shared archive.
  24167. module_cmds=$lt_module_cmds
  24168. module_expsym_cmds=$lt_module_expsym_cmds
  24169. # Whether we are building with GNU ld or not.
  24170. with_gnu_ld=$lt_with_gnu_ld
  24171. # Flag that allows shared libraries with undefined symbols to be built.
  24172. allow_undefined_flag=$lt_allow_undefined_flag
  24173. # Flag that enforces no undefined symbols.
  24174. no_undefined_flag=$lt_no_undefined_flag
  24175. # Flag to hardcode \$libdir into a binary during linking.
  24176. # This must work even if \$libdir does not exist
  24177. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  24178. # Whether we need a single "-rpath" flag with a separated argument.
  24179. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  24180. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24181. # DIR into the resulting binary.
  24182. hardcode_direct=$hardcode_direct
  24183. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24184. # DIR into the resulting binary and the resulting library dependency is
  24185. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24186. # library is relocated.
  24187. hardcode_direct_absolute=$hardcode_direct_absolute
  24188. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24189. # into the resulting binary.
  24190. hardcode_minus_L=$hardcode_minus_L
  24191. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24192. # into the resulting binary.
  24193. hardcode_shlibpath_var=$hardcode_shlibpath_var
  24194. # Set to "yes" if building a shared library automatically hardcodes DIR
  24195. # into the library and all subsequent libraries and executables linked
  24196. # against it.
  24197. hardcode_automatic=$hardcode_automatic
  24198. # Set to yes if linker adds runtime paths of dependent libraries
  24199. # to runtime path list.
  24200. inherit_rpath=$inherit_rpath
  24201. # Whether libtool must link a program against all its dependency libraries.
  24202. link_all_deplibs=$link_all_deplibs
  24203. # Set to "yes" if exported symbols are required.
  24204. always_export_symbols=$always_export_symbols
  24205. # The commands to list exported symbols.
  24206. export_symbols_cmds=$lt_export_symbols_cmds
  24207. # Symbols that should not be listed in the preloaded symbols.
  24208. exclude_expsyms=$lt_exclude_expsyms
  24209. # Symbols that must always be exported.
  24210. include_expsyms=$lt_include_expsyms
  24211. # Commands necessary for linking programs (against libraries) with templates.
  24212. prelink_cmds=$lt_prelink_cmds
  24213. # Commands necessary for finishing linking programs.
  24214. postlink_cmds=$lt_postlink_cmds
  24215. # Specify filename containing input files.
  24216. file_list_spec=$lt_file_list_spec
  24217. # How to hardcode a shared library path into an executable.
  24218. hardcode_action=$hardcode_action
  24219. # The directories searched by this compiler when creating a shared library.
  24220. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  24221. # Dependencies to place before and after the objects being linked to
  24222. # create a shared library.
  24223. predep_objects=$lt_predep_objects
  24224. postdep_objects=$lt_postdep_objects
  24225. predeps=$lt_predeps
  24226. postdeps=$lt_postdeps
  24227. # The library search path used internally by the compiler when linking
  24228. # a shared library.
  24229. compiler_lib_search_path=$lt_compiler_lib_search_path
  24230. # ### END LIBTOOL CONFIG
  24231. _LT_EOF
  24232. case $host_os in
  24233. aix3*)
  24234. cat <<\_LT_EOF >> "$cfgfile"
  24235. # AIX sometimes has problems with the GCC collect2 program. For some
  24236. # reason, if we set the COLLECT_NAMES environment variable, the problems
  24237. # vanish in a puff of smoke.
  24238. if test "X${COLLECT_NAMES+set}" != Xset; then
  24239. COLLECT_NAMES=
  24240. export COLLECT_NAMES
  24241. fi
  24242. _LT_EOF
  24243. ;;
  24244. esac
  24245. ltmain="$ac_aux_dir/ltmain.sh"
  24246. # We use sed instead of cat because bash on DJGPP gets confused if
  24247. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  24248. # text mode, it properly converts lines to CR/LF. This bash problem
  24249. # is reportedly fixed, but why not run on old versions too?
  24250. sed '$q' "$ltmain" >> "$cfgfile" \
  24251. || (rm -f "$cfgfile"; exit 1)
  24252. if test x"$xsi_shell" = xyes; then
  24253. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  24254. func_dirname ()\
  24255. {\
  24256. \ case ${1} in\
  24257. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24258. \ * ) func_dirname_result="${3}" ;;\
  24259. \ esac\
  24260. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  24261. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24262. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24263. test 0 -eq $? || _lt_function_replace_fail=:
  24264. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  24265. func_basename ()\
  24266. {\
  24267. \ func_basename_result="${1##*/}"\
  24268. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24269. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24270. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24271. test 0 -eq $? || _lt_function_replace_fail=:
  24272. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  24273. func_dirname_and_basename ()\
  24274. {\
  24275. \ case ${1} in\
  24276. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  24277. \ * ) func_dirname_result="${3}" ;;\
  24278. \ esac\
  24279. \ func_basename_result="${1##*/}"\
  24280. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  24281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24283. test 0 -eq $? || _lt_function_replace_fail=:
  24284. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  24285. func_stripname ()\
  24286. {\
  24287. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  24288. \ # positional parameters, so assign one to ordinary parameter first.\
  24289. \ func_stripname_result=${3}\
  24290. \ func_stripname_result=${func_stripname_result#"${1}"}\
  24291. \ func_stripname_result=${func_stripname_result%"${2}"}\
  24292. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  24293. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24294. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24295. test 0 -eq $? || _lt_function_replace_fail=:
  24296. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  24297. func_split_long_opt ()\
  24298. {\
  24299. \ func_split_long_opt_name=${1%%=*}\
  24300. \ func_split_long_opt_arg=${1#*=}\
  24301. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24302. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24303. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24304. test 0 -eq $? || _lt_function_replace_fail=:
  24305. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  24306. func_split_short_opt ()\
  24307. {\
  24308. \ func_split_short_opt_arg=${1#??}\
  24309. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  24310. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  24311. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24312. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24313. test 0 -eq $? || _lt_function_replace_fail=:
  24314. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  24315. func_lo2o ()\
  24316. {\
  24317. \ case ${1} in\
  24318. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  24319. \ *) func_lo2o_result=${1} ;;\
  24320. \ esac\
  24321. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  24322. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24323. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24324. test 0 -eq $? || _lt_function_replace_fail=:
  24325. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  24326. func_xform ()\
  24327. {\
  24328. func_xform_result=${1%.*}.lo\
  24329. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  24330. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24331. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24332. test 0 -eq $? || _lt_function_replace_fail=:
  24333. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  24334. func_arith ()\
  24335. {\
  24336. func_arith_result=$(( $* ))\
  24337. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  24338. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24339. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24340. test 0 -eq $? || _lt_function_replace_fail=:
  24341. sed -e '/^func_len ()$/,/^} # func_len /c\
  24342. func_len ()\
  24343. {\
  24344. func_len_result=${#1}\
  24345. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  24346. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24347. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24348. test 0 -eq $? || _lt_function_replace_fail=:
  24349. fi
  24350. if test x"$lt_shell_append" = xyes; then
  24351. sed -e '/^func_append ()$/,/^} # func_append /c\
  24352. func_append ()\
  24353. {\
  24354. eval "${1}+=\\${2}"\
  24355. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24356. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24357. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24358. test 0 -eq $? || _lt_function_replace_fail=:
  24359. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24360. func_append_quoted ()\
  24361. {\
  24362. \ func_quote_for_eval "${2}"\
  24363. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24364. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24365. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24366. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24367. test 0 -eq $? || _lt_function_replace_fail=:
  24368. # Save a `func_append' function call where possible by direct use of '+='
  24369. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24370. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24371. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24372. test 0 -eq $? || _lt_function_replace_fail=:
  24373. else
  24374. # Save a `func_append' function call even when '+=' is not available
  24375. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24376. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24377. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24378. test 0 -eq $? || _lt_function_replace_fail=:
  24379. fi
  24380. if test x"$_lt_function_replace_fail" = x":"; then
  24381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24382. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24383. fi
  24384. mv -f "$cfgfile" "$ofile" ||
  24385. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24386. chmod +x "$ofile"
  24387. cat <<_LT_EOF >> "$ofile"
  24388. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24389. # The linker used to build libraries.
  24390. LD=$lt_LD_RC
  24391. # How to create reloadable object files.
  24392. reload_flag=$lt_reload_flag_RC
  24393. reload_cmds=$lt_reload_cmds_RC
  24394. # Commands used to build an old-style archive.
  24395. old_archive_cmds=$lt_old_archive_cmds_RC
  24396. # A language specific compiler.
  24397. CC=$lt_compiler_RC
  24398. # Is the compiler the GNU compiler?
  24399. with_gcc=$GCC_RC
  24400. # Compiler flag to turn off builtin functions.
  24401. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24402. # Additional compiler flags for building library objects.
  24403. pic_flag=$lt_lt_prog_compiler_pic_RC
  24404. # How to pass a linker flag through the compiler.
  24405. wl=$lt_lt_prog_compiler_wl_RC
  24406. # Compiler flag to prevent dynamic linking.
  24407. link_static_flag=$lt_lt_prog_compiler_static_RC
  24408. # Does compiler simultaneously support -c and -o options?
  24409. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24410. # Whether or not to add -lc for building shared libraries.
  24411. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24412. # Whether or not to disallow shared libs when runtime libs are static.
  24413. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24414. # Compiler flag to allow reflexive dlopens.
  24415. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24416. # Compiler flag to generate shared objects directly from archives.
  24417. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24418. # Whether the compiler copes with passing no objects directly.
  24419. compiler_needs_object=$lt_compiler_needs_object_RC
  24420. # Create an old-style archive from a shared archive.
  24421. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24422. # Create a temporary old-style archive to link instead of a shared archive.
  24423. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24424. # Commands used to build a shared archive.
  24425. archive_cmds=$lt_archive_cmds_RC
  24426. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24427. # Commands used to build a loadable module if different from building
  24428. # a shared archive.
  24429. module_cmds=$lt_module_cmds_RC
  24430. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24431. # Whether we are building with GNU ld or not.
  24432. with_gnu_ld=$lt_with_gnu_ld_RC
  24433. # Flag that allows shared libraries with undefined symbols to be built.
  24434. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24435. # Flag that enforces no undefined symbols.
  24436. no_undefined_flag=$lt_no_undefined_flag_RC
  24437. # Flag to hardcode \$libdir into a binary during linking.
  24438. # This must work even if \$libdir does not exist
  24439. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24440. # Whether we need a single "-rpath" flag with a separated argument.
  24441. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24442. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24443. # DIR into the resulting binary.
  24444. hardcode_direct=$hardcode_direct_RC
  24445. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24446. # DIR into the resulting binary and the resulting library dependency is
  24447. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24448. # library is relocated.
  24449. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24450. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24451. # into the resulting binary.
  24452. hardcode_minus_L=$hardcode_minus_L_RC
  24453. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24454. # into the resulting binary.
  24455. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24456. # Set to "yes" if building a shared library automatically hardcodes DIR
  24457. # into the library and all subsequent libraries and executables linked
  24458. # against it.
  24459. hardcode_automatic=$hardcode_automatic_RC
  24460. # Set to yes if linker adds runtime paths of dependent libraries
  24461. # to runtime path list.
  24462. inherit_rpath=$inherit_rpath_RC
  24463. # Whether libtool must link a program against all its dependency libraries.
  24464. link_all_deplibs=$link_all_deplibs_RC
  24465. # Set to "yes" if exported symbols are required.
  24466. always_export_symbols=$always_export_symbols_RC
  24467. # The commands to list exported symbols.
  24468. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24469. # Symbols that should not be listed in the preloaded symbols.
  24470. exclude_expsyms=$lt_exclude_expsyms_RC
  24471. # Symbols that must always be exported.
  24472. include_expsyms=$lt_include_expsyms_RC
  24473. # Commands necessary for linking programs (against libraries) with templates.
  24474. prelink_cmds=$lt_prelink_cmds_RC
  24475. # Commands necessary for finishing linking programs.
  24476. postlink_cmds=$lt_postlink_cmds_RC
  24477. # Specify filename containing input files.
  24478. file_list_spec=$lt_file_list_spec_RC
  24479. # How to hardcode a shared library path into an executable.
  24480. hardcode_action=$hardcode_action_RC
  24481. # The directories searched by this compiler when creating a shared library.
  24482. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24483. # Dependencies to place before and after the objects being linked to
  24484. # create a shared library.
  24485. predep_objects=$lt_predep_objects_RC
  24486. postdep_objects=$lt_postdep_objects_RC
  24487. predeps=$lt_predeps_RC
  24488. postdeps=$lt_postdeps_RC
  24489. # The library search path used internally by the compiler when linking
  24490. # a shared library.
  24491. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24492. # ### END LIBTOOL TAG CONFIG: RC
  24493. _LT_EOF
  24494. cat <<_LT_EOF >> "$ofile"
  24495. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24496. # The linker used to build libraries.
  24497. LD=$lt_LD_CXX
  24498. # How to create reloadable object files.
  24499. reload_flag=$lt_reload_flag_CXX
  24500. reload_cmds=$lt_reload_cmds_CXX
  24501. # Commands used to build an old-style archive.
  24502. old_archive_cmds=$lt_old_archive_cmds_CXX
  24503. # A language specific compiler.
  24504. CC=$lt_compiler_CXX
  24505. # Is the compiler the GNU compiler?
  24506. with_gcc=$GCC_CXX
  24507. # Compiler flag to turn off builtin functions.
  24508. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24509. # Additional compiler flags for building library objects.
  24510. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24511. # How to pass a linker flag through the compiler.
  24512. wl=$lt_lt_prog_compiler_wl_CXX
  24513. # Compiler flag to prevent dynamic linking.
  24514. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24515. # Does compiler simultaneously support -c and -o options?
  24516. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24517. # Whether or not to add -lc for building shared libraries.
  24518. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24519. # Whether or not to disallow shared libs when runtime libs are static.
  24520. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24521. # Compiler flag to allow reflexive dlopens.
  24522. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24523. # Compiler flag to generate shared objects directly from archives.
  24524. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24525. # Whether the compiler copes with passing no objects directly.
  24526. compiler_needs_object=$lt_compiler_needs_object_CXX
  24527. # Create an old-style archive from a shared archive.
  24528. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24529. # Create a temporary old-style archive to link instead of a shared archive.
  24530. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24531. # Commands used to build a shared archive.
  24532. archive_cmds=$lt_archive_cmds_CXX
  24533. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24534. # Commands used to build a loadable module if different from building
  24535. # a shared archive.
  24536. module_cmds=$lt_module_cmds_CXX
  24537. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24538. # Whether we are building with GNU ld or not.
  24539. with_gnu_ld=$lt_with_gnu_ld_CXX
  24540. # Flag that allows shared libraries with undefined symbols to be built.
  24541. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24542. # Flag that enforces no undefined symbols.
  24543. no_undefined_flag=$lt_no_undefined_flag_CXX
  24544. # Flag to hardcode \$libdir into a binary during linking.
  24545. # This must work even if \$libdir does not exist
  24546. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24547. # Whether we need a single "-rpath" flag with a separated argument.
  24548. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24549. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24550. # DIR into the resulting binary.
  24551. hardcode_direct=$hardcode_direct_CXX
  24552. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24553. # DIR into the resulting binary and the resulting library dependency is
  24554. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24555. # library is relocated.
  24556. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24557. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24558. # into the resulting binary.
  24559. hardcode_minus_L=$hardcode_minus_L_CXX
  24560. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24561. # into the resulting binary.
  24562. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24563. # Set to "yes" if building a shared library automatically hardcodes DIR
  24564. # into the library and all subsequent libraries and executables linked
  24565. # against it.
  24566. hardcode_automatic=$hardcode_automatic_CXX
  24567. # Set to yes if linker adds runtime paths of dependent libraries
  24568. # to runtime path list.
  24569. inherit_rpath=$inherit_rpath_CXX
  24570. # Whether libtool must link a program against all its dependency libraries.
  24571. link_all_deplibs=$link_all_deplibs_CXX
  24572. # Set to "yes" if exported symbols are required.
  24573. always_export_symbols=$always_export_symbols_CXX
  24574. # The commands to list exported symbols.
  24575. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24576. # Symbols that should not be listed in the preloaded symbols.
  24577. exclude_expsyms=$lt_exclude_expsyms_CXX
  24578. # Symbols that must always be exported.
  24579. include_expsyms=$lt_include_expsyms_CXX
  24580. # Commands necessary for linking programs (against libraries) with templates.
  24581. prelink_cmds=$lt_prelink_cmds_CXX
  24582. # Commands necessary for finishing linking programs.
  24583. postlink_cmds=$lt_postlink_cmds_CXX
  24584. # Specify filename containing input files.
  24585. file_list_spec=$lt_file_list_spec_CXX
  24586. # How to hardcode a shared library path into an executable.
  24587. hardcode_action=$hardcode_action_CXX
  24588. # The directories searched by this compiler when creating a shared library.
  24589. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24590. # Dependencies to place before and after the objects being linked to
  24591. # create a shared library.
  24592. predep_objects=$lt_predep_objects_CXX
  24593. postdep_objects=$lt_postdep_objects_CXX
  24594. predeps=$lt_predeps_CXX
  24595. postdeps=$lt_postdeps_CXX
  24596. # The library search path used internally by the compiler when linking
  24597. # a shared library.
  24598. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24599. # ### END LIBTOOL TAG CONFIG: CXX
  24600. _LT_EOF
  24601. ;;
  24602. "sdl2_config":C) chmod a+x sdl2-config ;;
  24603. "summary":C) printf "$SUMMARY" ;;
  24604. esac
  24605. done # for ac_tag
  24606. as_fn_exit 0
  24607. _ACEOF
  24608. ac_clean_files=$ac_clean_files_save
  24609. test $ac_write_fail = 0 ||
  24610. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24611. # configure is writing to config.log, and then calls config.status.
  24612. # config.status does its own redirection, appending to config.log.
  24613. # Unfortunately, on DOS this fails, as config.log is still kept open
  24614. # by configure, so config.status won't be able to write to it; its
  24615. # output is simply discarded. So we exec the FD to /dev/null,
  24616. # effectively closing config.log, so it can be properly (re)opened and
  24617. # appended to by config.status. When coming back to configure, we
  24618. # need to make the FD available again.
  24619. if test "$no_create" != yes; then
  24620. ac_cs_success=:
  24621. ac_config_status_args=
  24622. test "$silent" = yes &&
  24623. ac_config_status_args="$ac_config_status_args --quiet"
  24624. exec 5>/dev/null
  24625. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24626. exec 5>>config.log
  24627. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24628. # would make configure fail if this is the last instruction.
  24629. $ac_cs_success || as_fn_exit 1
  24630. fi
  24631. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24633. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24634. fi