configure 823 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192
  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="README.txt"
  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
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. INSTALL_SDL2_CONFIG
  603. LIBUSB_LIBS
  604. LIBUSB_CFLAGS
  605. FCITX_LIBS
  606. FCITX_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. ESD_LIBS
  630. ESD_CFLAGS
  631. ESD_CONFIG
  632. JACK_LIBS
  633. JACK_CFLAGS
  634. ALSA_LIBS
  635. ALSA_CFLAGS
  636. POW_LIB
  637. LIBOBJS
  638. ALLOCA
  639. PKG_CONFIG_LIBDIR
  640. PKG_CONFIG_PATH
  641. PKG_CONFIG
  642. WINDRES
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. CPP
  656. OTOOL64
  657. OTOOL
  658. LIPO
  659. NMEDIT
  660. DSYMUTIL
  661. MANIFEST_TOOL
  662. AWK
  663. RANLIB
  664. STRIP
  665. ac_ct_AR
  666. AR
  667. LN_S
  668. NM
  669. ac_ct_DUMPBIN
  670. DUMPBIN
  671. LD
  672. FGREP
  673. EGREP
  674. GREP
  675. SED
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. host_os
  684. host_vendor
  685. host_cpu
  686. host
  687. build_os
  688. build_vendor
  689. build_cpu
  690. build
  691. LIBTOOL
  692. OBJDUMP
  693. DLLTOOL
  694. AS
  695. SDL_VERSION
  696. SDL_BINARY_AGE
  697. SDL_INTERFACE_AGE
  698. SDL_MICRO_VERSION
  699. SDL_MINOR_VERSION
  700. SDL_MAJOR_VERSION
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. runstatedir
  721. localstatedir
  722. sharedstatedir
  723. sysconfdir
  724. datadir
  725. datarootdir
  726. libexecdir
  727. sbindir
  728. bindir
  729. program_transform_name
  730. prefix
  731. exec_prefix
  732. PACKAGE_URL
  733. PACKAGE_BUGREPORT
  734. PACKAGE_STRING
  735. PACKAGE_VERSION
  736. PACKAGE_TARNAME
  737. PACKAGE_NAME
  738. PATH_SEPARATOR
  739. SHELL'
  740. ac_subst_files=''
  741. ac_user_opts='
  742. enable_option_checking
  743. enable_shared
  744. enable_static
  745. with_pic
  746. enable_fast_install
  747. with_gnu_ld
  748. with_sysroot
  749. enable_libtool_lock
  750. enable_assertions
  751. enable_dependency_tracking
  752. enable_libc
  753. enable_gcc_atomics
  754. enable_atomic
  755. enable_audio
  756. enable_video
  757. enable_render
  758. enable_events
  759. enable_joystick
  760. enable_haptic
  761. enable_sensor
  762. enable_power
  763. enable_filesystem
  764. enable_threads
  765. enable_timers
  766. enable_file
  767. enable_loadso
  768. enable_cpuinfo
  769. enable_assembly
  770. enable_ssemath
  771. enable_mmx
  772. enable_3dnow
  773. enable_sse
  774. enable_sse2
  775. enable_sse3
  776. enable_altivec
  777. enable_oss
  778. enable_alsa
  779. with_alsa_prefix
  780. with_alsa_inc_prefix
  781. enable_alsatest
  782. enable_alsa_shared
  783. enable_jack
  784. enable_jack_shared
  785. enable_esd
  786. with_esd_prefix
  787. with_esd_exec_prefix
  788. enable_esdtest
  789. enable_esd_shared
  790. enable_pulseaudio
  791. enable_pulseaudio_shared
  792. enable_arts
  793. enable_arts_shared
  794. enable_nas
  795. enable_nas_shared
  796. enable_sndio
  797. enable_sndio_shared
  798. enable_fusionsound
  799. enable_fusionsound_shared
  800. enable_diskaudio
  801. enable_dummyaudio
  802. enable_libsamplerate
  803. enable_libsamplerate_shared
  804. enable_arm_simd
  805. enable_arm_neon
  806. enable_video_wayland
  807. enable_video_wayland_qt_touch
  808. enable_wayland_shared
  809. enable_video_rpi
  810. enable_video_x11
  811. with_x
  812. enable_x11_shared
  813. enable_video_x11_xcursor
  814. enable_video_x11_xdbe
  815. enable_video_x11_xinerama
  816. enable_video_x11_xinput
  817. enable_video_x11_xrandr
  818. enable_video_x11_scrnsaver
  819. enable_video_x11_xshape
  820. enable_video_x11_vm
  821. enable_video_vivante
  822. enable_video_cocoa
  823. enable_video_metal
  824. enable_render_metal
  825. enable_video_directfb
  826. enable_directfb_shared
  827. enable_video_kmsdrm
  828. enable_kmsdrm_shared
  829. enable_video_dummy
  830. enable_video_opengl
  831. enable_video_opengles
  832. enable_video_opengles1
  833. enable_video_opengles2
  834. enable_video_vulkan
  835. enable_libudev
  836. enable_dbus
  837. enable_ime
  838. enable_ibus
  839. enable_fcitx
  840. enable_input_tslib
  841. enable_pthreads
  842. enable_pthread_sem
  843. enable_directx
  844. enable_wasapi
  845. enable_sdl_dlopen
  846. enable_hidapi
  847. enable_clock_gettime
  848. enable_rpath
  849. enable_backgrounding_signal
  850. enable_foregrounding_signal
  851. enable_render_d3d
  852. enable_sdl2_config
  853. '
  854. ac_precious_vars='build_alias
  855. host_alias
  856. target_alias
  857. CC
  858. CFLAGS
  859. LDFLAGS
  860. LIBS
  861. CPPFLAGS
  862. CPP
  863. CXX
  864. CXXFLAGS
  865. CCC
  866. CXXCPP
  867. PKG_CONFIG
  868. PKG_CONFIG_PATH
  869. PKG_CONFIG_LIBDIR
  870. JACK_CFLAGS
  871. JACK_LIBS
  872. PULSEAUDIO_CFLAGS
  873. PULSEAUDIO_LIBS
  874. FUSIONSOUND_CFLAGS
  875. FUSIONSOUND_LIBS
  876. RPI_CFLAGS
  877. RPI_LIBS
  878. XMKMF
  879. DIRECTFB_CFLAGS
  880. DIRECTFB_LIBS
  881. LIBDRM_CFLAGS
  882. LIBDRM_LIBS
  883. LIBGBM_CFLAGS
  884. LIBGBM_LIBS
  885. DBUS_CFLAGS
  886. DBUS_LIBS
  887. IBUS_CFLAGS
  888. IBUS_LIBS
  889. FCITX_CFLAGS
  890. FCITX_LIBS
  891. LIBUSB_CFLAGS
  892. LIBUSB_LIBS'
  893. # Initialize some variables set by options.
  894. ac_init_help=
  895. ac_init_version=false
  896. ac_unrecognized_opts=
  897. ac_unrecognized_sep=
  898. # The variables have the same names as the options, with
  899. # dashes changed to underlines.
  900. cache_file=/dev/null
  901. exec_prefix=NONE
  902. no_create=
  903. no_recursion=
  904. prefix=NONE
  905. program_prefix=NONE
  906. program_suffix=NONE
  907. program_transform_name=s,x,x,
  908. silent=
  909. site=
  910. srcdir=
  911. verbose=
  912. x_includes=NONE
  913. x_libraries=NONE
  914. # Installation directory options.
  915. # These are left unexpanded so users can "make install exec_prefix=/foo"
  916. # and all the variables that are supposed to be based on exec_prefix
  917. # by default will actually change.
  918. # Use braces instead of parens because sh, perl, etc. also accept them.
  919. # (The list follows the same order as the GNU Coding Standards.)
  920. bindir='${exec_prefix}/bin'
  921. sbindir='${exec_prefix}/sbin'
  922. libexecdir='${exec_prefix}/libexec'
  923. datarootdir='${prefix}/share'
  924. datadir='${datarootdir}'
  925. sysconfdir='${prefix}/etc'
  926. sharedstatedir='${prefix}/com'
  927. localstatedir='${prefix}/var'
  928. runstatedir='${localstatedir}/run'
  929. includedir='${prefix}/include'
  930. oldincludedir='/usr/include'
  931. docdir='${datarootdir}/doc/${PACKAGE}'
  932. infodir='${datarootdir}/info'
  933. htmldir='${docdir}'
  934. dvidir='${docdir}'
  935. pdfdir='${docdir}'
  936. psdir='${docdir}'
  937. libdir='${exec_prefix}/lib'
  938. localedir='${datarootdir}/locale'
  939. mandir='${datarootdir}/man'
  940. ac_prev=
  941. ac_dashdash=
  942. for ac_option
  943. do
  944. # If the previous option needs an argument, assign it.
  945. if test -n "$ac_prev"; then
  946. eval $ac_prev=\$ac_option
  947. ac_prev=
  948. continue
  949. fi
  950. case $ac_option in
  951. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  952. *=) ac_optarg= ;;
  953. *) ac_optarg=yes ;;
  954. esac
  955. # Accept the important Cygnus configure options, so we can diagnose typos.
  956. case $ac_dashdash$ac_option in
  957. --)
  958. ac_dashdash=yes ;;
  959. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  960. ac_prev=bindir ;;
  961. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  962. bindir=$ac_optarg ;;
  963. -build | --build | --buil | --bui | --bu)
  964. ac_prev=build_alias ;;
  965. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  966. build_alias=$ac_optarg ;;
  967. -cache-file | --cache-file | --cache-fil | --cache-fi \
  968. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  969. ac_prev=cache_file ;;
  970. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  971. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  972. cache_file=$ac_optarg ;;
  973. --config-cache | -C)
  974. cache_file=config.cache ;;
  975. -datadir | --datadir | --datadi | --datad)
  976. ac_prev=datadir ;;
  977. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  978. datadir=$ac_optarg ;;
  979. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  980. | --dataroo | --dataro | --datar)
  981. ac_prev=datarootdir ;;
  982. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  983. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  984. datarootdir=$ac_optarg ;;
  985. -disable-* | --disable-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid feature name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "enable_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval enable_$ac_useropt=no ;;
  1000. -docdir | --docdir | --docdi | --doc | --do)
  1001. ac_prev=docdir ;;
  1002. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1003. docdir=$ac_optarg ;;
  1004. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1005. ac_prev=dvidir ;;
  1006. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1007. dvidir=$ac_optarg ;;
  1008. -enable-* | --enable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=\$ac_optarg ;;
  1023. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1024. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1025. | --exec | --exe | --ex)
  1026. ac_prev=exec_prefix ;;
  1027. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1028. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1029. | --exec=* | --exe=* | --ex=*)
  1030. exec_prefix=$ac_optarg ;;
  1031. -gas | --gas | --ga | --g)
  1032. # Obsolete; use --with-gas.
  1033. with_gas=yes ;;
  1034. -help | --help | --hel | --he | -h)
  1035. ac_init_help=long ;;
  1036. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1037. ac_init_help=recursive ;;
  1038. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1039. ac_init_help=short ;;
  1040. -host | --host | --hos | --ho)
  1041. ac_prev=host_alias ;;
  1042. -host=* | --host=* | --hos=* | --ho=*)
  1043. host_alias=$ac_optarg ;;
  1044. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1045. ac_prev=htmldir ;;
  1046. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1047. | --ht=*)
  1048. htmldir=$ac_optarg ;;
  1049. -includedir | --includedir | --includedi | --included | --include \
  1050. | --includ | --inclu | --incl | --inc)
  1051. ac_prev=includedir ;;
  1052. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1053. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1054. includedir=$ac_optarg ;;
  1055. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1056. ac_prev=infodir ;;
  1057. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1058. infodir=$ac_optarg ;;
  1059. -libdir | --libdir | --libdi | --libd)
  1060. ac_prev=libdir ;;
  1061. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1062. libdir=$ac_optarg ;;
  1063. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1064. | --libexe | --libex | --libe)
  1065. ac_prev=libexecdir ;;
  1066. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1067. | --libexe=* | --libex=* | --libe=*)
  1068. libexecdir=$ac_optarg ;;
  1069. -localedir | --localedir | --localedi | --localed | --locale)
  1070. ac_prev=localedir ;;
  1071. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1072. localedir=$ac_optarg ;;
  1073. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1074. | --localstate | --localstat | --localsta | --localst | --locals)
  1075. ac_prev=localstatedir ;;
  1076. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1077. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1078. localstatedir=$ac_optarg ;;
  1079. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1080. ac_prev=mandir ;;
  1081. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1082. mandir=$ac_optarg ;;
  1083. -nfp | --nfp | --nf)
  1084. # Obsolete; use --without-fp.
  1085. with_fp=no ;;
  1086. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1087. | --no-cr | --no-c | -n)
  1088. no_create=yes ;;
  1089. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1090. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1091. no_recursion=yes ;;
  1092. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1093. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1094. | --oldin | --oldi | --old | --ol | --o)
  1095. ac_prev=oldincludedir ;;
  1096. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1097. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1098. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1099. oldincludedir=$ac_optarg ;;
  1100. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1101. ac_prev=prefix ;;
  1102. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1103. prefix=$ac_optarg ;;
  1104. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1105. | --program-pre | --program-pr | --program-p)
  1106. ac_prev=program_prefix ;;
  1107. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1108. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1109. program_prefix=$ac_optarg ;;
  1110. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1111. | --program-suf | --program-su | --program-s)
  1112. ac_prev=program_suffix ;;
  1113. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1114. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1115. program_suffix=$ac_optarg ;;
  1116. -program-transform-name | --program-transform-name \
  1117. | --program-transform-nam | --program-transform-na \
  1118. | --program-transform-n | --program-transform- \
  1119. | --program-transform | --program-transfor \
  1120. | --program-transfo | --program-transf \
  1121. | --program-trans | --program-tran \
  1122. | --progr-tra | --program-tr | --program-t)
  1123. ac_prev=program_transform_name ;;
  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. program_transform_name=$ac_optarg ;;
  1132. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1133. ac_prev=pdfdir ;;
  1134. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1135. pdfdir=$ac_optarg ;;
  1136. -psdir | --psdir | --psdi | --psd | --ps)
  1137. ac_prev=psdir ;;
  1138. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1139. psdir=$ac_optarg ;;
  1140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1141. | -silent | --silent | --silen | --sile | --sil)
  1142. silent=yes ;;
  1143. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1144. | --runstate | --runstat | --runsta | --runst | --runs \
  1145. | --run | --ru | --r)
  1146. ac_prev=runstatedir ;;
  1147. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1148. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1149. | --run=* | --ru=* | --r=*)
  1150. runstatedir=$ac_optarg ;;
  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 runstatedir
  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. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1406. --libdir=DIR object code libraries [EPREFIX/lib]
  1407. --includedir=DIR C header files [PREFIX/include]
  1408. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1409. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1410. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1411. --infodir=DIR info documentation [DATAROOTDIR/info]
  1412. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1413. --mandir=DIR man documentation [DATAROOTDIR/man]
  1414. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1415. --htmldir=DIR html documentation [DOCDIR]
  1416. --dvidir=DIR dvi documentation [DOCDIR]
  1417. --pdfdir=DIR pdf documentation [DOCDIR]
  1418. --psdir=DIR ps documentation [DOCDIR]
  1419. _ACEOF
  1420. cat <<\_ACEOF
  1421. X features:
  1422. --x-includes=DIR X include files are in DIR
  1423. --x-libraries=DIR X library files are in DIR
  1424. System types:
  1425. --build=BUILD configure for building on BUILD [guessed]
  1426. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1427. _ACEOF
  1428. fi
  1429. if test -n "$ac_init_help"; then
  1430. cat <<\_ACEOF
  1431. Optional Features:
  1432. --disable-option-checking ignore unrecognized --enable/--with options
  1433. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1434. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1435. --enable-shared[=PKGS] build shared libraries [default=yes]
  1436. --enable-static[=PKGS] build static libraries [default=yes]
  1437. --enable-fast-install[=PKGS]
  1438. optimize for fast installation [default=yes]
  1439. --disable-libtool-lock avoid locking (might break parallel builds)
  1440. --enable-assertions Enable internal sanity checks
  1441. (auto/disabled/release/enabled/paranoid)
  1442. [[default=auto]]
  1443. --enable-dependency-tracking
  1444. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1445. --enable-libc Use the system C library [[default=yes]]
  1446. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1447. --enable-atomic Enable the atomic operations subsystem
  1448. [[default=yes]]
  1449. --enable-audio Enable the audio subsystem [[default=yes]]
  1450. --enable-video Enable the video subsystem [[default=yes]]
  1451. --enable-render Enable the render subsystem [[default=yes]]
  1452. --enable-events Enable the events subsystem [[default=yes]]
  1453. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1454. --enable-haptic Enable the haptic (force feedback) subsystem
  1455. [[default=yes]]
  1456. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1457. --enable-power Enable the power subsystem [[default=yes]]
  1458. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1459. --enable-threads Enable the threading subsystem [[default=yes]]
  1460. --enable-timers Enable the timer subsystem [[default=yes]]
  1461. --enable-file Enable the file subsystem [[default=yes]]
  1462. --enable-loadso Enable the shared object loading subsystem
  1463. [[default=yes]]
  1464. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1465. --enable-assembly Enable assembly routines [[default=yes]]
  1466. --enable-ssemath Allow GCC to use SSE floating point math
  1467. [[default=maybe]]
  1468. --enable-mmx use MMX assembly routines [[default=yes]]
  1469. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1470. --enable-sse use SSE assembly routines [[default=yes]]
  1471. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1472. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1473. --enable-altivec use Altivec assembly routines [[default=yes]]
  1474. --enable-oss support the OSS audio API [[default=maybe]]
  1475. --enable-alsa support the ALSA audio API [[default=yes]]
  1476. --disable-alsatest Do not try to compile and run a test Alsa program
  1477. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1478. --enable-jack use JACK audio [[default=yes]]
  1479. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1480. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1481. --disable-esdtest Do not try to compile and run a test ESD program
  1482. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1483. --enable-pulseaudio use PulseAudio [[default=yes]]
  1484. --enable-pulseaudio-shared
  1485. dynamically load PulseAudio support [[default=yes]]
  1486. --enable-arts support the Analog Real Time Synthesizer
  1487. [[default=yes]]
  1488. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1489. --enable-nas support the NAS audio API [[default=yes]]
  1490. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1491. --enable-sndio support the sndio audio API [[default=yes]]
  1492. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1493. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1494. --enable-fusionsound-shared
  1495. dynamically load fusionsound audio support
  1496. [[default=yes]]
  1497. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1498. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1499. --enable-libsamplerate use libsamplerate for audio rate conversion
  1500. [[default=yes]]
  1501. --enable-libsamplerate-shared
  1502. dynamically load libsamplerate [[default=yes]]
  1503. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1504. --enable-arm-neon use NEON assembly blitters on ARM [[default=yes]]
  1505. --enable-video-wayland use Wayland video driver [[default=yes]]
  1506. --enable-video-wayland-qt-touch
  1507. QtWayland server support for Wayland video driver
  1508. [[default=yes]]
  1509. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1510. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1511. --enable-video-x11 use X11 video driver [[default=yes]]
  1512. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1513. --enable-video-x11-xcursor
  1514. enable X11 Xcursor support [[default=yes]]
  1515. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1516. --enable-video-x11-xinerama
  1517. enable X11 Xinerama support [[default=yes]]
  1518. --enable-video-x11-xinput
  1519. enable X11 XInput extension for manymouse, tablets,
  1520. etc [[default=yes]]
  1521. --enable-video-x11-xrandr
  1522. enable X11 Xrandr extension for fullscreen
  1523. [[default=yes]]
  1524. --enable-video-x11-scrnsaver
  1525. enable X11 screensaver extension [[default=yes]]
  1526. --enable-video-x11-xshape
  1527. enable X11 XShape support [[default=yes]]
  1528. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1529. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1530. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1531. --enable-video-metal include Metal support [[default=yes]]
  1532. --enable-render-metal enable the Metal render driver [[default=yes]]
  1533. --enable-video-directfb use DirectFB video driver [[default=no]]
  1534. --enable-directfb-shared
  1535. dynamically load directfb support [[default=yes]]
  1536. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1537. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1538. --enable-video-dummy use dummy video driver [[default=yes]]
  1539. --enable-video-opengl include OpenGL support [[default=yes]]
  1540. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1541. --enable-video-opengles1
  1542. include OpenGL ES 1.1 support [[default=yes]]
  1543. --enable-video-opengles2
  1544. include OpenGL ES 2.0 support [[default=yes]]
  1545. --enable-video-vulkan include Vulkan support [[default=yes]]
  1546. --enable-libudev enable libudev support [[default=yes]]
  1547. --enable-dbus enable D-Bus support [[default=yes]]
  1548. --enable-ime enable IME support [[default=yes]]
  1549. --enable-ibus enable IBus support [[default=yes]]
  1550. --enable-fcitx enable fcitx support [[default=yes]]
  1551. --enable-input-tslib use the Touchscreen library for input
  1552. [[default=yes]]
  1553. --enable-pthreads use POSIX threads for multi-threading
  1554. [[default=yes]]
  1555. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1556. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1557. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1558. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1559. --enable-hidapi use HIDAPI for low level joystick drivers
  1560. [[default=no]]
  1561. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1562. UNIX [[default=yes]]
  1563. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1564. --enable-backgrounding-signal
  1565. number to use for magic backgrounding signal or 'no'
  1566. [[default=no]]
  1567. --enable-foregrounding-signal
  1568. number to use for magic foregrounding signal or 'no'
  1569. [[default=no]]
  1570. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1571. --enable-sdl2-config Install sdl2-config [default=yes]
  1572. Optional Packages:
  1573. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1574. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1575. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1576. both]
  1577. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1578. --with-sysroot=DIR Search for dependent libraries within DIR
  1579. (or the compiler's sysroot if not specified).
  1580. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1581. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1582. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1583. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1584. --with-x use the X Window System
  1585. Some influential environment variables:
  1586. CC C compiler command
  1587. CFLAGS C compiler flags
  1588. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1589. nonstandard directory <lib dir>
  1590. LIBS libraries to pass to the linker, e.g. -l<library>
  1591. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1592. you have headers in a nonstandard directory <include dir>
  1593. CPP C preprocessor
  1594. CXX C++ compiler command
  1595. CXXFLAGS C++ compiler flags
  1596. CXXCPP C++ preprocessor
  1597. PKG_CONFIG path to pkg-config utility
  1598. PKG_CONFIG_PATH
  1599. directories to add to pkg-config's search path
  1600. PKG_CONFIG_LIBDIR
  1601. path overriding pkg-config's built-in search path
  1602. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1603. JACK_LIBS linker flags for JACK, overriding pkg-config
  1604. PULSEAUDIO_CFLAGS
  1605. C compiler flags for PULSEAUDIO, overriding pkg-config
  1606. PULSEAUDIO_LIBS
  1607. linker flags for PULSEAUDIO, overriding pkg-config
  1608. FUSIONSOUND_CFLAGS
  1609. C compiler flags for FUSIONSOUND, overriding pkg-config
  1610. FUSIONSOUND_LIBS
  1611. linker flags for FUSIONSOUND, overriding pkg-config
  1612. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1613. RPI_LIBS linker flags for RPI, overriding pkg-config
  1614. XMKMF Path to xmkmf, Makefile generator for X Window System
  1615. DIRECTFB_CFLAGS
  1616. C compiler flags for DIRECTFB, overriding pkg-config
  1617. DIRECTFB_LIBS
  1618. linker flags for DIRECTFB, overriding pkg-config
  1619. LIBDRM_CFLAGS
  1620. C compiler flags for LIBDRM, overriding pkg-config
  1621. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1622. LIBGBM_CFLAGS
  1623. C compiler flags for LIBGBM, overriding pkg-config
  1624. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1625. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1626. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1627. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1628. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1629. FCITX_CFLAGS
  1630. C compiler flags for FCITX, overriding pkg-config
  1631. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1632. LIBUSB_CFLAGS
  1633. C compiler flags for LIBUSB, overriding pkg-config
  1634. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1635. Use these variables to override the choices made by `configure' or to help
  1636. it to find libraries and programs with nonstandard names/locations.
  1637. Report bugs to the package provider.
  1638. _ACEOF
  1639. ac_status=$?
  1640. fi
  1641. if test "$ac_init_help" = "recursive"; then
  1642. # If there are subdirs, report their specific --help.
  1643. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1644. test -d "$ac_dir" ||
  1645. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1646. continue
  1647. ac_builddir=.
  1648. case "$ac_dir" in
  1649. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1650. *)
  1651. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1652. # A ".." for each directory in $ac_dir_suffix.
  1653. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1654. case $ac_top_builddir_sub in
  1655. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1656. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1657. esac ;;
  1658. esac
  1659. ac_abs_top_builddir=$ac_pwd
  1660. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1661. # for backward compatibility:
  1662. ac_top_builddir=$ac_top_build_prefix
  1663. case $srcdir in
  1664. .) # We are building in place.
  1665. ac_srcdir=.
  1666. ac_top_srcdir=$ac_top_builddir_sub
  1667. ac_abs_top_srcdir=$ac_pwd ;;
  1668. [\\/]* | ?:[\\/]* ) # Absolute name.
  1669. ac_srcdir=$srcdir$ac_dir_suffix;
  1670. ac_top_srcdir=$srcdir
  1671. ac_abs_top_srcdir=$srcdir ;;
  1672. *) # Relative name.
  1673. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1674. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1675. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1676. esac
  1677. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1678. cd "$ac_dir" || { ac_status=$?; continue; }
  1679. # Check for guested configure.
  1680. if test -f "$ac_srcdir/configure.gnu"; then
  1681. echo &&
  1682. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1683. elif test -f "$ac_srcdir/configure"; then
  1684. echo &&
  1685. $SHELL "$ac_srcdir/configure" --help=recursive
  1686. else
  1687. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1688. fi || ac_status=$?
  1689. cd "$ac_pwd" || { ac_status=$?; break; }
  1690. done
  1691. fi
  1692. test -n "$ac_init_help" && exit $ac_status
  1693. if $ac_init_version; then
  1694. cat <<\_ACEOF
  1695. configure
  1696. generated by GNU Autoconf 2.69
  1697. Copyright (C) 2012 Free Software Foundation, Inc.
  1698. This configure script is free software; the Free Software Foundation
  1699. gives unlimited permission to copy, distribute and modify it.
  1700. _ACEOF
  1701. exit
  1702. fi
  1703. ## ------------------------ ##
  1704. ## Autoconf initialization. ##
  1705. ## ------------------------ ##
  1706. # ac_fn_c_try_compile LINENO
  1707. # --------------------------
  1708. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1709. ac_fn_c_try_compile ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. rm -f conftest.$ac_objext
  1713. if { { ac_try="$ac_compile"
  1714. case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720. (eval "$ac_compile") 2>conftest.err
  1721. ac_status=$?
  1722. if test -s conftest.err; then
  1723. grep -v '^ *+' conftest.err >conftest.er1
  1724. cat conftest.er1 >&5
  1725. mv -f conftest.er1 conftest.err
  1726. fi
  1727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1728. test $ac_status = 0; } && {
  1729. test -z "$ac_c_werror_flag" ||
  1730. test ! -s conftest.err
  1731. } && test -s conftest.$ac_objext; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736. ac_retval=1
  1737. fi
  1738. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1739. as_fn_set_status $ac_retval
  1740. } # ac_fn_c_try_compile
  1741. # ac_fn_c_try_link LINENO
  1742. # -----------------------
  1743. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1744. ac_fn_c_try_link ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. rm -f conftest.$ac_objext conftest$ac_exeext
  1748. if { { ac_try="$ac_link"
  1749. case "(($ac_try" in
  1750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1751. *) ac_try_echo=$ac_try;;
  1752. esac
  1753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1754. $as_echo "$ac_try_echo"; } >&5
  1755. (eval "$ac_link") 2>conftest.err
  1756. ac_status=$?
  1757. if test -s conftest.err; then
  1758. grep -v '^ *+' conftest.err >conftest.er1
  1759. cat conftest.er1 >&5
  1760. mv -f conftest.er1 conftest.err
  1761. fi
  1762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1763. test $ac_status = 0; } && {
  1764. test -z "$ac_c_werror_flag" ||
  1765. test ! -s conftest.err
  1766. } && test -s conftest$ac_exeext && {
  1767. test "$cross_compiling" = yes ||
  1768. test -x conftest$ac_exeext
  1769. }; then :
  1770. ac_retval=0
  1771. else
  1772. $as_echo "$as_me: failed program was:" >&5
  1773. sed 's/^/| /' conftest.$ac_ext >&5
  1774. ac_retval=1
  1775. fi
  1776. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1777. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1778. # interfere with the next link command; also delete a directory that is
  1779. # left behind by Apple's compiler. We do this before executing the actions.
  1780. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_c_try_link
  1784. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1785. # -------------------------------------------------------
  1786. # Tests whether HEADER exists and can be compiled using the include files in
  1787. # INCLUDES, setting the cache variable VAR accordingly.
  1788. ac_fn_c_check_header_compile ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1792. $as_echo_n "checking for $2... " >&6; }
  1793. if eval \${$3+:} false; then :
  1794. $as_echo_n "(cached) " >&6
  1795. else
  1796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1797. /* end confdefs.h. */
  1798. $4
  1799. #include <$2>
  1800. _ACEOF
  1801. if ac_fn_c_try_compile "$LINENO"; then :
  1802. eval "$3=yes"
  1803. else
  1804. eval "$3=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. eval ac_res=\$$3
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1810. $as_echo "$ac_res" >&6; }
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. } # ac_fn_c_check_header_compile
  1813. # ac_fn_c_try_cpp LINENO
  1814. # ----------------------
  1815. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1816. ac_fn_c_try_cpp ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } > conftest.i && {
  1835. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1836. test ! -s conftest.err
  1837. }; then :
  1838. ac_retval=0
  1839. else
  1840. $as_echo "$as_me: failed program was:" >&5
  1841. sed 's/^/| /' conftest.$ac_ext >&5
  1842. ac_retval=1
  1843. fi
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_c_try_cpp
  1847. # ac_fn_c_try_run LINENO
  1848. # ----------------------
  1849. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1850. # that executables *can* be run.
  1851. ac_fn_c_try_run ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. if { { ac_try="$ac_link"
  1855. case "(($ac_try" in
  1856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1857. *) ac_try_echo=$ac_try;;
  1858. esac
  1859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1860. $as_echo "$ac_try_echo"; } >&5
  1861. (eval "$ac_link") 2>&5
  1862. ac_status=$?
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1865. { { case "(($ac_try" in
  1866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1867. *) ac_try_echo=$ac_try;;
  1868. esac
  1869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1870. $as_echo "$ac_try_echo"; } >&5
  1871. (eval "$ac_try") 2>&5
  1872. ac_status=$?
  1873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1874. test $ac_status = 0; }; }; then :
  1875. ac_retval=0
  1876. else
  1877. $as_echo "$as_me: program exited with status $ac_status" >&5
  1878. $as_echo "$as_me: failed program was:" >&5
  1879. sed 's/^/| /' conftest.$ac_ext >&5
  1880. ac_retval=$ac_status
  1881. fi
  1882. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1883. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1884. as_fn_set_status $ac_retval
  1885. } # ac_fn_c_try_run
  1886. # ac_fn_c_check_func LINENO FUNC VAR
  1887. # ----------------------------------
  1888. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1889. ac_fn_c_check_func ()
  1890. {
  1891. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1893. $as_echo_n "checking for $2... " >&6; }
  1894. if eval \${$3+:} false; then :
  1895. $as_echo_n "(cached) " >&6
  1896. else
  1897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1898. /* end confdefs.h. */
  1899. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1900. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1901. #define $2 innocuous_$2
  1902. /* System header to define __stub macros and hopefully few prototypes,
  1903. which can conflict with char $2 (); below.
  1904. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1905. <limits.h> exists even on freestanding compilers. */
  1906. #ifdef __STDC__
  1907. # include <limits.h>
  1908. #else
  1909. # include <assert.h>
  1910. #endif
  1911. #undef $2
  1912. /* Override any GCC internal prototype to avoid an error.
  1913. Use char because int might match the return type of a GCC
  1914. builtin and then its argument prototype would still apply. */
  1915. #ifdef __cplusplus
  1916. extern "C"
  1917. #endif
  1918. char $2 ();
  1919. /* The GNU C library defines this for functions which it implements
  1920. to always fail with ENOSYS. Some functions are actually named
  1921. something starting with __ and the normal name is an alias. */
  1922. #if defined __stub_$2 || defined __stub___$2
  1923. choke me
  1924. #endif
  1925. int
  1926. main ()
  1927. {
  1928. return $2 ();
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. if ac_fn_c_try_link "$LINENO"; then :
  1934. eval "$3=yes"
  1935. else
  1936. eval "$3=no"
  1937. fi
  1938. rm -f core conftest.err conftest.$ac_objext \
  1939. conftest$ac_exeext conftest.$ac_ext
  1940. fi
  1941. eval ac_res=\$$3
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1943. $as_echo "$ac_res" >&6; }
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. } # ac_fn_c_check_func
  1946. # ac_fn_cxx_try_compile LINENO
  1947. # ----------------------------
  1948. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1949. ac_fn_cxx_try_compile ()
  1950. {
  1951. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1952. rm -f conftest.$ac_objext
  1953. if { { ac_try="$ac_compile"
  1954. case "(($ac_try" in
  1955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1956. *) ac_try_echo=$ac_try;;
  1957. esac
  1958. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1959. $as_echo "$ac_try_echo"; } >&5
  1960. (eval "$ac_compile") 2>conftest.err
  1961. ac_status=$?
  1962. if test -s conftest.err; then
  1963. grep -v '^ *+' conftest.err >conftest.er1
  1964. cat conftest.er1 >&5
  1965. mv -f conftest.er1 conftest.err
  1966. fi
  1967. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1968. test $ac_status = 0; } && {
  1969. test -z "$ac_cxx_werror_flag" ||
  1970. test ! -s conftest.err
  1971. } && test -s conftest.$ac_objext; then :
  1972. ac_retval=0
  1973. else
  1974. $as_echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. ac_retval=1
  1977. fi
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. as_fn_set_status $ac_retval
  1980. } # ac_fn_cxx_try_compile
  1981. # ac_fn_cxx_try_cpp LINENO
  1982. # ------------------------
  1983. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1984. ac_fn_cxx_try_cpp ()
  1985. {
  1986. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1987. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1988. case "(($ac_try" in
  1989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1990. *) ac_try_echo=$ac_try;;
  1991. esac
  1992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1993. $as_echo "$ac_try_echo"; } >&5
  1994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1995. ac_status=$?
  1996. if test -s conftest.err; then
  1997. grep -v '^ *+' conftest.err >conftest.er1
  1998. cat conftest.er1 >&5
  1999. mv -f conftest.er1 conftest.err
  2000. fi
  2001. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2002. test $ac_status = 0; } > conftest.i && {
  2003. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2004. test ! -s conftest.err
  2005. }; then :
  2006. ac_retval=0
  2007. else
  2008. $as_echo "$as_me: failed program was:" >&5
  2009. sed 's/^/| /' conftest.$ac_ext >&5
  2010. ac_retval=1
  2011. fi
  2012. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2013. as_fn_set_status $ac_retval
  2014. } # ac_fn_cxx_try_cpp
  2015. # ac_fn_cxx_try_link LINENO
  2016. # -------------------------
  2017. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2018. ac_fn_cxx_try_link ()
  2019. {
  2020. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2021. rm -f conftest.$ac_objext conftest$ac_exeext
  2022. if { { ac_try="$ac_link"
  2023. case "(($ac_try" in
  2024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2025. *) ac_try_echo=$ac_try;;
  2026. esac
  2027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2028. $as_echo "$ac_try_echo"; } >&5
  2029. (eval "$ac_link") 2>conftest.err
  2030. ac_status=$?
  2031. if test -s conftest.err; then
  2032. grep -v '^ *+' conftest.err >conftest.er1
  2033. cat conftest.er1 >&5
  2034. mv -f conftest.er1 conftest.err
  2035. fi
  2036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2037. test $ac_status = 0; } && {
  2038. test -z "$ac_cxx_werror_flag" ||
  2039. test ! -s conftest.err
  2040. } && test -s conftest$ac_exeext && {
  2041. test "$cross_compiling" = yes ||
  2042. test -x conftest$ac_exeext
  2043. }; then :
  2044. ac_retval=0
  2045. else
  2046. $as_echo "$as_me: failed program was:" >&5
  2047. sed 's/^/| /' conftest.$ac_ext >&5
  2048. ac_retval=1
  2049. fi
  2050. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2051. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2052. # interfere with the next link command; also delete a directory that is
  2053. # left behind by Apple's compiler. We do this before executing the actions.
  2054. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2055. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2056. as_fn_set_status $ac_retval
  2057. } # ac_fn_cxx_try_link
  2058. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2059. # -------------------------------------------------------
  2060. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2061. # the include files in INCLUDES and setting the cache variable VAR
  2062. # accordingly.
  2063. ac_fn_c_check_header_mongrel ()
  2064. {
  2065. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2066. if eval \${$3+:} false; then :
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2068. $as_echo_n "checking for $2... " >&6; }
  2069. if eval \${$3+:} false; then :
  2070. $as_echo_n "(cached) " >&6
  2071. fi
  2072. eval ac_res=\$$3
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2074. $as_echo "$ac_res" >&6; }
  2075. else
  2076. # Is the header compilable?
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2078. $as_echo_n "checking $2 usability... " >&6; }
  2079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2080. /* end confdefs.h. */
  2081. $4
  2082. #include <$2>
  2083. _ACEOF
  2084. if ac_fn_c_try_compile "$LINENO"; then :
  2085. ac_header_compiler=yes
  2086. else
  2087. ac_header_compiler=no
  2088. fi
  2089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2091. $as_echo "$ac_header_compiler" >&6; }
  2092. # Is the header present?
  2093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2094. $as_echo_n "checking $2 presence... " >&6; }
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. #include <$2>
  2098. _ACEOF
  2099. if ac_fn_c_try_cpp "$LINENO"; then :
  2100. ac_header_preproc=yes
  2101. else
  2102. ac_header_preproc=no
  2103. fi
  2104. rm -f conftest.err conftest.i conftest.$ac_ext
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2106. $as_echo "$ac_header_preproc" >&6; }
  2107. # So? What about this header?
  2108. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2109. yes:no: )
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2111. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2113. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2114. ;;
  2115. no:yes:* )
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2117. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2119. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2121. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2123. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2125. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2126. ;;
  2127. esac
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2129. $as_echo_n "checking for $2... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=\$ac_header_compiler"
  2134. fi
  2135. eval ac_res=\$$3
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. $as_echo "$ac_res" >&6; }
  2138. fi
  2139. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2140. } # ac_fn_c_check_header_mongrel
  2141. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2142. # -------------------------------------------
  2143. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2144. # variable VAR accordingly.
  2145. ac_fn_c_check_type ()
  2146. {
  2147. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2149. $as_echo_n "checking for $2... " >&6; }
  2150. if eval \${$3+:} false; then :
  2151. $as_echo_n "(cached) " >&6
  2152. else
  2153. eval "$3=no"
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. if (sizeof ($2))
  2161. return 0;
  2162. ;
  2163. return 0;
  2164. }
  2165. _ACEOF
  2166. if ac_fn_c_try_compile "$LINENO"; then :
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $4
  2170. int
  2171. main ()
  2172. {
  2173. if (sizeof (($2)))
  2174. return 0;
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_c_try_compile "$LINENO"; then :
  2180. else
  2181. eval "$3=yes"
  2182. fi
  2183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. fi
  2187. eval ac_res=\$$3
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2189. $as_echo "$ac_res" >&6; }
  2190. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2191. } # ac_fn_c_check_type
  2192. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2193. # ----------------------------------------------------
  2194. # Tries to find if the field MEMBER exists in type AGGR, after including
  2195. # INCLUDES, setting cache variable VAR accordingly.
  2196. ac_fn_c_check_member ()
  2197. {
  2198. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2200. $as_echo_n "checking for $2.$3... " >&6; }
  2201. if eval \${$4+:} false; then :
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205. /* end confdefs.h. */
  2206. $5
  2207. int
  2208. main ()
  2209. {
  2210. static $2 ac_aggr;
  2211. if (ac_aggr.$3)
  2212. return 0;
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. if ac_fn_c_try_compile "$LINENO"; then :
  2218. eval "$4=yes"
  2219. else
  2220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2221. /* end confdefs.h. */
  2222. $5
  2223. int
  2224. main ()
  2225. {
  2226. static $2 ac_aggr;
  2227. if (sizeof ac_aggr.$3)
  2228. return 0;
  2229. ;
  2230. return 0;
  2231. }
  2232. _ACEOF
  2233. if ac_fn_c_try_compile "$LINENO"; then :
  2234. eval "$4=yes"
  2235. else
  2236. eval "$4=no"
  2237. fi
  2238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2239. fi
  2240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2241. fi
  2242. eval ac_res=\$$4
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2244. $as_echo "$ac_res" >&6; }
  2245. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2246. } # ac_fn_c_check_member
  2247. cat >config.log <<_ACEOF
  2248. This file contains any messages produced by compilers while
  2249. running configure, to aid debugging if configure makes a mistake.
  2250. It was created by $as_me, which was
  2251. generated by GNU Autoconf 2.69. Invocation command line was
  2252. $ $0 $@
  2253. _ACEOF
  2254. exec 5>>config.log
  2255. {
  2256. cat <<_ASUNAME
  2257. ## --------- ##
  2258. ## Platform. ##
  2259. ## --------- ##
  2260. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2261. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2262. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2263. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2264. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2265. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2266. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2267. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2268. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2269. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2270. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2271. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2272. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2273. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2274. _ASUNAME
  2275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2276. for as_dir in $PATH
  2277. do
  2278. IFS=$as_save_IFS
  2279. test -z "$as_dir" && as_dir=.
  2280. $as_echo "PATH: $as_dir"
  2281. done
  2282. IFS=$as_save_IFS
  2283. } >&5
  2284. cat >&5 <<_ACEOF
  2285. ## ----------- ##
  2286. ## Core tests. ##
  2287. ## ----------- ##
  2288. _ACEOF
  2289. # Keep a trace of the command line.
  2290. # Strip out --no-create and --no-recursion so they do not pile up.
  2291. # Strip out --silent because we don't want to record it for future runs.
  2292. # Also quote any args containing shell meta-characters.
  2293. # Make two passes to allow for proper duplicate-argument suppression.
  2294. ac_configure_args=
  2295. ac_configure_args0=
  2296. ac_configure_args1=
  2297. ac_must_keep_next=false
  2298. for ac_pass in 1 2
  2299. do
  2300. for ac_arg
  2301. do
  2302. case $ac_arg in
  2303. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2304. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2305. | -silent | --silent | --silen | --sile | --sil)
  2306. continue ;;
  2307. *\'*)
  2308. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2309. esac
  2310. case $ac_pass in
  2311. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2312. 2)
  2313. as_fn_append ac_configure_args1 " '$ac_arg'"
  2314. if test $ac_must_keep_next = true; then
  2315. ac_must_keep_next=false # Got value, back to normal.
  2316. else
  2317. case $ac_arg in
  2318. *=* | --config-cache | -C | -disable-* | --disable-* \
  2319. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2320. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2321. | -with-* | --with-* | -without-* | --without-* | --x)
  2322. case "$ac_configure_args0 " in
  2323. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2324. esac
  2325. ;;
  2326. -* ) ac_must_keep_next=true ;;
  2327. esac
  2328. fi
  2329. as_fn_append ac_configure_args " '$ac_arg'"
  2330. ;;
  2331. esac
  2332. done
  2333. done
  2334. { ac_configure_args0=; unset ac_configure_args0;}
  2335. { ac_configure_args1=; unset ac_configure_args1;}
  2336. # When interrupted or exit'd, cleanup temporary files, and complete
  2337. # config.log. We remove comments because anyway the quotes in there
  2338. # would cause problems or look ugly.
  2339. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2340. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2341. trap 'exit_status=$?
  2342. # Save into config.log some information that might help in debugging.
  2343. {
  2344. echo
  2345. $as_echo "## ---------------- ##
  2346. ## Cache variables. ##
  2347. ## ---------------- ##"
  2348. echo
  2349. # The following way of writing the cache mishandles newlines in values,
  2350. (
  2351. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2352. eval ac_val=\$$ac_var
  2353. case $ac_val in #(
  2354. *${as_nl}*)
  2355. case $ac_var in #(
  2356. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2357. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2358. esac
  2359. case $ac_var in #(
  2360. _ | IFS | as_nl) ;; #(
  2361. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2362. *) { eval $ac_var=; unset $ac_var;} ;;
  2363. esac ;;
  2364. esac
  2365. done
  2366. (set) 2>&1 |
  2367. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2368. *${as_nl}ac_space=\ *)
  2369. sed -n \
  2370. "s/'\''/'\''\\\\'\'''\''/g;
  2371. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2372. ;; #(
  2373. *)
  2374. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2375. ;;
  2376. esac |
  2377. sort
  2378. )
  2379. echo
  2380. $as_echo "## ----------------- ##
  2381. ## Output variables. ##
  2382. ## ----------------- ##"
  2383. echo
  2384. for ac_var in $ac_subst_vars
  2385. do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in
  2388. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2389. esac
  2390. $as_echo "$ac_var='\''$ac_val'\''"
  2391. done | sort
  2392. echo
  2393. if test -n "$ac_subst_files"; then
  2394. $as_echo "## ------------------- ##
  2395. ## File substitutions. ##
  2396. ## ------------------- ##"
  2397. echo
  2398. for ac_var in $ac_subst_files
  2399. do
  2400. eval ac_val=\$$ac_var
  2401. case $ac_val in
  2402. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2403. esac
  2404. $as_echo "$ac_var='\''$ac_val'\''"
  2405. done | sort
  2406. echo
  2407. fi
  2408. if test -s confdefs.h; then
  2409. $as_echo "## ----------- ##
  2410. ## confdefs.h. ##
  2411. ## ----------- ##"
  2412. echo
  2413. cat confdefs.h
  2414. echo
  2415. fi
  2416. test "$ac_signal" != 0 &&
  2417. $as_echo "$as_me: caught signal $ac_signal"
  2418. $as_echo "$as_me: exit $exit_status"
  2419. } >&5
  2420. rm -f core *.core core.conftest.* &&
  2421. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2422. exit $exit_status
  2423. ' 0
  2424. for ac_signal in 1 2 13 15; do
  2425. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2426. done
  2427. ac_signal=0
  2428. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2429. rm -f -r conftest* confdefs.h
  2430. $as_echo "/* confdefs.h */" > confdefs.h
  2431. # Predefined preprocessor variables.
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_NAME "$PACKAGE_NAME"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2437. _ACEOF
  2438. cat >>confdefs.h <<_ACEOF
  2439. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2440. _ACEOF
  2441. cat >>confdefs.h <<_ACEOF
  2442. #define PACKAGE_STRING "$PACKAGE_STRING"
  2443. _ACEOF
  2444. cat >>confdefs.h <<_ACEOF
  2445. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2446. _ACEOF
  2447. cat >>confdefs.h <<_ACEOF
  2448. #define PACKAGE_URL "$PACKAGE_URL"
  2449. _ACEOF
  2450. # Let the site file select an alternate cache file if it wants to.
  2451. # Prefer an explicitly selected file to automatically selected ones.
  2452. ac_site_file1=NONE
  2453. ac_site_file2=NONE
  2454. if test -n "$CONFIG_SITE"; then
  2455. # We do not want a PATH search for config.site.
  2456. case $CONFIG_SITE in #((
  2457. -*) ac_site_file1=./$CONFIG_SITE;;
  2458. */*) ac_site_file1=$CONFIG_SITE;;
  2459. *) ac_site_file1=./$CONFIG_SITE;;
  2460. esac
  2461. elif test "x$prefix" != xNONE; then
  2462. ac_site_file1=$prefix/share/config.site
  2463. ac_site_file2=$prefix/etc/config.site
  2464. else
  2465. ac_site_file1=$ac_default_prefix/share/config.site
  2466. ac_site_file2=$ac_default_prefix/etc/config.site
  2467. fi
  2468. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2469. do
  2470. test "x$ac_site_file" = xNONE && continue
  2471. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2473. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2474. sed 's/^/| /' "$ac_site_file" >&5
  2475. . "$ac_site_file" \
  2476. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. as_fn_error $? "failed to load site script $ac_site_file
  2479. See \`config.log' for more details" "$LINENO" 5; }
  2480. fi
  2481. done
  2482. if test -r "$cache_file"; then
  2483. # Some versions of bash will fail to source /dev/null (special files
  2484. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2485. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2487. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2488. case $cache_file in
  2489. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2490. *) . "./$cache_file";;
  2491. esac
  2492. fi
  2493. else
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2495. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2496. >$cache_file
  2497. fi
  2498. # Check that the precious variables saved in the cache have kept the same
  2499. # value.
  2500. ac_cache_corrupted=false
  2501. for ac_var in $ac_precious_vars; do
  2502. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2503. eval ac_new_set=\$ac_env_${ac_var}_set
  2504. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2505. eval ac_new_val=\$ac_env_${ac_var}_value
  2506. case $ac_old_set,$ac_new_set in
  2507. set,)
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2509. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2510. ac_cache_corrupted=: ;;
  2511. ,set)
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2514. ac_cache_corrupted=: ;;
  2515. ,);;
  2516. *)
  2517. if test "x$ac_old_val" != "x$ac_new_val"; then
  2518. # differences in whitespace do not lead to failure.
  2519. ac_old_val_w=`echo x $ac_old_val`
  2520. ac_new_val_w=`echo x $ac_new_val`
  2521. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2523. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2524. ac_cache_corrupted=:
  2525. else
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2527. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2528. eval $ac_var=\$ac_old_val
  2529. fi
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2531. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2533. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2534. fi;;
  2535. esac
  2536. # Pass precious variables to config.status.
  2537. if test "$ac_new_set" = set; then
  2538. case $ac_new_val in
  2539. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2540. *) ac_arg=$ac_var=$ac_new_val ;;
  2541. esac
  2542. case " $ac_configure_args " in
  2543. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2544. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2545. esac
  2546. fi
  2547. done
  2548. if $ac_cache_corrupted; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2552. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2553. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2554. fi
  2555. ## -------------------- ##
  2556. ## Main body of script. ##
  2557. ## -------------------- ##
  2558. ac_ext=c
  2559. ac_cpp='$CPP $CPPFLAGS'
  2560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2563. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2564. ac_aux_dir=
  2565. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2566. if test -f "$ac_dir/install-sh"; then
  2567. ac_aux_dir=$ac_dir
  2568. ac_install_sh="$ac_aux_dir/install-sh -c"
  2569. break
  2570. elif test -f "$ac_dir/install.sh"; then
  2571. ac_aux_dir=$ac_dir
  2572. ac_install_sh="$ac_aux_dir/install.sh -c"
  2573. break
  2574. elif test -f "$ac_dir/shtool"; then
  2575. ac_aux_dir=$ac_dir
  2576. ac_install_sh="$ac_aux_dir/shtool install -c"
  2577. break
  2578. fi
  2579. done
  2580. if test -z "$ac_aux_dir"; then
  2581. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2582. fi
  2583. # These three variables are undocumented and unsupported,
  2584. # and are intended to be withdrawn in a future Autoconf release.
  2585. # They can cause serious problems if a builder's source tree is in a directory
  2586. # whose full name contains unusual characters.
  2587. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2588. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2589. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2590. orig_CFLAGS="$CFLAGS"
  2591. #
  2592. # Making releases:
  2593. # Edit include/SDL_version.h and change the version, then:
  2594. # SDL_MICRO_VERSION += 1;
  2595. # SDL_INTERFACE_AGE += 1;
  2596. # SDL_BINARY_AGE += 1;
  2597. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2598. # if backwards compatibility has been broken,
  2599. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2600. #
  2601. SDL_MAJOR_VERSION=2
  2602. SDL_MINOR_VERSION=0
  2603. SDL_MICRO_VERSION=11
  2604. SDL_INTERFACE_AGE=0
  2605. SDL_BINARY_AGE=11
  2606. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2607. # libtool versioning
  2608. case `pwd` in
  2609. *\ * | *\ *)
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2611. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2612. esac
  2613. macro_version='2.4.2'
  2614. macro_revision='1.3337'
  2615. ltmain="$ac_aux_dir/ltmain.sh"
  2616. # Make sure we can run config.sub.
  2617. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2618. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2620. $as_echo_n "checking build system type... " >&6; }
  2621. if ${ac_cv_build+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. ac_build_alias=$build_alias
  2625. test "x$ac_build_alias" = x &&
  2626. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2627. test "x$ac_build_alias" = x &&
  2628. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2629. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2630. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2633. $as_echo "$ac_cv_build" >&6; }
  2634. case $ac_cv_build in
  2635. *-*-*) ;;
  2636. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2637. esac
  2638. build=$ac_cv_build
  2639. ac_save_IFS=$IFS; IFS='-'
  2640. set x $ac_cv_build
  2641. shift
  2642. build_cpu=$1
  2643. build_vendor=$2
  2644. shift; shift
  2645. # Remember, the first character of IFS is used to create $*,
  2646. # except with old shells:
  2647. build_os=$*
  2648. IFS=$ac_save_IFS
  2649. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2651. $as_echo_n "checking host system type... " >&6; }
  2652. if ${ac_cv_host+:} false; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. if test "x$host_alias" = x; then
  2656. ac_cv_host=$ac_cv_build
  2657. else
  2658. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2659. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2660. fi
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2663. $as_echo "$ac_cv_host" >&6; }
  2664. case $ac_cv_host in
  2665. *-*-*) ;;
  2666. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2667. esac
  2668. host=$ac_cv_host
  2669. ac_save_IFS=$IFS; IFS='-'
  2670. set x $ac_cv_host
  2671. shift
  2672. host_cpu=$1
  2673. host_vendor=$2
  2674. shift; shift
  2675. # Remember, the first character of IFS is used to create $*,
  2676. # except with old shells:
  2677. host_os=$*
  2678. IFS=$ac_save_IFS
  2679. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2680. # Backslashify metacharacters that are still active within
  2681. # double-quoted strings.
  2682. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2683. # Same as above, but do not quote variable references.
  2684. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2685. # Sed substitution to delay expansion of an escaped shell variable in a
  2686. # double_quote_subst'ed string.
  2687. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2688. # Sed substitution to delay expansion of an escaped single quote.
  2689. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2690. # Sed substitution to avoid accidental globbing in evaled expressions
  2691. no_glob_subst='s/\*/\\\*/g'
  2692. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2693. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2694. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2696. $as_echo_n "checking how to print strings... " >&6; }
  2697. # Test print first, because it will be a builtin if present.
  2698. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2699. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2700. ECHO='print -r --'
  2701. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2702. ECHO='printf %s\n'
  2703. else
  2704. # Use this function as a fallback that always works.
  2705. func_fallback_echo ()
  2706. {
  2707. eval 'cat <<_LTECHO_EOF
  2708. $1
  2709. _LTECHO_EOF'
  2710. }
  2711. ECHO='func_fallback_echo'
  2712. fi
  2713. # func_echo_all arg...
  2714. # Invoke $ECHO with all args, space-separated.
  2715. func_echo_all ()
  2716. {
  2717. $ECHO ""
  2718. }
  2719. case "$ECHO" in
  2720. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2721. $as_echo "printf" >&6; } ;;
  2722. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2723. $as_echo "print -r" >&6; } ;;
  2724. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2725. $as_echo "cat" >&6; } ;;
  2726. esac
  2727. ac_ext=c
  2728. ac_cpp='$CPP $CPPFLAGS'
  2729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2732. if test -n "$ac_tool_prefix"; then
  2733. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2734. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2736. $as_echo_n "checking for $ac_word... " >&6; }
  2737. if ${ac_cv_prog_CC+:} false; then :
  2738. $as_echo_n "(cached) " >&6
  2739. else
  2740. if test -n "$CC"; then
  2741. ac_cv_prog_CC="$CC" # Let the user override the test.
  2742. else
  2743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2744. for as_dir in $PATH
  2745. do
  2746. IFS=$as_save_IFS
  2747. test -z "$as_dir" && as_dir=.
  2748. for ac_exec_ext in '' $ac_executable_extensions; do
  2749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2750. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2752. break 2
  2753. fi
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. fi
  2758. fi
  2759. CC=$ac_cv_prog_CC
  2760. if test -n "$CC"; then
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2762. $as_echo "$CC" >&6; }
  2763. else
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2765. $as_echo "no" >&6; }
  2766. fi
  2767. fi
  2768. if test -z "$ac_cv_prog_CC"; then
  2769. ac_ct_CC=$CC
  2770. # Extract the first word of "gcc", so it can be a program name with args.
  2771. set dummy gcc; ac_word=$2
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2773. $as_echo_n "checking for $ac_word... " >&6; }
  2774. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2775. $as_echo_n "(cached) " >&6
  2776. else
  2777. if test -n "$ac_ct_CC"; then
  2778. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2779. else
  2780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2781. for as_dir in $PATH
  2782. do
  2783. IFS=$as_save_IFS
  2784. test -z "$as_dir" && as_dir=.
  2785. for ac_exec_ext in '' $ac_executable_extensions; do
  2786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2787. ac_cv_prog_ac_ct_CC="gcc"
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2789. break 2
  2790. fi
  2791. done
  2792. done
  2793. IFS=$as_save_IFS
  2794. fi
  2795. fi
  2796. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2797. if test -n "$ac_ct_CC"; then
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2799. $as_echo "$ac_ct_CC" >&6; }
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2802. $as_echo "no" >&6; }
  2803. fi
  2804. if test "x$ac_ct_CC" = x; then
  2805. CC=""
  2806. else
  2807. case $cross_compiling:$ac_tool_warned in
  2808. yes:)
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2811. ac_tool_warned=yes ;;
  2812. esac
  2813. CC=$ac_ct_CC
  2814. fi
  2815. else
  2816. CC="$ac_cv_prog_CC"
  2817. fi
  2818. if test -z "$CC"; then
  2819. if test -n "$ac_tool_prefix"; then
  2820. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2821. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2823. $as_echo_n "checking for $ac_word... " >&6; }
  2824. if ${ac_cv_prog_CC+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. if test -n "$CC"; then
  2828. ac_cv_prog_CC="$CC" # Let the user override the test.
  2829. else
  2830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2831. for as_dir in $PATH
  2832. do
  2833. IFS=$as_save_IFS
  2834. test -z "$as_dir" && as_dir=.
  2835. for ac_exec_ext in '' $ac_executable_extensions; do
  2836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2837. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2839. break 2
  2840. fi
  2841. done
  2842. done
  2843. IFS=$as_save_IFS
  2844. fi
  2845. fi
  2846. CC=$ac_cv_prog_CC
  2847. if test -n "$CC"; then
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2849. $as_echo "$CC" >&6; }
  2850. else
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2852. $as_echo "no" >&6; }
  2853. fi
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. # Extract the first word of "cc", so it can be a program name with args.
  2858. set dummy cc; ac_word=$2
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2860. $as_echo_n "checking for $ac_word... " >&6; }
  2861. if ${ac_cv_prog_CC+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if test -n "$CC"; then
  2865. ac_cv_prog_CC="$CC" # Let the user override the test.
  2866. else
  2867. ac_prog_rejected=no
  2868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2869. for as_dir in $PATH
  2870. do
  2871. IFS=$as_save_IFS
  2872. test -z "$as_dir" && as_dir=.
  2873. for ac_exec_ext in '' $ac_executable_extensions; do
  2874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2875. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2876. ac_prog_rejected=yes
  2877. continue
  2878. fi
  2879. ac_cv_prog_CC="cc"
  2880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2881. break 2
  2882. fi
  2883. done
  2884. done
  2885. IFS=$as_save_IFS
  2886. if test $ac_prog_rejected = yes; then
  2887. # We found a bogon in the path, so make sure we never use it.
  2888. set dummy $ac_cv_prog_CC
  2889. shift
  2890. if test $# != 0; then
  2891. # We chose a different compiler from the bogus one.
  2892. # However, it has the same basename, so the bogon will be chosen
  2893. # first if we set CC to just the basename; use the full file name.
  2894. shift
  2895. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2896. fi
  2897. fi
  2898. fi
  2899. fi
  2900. CC=$ac_cv_prog_CC
  2901. if test -n "$CC"; then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2903. $as_echo "$CC" >&6; }
  2904. else
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2906. $as_echo "no" >&6; }
  2907. fi
  2908. fi
  2909. if test -z "$CC"; then
  2910. if test -n "$ac_tool_prefix"; then
  2911. for ac_prog in cl.exe
  2912. do
  2913. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2914. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2916. $as_echo_n "checking for $ac_word... " >&6; }
  2917. if ${ac_cv_prog_CC+:} false; then :
  2918. $as_echo_n "(cached) " >&6
  2919. else
  2920. if test -n "$CC"; then
  2921. ac_cv_prog_CC="$CC" # Let the user override the test.
  2922. else
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926. IFS=$as_save_IFS
  2927. test -z "$as_dir" && as_dir=.
  2928. for ac_exec_ext in '' $ac_executable_extensions; do
  2929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2930. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2932. break 2
  2933. fi
  2934. done
  2935. done
  2936. IFS=$as_save_IFS
  2937. fi
  2938. fi
  2939. CC=$ac_cv_prog_CC
  2940. if test -n "$CC"; then
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2942. $as_echo "$CC" >&6; }
  2943. else
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2945. $as_echo "no" >&6; }
  2946. fi
  2947. test -n "$CC" && break
  2948. done
  2949. fi
  2950. if test -z "$CC"; then
  2951. ac_ct_CC=$CC
  2952. for ac_prog in cl.exe
  2953. do
  2954. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2955. set dummy $ac_prog; ac_word=$2
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2957. $as_echo_n "checking for $ac_word... " >&6; }
  2958. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. if test -n "$ac_ct_CC"; then
  2962. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2963. else
  2964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2965. for as_dir in $PATH
  2966. do
  2967. IFS=$as_save_IFS
  2968. test -z "$as_dir" && as_dir=.
  2969. for ac_exec_ext in '' $ac_executable_extensions; do
  2970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_prog"
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2973. break 2
  2974. fi
  2975. done
  2976. done
  2977. IFS=$as_save_IFS
  2978. fi
  2979. fi
  2980. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2981. if test -n "$ac_ct_CC"; then
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2983. $as_echo "$ac_ct_CC" >&6; }
  2984. else
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2986. $as_echo "no" >&6; }
  2987. fi
  2988. test -n "$ac_ct_CC" && break
  2989. done
  2990. if test "x$ac_ct_CC" = x; then
  2991. CC=""
  2992. else
  2993. case $cross_compiling:$ac_tool_warned in
  2994. yes:)
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2997. ac_tool_warned=yes ;;
  2998. esac
  2999. CC=$ac_ct_CC
  3000. fi
  3001. fi
  3002. fi
  3003. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3004. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3005. as_fn_error $? "no acceptable C compiler found in \$PATH
  3006. See \`config.log' for more details" "$LINENO" 5; }
  3007. # Provide some information about the compiler.
  3008. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3009. set X $ac_compile
  3010. ac_compiler=$2
  3011. for ac_option in --version -v -V -qversion; do
  3012. { { ac_try="$ac_compiler $ac_option >&5"
  3013. case "(($ac_try" in
  3014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3015. *) ac_try_echo=$ac_try;;
  3016. esac
  3017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3018. $as_echo "$ac_try_echo"; } >&5
  3019. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3020. ac_status=$?
  3021. if test -s conftest.err; then
  3022. sed '10a\
  3023. ... rest of stderr output deleted ...
  3024. 10q' conftest.err >conftest.er1
  3025. cat conftest.er1 >&5
  3026. fi
  3027. rm -f conftest.er1 conftest.err
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }
  3030. done
  3031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3032. /* end confdefs.h. */
  3033. int
  3034. main ()
  3035. {
  3036. ;
  3037. return 0;
  3038. }
  3039. _ACEOF
  3040. ac_clean_files_save=$ac_clean_files
  3041. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3042. # Try to create an executable without -o first, disregard a.out.
  3043. # It will help us diagnose broken compilers, and finding out an intuition
  3044. # of exeext.
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3046. $as_echo_n "checking whether the C compiler works... " >&6; }
  3047. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3048. # The possible output files:
  3049. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3050. ac_rmfiles=
  3051. for ac_file in $ac_files
  3052. do
  3053. case $ac_file in
  3054. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3055. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3056. esac
  3057. done
  3058. rm -f $ac_rmfiles
  3059. if { { ac_try="$ac_link_default"
  3060. case "(($ac_try" in
  3061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3062. *) ac_try_echo=$ac_try;;
  3063. esac
  3064. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3065. $as_echo "$ac_try_echo"; } >&5
  3066. (eval "$ac_link_default") 2>&5
  3067. ac_status=$?
  3068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3069. test $ac_status = 0; }; then :
  3070. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3071. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3072. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3073. # so that the user can short-circuit this test for compilers unknown to
  3074. # Autoconf.
  3075. for ac_file in $ac_files ''
  3076. do
  3077. test -f "$ac_file" || continue
  3078. case $ac_file in
  3079. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3080. ;;
  3081. [ab].out )
  3082. # We found the default executable, but exeext='' is most
  3083. # certainly right.
  3084. break;;
  3085. *.* )
  3086. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3087. then :; else
  3088. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3089. fi
  3090. # We set ac_cv_exeext here because the later test for it is not
  3091. # safe: cross compilers may not add the suffix if given an `-o'
  3092. # argument, so we may need to know it at that point already.
  3093. # Even if this section looks crufty: it has the advantage of
  3094. # actually working.
  3095. break;;
  3096. * )
  3097. break;;
  3098. esac
  3099. done
  3100. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3101. else
  3102. ac_file=''
  3103. fi
  3104. if test -z "$ac_file"; then :
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3106. $as_echo "no" >&6; }
  3107. $as_echo "$as_me: failed program was:" >&5
  3108. sed 's/^/| /' conftest.$ac_ext >&5
  3109. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3111. as_fn_error 77 "C compiler cannot create executables
  3112. See \`config.log' for more details" "$LINENO" 5; }
  3113. else
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3115. $as_echo "yes" >&6; }
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3118. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3120. $as_echo "$ac_file" >&6; }
  3121. ac_exeext=$ac_cv_exeext
  3122. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3123. ac_clean_files=$ac_clean_files_save
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3125. $as_echo_n "checking for suffix of executables... " >&6; }
  3126. if { { ac_try="$ac_link"
  3127. case "(($ac_try" in
  3128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3129. *) ac_try_echo=$ac_try;;
  3130. esac
  3131. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3132. $as_echo "$ac_try_echo"; } >&5
  3133. (eval "$ac_link") 2>&5
  3134. ac_status=$?
  3135. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3136. test $ac_status = 0; }; then :
  3137. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3138. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3139. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3140. # `rm'.
  3141. for ac_file in conftest.exe conftest conftest.*; do
  3142. test -f "$ac_file" || continue
  3143. case $ac_file in
  3144. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3145. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3146. break;;
  3147. * ) break;;
  3148. esac
  3149. done
  3150. else
  3151. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3152. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3153. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3154. See \`config.log' for more details" "$LINENO" 5; }
  3155. fi
  3156. rm -f conftest conftest$ac_cv_exeext
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3158. $as_echo "$ac_cv_exeext" >&6; }
  3159. rm -f conftest.$ac_ext
  3160. EXEEXT=$ac_cv_exeext
  3161. ac_exeext=$EXEEXT
  3162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3163. /* end confdefs.h. */
  3164. #include <stdio.h>
  3165. int
  3166. main ()
  3167. {
  3168. FILE *f = fopen ("conftest.out", "w");
  3169. return ferror (f) || fclose (f) != 0;
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. ac_clean_files="$ac_clean_files conftest.out"
  3175. # Check that the compiler produces executables we can run. If not, either
  3176. # the compiler is broken, or we cross compile.
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3178. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3179. if test "$cross_compiling" != yes; then
  3180. { { ac_try="$ac_link"
  3181. case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3186. $as_echo "$ac_try_echo"; } >&5
  3187. (eval "$ac_link") 2>&5
  3188. ac_status=$?
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }
  3191. if { ac_try='./conftest$ac_cv_exeext'
  3192. { { case "(($ac_try" in
  3193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194. *) ac_try_echo=$ac_try;;
  3195. esac
  3196. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3197. $as_echo "$ac_try_echo"; } >&5
  3198. (eval "$ac_try") 2>&5
  3199. ac_status=$?
  3200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3201. test $ac_status = 0; }; }; then
  3202. cross_compiling=no
  3203. else
  3204. if test "$cross_compiling" = maybe; then
  3205. cross_compiling=yes
  3206. else
  3207. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3209. as_fn_error $? "cannot run C compiled programs.
  3210. If you meant to cross compile, use \`--host'.
  3211. See \`config.log' for more details" "$LINENO" 5; }
  3212. fi
  3213. fi
  3214. fi
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3216. $as_echo "$cross_compiling" >&6; }
  3217. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3218. ac_clean_files=$ac_clean_files_save
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3220. $as_echo_n "checking for suffix of object files... " >&6; }
  3221. if ${ac_cv_objext+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. rm -f conftest.o conftest.obj
  3234. if { { ac_try="$ac_compile"
  3235. case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_compile") 2>&5
  3242. ac_status=$?
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3244. test $ac_status = 0; }; then :
  3245. for ac_file in conftest.o conftest.obj conftest.*; do
  3246. test -f "$ac_file" || continue;
  3247. case $ac_file in
  3248. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3249. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3250. break;;
  3251. esac
  3252. done
  3253. else
  3254. $as_echo "$as_me: failed program was:" >&5
  3255. sed 's/^/| /' conftest.$ac_ext >&5
  3256. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3257. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3258. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3259. See \`config.log' for more details" "$LINENO" 5; }
  3260. fi
  3261. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3264. $as_echo "$ac_cv_objext" >&6; }
  3265. OBJEXT=$ac_cv_objext
  3266. ac_objext=$OBJEXT
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3268. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3269. if ${ac_cv_c_compiler_gnu+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. int
  3275. main ()
  3276. {
  3277. #ifndef __GNUC__
  3278. choke me
  3279. #endif
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. if ac_fn_c_try_compile "$LINENO"; then :
  3285. ac_compiler_gnu=yes
  3286. else
  3287. ac_compiler_gnu=no
  3288. fi
  3289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3290. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3291. fi
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3293. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3294. if test $ac_compiler_gnu = yes; then
  3295. GCC=yes
  3296. else
  3297. GCC=
  3298. fi
  3299. ac_test_CFLAGS=${CFLAGS+set}
  3300. ac_save_CFLAGS=$CFLAGS
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3302. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3303. if ${ac_cv_prog_cc_g+:} false; then :
  3304. $as_echo_n "(cached) " >&6
  3305. else
  3306. ac_save_c_werror_flag=$ac_c_werror_flag
  3307. ac_c_werror_flag=yes
  3308. ac_cv_prog_cc_g=no
  3309. CFLAGS="-g"
  3310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. if ac_fn_c_try_compile "$LINENO"; then :
  3320. ac_cv_prog_cc_g=yes
  3321. else
  3322. CFLAGS=""
  3323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end confdefs.h. */
  3325. int
  3326. main ()
  3327. {
  3328. ;
  3329. return 0;
  3330. }
  3331. _ACEOF
  3332. if ac_fn_c_try_compile "$LINENO"; then :
  3333. else
  3334. ac_c_werror_flag=$ac_save_c_werror_flag
  3335. CFLAGS="-g"
  3336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3337. /* end confdefs.h. */
  3338. int
  3339. main ()
  3340. {
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. if ac_fn_c_try_compile "$LINENO"; then :
  3346. ac_cv_prog_cc_g=yes
  3347. fi
  3348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3349. fi
  3350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3351. fi
  3352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. ac_c_werror_flag=$ac_save_c_werror_flag
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3356. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3357. if test "$ac_test_CFLAGS" = set; then
  3358. CFLAGS=$ac_save_CFLAGS
  3359. elif test $ac_cv_prog_cc_g = yes; then
  3360. if test "$GCC" = yes; then
  3361. CFLAGS="-g -O2"
  3362. else
  3363. CFLAGS="-g"
  3364. fi
  3365. else
  3366. if test "$GCC" = yes; then
  3367. CFLAGS="-O2"
  3368. else
  3369. CFLAGS=
  3370. fi
  3371. fi
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3373. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3374. if ${ac_cv_prog_cc_c89+:} false; then :
  3375. $as_echo_n "(cached) " >&6
  3376. else
  3377. ac_cv_prog_cc_c89=no
  3378. ac_save_CC=$CC
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. #include <stdarg.h>
  3382. #include <stdio.h>
  3383. struct stat;
  3384. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3385. struct buf { int x; };
  3386. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3387. static char *e (p, i)
  3388. char **p;
  3389. int i;
  3390. {
  3391. return p[i];
  3392. }
  3393. static char *f (char * (*g) (char **, int), char **p, ...)
  3394. {
  3395. char *s;
  3396. va_list v;
  3397. va_start (v,p);
  3398. s = g (p, va_arg (v,int));
  3399. va_end (v);
  3400. return s;
  3401. }
  3402. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3403. function prototypes and stuff, but not '\xHH' hex character constants.
  3404. These don't provoke an error unfortunately, instead are silently treated
  3405. as 'x'. The following induces an error, until -std is added to get
  3406. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3407. array size at least. It's necessary to write '\x00'==0 to get something
  3408. that's true only with -std. */
  3409. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3410. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3411. inside strings and character constants. */
  3412. #define FOO(x) 'x'
  3413. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3414. int test (int i, double x);
  3415. struct s1 {int (*f) (int a);};
  3416. struct s2 {int (*f) (double a);};
  3417. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3418. int argc;
  3419. char **argv;
  3420. int
  3421. main ()
  3422. {
  3423. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3429. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3430. do
  3431. CC="$ac_save_CC $ac_arg"
  3432. if ac_fn_c_try_compile "$LINENO"; then :
  3433. ac_cv_prog_cc_c89=$ac_arg
  3434. fi
  3435. rm -f core conftest.err conftest.$ac_objext
  3436. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3437. done
  3438. rm -f conftest.$ac_ext
  3439. CC=$ac_save_CC
  3440. fi
  3441. # AC_CACHE_VAL
  3442. case "x$ac_cv_prog_cc_c89" in
  3443. x)
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3445. $as_echo "none needed" >&6; } ;;
  3446. xno)
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3448. $as_echo "unsupported" >&6; } ;;
  3449. *)
  3450. CC="$CC $ac_cv_prog_cc_c89"
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3452. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3453. esac
  3454. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3455. fi
  3456. ac_ext=c
  3457. ac_cpp='$CPP $CPPFLAGS'
  3458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3462. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3463. if ${ac_cv_path_SED+:} false; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3467. for ac_i in 1 2 3 4 5 6 7; do
  3468. ac_script="$ac_script$as_nl$ac_script"
  3469. done
  3470. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3471. { ac_script=; unset ac_script;}
  3472. if test -z "$SED"; then
  3473. ac_path_SED_found=false
  3474. # Loop through the user's path and test for each of PROGNAME-LIST
  3475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3476. for as_dir in $PATH
  3477. do
  3478. IFS=$as_save_IFS
  3479. test -z "$as_dir" && as_dir=.
  3480. for ac_prog in sed gsed; do
  3481. for ac_exec_ext in '' $ac_executable_extensions; do
  3482. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3483. as_fn_executable_p "$ac_path_SED" || continue
  3484. # Check for GNU ac_path_SED and select it if it is found.
  3485. # Check for GNU $ac_path_SED
  3486. case `"$ac_path_SED" --version 2>&1` in
  3487. *GNU*)
  3488. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3489. *)
  3490. ac_count=0
  3491. $as_echo_n 0123456789 >"conftest.in"
  3492. while :
  3493. do
  3494. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3495. mv "conftest.tmp" "conftest.in"
  3496. cp "conftest.in" "conftest.nl"
  3497. $as_echo '' >> "conftest.nl"
  3498. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3499. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3500. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3501. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3502. # Best one so far, save it but keep looking for a better one
  3503. ac_cv_path_SED="$ac_path_SED"
  3504. ac_path_SED_max=$ac_count
  3505. fi
  3506. # 10*(2^10) chars as input seems more than enough
  3507. test $ac_count -gt 10 && break
  3508. done
  3509. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3510. esac
  3511. $ac_path_SED_found && break 3
  3512. done
  3513. done
  3514. done
  3515. IFS=$as_save_IFS
  3516. if test -z "$ac_cv_path_SED"; then
  3517. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3518. fi
  3519. else
  3520. ac_cv_path_SED=$SED
  3521. fi
  3522. fi
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3524. $as_echo "$ac_cv_path_SED" >&6; }
  3525. SED="$ac_cv_path_SED"
  3526. rm -f conftest.sed
  3527. test -z "$SED" && SED=sed
  3528. Xsed="$SED -e 1s/^X//"
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3530. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3531. if ${ac_cv_path_GREP+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -z "$GREP"; then
  3535. ac_path_GREP_found=false
  3536. # Loop through the user's path and test for each of PROGNAME-LIST
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_prog in grep ggrep; do
  3543. for ac_exec_ext in '' $ac_executable_extensions; do
  3544. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3545. as_fn_executable_p "$ac_path_GREP" || continue
  3546. # Check for GNU ac_path_GREP and select it if it is found.
  3547. # Check for GNU $ac_path_GREP
  3548. case `"$ac_path_GREP" --version 2>&1` in
  3549. *GNU*)
  3550. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3551. *)
  3552. ac_count=0
  3553. $as_echo_n 0123456789 >"conftest.in"
  3554. while :
  3555. do
  3556. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3557. mv "conftest.tmp" "conftest.in"
  3558. cp "conftest.in" "conftest.nl"
  3559. $as_echo 'GREP' >> "conftest.nl"
  3560. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3561. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3562. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3563. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3564. # Best one so far, save it but keep looking for a better one
  3565. ac_cv_path_GREP="$ac_path_GREP"
  3566. ac_path_GREP_max=$ac_count
  3567. fi
  3568. # 10*(2^10) chars as input seems more than enough
  3569. test $ac_count -gt 10 && break
  3570. done
  3571. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3572. esac
  3573. $ac_path_GREP_found && break 3
  3574. done
  3575. done
  3576. done
  3577. IFS=$as_save_IFS
  3578. if test -z "$ac_cv_path_GREP"; then
  3579. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3580. fi
  3581. else
  3582. ac_cv_path_GREP=$GREP
  3583. fi
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3586. $as_echo "$ac_cv_path_GREP" >&6; }
  3587. GREP="$ac_cv_path_GREP"
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3589. $as_echo_n "checking for egrep... " >&6; }
  3590. if ${ac_cv_path_EGREP+:} false; then :
  3591. $as_echo_n "(cached) " >&6
  3592. else
  3593. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3594. then ac_cv_path_EGREP="$GREP -E"
  3595. else
  3596. if test -z "$EGREP"; then
  3597. ac_path_EGREP_found=false
  3598. # Loop through the user's path and test for each of PROGNAME-LIST
  3599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3600. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3601. do
  3602. IFS=$as_save_IFS
  3603. test -z "$as_dir" && as_dir=.
  3604. for ac_prog in egrep; do
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3607. as_fn_executable_p "$ac_path_EGREP" || continue
  3608. # Check for GNU ac_path_EGREP and select it if it is found.
  3609. # Check for GNU $ac_path_EGREP
  3610. case `"$ac_path_EGREP" --version 2>&1` in
  3611. *GNU*)
  3612. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3613. *)
  3614. ac_count=0
  3615. $as_echo_n 0123456789 >"conftest.in"
  3616. while :
  3617. do
  3618. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3619. mv "conftest.tmp" "conftest.in"
  3620. cp "conftest.in" "conftest.nl"
  3621. $as_echo 'EGREP' >> "conftest.nl"
  3622. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3623. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3624. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3625. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3626. # Best one so far, save it but keep looking for a better one
  3627. ac_cv_path_EGREP="$ac_path_EGREP"
  3628. ac_path_EGREP_max=$ac_count
  3629. fi
  3630. # 10*(2^10) chars as input seems more than enough
  3631. test $ac_count -gt 10 && break
  3632. done
  3633. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3634. esac
  3635. $ac_path_EGREP_found && break 3
  3636. done
  3637. done
  3638. done
  3639. IFS=$as_save_IFS
  3640. if test -z "$ac_cv_path_EGREP"; then
  3641. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3642. fi
  3643. else
  3644. ac_cv_path_EGREP=$EGREP
  3645. fi
  3646. fi
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3649. $as_echo "$ac_cv_path_EGREP" >&6; }
  3650. EGREP="$ac_cv_path_EGREP"
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3652. $as_echo_n "checking for fgrep... " >&6; }
  3653. if ${ac_cv_path_FGREP+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3657. then ac_cv_path_FGREP="$GREP -F"
  3658. else
  3659. if test -z "$FGREP"; then
  3660. ac_path_FGREP_found=false
  3661. # Loop through the user's path and test for each of PROGNAME-LIST
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_prog in fgrep; do
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3670. as_fn_executable_p "$ac_path_FGREP" || continue
  3671. # Check for GNU ac_path_FGREP and select it if it is found.
  3672. # Check for GNU $ac_path_FGREP
  3673. case `"$ac_path_FGREP" --version 2>&1` in
  3674. *GNU*)
  3675. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3676. *)
  3677. ac_count=0
  3678. $as_echo_n 0123456789 >"conftest.in"
  3679. while :
  3680. do
  3681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3682. mv "conftest.tmp" "conftest.in"
  3683. cp "conftest.in" "conftest.nl"
  3684. $as_echo 'FGREP' >> "conftest.nl"
  3685. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3687. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3688. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3689. # Best one so far, save it but keep looking for a better one
  3690. ac_cv_path_FGREP="$ac_path_FGREP"
  3691. ac_path_FGREP_max=$ac_count
  3692. fi
  3693. # 10*(2^10) chars as input seems more than enough
  3694. test $ac_count -gt 10 && break
  3695. done
  3696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3697. esac
  3698. $ac_path_FGREP_found && break 3
  3699. done
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. if test -z "$ac_cv_path_FGREP"; then
  3704. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3705. fi
  3706. else
  3707. ac_cv_path_FGREP=$FGREP
  3708. fi
  3709. fi
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3712. $as_echo "$ac_cv_path_FGREP" >&6; }
  3713. FGREP="$ac_cv_path_FGREP"
  3714. test -z "$GREP" && GREP=grep
  3715. # Check whether --with-gnu-ld was given.
  3716. if test "${with_gnu_ld+set}" = set; then :
  3717. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3718. else
  3719. with_gnu_ld=no
  3720. fi
  3721. ac_prog=ld
  3722. if test "$GCC" = yes; then
  3723. # Check if gcc -print-prog-name=ld gives a path.
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3725. $as_echo_n "checking for ld used by $CC... " >&6; }
  3726. case $host in
  3727. *-*-mingw*)
  3728. # gcc leaves a trailing carriage return which upsets mingw
  3729. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3730. *)
  3731. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3732. esac
  3733. case $ac_prog in
  3734. # Accept absolute paths.
  3735. [\\/]* | ?:[\\/]*)
  3736. re_direlt='/[^/][^/]*/\.\./'
  3737. # Canonicalize the pathname of ld
  3738. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3739. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3740. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3741. done
  3742. test -z "$LD" && LD="$ac_prog"
  3743. ;;
  3744. "")
  3745. # If it fails, then pretend we aren't using GCC.
  3746. ac_prog=ld
  3747. ;;
  3748. *)
  3749. # If it is relative, then search for the first ld in PATH.
  3750. with_gnu_ld=unknown
  3751. ;;
  3752. esac
  3753. elif test "$with_gnu_ld" = yes; then
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3755. $as_echo_n "checking for GNU ld... " >&6; }
  3756. else
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3758. $as_echo_n "checking for non-GNU ld... " >&6; }
  3759. fi
  3760. if ${lt_cv_path_LD+:} false; then :
  3761. $as_echo_n "(cached) " >&6
  3762. else
  3763. if test -z "$LD"; then
  3764. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3765. for ac_dir in $PATH; do
  3766. IFS="$lt_save_ifs"
  3767. test -z "$ac_dir" && ac_dir=.
  3768. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3769. lt_cv_path_LD="$ac_dir/$ac_prog"
  3770. # Check to see if the program is GNU ld. I'd rather use --version,
  3771. # but apparently some variants of GNU ld only accept -v.
  3772. # Break only if it was the GNU/non-GNU ld that we prefer.
  3773. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3774. *GNU* | *'with BFD'*)
  3775. test "$with_gnu_ld" != no && break
  3776. ;;
  3777. *)
  3778. test "$with_gnu_ld" != yes && break
  3779. ;;
  3780. esac
  3781. fi
  3782. done
  3783. IFS="$lt_save_ifs"
  3784. else
  3785. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3786. fi
  3787. fi
  3788. LD="$lt_cv_path_LD"
  3789. if test -n "$LD"; then
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3791. $as_echo "$LD" >&6; }
  3792. else
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3794. $as_echo "no" >&6; }
  3795. fi
  3796. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3798. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3799. if ${lt_cv_prog_gnu_ld+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3803. case `$LD -v 2>&1 </dev/null` in
  3804. *GNU* | *'with BFD'*)
  3805. lt_cv_prog_gnu_ld=yes
  3806. ;;
  3807. *)
  3808. lt_cv_prog_gnu_ld=no
  3809. ;;
  3810. esac
  3811. fi
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3813. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3814. with_gnu_ld=$lt_cv_prog_gnu_ld
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3816. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3817. if ${lt_cv_path_NM+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$NM"; then
  3821. # Let the user override the test.
  3822. lt_cv_path_NM="$NM"
  3823. else
  3824. lt_nm_to_check="${ac_tool_prefix}nm"
  3825. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3826. lt_nm_to_check="$lt_nm_to_check nm"
  3827. fi
  3828. for lt_tmp_nm in $lt_nm_to_check; do
  3829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3830. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3831. IFS="$lt_save_ifs"
  3832. test -z "$ac_dir" && ac_dir=.
  3833. tmp_nm="$ac_dir/$lt_tmp_nm"
  3834. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3835. # Check to see if the nm accepts a BSD-compat flag.
  3836. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3837. # nm: unknown option "B" ignored
  3838. # Tru64's nm complains that /dev/null is an invalid object file
  3839. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3840. */dev/null* | *'Invalid file or object type'*)
  3841. lt_cv_path_NM="$tmp_nm -B"
  3842. break
  3843. ;;
  3844. *)
  3845. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3846. */dev/null*)
  3847. lt_cv_path_NM="$tmp_nm -p"
  3848. break
  3849. ;;
  3850. *)
  3851. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3852. continue # so that we can try to find one that supports BSD flags
  3853. ;;
  3854. esac
  3855. ;;
  3856. esac
  3857. fi
  3858. done
  3859. IFS="$lt_save_ifs"
  3860. done
  3861. : ${lt_cv_path_NM=no}
  3862. fi
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3865. $as_echo "$lt_cv_path_NM" >&6; }
  3866. if test "$lt_cv_path_NM" != "no"; then
  3867. NM="$lt_cv_path_NM"
  3868. else
  3869. # Didn't find any BSD compatible name lister, look for dumpbin.
  3870. if test -n "$DUMPBIN"; then :
  3871. # Let the user override the test.
  3872. else
  3873. if test -n "$ac_tool_prefix"; then
  3874. for ac_prog in dumpbin "link -dump"
  3875. do
  3876. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3877. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3879. $as_echo_n "checking for $ac_word... " >&6; }
  3880. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if test -n "$DUMPBIN"; then
  3884. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3885. else
  3886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3887. for as_dir in $PATH
  3888. do
  3889. IFS=$as_save_IFS
  3890. test -z "$as_dir" && as_dir=.
  3891. for ac_exec_ext in '' $ac_executable_extensions; do
  3892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3893. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3895. break 2
  3896. fi
  3897. done
  3898. done
  3899. IFS=$as_save_IFS
  3900. fi
  3901. fi
  3902. DUMPBIN=$ac_cv_prog_DUMPBIN
  3903. if test -n "$DUMPBIN"; then
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3905. $as_echo "$DUMPBIN" >&6; }
  3906. else
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3908. $as_echo "no" >&6; }
  3909. fi
  3910. test -n "$DUMPBIN" && break
  3911. done
  3912. fi
  3913. if test -z "$DUMPBIN"; then
  3914. ac_ct_DUMPBIN=$DUMPBIN
  3915. for ac_prog in dumpbin "link -dump"
  3916. do
  3917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3918. set dummy $ac_prog; ac_word=$2
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3920. $as_echo_n "checking for $ac_word... " >&6; }
  3921. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3922. $as_echo_n "(cached) " >&6
  3923. else
  3924. if test -n "$ac_ct_DUMPBIN"; then
  3925. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3926. else
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3934. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. fi
  3942. fi
  3943. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3944. if test -n "$ac_ct_DUMPBIN"; then
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3946. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3947. else
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3949. $as_echo "no" >&6; }
  3950. fi
  3951. test -n "$ac_ct_DUMPBIN" && break
  3952. done
  3953. if test "x$ac_ct_DUMPBIN" = x; then
  3954. DUMPBIN=":"
  3955. else
  3956. case $cross_compiling:$ac_tool_warned in
  3957. yes:)
  3958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3960. ac_tool_warned=yes ;;
  3961. esac
  3962. DUMPBIN=$ac_ct_DUMPBIN
  3963. fi
  3964. fi
  3965. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3966. *COFF*)
  3967. DUMPBIN="$DUMPBIN -symbols"
  3968. ;;
  3969. *)
  3970. DUMPBIN=:
  3971. ;;
  3972. esac
  3973. fi
  3974. if test "$DUMPBIN" != ":"; then
  3975. NM="$DUMPBIN"
  3976. fi
  3977. fi
  3978. test -z "$NM" && NM=nm
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3980. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3981. if ${lt_cv_nm_interface+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. lt_cv_nm_interface="BSD nm"
  3985. echo "int some_variable = 0;" > conftest.$ac_ext
  3986. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3987. (eval "$ac_compile" 2>conftest.err)
  3988. cat conftest.err >&5
  3989. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3990. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3991. cat conftest.err >&5
  3992. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3993. cat conftest.out >&5
  3994. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3995. lt_cv_nm_interface="MS dumpbin"
  3996. fi
  3997. rm -f conftest*
  3998. fi
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4000. $as_echo "$lt_cv_nm_interface" >&6; }
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4002. $as_echo_n "checking whether ln -s works... " >&6; }
  4003. LN_S=$as_ln_s
  4004. if test "$LN_S" = "ln -s"; then
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4006. $as_echo "yes" >&6; }
  4007. else
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4009. $as_echo "no, using $LN_S" >&6; }
  4010. fi
  4011. # find the maximum length of command line arguments
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4013. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4014. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. i=0
  4018. teststring="ABCD"
  4019. case $build_os in
  4020. msdosdjgpp*)
  4021. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4022. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4023. # during glob expansion). Even if it were fixed, the result of this
  4024. # check would be larger than it should be.
  4025. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4026. ;;
  4027. gnu*)
  4028. # Under GNU Hurd, this test is not required because there is
  4029. # no limit to the length of command line arguments.
  4030. # Libtool will interpret -1 as no limit whatsoever
  4031. lt_cv_sys_max_cmd_len=-1;
  4032. ;;
  4033. cygwin* | mingw* | cegcc*)
  4034. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4035. # about 5 minutes as the teststring grows exponentially.
  4036. # Worse, since 9x/ME are not pre-emptively multitasking,
  4037. # you end up with a "frozen" computer, even though with patience
  4038. # the test eventually succeeds (with a max line length of 256k).
  4039. # Instead, let's just punt: use the minimum linelength reported by
  4040. # all of the supported platforms: 8192 (on NT/2K/XP).
  4041. lt_cv_sys_max_cmd_len=8192;
  4042. ;;
  4043. mint*)
  4044. # On MiNT this can take a long time and run out of memory.
  4045. lt_cv_sys_max_cmd_len=8192;
  4046. ;;
  4047. amigaos*)
  4048. # On AmigaOS with pdksh, this test takes hours, literally.
  4049. # So we just punt and use a minimum line length of 8192.
  4050. lt_cv_sys_max_cmd_len=8192;
  4051. ;;
  4052. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4053. # This has been around since 386BSD, at least. Likely further.
  4054. if test -x /sbin/sysctl; then
  4055. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4056. elif test -x /usr/sbin/sysctl; then
  4057. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4058. else
  4059. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4060. fi
  4061. # And add a safety zone
  4062. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4063. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4064. ;;
  4065. interix*)
  4066. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4067. lt_cv_sys_max_cmd_len=196608
  4068. ;;
  4069. os2*)
  4070. # The test takes a long time on OS/2.
  4071. lt_cv_sys_max_cmd_len=8192
  4072. ;;
  4073. osf*)
  4074. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4075. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4076. # nice to cause kernel panics so lets avoid the loop below.
  4077. # First set a reasonable default.
  4078. lt_cv_sys_max_cmd_len=16384
  4079. #
  4080. if test -x /sbin/sysconfig; then
  4081. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4082. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4083. esac
  4084. fi
  4085. ;;
  4086. sco3.2v5*)
  4087. lt_cv_sys_max_cmd_len=102400
  4088. ;;
  4089. sysv5* | sco5v6* | sysv4.2uw2*)
  4090. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4091. if test -n "$kargmax"; then
  4092. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4093. else
  4094. lt_cv_sys_max_cmd_len=32768
  4095. fi
  4096. ;;
  4097. *)
  4098. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4099. if test -n "$lt_cv_sys_max_cmd_len"; then
  4100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4102. else
  4103. # Make teststring a little bigger before we do anything with it.
  4104. # a 1K string should be a reasonable start.
  4105. for i in 1 2 3 4 5 6 7 8 ; do
  4106. teststring=$teststring$teststring
  4107. done
  4108. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4109. # If test is not a shell built-in, we'll probably end up computing a
  4110. # maximum length that is only half of the actual maximum length, but
  4111. # we can't tell.
  4112. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4113. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4114. test $i != 17 # 1/2 MB should be enough
  4115. do
  4116. i=`expr $i + 1`
  4117. teststring=$teststring$teststring
  4118. done
  4119. # Only check the string length outside the loop.
  4120. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4121. teststring=
  4122. # Add a significant safety factor because C++ compilers can tack on
  4123. # massive amounts of additional arguments before passing them to the
  4124. # linker. It appears as though 1/2 is a usable value.
  4125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4126. fi
  4127. ;;
  4128. esac
  4129. fi
  4130. if test -n $lt_cv_sys_max_cmd_len ; then
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4132. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4133. else
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4135. $as_echo "none" >&6; }
  4136. fi
  4137. max_cmd_len=$lt_cv_sys_max_cmd_len
  4138. : ${CP="cp -f"}
  4139. : ${MV="mv -f"}
  4140. : ${RM="rm -f"}
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4142. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4143. # Try some XSI features
  4144. xsi_shell=no
  4145. ( _lt_dummy="a/b/c"
  4146. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4147. = c,a/b,b/c, \
  4148. && eval 'test $(( 1 + 1 )) -eq 2 \
  4149. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4150. && xsi_shell=yes
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4152. $as_echo "$xsi_shell" >&6; }
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4154. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4155. lt_shell_append=no
  4156. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4157. >/dev/null 2>&1 \
  4158. && lt_shell_append=yes
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4160. $as_echo "$lt_shell_append" >&6; }
  4161. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4162. lt_unset=unset
  4163. else
  4164. lt_unset=false
  4165. fi
  4166. # test EBCDIC or ASCII
  4167. case `echo X|tr X '\101'` in
  4168. A) # ASCII based system
  4169. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4170. lt_SP2NL='tr \040 \012'
  4171. lt_NL2SP='tr \015\012 \040\040'
  4172. ;;
  4173. *) # EBCDIC based system
  4174. lt_SP2NL='tr \100 \n'
  4175. lt_NL2SP='tr \r\n \100\100'
  4176. ;;
  4177. esac
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4179. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4180. if ${lt_cv_to_host_file_cmd+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. case $host in
  4184. *-*-mingw* )
  4185. case $build in
  4186. *-*-mingw* ) # actually msys
  4187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4188. ;;
  4189. *-*-cygwin* )
  4190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4191. ;;
  4192. * ) # otherwise, assume *nix
  4193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4194. ;;
  4195. esac
  4196. ;;
  4197. *-*-cygwin* )
  4198. case $build in
  4199. *-*-mingw* ) # actually msys
  4200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4201. ;;
  4202. *-*-cygwin* )
  4203. lt_cv_to_host_file_cmd=func_convert_file_noop
  4204. ;;
  4205. * ) # otherwise, assume *nix
  4206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4207. ;;
  4208. esac
  4209. ;;
  4210. * ) # unhandled hosts (and "normal" native builds)
  4211. lt_cv_to_host_file_cmd=func_convert_file_noop
  4212. ;;
  4213. esac
  4214. fi
  4215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4217. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4219. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4220. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. #assume ordinary cross tools, or native build.
  4224. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4225. case $host in
  4226. *-*-mingw* )
  4227. case $build in
  4228. *-*-mingw* ) # actually msys
  4229. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4230. ;;
  4231. esac
  4232. ;;
  4233. esac
  4234. fi
  4235. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4237. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4239. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4240. if ${lt_cv_ld_reload_flag+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. lt_cv_ld_reload_flag='-r'
  4244. fi
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4246. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4247. reload_flag=$lt_cv_ld_reload_flag
  4248. case $reload_flag in
  4249. "" | " "*) ;;
  4250. *) reload_flag=" $reload_flag" ;;
  4251. esac
  4252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4253. case $host_os in
  4254. cygwin* | mingw* | pw32* | cegcc*)
  4255. if test "$GCC" != yes; then
  4256. reload_cmds=false
  4257. fi
  4258. ;;
  4259. darwin*)
  4260. if test "$GCC" = yes; then
  4261. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4262. else
  4263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4264. fi
  4265. ;;
  4266. esac
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$OBJDUMP"; then
  4276. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. OBJDUMP=$ac_cv_prog_OBJDUMP
  4295. if test -n "$OBJDUMP"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4297. $as_echo "$OBJDUMP" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_OBJDUMP"; then
  4304. ac_ct_OBJDUMP=$OBJDUMP
  4305. # Extract the first word of "objdump", so it can be a program name with args.
  4306. set dummy objdump; ac_word=$2
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_OBJDUMP"; then
  4313. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4322. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4332. if test -n "$ac_ct_OBJDUMP"; then
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4334. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4335. else
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_OBJDUMP" = x; then
  4340. OBJDUMP="false"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. OBJDUMP=$ac_ct_OBJDUMP
  4349. fi
  4350. else
  4351. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4352. fi
  4353. test -z "$OBJDUMP" && OBJDUMP=objdump
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4355. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4356. if ${lt_cv_deplibs_check_method+:} false; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4360. lt_cv_file_magic_test_file=
  4361. lt_cv_deplibs_check_method='unknown'
  4362. # Need to set the preceding variable on all platforms that support
  4363. # interlibrary dependencies.
  4364. # 'none' -- dependencies not supported.
  4365. # `unknown' -- same as none, but documents that we really don't know.
  4366. # 'pass_all' -- all dependencies passed with no checks.
  4367. # 'test_compile' -- check by making test program.
  4368. # 'file_magic [[regex]]' -- check by looking for files in library path
  4369. # which responds to the $file_magic_cmd with a given extended regex.
  4370. # If you have `file' or equivalent on your system and you're not sure
  4371. # whether `pass_all' will *always* work, you probably want this one.
  4372. case $host_os in
  4373. aix[4-9]*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. beos*)
  4377. lt_cv_deplibs_check_method=pass_all
  4378. ;;
  4379. bsdi[45]*)
  4380. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4381. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4382. lt_cv_file_magic_test_file=/shlib/libc.so
  4383. ;;
  4384. cygwin*)
  4385. # func_win32_libid is a shell function defined in ltmain.sh
  4386. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4387. lt_cv_file_magic_cmd='func_win32_libid'
  4388. lt_cv_deplibs_check_method=pass_all
  4389. ;;
  4390. mingw* | pw32*)
  4391. # Base MSYS/MinGW do not provide the 'file' command needed by
  4392. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4393. # unless we find 'file', for example because we are cross-compiling.
  4394. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4395. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4396. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4397. lt_cv_file_magic_cmd='func_win32_libid'
  4398. else
  4399. # Keep this pattern in sync with the one in func_win32_libid.
  4400. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4401. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4402. fi
  4403. lt_cv_deplibs_check_method=pass_all
  4404. ;;
  4405. cegcc*)
  4406. # use the weaker test based on 'objdump'. See mingw*.
  4407. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4408. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4409. ;;
  4410. darwin* | rhapsody*)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. freebsd* | dragonfly*)
  4414. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4415. case $host_cpu in
  4416. i*86 )
  4417. # Not sure whether the presence of OpenBSD here was a mistake.
  4418. # Let's accept both of them until this is cleared up.
  4419. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4420. lt_cv_file_magic_cmd=/usr/bin/file
  4421. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4422. ;;
  4423. esac
  4424. else
  4425. lt_cv_deplibs_check_method=pass_all
  4426. fi
  4427. ;;
  4428. gnu*)
  4429. lt_cv_deplibs_check_method=pass_all
  4430. ;;
  4431. haiku*)
  4432. lt_cv_deplibs_check_method=pass_all
  4433. ;;
  4434. hpux10.20* | hpux11*)
  4435. lt_cv_file_magic_cmd=/usr/bin/file
  4436. case $host_cpu in
  4437. ia64*)
  4438. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4439. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4440. ;;
  4441. hppa*64*)
  4442. 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]'
  4443. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4444. ;;
  4445. *)
  4446. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4447. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4448. ;;
  4449. esac
  4450. ;;
  4451. interix[3-9]*)
  4452. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4454. ;;
  4455. irix5* | irix6* | nonstopux*)
  4456. case $LD in
  4457. *-32|*"-32 ") libmagic=32-bit;;
  4458. *-n32|*"-n32 ") libmagic=N32;;
  4459. *-64|*"-64 ") libmagic=64-bit;;
  4460. *) libmagic=never-match;;
  4461. esac
  4462. lt_cv_deplibs_check_method=pass_all
  4463. ;;
  4464. # This must be glibc/ELF.
  4465. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4466. lt_cv_deplibs_check_method=pass_all
  4467. ;;
  4468. netbsd*)
  4469. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4471. else
  4472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4473. fi
  4474. ;;
  4475. newos6*)
  4476. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4477. lt_cv_file_magic_cmd=/usr/bin/file
  4478. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4479. ;;
  4480. *nto* | *qnx*)
  4481. lt_cv_deplibs_check_method=pass_all
  4482. ;;
  4483. openbsd*)
  4484. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4486. else
  4487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4488. fi
  4489. ;;
  4490. osf3* | osf4* | osf5*)
  4491. lt_cv_deplibs_check_method=pass_all
  4492. ;;
  4493. rdos*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. solaris*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. sysv4 | sysv4.3*)
  4503. case $host_vendor in
  4504. motorola)
  4505. 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]'
  4506. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4507. ;;
  4508. ncr)
  4509. lt_cv_deplibs_check_method=pass_all
  4510. ;;
  4511. sequent)
  4512. lt_cv_file_magic_cmd='/bin/file'
  4513. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4514. ;;
  4515. sni)
  4516. lt_cv_file_magic_cmd='/bin/file'
  4517. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4518. lt_cv_file_magic_test_file=/lib/libc.so
  4519. ;;
  4520. siemens)
  4521. lt_cv_deplibs_check_method=pass_all
  4522. ;;
  4523. pc)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. esac
  4527. ;;
  4528. tpf*)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. esac
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4534. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4535. file_magic_glob=
  4536. want_nocaseglob=no
  4537. if test "$build" = "$host"; then
  4538. case $host_os in
  4539. mingw* | pw32*)
  4540. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4541. want_nocaseglob=yes
  4542. else
  4543. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4544. fi
  4545. ;;
  4546. esac
  4547. fi
  4548. file_magic_cmd=$lt_cv_file_magic_cmd
  4549. deplibs_check_method=$lt_cv_deplibs_check_method
  4550. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4551. if test -n "$ac_tool_prefix"; then
  4552. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4553. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$DLLTOOL"; then
  4560. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4569. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. DLLTOOL=$ac_cv_prog_DLLTOOL
  4579. if test -n "$DLLTOOL"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4581. $as_echo "$DLLTOOL" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. fi
  4587. if test -z "$ac_cv_prog_DLLTOOL"; then
  4588. ac_ct_DLLTOOL=$DLLTOOL
  4589. # Extract the first word of "dlltool", so it can be a program name with args.
  4590. set dummy dlltool; ac_word=$2
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4592. $as_echo_n "checking for $ac_word... " >&6; }
  4593. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4594. $as_echo_n "(cached) " >&6
  4595. else
  4596. if test -n "$ac_ct_DLLTOOL"; then
  4597. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4598. else
  4599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4600. for as_dir in $PATH
  4601. do
  4602. IFS=$as_save_IFS
  4603. test -z "$as_dir" && as_dir=.
  4604. for ac_exec_ext in '' $ac_executable_extensions; do
  4605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4606. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4608. break 2
  4609. fi
  4610. done
  4611. done
  4612. IFS=$as_save_IFS
  4613. fi
  4614. fi
  4615. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4616. if test -n "$ac_ct_DLLTOOL"; then
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4618. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4619. else
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4621. $as_echo "no" >&6; }
  4622. fi
  4623. if test "x$ac_ct_DLLTOOL" = x; then
  4624. DLLTOOL="false"
  4625. else
  4626. case $cross_compiling:$ac_tool_warned in
  4627. yes:)
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4630. ac_tool_warned=yes ;;
  4631. esac
  4632. DLLTOOL=$ac_ct_DLLTOOL
  4633. fi
  4634. else
  4635. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4636. fi
  4637. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4639. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4640. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4644. case $host_os in
  4645. cygwin* | mingw* | pw32* | cegcc*)
  4646. # two different shell functions defined in ltmain.sh
  4647. # decide which to use based on capabilities of $DLLTOOL
  4648. case `$DLLTOOL --help 2>&1` in
  4649. *--identify-strict*)
  4650. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4651. ;;
  4652. *)
  4653. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4654. ;;
  4655. esac
  4656. ;;
  4657. *)
  4658. # fallback: assume linklib IS sharedlib
  4659. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4660. ;;
  4661. esac
  4662. fi
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4664. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4665. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4666. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4667. if test -n "$ac_tool_prefix"; then
  4668. for ac_prog in ar
  4669. do
  4670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4673. $as_echo_n "checking for $ac_word... " >&6; }
  4674. if ${ac_cv_prog_AR+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. if test -n "$AR"; then
  4678. ac_cv_prog_AR="$AR" # Let the user override the test.
  4679. else
  4680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4681. for as_dir in $PATH
  4682. do
  4683. IFS=$as_save_IFS
  4684. test -z "$as_dir" && as_dir=.
  4685. for ac_exec_ext in '' $ac_executable_extensions; do
  4686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4687. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4689. break 2
  4690. fi
  4691. done
  4692. done
  4693. IFS=$as_save_IFS
  4694. fi
  4695. fi
  4696. AR=$ac_cv_prog_AR
  4697. if test -n "$AR"; then
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4699. $as_echo "$AR" >&6; }
  4700. else
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. test -n "$AR" && break
  4705. done
  4706. fi
  4707. if test -z "$AR"; then
  4708. ac_ct_AR=$AR
  4709. for ac_prog in ar
  4710. do
  4711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4712. set dummy $ac_prog; ac_word=$2
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4714. $as_echo_n "checking for $ac_word... " >&6; }
  4715. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4716. $as_echo_n "(cached) " >&6
  4717. else
  4718. if test -n "$ac_ct_AR"; then
  4719. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4720. else
  4721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4722. for as_dir in $PATH
  4723. do
  4724. IFS=$as_save_IFS
  4725. test -z "$as_dir" && as_dir=.
  4726. for ac_exec_ext in '' $ac_executable_extensions; do
  4727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4728. ac_cv_prog_ac_ct_AR="$ac_prog"
  4729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4730. break 2
  4731. fi
  4732. done
  4733. done
  4734. IFS=$as_save_IFS
  4735. fi
  4736. fi
  4737. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4738. if test -n "$ac_ct_AR"; then
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4740. $as_echo "$ac_ct_AR" >&6; }
  4741. else
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4743. $as_echo "no" >&6; }
  4744. fi
  4745. test -n "$ac_ct_AR" && break
  4746. done
  4747. if test "x$ac_ct_AR" = x; then
  4748. AR="false"
  4749. else
  4750. case $cross_compiling:$ac_tool_warned in
  4751. yes:)
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4754. ac_tool_warned=yes ;;
  4755. esac
  4756. AR=$ac_ct_AR
  4757. fi
  4758. fi
  4759. : ${AR=ar}
  4760. : ${AR_FLAGS=cru}
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4762. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4763. if ${lt_cv_ar_at_file+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. lt_cv_ar_at_file=no
  4767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4768. /* end confdefs.h. */
  4769. int
  4770. main ()
  4771. {
  4772. ;
  4773. return 0;
  4774. }
  4775. _ACEOF
  4776. if ac_fn_c_try_compile "$LINENO"; then :
  4777. echo conftest.$ac_objext > conftest.lst
  4778. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4779. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4780. (eval $lt_ar_try) 2>&5
  4781. ac_status=$?
  4782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4783. test $ac_status = 0; }
  4784. if test "$ac_status" -eq 0; then
  4785. # Ensure the archiver fails upon bogus file names.
  4786. rm -f conftest.$ac_objext libconftest.a
  4787. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4788. (eval $lt_ar_try) 2>&5
  4789. ac_status=$?
  4790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4791. test $ac_status = 0; }
  4792. if test "$ac_status" -ne 0; then
  4793. lt_cv_ar_at_file=@
  4794. fi
  4795. fi
  4796. rm -f conftest.* libconftest.a
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4801. $as_echo "$lt_cv_ar_at_file" >&6; }
  4802. if test "x$lt_cv_ar_at_file" = xno; then
  4803. archiver_list_spec=
  4804. else
  4805. archiver_list_spec=$lt_cv_ar_at_file
  4806. fi
  4807. if test -n "$ac_tool_prefix"; then
  4808. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4809. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4811. $as_echo_n "checking for $ac_word... " >&6; }
  4812. if ${ac_cv_prog_STRIP+:} false; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. if test -n "$STRIP"; then
  4816. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4817. else
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_exec_ext in '' $ac_executable_extensions; do
  4824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4825. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4827. break 2
  4828. fi
  4829. done
  4830. done
  4831. IFS=$as_save_IFS
  4832. fi
  4833. fi
  4834. STRIP=$ac_cv_prog_STRIP
  4835. if test -n "$STRIP"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4837. $as_echo "$STRIP" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4840. $as_echo "no" >&6; }
  4841. fi
  4842. fi
  4843. if test -z "$ac_cv_prog_STRIP"; then
  4844. ac_ct_STRIP=$STRIP
  4845. # Extract the first word of "strip", so it can be a program name with args.
  4846. set dummy strip; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$ac_ct_STRIP"; then
  4853. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4862. ac_cv_prog_ac_ct_STRIP="strip"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4872. if test -n "$ac_ct_STRIP"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4874. $as_echo "$ac_ct_STRIP" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. if test "x$ac_ct_STRIP" = x; then
  4880. STRIP=":"
  4881. else
  4882. case $cross_compiling:$ac_tool_warned in
  4883. yes:)
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4886. ac_tool_warned=yes ;;
  4887. esac
  4888. STRIP=$ac_ct_STRIP
  4889. fi
  4890. else
  4891. STRIP="$ac_cv_prog_STRIP"
  4892. fi
  4893. test -z "$STRIP" && STRIP=:
  4894. if test -n "$ac_tool_prefix"; then
  4895. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4896. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_RANLIB+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$RANLIB"; then
  4903. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4912. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. RANLIB=$ac_cv_prog_RANLIB
  4922. if test -n "$RANLIB"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4924. $as_echo "$RANLIB" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. fi
  4930. if test -z "$ac_cv_prog_RANLIB"; then
  4931. ac_ct_RANLIB=$RANLIB
  4932. # Extract the first word of "ranlib", so it can be a program name with args.
  4933. set dummy ranlib; ac_word=$2
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4935. $as_echo_n "checking for $ac_word... " >&6; }
  4936. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if test -n "$ac_ct_RANLIB"; then
  4940. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4941. else
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_exec_ext in '' $ac_executable_extensions; do
  4948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4949. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4951. break 2
  4952. fi
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. fi
  4957. fi
  4958. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4959. if test -n "$ac_ct_RANLIB"; then
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4961. $as_echo "$ac_ct_RANLIB" >&6; }
  4962. else
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4964. $as_echo "no" >&6; }
  4965. fi
  4966. if test "x$ac_ct_RANLIB" = x; then
  4967. RANLIB=":"
  4968. else
  4969. case $cross_compiling:$ac_tool_warned in
  4970. yes:)
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4973. ac_tool_warned=yes ;;
  4974. esac
  4975. RANLIB=$ac_ct_RANLIB
  4976. fi
  4977. else
  4978. RANLIB="$ac_cv_prog_RANLIB"
  4979. fi
  4980. test -z "$RANLIB" && RANLIB=:
  4981. # Determine commands to create old-style static archives.
  4982. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4983. old_postinstall_cmds='chmod 644 $oldlib'
  4984. old_postuninstall_cmds=
  4985. if test -n "$RANLIB"; then
  4986. case $host_os in
  4987. openbsd*)
  4988. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4989. ;;
  4990. *)
  4991. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4992. ;;
  4993. esac
  4994. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4995. fi
  4996. case $host_os in
  4997. darwin*)
  4998. lock_old_archive_extraction=yes ;;
  4999. *)
  5000. lock_old_archive_extraction=no ;;
  5001. esac
  5002. for ac_prog in gawk mawk nawk awk
  5003. do
  5004. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5005. set dummy $ac_prog; ac_word=$2
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5007. $as_echo_n "checking for $ac_word... " >&6; }
  5008. if ${ac_cv_prog_AWK+:} false; then :
  5009. $as_echo_n "(cached) " >&6
  5010. else
  5011. if test -n "$AWK"; then
  5012. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5013. else
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_exec_ext in '' $ac_executable_extensions; do
  5020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5021. ac_cv_prog_AWK="$ac_prog"
  5022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5023. break 2
  5024. fi
  5025. done
  5026. done
  5027. IFS=$as_save_IFS
  5028. fi
  5029. fi
  5030. AWK=$ac_cv_prog_AWK
  5031. if test -n "$AWK"; then
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5033. $as_echo "$AWK" >&6; }
  5034. else
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5036. $as_echo "no" >&6; }
  5037. fi
  5038. test -n "$AWK" && break
  5039. done
  5040. # If no C compiler was specified, use CC.
  5041. LTCC=${LTCC-"$CC"}
  5042. # If no C compiler flags were specified, use CFLAGS.
  5043. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5044. # Allow CC to be a program name with arguments.
  5045. compiler=$CC
  5046. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5048. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5049. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. # These are sane defaults that work on at least a few old systems.
  5053. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5054. # Character class describing NM global symbol codes.
  5055. symcode='[BCDEGRST]'
  5056. # Regexp to match symbols that can be accessed directly from C.
  5057. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5058. # Define system-specific variables.
  5059. case $host_os in
  5060. aix*)
  5061. symcode='[BCDT]'
  5062. ;;
  5063. cygwin* | mingw* | pw32* | cegcc*)
  5064. symcode='[ABCDGISTW]'
  5065. ;;
  5066. hpux*)
  5067. if test "$host_cpu" = ia64; then
  5068. symcode='[ABCDEGRST]'
  5069. fi
  5070. ;;
  5071. irix* | nonstopux*)
  5072. symcode='[BCDEGRST]'
  5073. ;;
  5074. osf*)
  5075. symcode='[BCDEGQRST]'
  5076. ;;
  5077. solaris*)
  5078. symcode='[BDRT]'
  5079. ;;
  5080. sco3.2v5*)
  5081. symcode='[DT]'
  5082. ;;
  5083. sysv4.2uw2*)
  5084. symcode='[DT]'
  5085. ;;
  5086. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5087. symcode='[ABDT]'
  5088. ;;
  5089. sysv4)
  5090. symcode='[DFNSTU]'
  5091. ;;
  5092. esac
  5093. # If we're using GNU nm, then use its standard symbol codes.
  5094. case `$NM -V 2>&1` in
  5095. *GNU* | *'with BFD'*)
  5096. symcode='[ABCDGIRSTW]' ;;
  5097. esac
  5098. # Transform an extracted symbol line into a proper C declaration.
  5099. # Some systems (esp. on ia64) link data and code symbols differently,
  5100. # so use this general approach.
  5101. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5102. # Transform an extracted symbol line into symbol name and symbol address
  5103. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5104. 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'"
  5105. # Handle CRLF in mingw tool chain
  5106. opt_cr=
  5107. case $build_os in
  5108. mingw*)
  5109. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5110. ;;
  5111. esac
  5112. # Try without a prefix underscore, then with it.
  5113. for ac_symprfx in "" "_"; do
  5114. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5115. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5116. # Write the raw and C identifiers.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. # Fake it for dumpbin and say T for any non-static function
  5119. # and D for any global variable.
  5120. # Also find C++ and __fastcall symbols from MSVC++,
  5121. # which start with @ or ?.
  5122. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5123. " {last_section=section; section=\$ 3};"\
  5124. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5125. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5126. " \$ 0!~/External *\|/{next};"\
  5127. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5128. " {if(hide[section]) next};"\
  5129. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5130. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5131. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5132. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5133. " ' prfx=^$ac_symprfx"
  5134. else
  5135. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5136. fi
  5137. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5138. # Check to see that the pipe works correctly.
  5139. pipe_works=no
  5140. rm -f conftest*
  5141. cat > conftest.$ac_ext <<_LT_EOF
  5142. #ifdef __cplusplus
  5143. extern "C" {
  5144. #endif
  5145. char nm_test_var;
  5146. void nm_test_func(void);
  5147. void nm_test_func(void){}
  5148. #ifdef __cplusplus
  5149. }
  5150. #endif
  5151. int main(){nm_test_var='a';nm_test_func();return(0);}
  5152. _LT_EOF
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5154. (eval $ac_compile) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; }; then
  5158. # Now try to grab the symbols.
  5159. nlist=conftest.nm
  5160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5161. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5162. ac_status=$?
  5163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5164. test $ac_status = 0; } && test -s "$nlist"; then
  5165. # Try sorting and uniquifying the output.
  5166. if sort "$nlist" | uniq > "$nlist"T; then
  5167. mv -f "$nlist"T "$nlist"
  5168. else
  5169. rm -f "$nlist"T
  5170. fi
  5171. # Make sure that we snagged all the symbols we need.
  5172. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5173. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5174. cat <<_LT_EOF > conftest.$ac_ext
  5175. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5176. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5177. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5178. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5179. # define LT_DLSYM_CONST
  5180. #elif defined(__osf__)
  5181. /* This system does not cope well with relocations in const data. */
  5182. # define LT_DLSYM_CONST
  5183. #else
  5184. # define LT_DLSYM_CONST const
  5185. #endif
  5186. #ifdef __cplusplus
  5187. extern "C" {
  5188. #endif
  5189. _LT_EOF
  5190. # Now generate the symbol file.
  5191. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5192. cat <<_LT_EOF >> conftest.$ac_ext
  5193. /* The mapping between symbol names and symbols. */
  5194. LT_DLSYM_CONST struct {
  5195. const char *name;
  5196. void *address;
  5197. }
  5198. lt__PROGRAM__LTX_preloaded_symbols[] =
  5199. {
  5200. { "@PROGRAM@", (void *) 0 },
  5201. _LT_EOF
  5202. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5203. cat <<\_LT_EOF >> conftest.$ac_ext
  5204. {0, (void *) 0}
  5205. };
  5206. /* This works around a problem in FreeBSD linker */
  5207. #ifdef FREEBSD_WORKAROUND
  5208. static const void *lt_preloaded_setup() {
  5209. return lt__PROGRAM__LTX_preloaded_symbols;
  5210. }
  5211. #endif
  5212. #ifdef __cplusplus
  5213. }
  5214. #endif
  5215. _LT_EOF
  5216. # Now try linking the two files.
  5217. mv conftest.$ac_objext conftstm.$ac_objext
  5218. lt_globsym_save_LIBS=$LIBS
  5219. lt_globsym_save_CFLAGS=$CFLAGS
  5220. LIBS="conftstm.$ac_objext"
  5221. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5223. (eval $ac_link) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5227. pipe_works=yes
  5228. fi
  5229. LIBS=$lt_globsym_save_LIBS
  5230. CFLAGS=$lt_globsym_save_CFLAGS
  5231. else
  5232. echo "cannot find nm_test_func in $nlist" >&5
  5233. fi
  5234. else
  5235. echo "cannot find nm_test_var in $nlist" >&5
  5236. fi
  5237. else
  5238. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5239. fi
  5240. else
  5241. echo "$progname: failed program was:" >&5
  5242. cat conftest.$ac_ext >&5
  5243. fi
  5244. rm -rf conftest* conftst*
  5245. # Do not use the global_symbol_pipe unless it works.
  5246. if test "$pipe_works" = yes; then
  5247. break
  5248. else
  5249. lt_cv_sys_global_symbol_pipe=
  5250. fi
  5251. done
  5252. fi
  5253. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5254. lt_cv_sys_global_symbol_to_cdecl=
  5255. fi
  5256. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5258. $as_echo "failed" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5261. $as_echo "ok" >&6; }
  5262. fi
  5263. # Response file support.
  5264. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5265. nm_file_list_spec='@'
  5266. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5267. nm_file_list_spec='@'
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5270. $as_echo_n "checking for sysroot... " >&6; }
  5271. # Check whether --with-sysroot was given.
  5272. if test "${with_sysroot+set}" = set; then :
  5273. withval=$with_sysroot;
  5274. else
  5275. with_sysroot=no
  5276. fi
  5277. lt_sysroot=
  5278. case ${with_sysroot} in #(
  5279. yes)
  5280. if test "$GCC" = yes; then
  5281. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5282. fi
  5283. ;; #(
  5284. /*)
  5285. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5286. ;; #(
  5287. no|'')
  5288. ;; #(
  5289. *)
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5291. $as_echo "${with_sysroot}" >&6; }
  5292. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5293. ;;
  5294. esac
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5296. $as_echo "${lt_sysroot:-no}" >&6; }
  5297. # Check whether --enable-libtool-lock was given.
  5298. if test "${enable_libtool_lock+set}" = set; then :
  5299. enableval=$enable_libtool_lock;
  5300. fi
  5301. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5302. # Some flags need to be propagated to the compiler or linker for good
  5303. # libtool support.
  5304. case $host in
  5305. ia64-*-hpux*)
  5306. # Find out which ABI we are using.
  5307. echo 'int i;' > conftest.$ac_ext
  5308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5309. (eval $ac_compile) 2>&5
  5310. ac_status=$?
  5311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5312. test $ac_status = 0; }; then
  5313. case `/usr/bin/file conftest.$ac_objext` in
  5314. *ELF-32*)
  5315. HPUX_IA64_MODE="32"
  5316. ;;
  5317. *ELF-64*)
  5318. HPUX_IA64_MODE="64"
  5319. ;;
  5320. esac
  5321. fi
  5322. rm -rf conftest*
  5323. ;;
  5324. *-*-irix6*)
  5325. # Find out which ABI we are using.
  5326. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5327. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5328. (eval $ac_compile) 2>&5
  5329. ac_status=$?
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5331. test $ac_status = 0; }; then
  5332. if test "$lt_cv_prog_gnu_ld" = yes; then
  5333. case `/usr/bin/file conftest.$ac_objext` in
  5334. *32-bit*)
  5335. LD="${LD-ld} -melf32bsmip"
  5336. ;;
  5337. *N32*)
  5338. LD="${LD-ld} -melf32bmipn32"
  5339. ;;
  5340. *64-bit*)
  5341. LD="${LD-ld} -melf64bmip"
  5342. ;;
  5343. esac
  5344. else
  5345. case `/usr/bin/file conftest.$ac_objext` in
  5346. *32-bit*)
  5347. LD="${LD-ld} -32"
  5348. ;;
  5349. *N32*)
  5350. LD="${LD-ld} -n32"
  5351. ;;
  5352. *64-bit*)
  5353. LD="${LD-ld} -64"
  5354. ;;
  5355. esac
  5356. fi
  5357. fi
  5358. rm -rf conftest*
  5359. ;;
  5360. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5361. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5362. # Find out which ABI we are using.
  5363. echo 'int i;' > conftest.$ac_ext
  5364. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5365. (eval $ac_compile) 2>&5
  5366. ac_status=$?
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5368. test $ac_status = 0; }; then
  5369. case `/usr/bin/file conftest.o` in
  5370. *32-bit*)
  5371. case $host in
  5372. x86_64-*kfreebsd*-gnu)
  5373. LD="${LD-ld} -m elf_i386_fbsd"
  5374. ;;
  5375. x86_64-*linux*)
  5376. LD="${LD-ld} -m elf_i386"
  5377. ;;
  5378. ppc64-*linux*|powerpc64-*linux*)
  5379. LD="${LD-ld} -m elf32ppclinux"
  5380. ;;
  5381. s390x-*linux*)
  5382. LD="${LD-ld} -m elf_s390"
  5383. ;;
  5384. sparc64-*linux*)
  5385. LD="${LD-ld} -m elf32_sparc"
  5386. ;;
  5387. esac
  5388. ;;
  5389. *64-bit*)
  5390. case $host in
  5391. x86_64-*kfreebsd*-gnu)
  5392. LD="${LD-ld} -m elf_x86_64_fbsd"
  5393. ;;
  5394. x86_64-*linux*)
  5395. LD="${LD-ld} -m elf_x86_64"
  5396. ;;
  5397. powerpc64le-*linux*)
  5398. LD="${LD-ld} -m elf64lppc"
  5399. ;;
  5400. powerpc64-*linux*)
  5401. LD="${LD-ld} -m elf64ppc"
  5402. ;;
  5403. s390*-*linux*|s390*-*tpf*)
  5404. LD="${LD-ld} -m elf64_s390"
  5405. ;;
  5406. sparc*-*linux*)
  5407. LD="${LD-ld} -m elf64_sparc"
  5408. ;;
  5409. esac
  5410. ;;
  5411. esac
  5412. fi
  5413. rm -rf conftest*
  5414. ;;
  5415. *-*-sco3.2v5*)
  5416. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5417. SAVE_CFLAGS="$CFLAGS"
  5418. CFLAGS="$CFLAGS -belf"
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5420. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5421. if ${lt_cv_cc_needs_belf+:} false; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. ac_ext=c
  5425. ac_cpp='$CPP $CPPFLAGS'
  5426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5430. /* end confdefs.h. */
  5431. int
  5432. main ()
  5433. {
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. if ac_fn_c_try_link "$LINENO"; then :
  5439. lt_cv_cc_needs_belf=yes
  5440. else
  5441. lt_cv_cc_needs_belf=no
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext \
  5444. conftest$ac_exeext conftest.$ac_ext
  5445. ac_ext=c
  5446. ac_cpp='$CPP $CPPFLAGS'
  5447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5450. fi
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5452. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5453. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5454. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5455. CFLAGS="$SAVE_CFLAGS"
  5456. fi
  5457. ;;
  5458. *-*solaris*)
  5459. # Find out which ABI we are using.
  5460. echo 'int i;' > conftest.$ac_ext
  5461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5462. (eval $ac_compile) 2>&5
  5463. ac_status=$?
  5464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5465. test $ac_status = 0; }; then
  5466. case `/usr/bin/file conftest.o` in
  5467. *64-bit*)
  5468. case $lt_cv_prog_gnu_ld in
  5469. yes*)
  5470. case $host in
  5471. i?86-*-solaris*)
  5472. LD="${LD-ld} -m elf_x86_64"
  5473. ;;
  5474. sparc*-*-solaris*)
  5475. LD="${LD-ld} -m elf64_sparc"
  5476. ;;
  5477. esac
  5478. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5479. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5480. LD="${LD-ld}_sol2"
  5481. fi
  5482. ;;
  5483. *)
  5484. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5485. LD="${LD-ld} -64"
  5486. fi
  5487. ;;
  5488. esac
  5489. ;;
  5490. esac
  5491. fi
  5492. rm -rf conftest*
  5493. ;;
  5494. esac
  5495. need_locks="$enable_libtool_lock"
  5496. if test -n "$ac_tool_prefix"; then
  5497. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5498. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$MANIFEST_TOOL"; then
  5505. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5524. if test -n "$MANIFEST_TOOL"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5526. $as_echo "$MANIFEST_TOOL" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. fi
  5532. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5533. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5534. # Extract the first word of "mt", so it can be a program name with args.
  5535. set dummy mt; ac_word=$2
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5537. $as_echo_n "checking for $ac_word... " >&6; }
  5538. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5539. $as_echo_n "(cached) " >&6
  5540. else
  5541. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5542. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5543. else
  5544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5545. for as_dir in $PATH
  5546. do
  5547. IFS=$as_save_IFS
  5548. test -z "$as_dir" && as_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5551. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5553. break 2
  5554. fi
  5555. done
  5556. done
  5557. IFS=$as_save_IFS
  5558. fi
  5559. fi
  5560. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5561. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5563. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5564. else
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5566. $as_echo "no" >&6; }
  5567. fi
  5568. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5569. MANIFEST_TOOL=":"
  5570. else
  5571. case $cross_compiling:$ac_tool_warned in
  5572. yes:)
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5574. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5575. ac_tool_warned=yes ;;
  5576. esac
  5577. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5578. fi
  5579. else
  5580. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5581. fi
  5582. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5584. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5585. if ${lt_cv_path_mainfest_tool+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. lt_cv_path_mainfest_tool=no
  5589. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5590. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5591. cat conftest.err >&5
  5592. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5593. lt_cv_path_mainfest_tool=yes
  5594. fi
  5595. rm -f conftest*
  5596. fi
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5598. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5599. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5600. MANIFEST_TOOL=:
  5601. fi
  5602. case $host_os in
  5603. rhapsody* | darwin*)
  5604. if test -n "$ac_tool_prefix"; then
  5605. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5606. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$DSYMUTIL"; then
  5613. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5632. if test -n "$DSYMUTIL"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5634. $as_echo "$DSYMUTIL" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5641. ac_ct_DSYMUTIL=$DSYMUTIL
  5642. # Extract the first word of "dsymutil", so it can be a program name with args.
  5643. set dummy dsymutil; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$ac_ct_DSYMUTIL"; then
  5650. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5659. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5669. if test -n "$ac_ct_DSYMUTIL"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5671. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. if test "x$ac_ct_DSYMUTIL" = x; then
  5677. DSYMUTIL=":"
  5678. else
  5679. case $cross_compiling:$ac_tool_warned in
  5680. yes:)
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5683. ac_tool_warned=yes ;;
  5684. esac
  5685. DSYMUTIL=$ac_ct_DSYMUTIL
  5686. fi
  5687. else
  5688. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5689. fi
  5690. if test -n "$ac_tool_prefix"; then
  5691. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5692. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if ${ac_cv_prog_NMEDIT+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$NMEDIT"; then
  5699. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5708. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. NMEDIT=$ac_cv_prog_NMEDIT
  5718. if test -n "$NMEDIT"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5720. $as_echo "$NMEDIT" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. fi
  5726. if test -z "$ac_cv_prog_NMEDIT"; then
  5727. ac_ct_NMEDIT=$NMEDIT
  5728. # Extract the first word of "nmedit", so it can be a program name with args.
  5729. set dummy nmedit; ac_word=$2
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. $as_echo_n "checking for $ac_word... " >&6; }
  5732. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. if test -n "$ac_ct_NMEDIT"; then
  5736. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5737. else
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5745. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. fi
  5753. fi
  5754. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5755. if test -n "$ac_ct_NMEDIT"; then
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5757. $as_echo "$ac_ct_NMEDIT" >&6; }
  5758. else
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5760. $as_echo "no" >&6; }
  5761. fi
  5762. if test "x$ac_ct_NMEDIT" = x; then
  5763. NMEDIT=":"
  5764. else
  5765. case $cross_compiling:$ac_tool_warned in
  5766. yes:)
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5769. ac_tool_warned=yes ;;
  5770. esac
  5771. NMEDIT=$ac_ct_NMEDIT
  5772. fi
  5773. else
  5774. NMEDIT="$ac_cv_prog_NMEDIT"
  5775. fi
  5776. if test -n "$ac_tool_prefix"; then
  5777. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5778. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_LIPO+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$LIPO"; then
  5785. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. LIPO=$ac_cv_prog_LIPO
  5804. if test -n "$LIPO"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5806. $as_echo "$LIPO" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. fi
  5812. if test -z "$ac_cv_prog_LIPO"; then
  5813. ac_ct_LIPO=$LIPO
  5814. # Extract the first word of "lipo", so it can be a program name with args.
  5815. set dummy lipo; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$ac_ct_LIPO"; then
  5822. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_LIPO="lipo"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5841. if test -n "$ac_ct_LIPO"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5843. $as_echo "$ac_ct_LIPO" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_LIPO" = x; then
  5849. LIPO=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. LIPO=$ac_ct_LIPO
  5858. fi
  5859. else
  5860. LIPO="$ac_cv_prog_LIPO"
  5861. fi
  5862. if test -n "$ac_tool_prefix"; then
  5863. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5864. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_OTOOL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$OTOOL"; then
  5871. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. OTOOL=$ac_cv_prog_OTOOL
  5890. if test -n "$OTOOL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5892. $as_echo "$OTOOL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. fi
  5898. if test -z "$ac_cv_prog_OTOOL"; then
  5899. ac_ct_OTOOL=$OTOOL
  5900. # Extract the first word of "otool", so it can be a program name with args.
  5901. set dummy otool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_OTOOL"; then
  5908. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_OTOOL="otool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5927. if test -n "$ac_ct_OTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5929. $as_echo "$ac_ct_OTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. if test "x$ac_ct_OTOOL" = x; then
  5935. OTOOL=":"
  5936. else
  5937. case $cross_compiling:$ac_tool_warned in
  5938. yes:)
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5941. ac_tool_warned=yes ;;
  5942. esac
  5943. OTOOL=$ac_ct_OTOOL
  5944. fi
  5945. else
  5946. OTOOL="$ac_cv_prog_OTOOL"
  5947. fi
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_OTOOL64+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$OTOOL64"; then
  5957. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. OTOOL64=$ac_cv_prog_OTOOL64
  5976. if test -n "$OTOOL64"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5978. $as_echo "$OTOOL64" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_OTOOL64"; then
  5985. ac_ct_OTOOL64=$OTOOL64
  5986. # Extract the first word of "otool64", so it can be a program name with args.
  5987. set dummy otool64; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_OTOOL64"; then
  5994. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6013. if test -n "$ac_ct_OTOOL64"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6015. $as_echo "$ac_ct_OTOOL64" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_OTOOL64" = x; then
  6021. OTOOL64=":"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. OTOOL64=$ac_ct_OTOOL64
  6030. fi
  6031. else
  6032. OTOOL64="$ac_cv_prog_OTOOL64"
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6035. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6036. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. lt_cv_apple_cc_single_mod=no
  6040. if test -z "${LT_MULTI_MODULE}"; then
  6041. # By default we will add the -single_module flag. You can override
  6042. # by either setting the environment variable LT_MULTI_MODULE
  6043. # non-empty at configure time, or by adding -multi_module to the
  6044. # link flags.
  6045. rm -rf libconftest.dylib*
  6046. echo "int foo(void){return 1;}" > conftest.c
  6047. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6048. -dynamiclib -Wl,-single_module conftest.c" >&5
  6049. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6050. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6051. _lt_result=$?
  6052. # If there is a non-empty error log, and "single_module"
  6053. # appears in it, assume the flag caused a linker warning
  6054. if test -s conftest.err && $GREP single_module conftest.err; then
  6055. cat conftest.err >&5
  6056. # Otherwise, if the output was created with a 0 exit code from
  6057. # the compiler, it worked.
  6058. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6059. lt_cv_apple_cc_single_mod=yes
  6060. else
  6061. cat conftest.err >&5
  6062. fi
  6063. rm -rf libconftest.dylib*
  6064. rm -f conftest.*
  6065. fi
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6068. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6070. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6071. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. lt_cv_ld_exported_symbols_list=no
  6075. save_LDFLAGS=$LDFLAGS
  6076. echo "_main" > conftest.sym
  6077. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6079. /* end confdefs.h. */
  6080. int
  6081. main ()
  6082. {
  6083. ;
  6084. return 0;
  6085. }
  6086. _ACEOF
  6087. if ac_fn_c_try_link "$LINENO"; then :
  6088. lt_cv_ld_exported_symbols_list=yes
  6089. else
  6090. lt_cv_ld_exported_symbols_list=no
  6091. fi
  6092. rm -f core conftest.err conftest.$ac_objext \
  6093. conftest$ac_exeext conftest.$ac_ext
  6094. LDFLAGS="$save_LDFLAGS"
  6095. fi
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6097. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6099. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6100. if ${lt_cv_ld_force_load+:} false; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. lt_cv_ld_force_load=no
  6104. cat > conftest.c << _LT_EOF
  6105. int forced_loaded() { return 2;}
  6106. _LT_EOF
  6107. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6108. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6109. echo "$AR cru libconftest.a conftest.o" >&5
  6110. $AR cru libconftest.a conftest.o 2>&5
  6111. echo "$RANLIB libconftest.a" >&5
  6112. $RANLIB libconftest.a 2>&5
  6113. cat > conftest.c << _LT_EOF
  6114. int main() { return 0;}
  6115. _LT_EOF
  6116. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6117. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6118. _lt_result=$?
  6119. if test -s conftest.err && $GREP force_load conftest.err; then
  6120. cat conftest.err >&5
  6121. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6122. lt_cv_ld_force_load=yes
  6123. else
  6124. cat conftest.err >&5
  6125. fi
  6126. rm -f conftest.err libconftest.a conftest conftest.c
  6127. rm -rf conftest.dSYM
  6128. fi
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6130. $as_echo "$lt_cv_ld_force_load" >&6; }
  6131. case $host_os in
  6132. rhapsody* | darwin1.[012])
  6133. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6134. darwin1.*)
  6135. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6136. darwin*) # darwin 5.x on
  6137. # if running on 10.5 or later, the deployment target defaults
  6138. # to the OS version, if on x86, and 10.4, the deployment
  6139. # target defaults to 10.4. Don't you love it?
  6140. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6141. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6142. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6143. 10.[012]*)
  6144. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6145. 10.*)
  6146. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6147. esac
  6148. ;;
  6149. esac
  6150. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6151. _lt_dar_single_mod='$single_module'
  6152. fi
  6153. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6154. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6155. else
  6156. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6157. fi
  6158. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6159. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6160. else
  6161. _lt_dsymutil=
  6162. fi
  6163. ;;
  6164. esac
  6165. ac_ext=c
  6166. ac_cpp='$CPP $CPPFLAGS'
  6167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6171. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6172. # On Suns, sometimes $CPP names a directory.
  6173. if test -n "$CPP" && test -d "$CPP"; then
  6174. CPP=
  6175. fi
  6176. if test -z "$CPP"; then
  6177. if ${ac_cv_prog_CPP+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. # Double quotes because CPP needs to be expanded
  6181. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6182. do
  6183. ac_preproc_ok=false
  6184. for ac_c_preproc_warn_flag in '' yes
  6185. do
  6186. # Use a header file that comes with gcc, so configuring glibc
  6187. # with a fresh cross-compiler works.
  6188. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6189. # <limits.h> exists even on freestanding compilers.
  6190. # On the NeXT, cc -E runs the code through the compiler's parser,
  6191. # not just through cpp. "Syntax error" is here to catch this case.
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #ifdef __STDC__
  6195. # include <limits.h>
  6196. #else
  6197. # include <assert.h>
  6198. #endif
  6199. Syntax error
  6200. _ACEOF
  6201. if ac_fn_c_try_cpp "$LINENO"; then :
  6202. else
  6203. # Broken: fails on valid input.
  6204. continue
  6205. fi
  6206. rm -f conftest.err conftest.i conftest.$ac_ext
  6207. # OK, works on sane cases. Now check whether nonexistent headers
  6208. # can be detected and how.
  6209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6210. /* end confdefs.h. */
  6211. #include <ac_nonexistent.h>
  6212. _ACEOF
  6213. if ac_fn_c_try_cpp "$LINENO"; then :
  6214. # Broken: success on invalid input.
  6215. continue
  6216. else
  6217. # Passes both tests.
  6218. ac_preproc_ok=:
  6219. break
  6220. fi
  6221. rm -f conftest.err conftest.i conftest.$ac_ext
  6222. done
  6223. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6224. rm -f conftest.i conftest.err conftest.$ac_ext
  6225. if $ac_preproc_ok; then :
  6226. break
  6227. fi
  6228. done
  6229. ac_cv_prog_CPP=$CPP
  6230. fi
  6231. CPP=$ac_cv_prog_CPP
  6232. else
  6233. ac_cv_prog_CPP=$CPP
  6234. fi
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6236. $as_echo "$CPP" >&6; }
  6237. ac_preproc_ok=false
  6238. for ac_c_preproc_warn_flag in '' yes
  6239. do
  6240. # Use a header file that comes with gcc, so configuring glibc
  6241. # with a fresh cross-compiler works.
  6242. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6243. # <limits.h> exists even on freestanding compilers.
  6244. # On the NeXT, cc -E runs the code through the compiler's parser,
  6245. # not just through cpp. "Syntax error" is here to catch this case.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #ifdef __STDC__
  6249. # include <limits.h>
  6250. #else
  6251. # include <assert.h>
  6252. #endif
  6253. Syntax error
  6254. _ACEOF
  6255. if ac_fn_c_try_cpp "$LINENO"; then :
  6256. else
  6257. # Broken: fails on valid input.
  6258. continue
  6259. fi
  6260. rm -f conftest.err conftest.i conftest.$ac_ext
  6261. # OK, works on sane cases. Now check whether nonexistent headers
  6262. # can be detected and how.
  6263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6264. /* end confdefs.h. */
  6265. #include <ac_nonexistent.h>
  6266. _ACEOF
  6267. if ac_fn_c_try_cpp "$LINENO"; then :
  6268. # Broken: success on invalid input.
  6269. continue
  6270. else
  6271. # Passes both tests.
  6272. ac_preproc_ok=:
  6273. break
  6274. fi
  6275. rm -f conftest.err conftest.i conftest.$ac_ext
  6276. done
  6277. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6278. rm -f conftest.i conftest.err conftest.$ac_ext
  6279. if $ac_preproc_ok; then :
  6280. else
  6281. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6282. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6283. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6284. See \`config.log' for more details" "$LINENO" 5; }
  6285. fi
  6286. ac_ext=c
  6287. ac_cpp='$CPP $CPPFLAGS'
  6288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6292. $as_echo_n "checking for ANSI C header files... " >&6; }
  6293. if ${ac_cv_header_stdc+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6297. /* end confdefs.h. */
  6298. #include <stdlib.h>
  6299. #include <stdarg.h>
  6300. #include <string.h>
  6301. #include <float.h>
  6302. int
  6303. main ()
  6304. {
  6305. ;
  6306. return 0;
  6307. }
  6308. _ACEOF
  6309. if ac_fn_c_try_compile "$LINENO"; then :
  6310. ac_cv_header_stdc=yes
  6311. else
  6312. ac_cv_header_stdc=no
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6315. if test $ac_cv_header_stdc = yes; then
  6316. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6318. /* end confdefs.h. */
  6319. #include <string.h>
  6320. _ACEOF
  6321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6322. $EGREP "memchr" >/dev/null 2>&1; then :
  6323. else
  6324. ac_cv_header_stdc=no
  6325. fi
  6326. rm -f conftest*
  6327. fi
  6328. if test $ac_cv_header_stdc = yes; then
  6329. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. #include <stdlib.h>
  6333. _ACEOF
  6334. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6335. $EGREP "free" >/dev/null 2>&1; then :
  6336. else
  6337. ac_cv_header_stdc=no
  6338. fi
  6339. rm -f conftest*
  6340. fi
  6341. if test $ac_cv_header_stdc = yes; then
  6342. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6343. if test "$cross_compiling" = yes; then :
  6344. :
  6345. else
  6346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6347. /* end confdefs.h. */
  6348. #include <ctype.h>
  6349. #include <stdlib.h>
  6350. #if ((' ' & 0x0FF) == 0x020)
  6351. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6352. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6353. #else
  6354. # define ISLOWER(c) \
  6355. (('a' <= (c) && (c) <= 'i') \
  6356. || ('j' <= (c) && (c) <= 'r') \
  6357. || ('s' <= (c) && (c) <= 'z'))
  6358. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6359. #endif
  6360. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6361. int
  6362. main ()
  6363. {
  6364. int i;
  6365. for (i = 0; i < 256; i++)
  6366. if (XOR (islower (i), ISLOWER (i))
  6367. || toupper (i) != TOUPPER (i))
  6368. return 2;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_c_try_run "$LINENO"; then :
  6373. else
  6374. ac_cv_header_stdc=no
  6375. fi
  6376. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6377. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6378. fi
  6379. fi
  6380. fi
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6382. $as_echo "$ac_cv_header_stdc" >&6; }
  6383. if test $ac_cv_header_stdc = yes; then
  6384. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6385. fi
  6386. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6387. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6388. inttypes.h stdint.h unistd.h
  6389. do :
  6390. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6391. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6392. "
  6393. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6394. cat >>confdefs.h <<_ACEOF
  6395. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6396. _ACEOF
  6397. fi
  6398. done
  6399. for ac_header in dlfcn.h
  6400. do :
  6401. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6402. "
  6403. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6404. cat >>confdefs.h <<_ACEOF
  6405. #define HAVE_DLFCN_H 1
  6406. _ACEOF
  6407. fi
  6408. done
  6409. # Set options
  6410. enable_win32_dll=yes
  6411. case $host in
  6412. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6413. if test -n "$ac_tool_prefix"; then
  6414. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6415. set dummy ${ac_tool_prefix}as; ac_word=$2
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6417. $as_echo_n "checking for $ac_word... " >&6; }
  6418. if ${ac_cv_prog_AS+:} false; then :
  6419. $as_echo_n "(cached) " >&6
  6420. else
  6421. if test -n "$AS"; then
  6422. ac_cv_prog_AS="$AS" # Let the user override the test.
  6423. else
  6424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6425. for as_dir in $PATH
  6426. do
  6427. IFS=$as_save_IFS
  6428. test -z "$as_dir" && as_dir=.
  6429. for ac_exec_ext in '' $ac_executable_extensions; do
  6430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6431. ac_cv_prog_AS="${ac_tool_prefix}as"
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6433. break 2
  6434. fi
  6435. done
  6436. done
  6437. IFS=$as_save_IFS
  6438. fi
  6439. fi
  6440. AS=$ac_cv_prog_AS
  6441. if test -n "$AS"; then
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6443. $as_echo "$AS" >&6; }
  6444. else
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6446. $as_echo "no" >&6; }
  6447. fi
  6448. fi
  6449. if test -z "$ac_cv_prog_AS"; then
  6450. ac_ct_AS=$AS
  6451. # Extract the first word of "as", so it can be a program name with args.
  6452. set dummy as; ac_word=$2
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6454. $as_echo_n "checking for $ac_word... " >&6; }
  6455. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. if test -n "$ac_ct_AS"; then
  6459. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6460. else
  6461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6462. for as_dir in $PATH
  6463. do
  6464. IFS=$as_save_IFS
  6465. test -z "$as_dir" && as_dir=.
  6466. for ac_exec_ext in '' $ac_executable_extensions; do
  6467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6468. ac_cv_prog_ac_ct_AS="as"
  6469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6470. break 2
  6471. fi
  6472. done
  6473. done
  6474. IFS=$as_save_IFS
  6475. fi
  6476. fi
  6477. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6478. if test -n "$ac_ct_AS"; then
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6480. $as_echo "$ac_ct_AS" >&6; }
  6481. else
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6483. $as_echo "no" >&6; }
  6484. fi
  6485. if test "x$ac_ct_AS" = x; then
  6486. AS="false"
  6487. else
  6488. case $cross_compiling:$ac_tool_warned in
  6489. yes:)
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6491. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6492. ac_tool_warned=yes ;;
  6493. esac
  6494. AS=$ac_ct_AS
  6495. fi
  6496. else
  6497. AS="$ac_cv_prog_AS"
  6498. fi
  6499. if test -n "$ac_tool_prefix"; then
  6500. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6501. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6503. $as_echo_n "checking for $ac_word... " >&6; }
  6504. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6505. $as_echo_n "(cached) " >&6
  6506. else
  6507. if test -n "$DLLTOOL"; then
  6508. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6509. else
  6510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6511. for as_dir in $PATH
  6512. do
  6513. IFS=$as_save_IFS
  6514. test -z "$as_dir" && as_dir=.
  6515. for ac_exec_ext in '' $ac_executable_extensions; do
  6516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6517. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6519. break 2
  6520. fi
  6521. done
  6522. done
  6523. IFS=$as_save_IFS
  6524. fi
  6525. fi
  6526. DLLTOOL=$ac_cv_prog_DLLTOOL
  6527. if test -n "$DLLTOOL"; then
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6529. $as_echo "$DLLTOOL" >&6; }
  6530. else
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6532. $as_echo "no" >&6; }
  6533. fi
  6534. fi
  6535. if test -z "$ac_cv_prog_DLLTOOL"; then
  6536. ac_ct_DLLTOOL=$DLLTOOL
  6537. # Extract the first word of "dlltool", so it can be a program name with args.
  6538. set dummy dlltool; ac_word=$2
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6540. $as_echo_n "checking for $ac_word... " >&6; }
  6541. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. if test -n "$ac_ct_DLLTOOL"; then
  6545. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6546. else
  6547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6548. for as_dir in $PATH
  6549. do
  6550. IFS=$as_save_IFS
  6551. test -z "$as_dir" && as_dir=.
  6552. for ac_exec_ext in '' $ac_executable_extensions; do
  6553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6554. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6556. break 2
  6557. fi
  6558. done
  6559. done
  6560. IFS=$as_save_IFS
  6561. fi
  6562. fi
  6563. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6564. if test -n "$ac_ct_DLLTOOL"; then
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6566. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6567. else
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6569. $as_echo "no" >&6; }
  6570. fi
  6571. if test "x$ac_ct_DLLTOOL" = x; then
  6572. DLLTOOL="false"
  6573. else
  6574. case $cross_compiling:$ac_tool_warned in
  6575. yes:)
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6578. ac_tool_warned=yes ;;
  6579. esac
  6580. DLLTOOL=$ac_ct_DLLTOOL
  6581. fi
  6582. else
  6583. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6584. fi
  6585. if test -n "$ac_tool_prefix"; then
  6586. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6587. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. if test -n "$OBJDUMP"; then
  6594. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6595. else
  6596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6597. for as_dir in $PATH
  6598. do
  6599. IFS=$as_save_IFS
  6600. test -z "$as_dir" && as_dir=.
  6601. for ac_exec_ext in '' $ac_executable_extensions; do
  6602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6603. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6605. break 2
  6606. fi
  6607. done
  6608. done
  6609. IFS=$as_save_IFS
  6610. fi
  6611. fi
  6612. OBJDUMP=$ac_cv_prog_OBJDUMP
  6613. if test -n "$OBJDUMP"; then
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6615. $as_echo "$OBJDUMP" >&6; }
  6616. else
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6618. $as_echo "no" >&6; }
  6619. fi
  6620. fi
  6621. if test -z "$ac_cv_prog_OBJDUMP"; then
  6622. ac_ct_OBJDUMP=$OBJDUMP
  6623. # Extract the first word of "objdump", so it can be a program name with args.
  6624. set dummy objdump; ac_word=$2
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6626. $as_echo_n "checking for $ac_word... " >&6; }
  6627. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. if test -n "$ac_ct_OBJDUMP"; then
  6631. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6632. else
  6633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6634. for as_dir in $PATH
  6635. do
  6636. IFS=$as_save_IFS
  6637. test -z "$as_dir" && as_dir=.
  6638. for ac_exec_ext in '' $ac_executable_extensions; do
  6639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6640. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6642. break 2
  6643. fi
  6644. done
  6645. done
  6646. IFS=$as_save_IFS
  6647. fi
  6648. fi
  6649. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6650. if test -n "$ac_ct_OBJDUMP"; then
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6652. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6653. else
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6655. $as_echo "no" >&6; }
  6656. fi
  6657. if test "x$ac_ct_OBJDUMP" = x; then
  6658. OBJDUMP="false"
  6659. else
  6660. case $cross_compiling:$ac_tool_warned in
  6661. yes:)
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6664. ac_tool_warned=yes ;;
  6665. esac
  6666. OBJDUMP=$ac_ct_OBJDUMP
  6667. fi
  6668. else
  6669. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6670. fi
  6671. ;;
  6672. esac
  6673. test -z "$AS" && AS=as
  6674. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6675. test -z "$OBJDUMP" && OBJDUMP=objdump
  6676. enable_dlopen=no
  6677. # Check whether --enable-shared was given.
  6678. if test "${enable_shared+set}" = set; then :
  6679. enableval=$enable_shared; p=${PACKAGE-default}
  6680. case $enableval in
  6681. yes) enable_shared=yes ;;
  6682. no) enable_shared=no ;;
  6683. *)
  6684. enable_shared=no
  6685. # Look at the argument we got. We use all the common list separators.
  6686. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6687. for pkg in $enableval; do
  6688. IFS="$lt_save_ifs"
  6689. if test "X$pkg" = "X$p"; then
  6690. enable_shared=yes
  6691. fi
  6692. done
  6693. IFS="$lt_save_ifs"
  6694. ;;
  6695. esac
  6696. else
  6697. enable_shared=yes
  6698. fi
  6699. # Check whether --enable-static was given.
  6700. if test "${enable_static+set}" = set; then :
  6701. enableval=$enable_static; p=${PACKAGE-default}
  6702. case $enableval in
  6703. yes) enable_static=yes ;;
  6704. no) enable_static=no ;;
  6705. *)
  6706. enable_static=no
  6707. # Look at the argument we got. We use all the common list separators.
  6708. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6709. for pkg in $enableval; do
  6710. IFS="$lt_save_ifs"
  6711. if test "X$pkg" = "X$p"; then
  6712. enable_static=yes
  6713. fi
  6714. done
  6715. IFS="$lt_save_ifs"
  6716. ;;
  6717. esac
  6718. else
  6719. enable_static=yes
  6720. fi
  6721. # Check whether --with-pic was given.
  6722. if test "${with_pic+set}" = set; then :
  6723. withval=$with_pic; lt_p=${PACKAGE-default}
  6724. case $withval in
  6725. yes|no) pic_mode=$withval ;;
  6726. *)
  6727. pic_mode=default
  6728. # Look at the argument we got. We use all the common list separators.
  6729. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6730. for lt_pkg in $withval; do
  6731. IFS="$lt_save_ifs"
  6732. if test "X$lt_pkg" = "X$lt_p"; then
  6733. pic_mode=yes
  6734. fi
  6735. done
  6736. IFS="$lt_save_ifs"
  6737. ;;
  6738. esac
  6739. else
  6740. pic_mode=default
  6741. fi
  6742. test -z "$pic_mode" && pic_mode=default
  6743. # Check whether --enable-fast-install was given.
  6744. if test "${enable_fast_install+set}" = set; then :
  6745. enableval=$enable_fast_install; p=${PACKAGE-default}
  6746. case $enableval in
  6747. yes) enable_fast_install=yes ;;
  6748. no) enable_fast_install=no ;;
  6749. *)
  6750. enable_fast_install=no
  6751. # Look at the argument we got. We use all the common list separators.
  6752. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6753. for pkg in $enableval; do
  6754. IFS="$lt_save_ifs"
  6755. if test "X$pkg" = "X$p"; then
  6756. enable_fast_install=yes
  6757. fi
  6758. done
  6759. IFS="$lt_save_ifs"
  6760. ;;
  6761. esac
  6762. else
  6763. enable_fast_install=yes
  6764. fi
  6765. # This can be used to rebuild libtool when needed
  6766. LIBTOOL_DEPS="$ltmain"
  6767. # Always use our own libtool.
  6768. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6769. test -z "$LN_S" && LN_S="ln -s"
  6770. if test -n "${ZSH_VERSION+set}" ; then
  6771. setopt NO_GLOB_SUBST
  6772. fi
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6774. $as_echo_n "checking for objdir... " >&6; }
  6775. if ${lt_cv_objdir+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. rm -f .libs 2>/dev/null
  6779. mkdir .libs 2>/dev/null
  6780. if test -d .libs; then
  6781. lt_cv_objdir=.libs
  6782. else
  6783. # MS-DOS does not allow filenames that begin with a dot.
  6784. lt_cv_objdir=_libs
  6785. fi
  6786. rmdir .libs 2>/dev/null
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6789. $as_echo "$lt_cv_objdir" >&6; }
  6790. objdir=$lt_cv_objdir
  6791. cat >>confdefs.h <<_ACEOF
  6792. #define LT_OBJDIR "$lt_cv_objdir/"
  6793. _ACEOF
  6794. case $host_os in
  6795. aix3*)
  6796. # AIX sometimes has problems with the GCC collect2 program. For some
  6797. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6798. # vanish in a puff of smoke.
  6799. if test "X${COLLECT_NAMES+set}" != Xset; then
  6800. COLLECT_NAMES=
  6801. export COLLECT_NAMES
  6802. fi
  6803. ;;
  6804. esac
  6805. # Global variables:
  6806. ofile=libtool
  6807. can_build_shared=yes
  6808. # All known linkers require a `.a' archive for static linking (except MSVC,
  6809. # which needs '.lib').
  6810. libext=a
  6811. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6812. old_CC="$CC"
  6813. old_CFLAGS="$CFLAGS"
  6814. # Set sane defaults for various variables
  6815. test -z "$CC" && CC=cc
  6816. test -z "$LTCC" && LTCC=$CC
  6817. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6818. test -z "$LD" && LD=ld
  6819. test -z "$ac_objext" && ac_objext=o
  6820. for cc_temp in $compiler""; do
  6821. case $cc_temp in
  6822. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6823. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6824. \-*) ;;
  6825. *) break;;
  6826. esac
  6827. done
  6828. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6829. # Only perform the check for file, if the check method requires it
  6830. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6831. case $deplibs_check_method in
  6832. file_magic*)
  6833. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6835. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6836. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6837. $as_echo_n "(cached) " >&6
  6838. else
  6839. case $MAGIC_CMD in
  6840. [\\/*] | ?:[\\/]*)
  6841. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6842. ;;
  6843. *)
  6844. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6845. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6846. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6847. for ac_dir in $ac_dummy; do
  6848. IFS="$lt_save_ifs"
  6849. test -z "$ac_dir" && ac_dir=.
  6850. if test -f $ac_dir/${ac_tool_prefix}file; then
  6851. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6852. if test -n "$file_magic_test_file"; then
  6853. case $deplibs_check_method in
  6854. "file_magic "*)
  6855. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6856. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6857. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6858. $EGREP "$file_magic_regex" > /dev/null; then
  6859. :
  6860. else
  6861. cat <<_LT_EOF 1>&2
  6862. *** Warning: the command libtool uses to detect shared libraries,
  6863. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6864. *** The result is that libtool may fail to recognize shared libraries
  6865. *** as such. This will affect the creation of libtool libraries that
  6866. *** depend on shared libraries, but programs linked with such libtool
  6867. *** libraries will work regardless of this problem. Nevertheless, you
  6868. *** may want to report the problem to your system manager and/or to
  6869. *** bug-libtool@gnu.org
  6870. _LT_EOF
  6871. fi ;;
  6872. esac
  6873. fi
  6874. break
  6875. fi
  6876. done
  6877. IFS="$lt_save_ifs"
  6878. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6879. ;;
  6880. esac
  6881. fi
  6882. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6883. if test -n "$MAGIC_CMD"; then
  6884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6885. $as_echo "$MAGIC_CMD" >&6; }
  6886. else
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. $as_echo "no" >&6; }
  6889. fi
  6890. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6891. if test -n "$ac_tool_prefix"; then
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6893. $as_echo_n "checking for file... " >&6; }
  6894. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. case $MAGIC_CMD in
  6898. [\\/*] | ?:[\\/]*)
  6899. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6900. ;;
  6901. *)
  6902. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6903. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6904. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6905. for ac_dir in $ac_dummy; do
  6906. IFS="$lt_save_ifs"
  6907. test -z "$ac_dir" && ac_dir=.
  6908. if test -f $ac_dir/file; then
  6909. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6910. if test -n "$file_magic_test_file"; then
  6911. case $deplibs_check_method in
  6912. "file_magic "*)
  6913. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6914. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6915. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6916. $EGREP "$file_magic_regex" > /dev/null; then
  6917. :
  6918. else
  6919. cat <<_LT_EOF 1>&2
  6920. *** Warning: the command libtool uses to detect shared libraries,
  6921. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6922. *** The result is that libtool may fail to recognize shared libraries
  6923. *** as such. This will affect the creation of libtool libraries that
  6924. *** depend on shared libraries, but programs linked with such libtool
  6925. *** libraries will work regardless of this problem. Nevertheless, you
  6926. *** may want to report the problem to your system manager and/or to
  6927. *** bug-libtool@gnu.org
  6928. _LT_EOF
  6929. fi ;;
  6930. esac
  6931. fi
  6932. break
  6933. fi
  6934. done
  6935. IFS="$lt_save_ifs"
  6936. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6937. ;;
  6938. esac
  6939. fi
  6940. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6941. if test -n "$MAGIC_CMD"; then
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6943. $as_echo "$MAGIC_CMD" >&6; }
  6944. else
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6946. $as_echo "no" >&6; }
  6947. fi
  6948. else
  6949. MAGIC_CMD=:
  6950. fi
  6951. fi
  6952. fi
  6953. ;;
  6954. esac
  6955. # Use C for the default configuration in the libtool script
  6956. lt_save_CC="$CC"
  6957. ac_ext=c
  6958. ac_cpp='$CPP $CPPFLAGS'
  6959. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6960. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6961. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6962. # Source file extension for C test sources.
  6963. ac_ext=c
  6964. # Object file extension for compiled C test sources.
  6965. objext=o
  6966. objext=$objext
  6967. # Code to be used in simple compile tests
  6968. lt_simple_compile_test_code="int some_variable = 0;"
  6969. # Code to be used in simple link tests
  6970. lt_simple_link_test_code='int main(){return(0);}'
  6971. # If no C compiler was specified, use CC.
  6972. LTCC=${LTCC-"$CC"}
  6973. # If no C compiler flags were specified, use CFLAGS.
  6974. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6975. # Allow CC to be a program name with arguments.
  6976. compiler=$CC
  6977. # Save the default compiler, since it gets overwritten when the other
  6978. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6979. compiler_DEFAULT=$CC
  6980. # save warnings/boilerplate of simple test code
  6981. ac_outfile=conftest.$ac_objext
  6982. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6983. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6984. _lt_compiler_boilerplate=`cat conftest.err`
  6985. $RM conftest*
  6986. ac_outfile=conftest.$ac_objext
  6987. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6988. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6989. _lt_linker_boilerplate=`cat conftest.err`
  6990. $RM -r conftest*
  6991. ## CAVEAT EMPTOR:
  6992. ## There is no encapsulation within the following macros, do not change
  6993. ## the running order or otherwise move them around unless you know exactly
  6994. ## what you are doing...
  6995. if test -n "$compiler"; then
  6996. lt_prog_compiler_no_builtin_flag=
  6997. if test "$GCC" = yes; then
  6998. case $cc_basename in
  6999. nvcc*)
  7000. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7001. *)
  7002. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7003. esac
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7005. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7006. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. lt_cv_prog_compiler_rtti_exceptions=no
  7010. ac_outfile=conftest.$ac_objext
  7011. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7012. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7013. # Insert the option either (1) after the last *FLAGS variable, or
  7014. # (2) before a word containing "conftest.", or (3) at the end.
  7015. # Note that $ac_compile itself does not contain backslashes and begins
  7016. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7017. # The option is referenced via a variable to avoid confusing sed.
  7018. lt_compile=`echo "$ac_compile" | $SED \
  7019. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7020. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7021. -e 's:$: $lt_compiler_flag:'`
  7022. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7023. (eval "$lt_compile" 2>conftest.err)
  7024. ac_status=$?
  7025. cat conftest.err >&5
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. if (exit $ac_status) && test -s "$ac_outfile"; then
  7028. # The compiler can only warn and ignore the option if not recognized
  7029. # So say no if there are warnings other than the usual output.
  7030. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7031. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7032. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7033. lt_cv_prog_compiler_rtti_exceptions=yes
  7034. fi
  7035. fi
  7036. $RM conftest*
  7037. fi
  7038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7039. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7040. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7041. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7042. else
  7043. :
  7044. fi
  7045. fi
  7046. lt_prog_compiler_wl=
  7047. lt_prog_compiler_pic=
  7048. lt_prog_compiler_static=
  7049. if test "$GCC" = yes; then
  7050. lt_prog_compiler_wl='-Wl,'
  7051. lt_prog_compiler_static='-static'
  7052. case $host_os in
  7053. aix*)
  7054. # All AIX code is PIC.
  7055. if test "$host_cpu" = ia64; then
  7056. # AIX 5 now supports IA64 processor
  7057. lt_prog_compiler_static='-Bstatic'
  7058. fi
  7059. ;;
  7060. amigaos*)
  7061. case $host_cpu in
  7062. powerpc)
  7063. # see comment about AmigaOS4 .so support
  7064. lt_prog_compiler_pic='-fPIC'
  7065. ;;
  7066. m68k)
  7067. # FIXME: we need at least 68020 code to build shared libraries, but
  7068. # adding the `-m68020' flag to GCC prevents building anything better,
  7069. # like `-m68040'.
  7070. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7071. ;;
  7072. esac
  7073. ;;
  7074. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7075. # PIC is the default for these OSes.
  7076. ;;
  7077. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7078. # This hack is so that the source file can tell whether it is being
  7079. # built for inclusion in a dll (and should export symbols for example).
  7080. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7081. # (--disable-auto-import) libraries
  7082. lt_prog_compiler_pic='-DDLL_EXPORT'
  7083. ;;
  7084. darwin* | rhapsody*)
  7085. # PIC is the default on this platform
  7086. # Common symbols not allowed in MH_DYLIB files
  7087. lt_prog_compiler_pic='-fno-common'
  7088. ;;
  7089. haiku*)
  7090. # PIC is the default for Haiku.
  7091. # The "-static" flag exists, but is broken.
  7092. lt_prog_compiler_static=
  7093. ;;
  7094. hpux*)
  7095. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7096. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7097. # sets the default TLS model and affects inlining.
  7098. case $host_cpu in
  7099. hppa*64*)
  7100. # +Z the default
  7101. ;;
  7102. *)
  7103. lt_prog_compiler_pic='-fPIC'
  7104. ;;
  7105. esac
  7106. ;;
  7107. interix[3-9]*)
  7108. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7109. # Instead, we relocate shared libraries at runtime.
  7110. ;;
  7111. msdosdjgpp*)
  7112. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7113. # on systems that don't support them.
  7114. lt_prog_compiler_can_build_shared=no
  7115. enable_shared=no
  7116. ;;
  7117. *nto* | *qnx*)
  7118. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7119. # it will coredump.
  7120. lt_prog_compiler_pic='-fPIC -shared'
  7121. ;;
  7122. sysv4*MP*)
  7123. if test -d /usr/nec; then
  7124. lt_prog_compiler_pic=-Kconform_pic
  7125. fi
  7126. ;;
  7127. *)
  7128. lt_prog_compiler_pic='-fPIC'
  7129. ;;
  7130. esac
  7131. case $cc_basename in
  7132. nvcc*) # Cuda Compiler Driver 2.2
  7133. lt_prog_compiler_wl='-Xlinker '
  7134. if test -n "$lt_prog_compiler_pic"; then
  7135. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7136. fi
  7137. ;;
  7138. esac
  7139. else
  7140. # PORTME Check for flag to pass linker flags through the system compiler.
  7141. case $host_os in
  7142. aix*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. if test "$host_cpu" = ia64; then
  7145. # AIX 5 now supports IA64 processor
  7146. lt_prog_compiler_static='-Bstatic'
  7147. else
  7148. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7149. fi
  7150. ;;
  7151. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7152. # This hack is so that the source file can tell whether it is being
  7153. # built for inclusion in a dll (and should export symbols for example).
  7154. lt_prog_compiler_pic='-DDLL_EXPORT'
  7155. ;;
  7156. hpux9* | hpux10* | hpux11*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7159. # not for PA HP-UX.
  7160. case $host_cpu in
  7161. hppa*64*|ia64*)
  7162. # +Z the default
  7163. ;;
  7164. *)
  7165. lt_prog_compiler_pic='+Z'
  7166. ;;
  7167. esac
  7168. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7169. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7170. ;;
  7171. irix5* | irix6* | nonstopux*)
  7172. lt_prog_compiler_wl='-Wl,'
  7173. # PIC (with -KPIC) is the default.
  7174. lt_prog_compiler_static='-non_shared'
  7175. ;;
  7176. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7177. case $cc_basename in
  7178. # old Intel for x86_64 which still supported -KPIC.
  7179. ecc*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-KPIC'
  7182. lt_prog_compiler_static='-static'
  7183. ;;
  7184. # icc used to be incompatible with GCC.
  7185. # ICC 10 doesn't accept -KPIC any more.
  7186. icc* | ifort*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-fPIC'
  7189. lt_prog_compiler_static='-static'
  7190. ;;
  7191. # Lahey Fortran 8.1.
  7192. lf95*)
  7193. lt_prog_compiler_wl='-Wl,'
  7194. lt_prog_compiler_pic='--shared'
  7195. lt_prog_compiler_static='--static'
  7196. ;;
  7197. nagfor*)
  7198. # NAG Fortran compiler
  7199. lt_prog_compiler_wl='-Wl,-Wl,,'
  7200. lt_prog_compiler_pic='-PIC'
  7201. lt_prog_compiler_static='-Bstatic'
  7202. ;;
  7203. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7204. # Portland Group compilers (*not* the Pentium gcc compiler,
  7205. # which looks to be a dead project)
  7206. lt_prog_compiler_wl='-Wl,'
  7207. lt_prog_compiler_pic='-fpic'
  7208. lt_prog_compiler_static='-Bstatic'
  7209. ;;
  7210. ccc*)
  7211. lt_prog_compiler_wl='-Wl,'
  7212. # All Alpha code is PIC.
  7213. lt_prog_compiler_static='-non_shared'
  7214. ;;
  7215. xl* | bgxl* | bgf* | mpixl*)
  7216. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7217. lt_prog_compiler_wl='-Wl,'
  7218. lt_prog_compiler_pic='-qpic'
  7219. lt_prog_compiler_static='-qstaticlink'
  7220. ;;
  7221. *)
  7222. case `$CC -V 2>&1 | sed 5q` in
  7223. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7224. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7225. lt_prog_compiler_pic='-KPIC'
  7226. lt_prog_compiler_static='-Bstatic'
  7227. lt_prog_compiler_wl=''
  7228. ;;
  7229. *Sun\ F* | *Sun*Fortran*)
  7230. lt_prog_compiler_pic='-KPIC'
  7231. lt_prog_compiler_static='-Bstatic'
  7232. lt_prog_compiler_wl='-Qoption ld '
  7233. ;;
  7234. *Sun\ C*)
  7235. # Sun C 5.9
  7236. lt_prog_compiler_pic='-KPIC'
  7237. lt_prog_compiler_static='-Bstatic'
  7238. lt_prog_compiler_wl='-Wl,'
  7239. ;;
  7240. *Intel*\ [CF]*Compiler*)
  7241. lt_prog_compiler_wl='-Wl,'
  7242. lt_prog_compiler_pic='-fPIC'
  7243. lt_prog_compiler_static='-static'
  7244. ;;
  7245. *Portland\ Group*)
  7246. lt_prog_compiler_wl='-Wl,'
  7247. lt_prog_compiler_pic='-fpic'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. ;;
  7250. esac
  7251. ;;
  7252. esac
  7253. ;;
  7254. newsos6)
  7255. lt_prog_compiler_pic='-KPIC'
  7256. lt_prog_compiler_static='-Bstatic'
  7257. ;;
  7258. *nto* | *qnx*)
  7259. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7260. # it will coredump.
  7261. lt_prog_compiler_pic='-fPIC -shared'
  7262. ;;
  7263. osf3* | osf4* | osf5*)
  7264. lt_prog_compiler_wl='-Wl,'
  7265. # All OSF/1 code is PIC.
  7266. lt_prog_compiler_static='-non_shared'
  7267. ;;
  7268. rdos*)
  7269. lt_prog_compiler_static='-non_shared'
  7270. ;;
  7271. solaris*)
  7272. lt_prog_compiler_pic='-KPIC'
  7273. lt_prog_compiler_static='-Bstatic'
  7274. case $cc_basename in
  7275. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7276. lt_prog_compiler_wl='-Qoption ld ';;
  7277. *)
  7278. lt_prog_compiler_wl='-Wl,';;
  7279. esac
  7280. ;;
  7281. sunos4*)
  7282. lt_prog_compiler_wl='-Qoption ld '
  7283. lt_prog_compiler_pic='-PIC'
  7284. lt_prog_compiler_static='-Bstatic'
  7285. ;;
  7286. sysv4 | sysv4.2uw2* | sysv4.3*)
  7287. lt_prog_compiler_wl='-Wl,'
  7288. lt_prog_compiler_pic='-KPIC'
  7289. lt_prog_compiler_static='-Bstatic'
  7290. ;;
  7291. sysv4*MP*)
  7292. if test -d /usr/nec ;then
  7293. lt_prog_compiler_pic='-Kconform_pic'
  7294. lt_prog_compiler_static='-Bstatic'
  7295. fi
  7296. ;;
  7297. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7298. lt_prog_compiler_wl='-Wl,'
  7299. lt_prog_compiler_pic='-KPIC'
  7300. lt_prog_compiler_static='-Bstatic'
  7301. ;;
  7302. unicos*)
  7303. lt_prog_compiler_wl='-Wl,'
  7304. lt_prog_compiler_can_build_shared=no
  7305. ;;
  7306. uts4*)
  7307. lt_prog_compiler_pic='-pic'
  7308. lt_prog_compiler_static='-Bstatic'
  7309. ;;
  7310. *)
  7311. lt_prog_compiler_can_build_shared=no
  7312. ;;
  7313. esac
  7314. fi
  7315. case $host_os in
  7316. # For platforms which do not support PIC, -DPIC is meaningless:
  7317. *djgpp*)
  7318. lt_prog_compiler_pic=
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7322. ;;
  7323. esac
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7325. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7326. if ${lt_cv_prog_compiler_pic+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7332. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7333. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7334. #
  7335. # Check to make sure the PIC flag actually works.
  7336. #
  7337. if test -n "$lt_prog_compiler_pic"; then
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7339. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7340. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7341. $as_echo_n "(cached) " >&6
  7342. else
  7343. lt_cv_prog_compiler_pic_works=no
  7344. ac_outfile=conftest.$ac_objext
  7345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7346. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7347. # Insert the option either (1) after the last *FLAGS variable, or
  7348. # (2) before a word containing "conftest.", or (3) at the end.
  7349. # Note that $ac_compile itself does not contain backslashes and begins
  7350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7351. # The option is referenced via a variable to avoid confusing sed.
  7352. lt_compile=`echo "$ac_compile" | $SED \
  7353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7355. -e 's:$: $lt_compiler_flag:'`
  7356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7357. (eval "$lt_compile" 2>conftest.err)
  7358. ac_status=$?
  7359. cat conftest.err >&5
  7360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7361. if (exit $ac_status) && test -s "$ac_outfile"; then
  7362. # The compiler can only warn and ignore the option if not recognized
  7363. # So say no if there are warnings other than the usual output.
  7364. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7365. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7366. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7367. lt_cv_prog_compiler_pic_works=yes
  7368. fi
  7369. fi
  7370. $RM conftest*
  7371. fi
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7373. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7374. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7375. case $lt_prog_compiler_pic in
  7376. "" | " "*) ;;
  7377. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7378. esac
  7379. else
  7380. lt_prog_compiler_pic=
  7381. lt_prog_compiler_can_build_shared=no
  7382. fi
  7383. fi
  7384. #
  7385. # Check to make sure the static flag actually works.
  7386. #
  7387. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7389. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7390. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7391. $as_echo_n "(cached) " >&6
  7392. else
  7393. lt_cv_prog_compiler_static_works=no
  7394. save_LDFLAGS="$LDFLAGS"
  7395. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7396. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7397. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7398. # The linker can only warn and ignore the option if not recognized
  7399. # So say no if there are warnings
  7400. if test -s conftest.err; then
  7401. # Append any errors to the config.log.
  7402. cat conftest.err 1>&5
  7403. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7404. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7405. if diff conftest.exp conftest.er2 >/dev/null; then
  7406. lt_cv_prog_compiler_static_works=yes
  7407. fi
  7408. else
  7409. lt_cv_prog_compiler_static_works=yes
  7410. fi
  7411. fi
  7412. $RM -r conftest*
  7413. LDFLAGS="$save_LDFLAGS"
  7414. fi
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7416. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7417. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7418. :
  7419. else
  7420. lt_prog_compiler_static=
  7421. fi
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7423. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7424. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7425. $as_echo_n "(cached) " >&6
  7426. else
  7427. lt_cv_prog_compiler_c_o=no
  7428. $RM -r conftest 2>/dev/null
  7429. mkdir conftest
  7430. cd conftest
  7431. mkdir out
  7432. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7433. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7434. # Insert the option either (1) after the last *FLAGS variable, or
  7435. # (2) before a word containing "conftest.", or (3) at the end.
  7436. # Note that $ac_compile itself does not contain backslashes and begins
  7437. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7438. lt_compile=`echo "$ac_compile" | $SED \
  7439. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7440. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7441. -e 's:$: $lt_compiler_flag:'`
  7442. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7443. (eval "$lt_compile" 2>out/conftest.err)
  7444. ac_status=$?
  7445. cat out/conftest.err >&5
  7446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7448. then
  7449. # The compiler can only warn and ignore the option if not recognized
  7450. # So say no if there are warnings
  7451. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7452. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7453. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7454. lt_cv_prog_compiler_c_o=yes
  7455. fi
  7456. fi
  7457. chmod u+w . 2>&5
  7458. $RM conftest*
  7459. # SGI C++ compiler will create directory out/ii_files/ for
  7460. # template instantiation
  7461. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7462. $RM out/* && rmdir out
  7463. cd ..
  7464. $RM -r conftest
  7465. $RM conftest*
  7466. fi
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7468. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7470. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7471. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7472. $as_echo_n "(cached) " >&6
  7473. else
  7474. lt_cv_prog_compiler_c_o=no
  7475. $RM -r conftest 2>/dev/null
  7476. mkdir conftest
  7477. cd conftest
  7478. mkdir out
  7479. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7480. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7481. # Insert the option either (1) after the last *FLAGS variable, or
  7482. # (2) before a word containing "conftest.", or (3) at the end.
  7483. # Note that $ac_compile itself does not contain backslashes and begins
  7484. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7485. lt_compile=`echo "$ac_compile" | $SED \
  7486. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7487. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7488. -e 's:$: $lt_compiler_flag:'`
  7489. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7490. (eval "$lt_compile" 2>out/conftest.err)
  7491. ac_status=$?
  7492. cat out/conftest.err >&5
  7493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7494. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7495. then
  7496. # The compiler can only warn and ignore the option if not recognized
  7497. # So say no if there are warnings
  7498. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7499. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7500. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7501. lt_cv_prog_compiler_c_o=yes
  7502. fi
  7503. fi
  7504. chmod u+w . 2>&5
  7505. $RM conftest*
  7506. # SGI C++ compiler will create directory out/ii_files/ for
  7507. # template instantiation
  7508. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7509. $RM out/* && rmdir out
  7510. cd ..
  7511. $RM -r conftest
  7512. $RM conftest*
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7515. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7516. hard_links="nottested"
  7517. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7518. # do not overwrite the value of need_locks provided by the user
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7520. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7521. hard_links=yes
  7522. $RM conftest*
  7523. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7524. touch conftest.a
  7525. ln conftest.a conftest.b 2>&5 || hard_links=no
  7526. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7528. $as_echo "$hard_links" >&6; }
  7529. if test "$hard_links" = no; then
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7531. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7532. need_locks=warn
  7533. fi
  7534. else
  7535. need_locks=no
  7536. fi
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7538. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7539. runpath_var=
  7540. allow_undefined_flag=
  7541. always_export_symbols=no
  7542. archive_cmds=
  7543. archive_expsym_cmds=
  7544. compiler_needs_object=no
  7545. enable_shared_with_static_runtimes=no
  7546. export_dynamic_flag_spec=
  7547. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7548. hardcode_automatic=no
  7549. hardcode_direct=no
  7550. hardcode_direct_absolute=no
  7551. hardcode_libdir_flag_spec=
  7552. hardcode_libdir_separator=
  7553. hardcode_minus_L=no
  7554. hardcode_shlibpath_var=unsupported
  7555. inherit_rpath=no
  7556. link_all_deplibs=unknown
  7557. module_cmds=
  7558. module_expsym_cmds=
  7559. old_archive_from_new_cmds=
  7560. old_archive_from_expsyms_cmds=
  7561. thread_safe_flag_spec=
  7562. whole_archive_flag_spec=
  7563. # include_expsyms should be a list of space-separated symbols to be *always*
  7564. # included in the symbol list
  7565. include_expsyms=
  7566. # exclude_expsyms can be an extended regexp of symbols to exclude
  7567. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7568. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7569. # as well as any symbol that contains `d'.
  7570. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7571. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7572. # platforms (ab)use it in PIC code, but their linkers get confused if
  7573. # the symbol is explicitly referenced. Since portable code cannot
  7574. # rely on this symbol name, it's probably fine to never include it in
  7575. # preloaded symbol tables.
  7576. # Exclude shared library initialization/finalization symbols.
  7577. extract_expsyms_cmds=
  7578. case $host_os in
  7579. cygwin* | mingw* | pw32* | cegcc*)
  7580. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7581. # When not using gcc, we currently assume that we are using
  7582. # Microsoft Visual C++.
  7583. if test "$GCC" != yes; then
  7584. with_gnu_ld=no
  7585. fi
  7586. ;;
  7587. interix*)
  7588. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7589. with_gnu_ld=yes
  7590. ;;
  7591. openbsd*)
  7592. with_gnu_ld=no
  7593. ;;
  7594. esac
  7595. ld_shlibs=yes
  7596. # On some targets, GNU ld is compatible enough with the native linker
  7597. # that we're better off using the native interface for both.
  7598. lt_use_gnu_ld_interface=no
  7599. if test "$with_gnu_ld" = yes; then
  7600. case $host_os in
  7601. aix*)
  7602. # The AIX port of GNU ld has always aspired to compatibility
  7603. # with the native linker. However, as the warning in the GNU ld
  7604. # block says, versions before 2.19.5* couldn't really create working
  7605. # shared libraries, regardless of the interface used.
  7606. case `$LD -v 2>&1` in
  7607. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7608. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7609. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7610. *)
  7611. lt_use_gnu_ld_interface=yes
  7612. ;;
  7613. esac
  7614. ;;
  7615. *)
  7616. lt_use_gnu_ld_interface=yes
  7617. ;;
  7618. esac
  7619. fi
  7620. if test "$lt_use_gnu_ld_interface" = yes; then
  7621. # If archive_cmds runs LD, not CC, wlarc should be empty
  7622. wlarc='${wl}'
  7623. # Set some defaults for GNU ld with shared library support. These
  7624. # are reset later if shared libraries are not supported. Putting them
  7625. # here allows them to be overridden if necessary.
  7626. runpath_var=LD_RUN_PATH
  7627. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7628. export_dynamic_flag_spec='${wl}--export-dynamic'
  7629. # ancient GNU ld didn't support --whole-archive et. al.
  7630. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7631. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7632. else
  7633. whole_archive_flag_spec=
  7634. fi
  7635. supports_anon_versioning=no
  7636. case `$LD -v 2>&1` in
  7637. *GNU\ gold*) supports_anon_versioning=yes ;;
  7638. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7639. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7640. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7641. *\ 2.11.*) ;; # other 2.11 versions
  7642. *) supports_anon_versioning=yes ;;
  7643. esac
  7644. # See if GNU ld supports shared libraries.
  7645. case $host_os in
  7646. aix[3-9]*)
  7647. # On AIX/PPC, the GNU linker is very broken
  7648. if test "$host_cpu" != ia64; then
  7649. ld_shlibs=no
  7650. cat <<_LT_EOF 1>&2
  7651. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7652. *** to be unable to reliably create shared libraries on AIX.
  7653. *** Therefore, libtool is disabling shared libraries support. If you
  7654. *** really care for shared libraries, you may want to install binutils
  7655. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7656. *** You will then need to restart the configuration process.
  7657. _LT_EOF
  7658. fi
  7659. ;;
  7660. amigaos*)
  7661. case $host_cpu in
  7662. powerpc)
  7663. # see comment about AmigaOS4 .so support
  7664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7665. archive_expsym_cmds=''
  7666. ;;
  7667. m68k)
  7668. 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)'
  7669. hardcode_libdir_flag_spec='-L$libdir'
  7670. hardcode_minus_L=yes
  7671. ;;
  7672. esac
  7673. ;;
  7674. beos*)
  7675. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7676. allow_undefined_flag=unsupported
  7677. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7678. # support --undefined. This deserves some investigation. FIXME
  7679. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7680. else
  7681. ld_shlibs=no
  7682. fi
  7683. ;;
  7684. cygwin* | mingw* | pw32* | cegcc*)
  7685. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7686. # as there is no search path for DLLs.
  7687. hardcode_libdir_flag_spec='-L$libdir'
  7688. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7689. allow_undefined_flag=unsupported
  7690. always_export_symbols=no
  7691. enable_shared_with_static_runtimes=yes
  7692. 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'
  7693. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7694. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7695. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7696. # If the export-symbols file already is a .def file (1st line
  7697. # is EXPORTS), use it as is; otherwise, prepend...
  7698. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7699. cp $export_symbols $output_objdir/$soname.def;
  7700. else
  7701. echo EXPORTS > $output_objdir/$soname.def;
  7702. cat $export_symbols >> $output_objdir/$soname.def;
  7703. fi~
  7704. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. haiku*)
  7710. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. link_all_deplibs=yes
  7712. ;;
  7713. interix[3-9]*)
  7714. hardcode_direct=no
  7715. hardcode_shlibpath_var=no
  7716. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7717. export_dynamic_flag_spec='${wl}-E'
  7718. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7719. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7720. # default) and relocated if they conflict, which is a slow very memory
  7721. # consuming and fragmenting process. To avoid this, we pick a random,
  7722. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7723. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7724. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7725. 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'
  7726. ;;
  7727. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7728. tmp_diet=no
  7729. if test "$host_os" = linux-dietlibc; then
  7730. case $cc_basename in
  7731. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7732. esac
  7733. fi
  7734. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7735. && test "$tmp_diet" = no
  7736. then
  7737. tmp_addflag=' $pic_flag'
  7738. tmp_sharedflag='-shared'
  7739. case $cc_basename,$host_cpu in
  7740. pgcc*) # Portland Group C compiler
  7741. 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'
  7742. tmp_addflag=' $pic_flag'
  7743. ;;
  7744. pgf77* | pgf90* | pgf95* | pgfortran*)
  7745. # Portland Group f77 and f90 compilers
  7746. 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'
  7747. tmp_addflag=' $pic_flag -Mnomain' ;;
  7748. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7749. tmp_addflag=' -i_dynamic' ;;
  7750. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7751. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7752. ifc* | ifort*) # Intel Fortran compiler
  7753. tmp_addflag=' -nofor_main' ;;
  7754. lf95*) # Lahey Fortran 8.1
  7755. whole_archive_flag_spec=
  7756. tmp_sharedflag='--shared' ;;
  7757. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7758. tmp_sharedflag='-qmkshrobj'
  7759. tmp_addflag= ;;
  7760. nvcc*) # Cuda Compiler Driver 2.2
  7761. 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'
  7762. compiler_needs_object=yes
  7763. ;;
  7764. esac
  7765. case `$CC -V 2>&1 | sed 5q` in
  7766. *Sun\ C*) # Sun C 5.9
  7767. 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'
  7768. compiler_needs_object=yes
  7769. tmp_sharedflag='-G' ;;
  7770. *Sun\ F*) # Sun Fortran 8.3
  7771. tmp_sharedflag='-G' ;;
  7772. esac
  7773. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7774. if test "x$supports_anon_versioning" = xyes; then
  7775. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7776. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7777. echo "local: *; };" >> $output_objdir/$libname.ver~
  7778. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7779. fi
  7780. case $cc_basename in
  7781. xlf* | bgf* | bgxlf* | mpixlf*)
  7782. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7783. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7784. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7785. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7786. if test "x$supports_anon_versioning" = xyes; then
  7787. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7788. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7789. echo "local: *; };" >> $output_objdir/$libname.ver~
  7790. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7791. fi
  7792. ;;
  7793. esac
  7794. else
  7795. ld_shlibs=no
  7796. fi
  7797. ;;
  7798. netbsd*)
  7799. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7800. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7801. wlarc=
  7802. else
  7803. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7804. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7805. fi
  7806. ;;
  7807. solaris*)
  7808. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7809. ld_shlibs=no
  7810. cat <<_LT_EOF 1>&2
  7811. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7812. *** create shared libraries on Solaris systems. Therefore, libtool
  7813. *** is disabling shared libraries support. We urge you to upgrade GNU
  7814. *** binutils to release 2.9.1 or newer. Another option is to modify
  7815. *** your PATH or compiler configuration so that the native linker is
  7816. *** used, and then restart.
  7817. _LT_EOF
  7818. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7819. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7820. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7821. else
  7822. ld_shlibs=no
  7823. fi
  7824. ;;
  7825. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7826. case `$LD -v 2>&1` in
  7827. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7828. ld_shlibs=no
  7829. cat <<_LT_EOF 1>&2
  7830. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7831. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7832. *** is disabling shared libraries support. We urge you to upgrade GNU
  7833. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7834. *** your PATH or compiler configuration so that the native linker is
  7835. *** used, and then restart.
  7836. _LT_EOF
  7837. ;;
  7838. *)
  7839. # For security reasons, it is highly recommended that you always
  7840. # use absolute paths for naming shared libraries, and exclude the
  7841. # DT_RUNPATH tag from executables and libraries. But doing so
  7842. # requires that you compile everything twice, which is a pain.
  7843. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7844. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7845. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7846. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7847. else
  7848. ld_shlibs=no
  7849. fi
  7850. ;;
  7851. esac
  7852. ;;
  7853. sunos4*)
  7854. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7855. wlarc=
  7856. hardcode_direct=yes
  7857. hardcode_shlibpath_var=no
  7858. ;;
  7859. *)
  7860. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7861. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7862. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7863. else
  7864. ld_shlibs=no
  7865. fi
  7866. ;;
  7867. esac
  7868. if test "$ld_shlibs" = no; then
  7869. runpath_var=
  7870. hardcode_libdir_flag_spec=
  7871. export_dynamic_flag_spec=
  7872. whole_archive_flag_spec=
  7873. fi
  7874. else
  7875. # PORTME fill in a description of your system's linker (not GNU ld)
  7876. case $host_os in
  7877. aix3*)
  7878. allow_undefined_flag=unsupported
  7879. always_export_symbols=yes
  7880. 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'
  7881. # Note: this linker hardcodes the directories in LIBPATH if there
  7882. # are no directories specified by -L.
  7883. hardcode_minus_L=yes
  7884. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7885. # Neither direct hardcoding nor static linking is supported with a
  7886. # broken collect2.
  7887. hardcode_direct=unsupported
  7888. fi
  7889. ;;
  7890. aix[4-9]*)
  7891. if test "$host_cpu" = ia64; then
  7892. # On IA64, the linker does run time linking by default, so we don't
  7893. # have to do anything special.
  7894. aix_use_runtimelinking=no
  7895. exp_sym_flag='-Bexport'
  7896. no_entry_flag=""
  7897. else
  7898. # If we're using GNU nm, then we don't want the "-C" option.
  7899. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7900. # Also, AIX nm treats weak defined symbols like other global
  7901. # defined symbols, whereas GNU nm marks them as "W".
  7902. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7903. 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'
  7904. else
  7905. 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'
  7906. fi
  7907. aix_use_runtimelinking=no
  7908. # Test if we are trying to use run time linking or normal
  7909. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7910. # need to do runtime linking.
  7911. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7912. for ld_flag in $LDFLAGS; do
  7913. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7914. aix_use_runtimelinking=yes
  7915. break
  7916. fi
  7917. done
  7918. ;;
  7919. esac
  7920. exp_sym_flag='-bexport'
  7921. no_entry_flag='-bnoentry'
  7922. fi
  7923. # When large executables or shared objects are built, AIX ld can
  7924. # have problems creating the table of contents. If linking a library
  7925. # or program results in "error TOC overflow" add -mminimal-toc to
  7926. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7927. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7928. archive_cmds=''
  7929. hardcode_direct=yes
  7930. hardcode_direct_absolute=yes
  7931. hardcode_libdir_separator=':'
  7932. link_all_deplibs=yes
  7933. file_list_spec='${wl}-f,'
  7934. if test "$GCC" = yes; then
  7935. case $host_os in aix4.[012]|aix4.[012].*)
  7936. # We only want to do this on AIX 4.2 and lower, the check
  7937. # below for broken collect2 doesn't work under 4.3+
  7938. collect2name=`${CC} -print-prog-name=collect2`
  7939. if test -f "$collect2name" &&
  7940. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7941. then
  7942. # We have reworked collect2
  7943. :
  7944. else
  7945. # We have old collect2
  7946. hardcode_direct=unsupported
  7947. # It fails to find uninstalled libraries when the uninstalled
  7948. # path is not listed in the libpath. Setting hardcode_minus_L
  7949. # to unsupported forces relinking
  7950. hardcode_minus_L=yes
  7951. hardcode_libdir_flag_spec='-L$libdir'
  7952. hardcode_libdir_separator=
  7953. fi
  7954. ;;
  7955. esac
  7956. shared_flag='-shared'
  7957. if test "$aix_use_runtimelinking" = yes; then
  7958. shared_flag="$shared_flag "'${wl}-G'
  7959. fi
  7960. else
  7961. # not using gcc
  7962. if test "$host_cpu" = ia64; then
  7963. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7964. # chokes on -Wl,-G. The following line is correct:
  7965. shared_flag='-G'
  7966. else
  7967. if test "$aix_use_runtimelinking" = yes; then
  7968. shared_flag='${wl}-G'
  7969. else
  7970. shared_flag='${wl}-bM:SRE'
  7971. fi
  7972. fi
  7973. fi
  7974. export_dynamic_flag_spec='${wl}-bexpall'
  7975. # It seems that -bexpall does not export symbols beginning with
  7976. # underscore (_), so it is better to generate a list of symbols to export.
  7977. always_export_symbols=yes
  7978. if test "$aix_use_runtimelinking" = yes; then
  7979. # Warning - without using the other runtime loading flags (-brtl),
  7980. # -berok will link without error, but may produce a broken library.
  7981. allow_undefined_flag='-berok'
  7982. # Determine the default libpath from the value encoded in an
  7983. # empty executable.
  7984. if test "${lt_cv_aix_libpath+set}" = set; then
  7985. aix_libpath=$lt_cv_aix_libpath
  7986. else
  7987. if ${lt_cv_aix_libpath_+:} false; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7991. /* end confdefs.h. */
  7992. int
  7993. main ()
  7994. {
  7995. ;
  7996. return 0;
  7997. }
  7998. _ACEOF
  7999. if ac_fn_c_try_link "$LINENO"; then :
  8000. lt_aix_libpath_sed='
  8001. /Import File Strings/,/^$/ {
  8002. /^0/ {
  8003. s/^0 *\([^ ]*\) *$/\1/
  8004. p
  8005. }
  8006. }'
  8007. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. # Check for a 64-bit object if we didn't find anything.
  8009. if test -z "$lt_cv_aix_libpath_"; then
  8010. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8011. fi
  8012. fi
  8013. rm -f core conftest.err conftest.$ac_objext \
  8014. conftest$ac_exeext conftest.$ac_ext
  8015. if test -z "$lt_cv_aix_libpath_"; then
  8016. lt_cv_aix_libpath_="/usr/lib:/lib"
  8017. fi
  8018. fi
  8019. aix_libpath=$lt_cv_aix_libpath_
  8020. fi
  8021. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8022. 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"
  8023. else
  8024. if test "$host_cpu" = ia64; then
  8025. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8026. allow_undefined_flag="-z nodefs"
  8027. 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"
  8028. else
  8029. # Determine the default libpath from the value encoded in an
  8030. # empty executable.
  8031. if test "${lt_cv_aix_libpath+set}" = set; then
  8032. aix_libpath=$lt_cv_aix_libpath
  8033. else
  8034. if ${lt_cv_aix_libpath_+:} false; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8038. /* end confdefs.h. */
  8039. int
  8040. main ()
  8041. {
  8042. ;
  8043. return 0;
  8044. }
  8045. _ACEOF
  8046. if ac_fn_c_try_link "$LINENO"; then :
  8047. lt_aix_libpath_sed='
  8048. /Import File Strings/,/^$/ {
  8049. /^0/ {
  8050. s/^0 *\([^ ]*\) *$/\1/
  8051. p
  8052. }
  8053. }'
  8054. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8055. # Check for a 64-bit object if we didn't find anything.
  8056. if test -z "$lt_cv_aix_libpath_"; then
  8057. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8058. fi
  8059. fi
  8060. rm -f core conftest.err conftest.$ac_objext \
  8061. conftest$ac_exeext conftest.$ac_ext
  8062. if test -z "$lt_cv_aix_libpath_"; then
  8063. lt_cv_aix_libpath_="/usr/lib:/lib"
  8064. fi
  8065. fi
  8066. aix_libpath=$lt_cv_aix_libpath_
  8067. fi
  8068. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8069. # Warning - without using the other run time loading flags,
  8070. # -berok will link without error, but may produce a broken library.
  8071. no_undefined_flag=' ${wl}-bernotok'
  8072. allow_undefined_flag=' ${wl}-berok'
  8073. if test "$with_gnu_ld" = yes; then
  8074. # We only use this code for GNU lds that support --whole-archive.
  8075. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8076. else
  8077. # Exported symbols can be pulled into shared objects from archives
  8078. whole_archive_flag_spec='$convenience'
  8079. fi
  8080. archive_cmds_need_lc=yes
  8081. # This is similar to how AIX traditionally builds its shared libraries.
  8082. 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'
  8083. fi
  8084. fi
  8085. ;;
  8086. amigaos*)
  8087. case $host_cpu in
  8088. powerpc)
  8089. # see comment about AmigaOS4 .so support
  8090. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8091. archive_expsym_cmds=''
  8092. ;;
  8093. m68k)
  8094. 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)'
  8095. hardcode_libdir_flag_spec='-L$libdir'
  8096. hardcode_minus_L=yes
  8097. ;;
  8098. esac
  8099. ;;
  8100. bsdi[45]*)
  8101. export_dynamic_flag_spec=-rdynamic
  8102. ;;
  8103. cygwin* | mingw* | pw32* | cegcc*)
  8104. # When not using gcc, we currently assume that we are using
  8105. # Microsoft Visual C++.
  8106. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8107. # no search path for DLLs.
  8108. case $cc_basename in
  8109. cl*)
  8110. # Native MSVC
  8111. hardcode_libdir_flag_spec=' '
  8112. allow_undefined_flag=unsupported
  8113. always_export_symbols=yes
  8114. file_list_spec='@'
  8115. # Tell ltmain to make .lib files, not .a files.
  8116. libext=lib
  8117. # Tell ltmain to make .dll files, not .so files.
  8118. shrext_cmds=".dll"
  8119. # FIXME: Setting linknames here is a bad hack.
  8120. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8121. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8122. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8123. else
  8124. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8125. fi~
  8126. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8127. linknames='
  8128. # The linker will not automatically build a static lib if we build a DLL.
  8129. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8130. enable_shared_with_static_runtimes=yes
  8131. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8132. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8133. # Don't use ranlib
  8134. old_postinstall_cmds='chmod 644 $oldlib'
  8135. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8136. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8137. case $lt_outputfile in
  8138. *.exe|*.EXE) ;;
  8139. *)
  8140. lt_outputfile="$lt_outputfile.exe"
  8141. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8142. ;;
  8143. esac~
  8144. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8145. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8146. $RM "$lt_outputfile.manifest";
  8147. fi'
  8148. ;;
  8149. *)
  8150. # Assume MSVC wrapper
  8151. hardcode_libdir_flag_spec=' '
  8152. allow_undefined_flag=unsupported
  8153. # Tell ltmain to make .lib files, not .a files.
  8154. libext=lib
  8155. # Tell ltmain to make .dll files, not .so files.
  8156. shrext_cmds=".dll"
  8157. # FIXME: Setting linknames here is a bad hack.
  8158. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8159. # The linker will automatically build a .lib file if we build a DLL.
  8160. old_archive_from_new_cmds='true'
  8161. # FIXME: Should let the user specify the lib program.
  8162. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8163. enable_shared_with_static_runtimes=yes
  8164. ;;
  8165. esac
  8166. ;;
  8167. darwin* | rhapsody*)
  8168. archive_cmds_need_lc=no
  8169. hardcode_direct=no
  8170. hardcode_automatic=yes
  8171. hardcode_shlibpath_var=unsupported
  8172. if test "$lt_cv_ld_force_load" = "yes"; then
  8173. 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\"`'
  8174. else
  8175. whole_archive_flag_spec=''
  8176. fi
  8177. link_all_deplibs=yes
  8178. allow_undefined_flag="$_lt_dar_allow_undefined"
  8179. case $cc_basename in
  8180. ifort*) _lt_dar_can_shared=yes ;;
  8181. *) _lt_dar_can_shared=$GCC ;;
  8182. esac
  8183. if test "$_lt_dar_can_shared" = "yes"; then
  8184. output_verbose_link_cmd=func_echo_all
  8185. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8186. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8187. 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}"
  8188. 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}"
  8189. else
  8190. ld_shlibs=no
  8191. fi
  8192. ;;
  8193. dgux*)
  8194. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8195. hardcode_libdir_flag_spec='-L$libdir'
  8196. hardcode_shlibpath_var=no
  8197. ;;
  8198. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8199. # support. Future versions do this automatically, but an explicit c++rt0.o
  8200. # does not break anything, and helps significantly (at the cost of a little
  8201. # extra space).
  8202. freebsd2.2*)
  8203. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8204. hardcode_libdir_flag_spec='-R$libdir'
  8205. hardcode_direct=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8209. freebsd2.*)
  8210. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8211. hardcode_direct=yes
  8212. hardcode_minus_L=yes
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8216. freebsd* | dragonfly*)
  8217. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8218. hardcode_libdir_flag_spec='-R$libdir'
  8219. hardcode_direct=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. hpux9*)
  8223. if test "$GCC" = yes; then
  8224. 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'
  8225. else
  8226. 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'
  8227. fi
  8228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8229. hardcode_libdir_separator=:
  8230. hardcode_direct=yes
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. export_dynamic_flag_spec='${wl}-E'
  8235. ;;
  8236. hpux10*)
  8237. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8238. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8239. else
  8240. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8241. fi
  8242. if test "$with_gnu_ld" = no; then
  8243. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8244. hardcode_libdir_separator=:
  8245. hardcode_direct=yes
  8246. hardcode_direct_absolute=yes
  8247. export_dynamic_flag_spec='${wl}-E'
  8248. # hardcode_minus_L: Not really in the search PATH,
  8249. # but as the default location of the library.
  8250. hardcode_minus_L=yes
  8251. fi
  8252. ;;
  8253. hpux11*)
  8254. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8255. case $host_cpu in
  8256. hppa*64*)
  8257. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8258. ;;
  8259. ia64*)
  8260. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8261. ;;
  8262. *)
  8263. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8264. ;;
  8265. esac
  8266. else
  8267. case $host_cpu in
  8268. hppa*64*)
  8269. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8270. ;;
  8271. ia64*)
  8272. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8273. ;;
  8274. *)
  8275. # Older versions of the 11.00 compiler do not understand -b yet
  8276. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8278. $as_echo_n "checking if $CC understands -b... " >&6; }
  8279. if ${lt_cv_prog_compiler__b+:} false; then :
  8280. $as_echo_n "(cached) " >&6
  8281. else
  8282. lt_cv_prog_compiler__b=no
  8283. save_LDFLAGS="$LDFLAGS"
  8284. LDFLAGS="$LDFLAGS -b"
  8285. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8286. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8287. # The linker can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings
  8289. if test -s conftest.err; then
  8290. # Append any errors to the config.log.
  8291. cat conftest.err 1>&5
  8292. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8293. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8294. if diff conftest.exp conftest.er2 >/dev/null; then
  8295. lt_cv_prog_compiler__b=yes
  8296. fi
  8297. else
  8298. lt_cv_prog_compiler__b=yes
  8299. fi
  8300. fi
  8301. $RM -r conftest*
  8302. LDFLAGS="$save_LDFLAGS"
  8303. fi
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8305. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8306. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8307. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8308. else
  8309. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8310. fi
  8311. ;;
  8312. esac
  8313. fi
  8314. if test "$with_gnu_ld" = no; then
  8315. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8316. hardcode_libdir_separator=:
  8317. case $host_cpu in
  8318. hppa*64*|ia64*)
  8319. hardcode_direct=no
  8320. hardcode_shlibpath_var=no
  8321. ;;
  8322. *)
  8323. hardcode_direct=yes
  8324. hardcode_direct_absolute=yes
  8325. export_dynamic_flag_spec='${wl}-E'
  8326. # hardcode_minus_L: Not really in the search PATH,
  8327. # but as the default location of the library.
  8328. hardcode_minus_L=yes
  8329. ;;
  8330. esac
  8331. fi
  8332. ;;
  8333. irix5* | irix6* | nonstopux*)
  8334. if test "$GCC" = yes; then
  8335. 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'
  8336. # Try to use the -exported_symbol ld option, if it does not
  8337. # work, assume that -exports_file does not work either and
  8338. # implicitly export all symbols.
  8339. # This should be the same for all languages, so no per-tag cache variable.
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8341. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8342. if ${lt_cv_irix_exported_symbol+:} false; then :
  8343. $as_echo_n "(cached) " >&6
  8344. else
  8345. save_LDFLAGS="$LDFLAGS"
  8346. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8348. /* end confdefs.h. */
  8349. int foo (void) { return 0; }
  8350. _ACEOF
  8351. if ac_fn_c_try_link "$LINENO"; then :
  8352. lt_cv_irix_exported_symbol=yes
  8353. else
  8354. lt_cv_irix_exported_symbol=no
  8355. fi
  8356. rm -f core conftest.err conftest.$ac_objext \
  8357. conftest$ac_exeext conftest.$ac_ext
  8358. LDFLAGS="$save_LDFLAGS"
  8359. fi
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8361. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8362. if test "$lt_cv_irix_exported_symbol" = yes; then
  8363. 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'
  8364. fi
  8365. else
  8366. 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'
  8367. 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'
  8368. fi
  8369. archive_cmds_need_lc='no'
  8370. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8371. hardcode_libdir_separator=:
  8372. inherit_rpath=yes
  8373. link_all_deplibs=yes
  8374. ;;
  8375. netbsd*)
  8376. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8377. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8378. else
  8379. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8380. fi
  8381. hardcode_libdir_flag_spec='-R$libdir'
  8382. hardcode_direct=yes
  8383. hardcode_shlibpath_var=no
  8384. ;;
  8385. newsos6)
  8386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8387. hardcode_direct=yes
  8388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8389. hardcode_libdir_separator=:
  8390. hardcode_shlibpath_var=no
  8391. ;;
  8392. *nto* | *qnx*)
  8393. ;;
  8394. openbsd*)
  8395. if test -f /usr/libexec/ld.so; then
  8396. hardcode_direct=yes
  8397. hardcode_shlibpath_var=no
  8398. hardcode_direct_absolute=yes
  8399. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8400. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8401. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8402. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8403. export_dynamic_flag_spec='${wl}-E'
  8404. else
  8405. case $host_os in
  8406. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8407. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_libdir_flag_spec='-R$libdir'
  8409. ;;
  8410. *)
  8411. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8412. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8413. ;;
  8414. esac
  8415. fi
  8416. else
  8417. ld_shlibs=no
  8418. fi
  8419. ;;
  8420. os2*)
  8421. hardcode_libdir_flag_spec='-L$libdir'
  8422. hardcode_minus_L=yes
  8423. allow_undefined_flag=unsupported
  8424. 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'
  8425. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8426. ;;
  8427. osf3*)
  8428. if test "$GCC" = yes; then
  8429. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8430. 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'
  8431. else
  8432. allow_undefined_flag=' -expect_unresolved \*'
  8433. 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'
  8434. fi
  8435. archive_cmds_need_lc='no'
  8436. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8437. hardcode_libdir_separator=:
  8438. ;;
  8439. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8440. if test "$GCC" = yes; then
  8441. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8442. 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'
  8443. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8444. else
  8445. allow_undefined_flag=' -expect_unresolved \*'
  8446. 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'
  8447. 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~
  8448. $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'
  8449. # Both c and cxx compiler support -rpath directly
  8450. hardcode_libdir_flag_spec='-rpath $libdir'
  8451. fi
  8452. archive_cmds_need_lc='no'
  8453. hardcode_libdir_separator=:
  8454. ;;
  8455. solaris*)
  8456. no_undefined_flag=' -z defs'
  8457. if test "$GCC" = yes; then
  8458. wlarc='${wl}'
  8459. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8461. $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'
  8462. else
  8463. case `$CC -V 2>&1` in
  8464. *"Compilers 5.0"*)
  8465. wlarc=''
  8466. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8467. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8468. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8469. ;;
  8470. *)
  8471. wlarc='${wl}'
  8472. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8473. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8474. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8475. ;;
  8476. esac
  8477. fi
  8478. hardcode_libdir_flag_spec='-R$libdir'
  8479. hardcode_shlibpath_var=no
  8480. case $host_os in
  8481. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8482. *)
  8483. # The compiler driver will combine and reorder linker options,
  8484. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8485. # but is careful enough not to reorder.
  8486. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8487. if test "$GCC" = yes; then
  8488. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8489. else
  8490. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8491. fi
  8492. ;;
  8493. esac
  8494. link_all_deplibs=yes
  8495. ;;
  8496. sunos4*)
  8497. if test "x$host_vendor" = xsequent; then
  8498. # Use $CC to link under sequent, because it throws in some extra .o
  8499. # files that make .init and .fini sections work.
  8500. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8501. else
  8502. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8503. fi
  8504. hardcode_libdir_flag_spec='-L$libdir'
  8505. hardcode_direct=yes
  8506. hardcode_minus_L=yes
  8507. hardcode_shlibpath_var=no
  8508. ;;
  8509. sysv4)
  8510. case $host_vendor in
  8511. sni)
  8512. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. hardcode_direct=yes # is this really true???
  8514. ;;
  8515. siemens)
  8516. ## LD is ld it makes a PLAMLIB
  8517. ## CC just makes a GrossModule.
  8518. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8519. reload_cmds='$CC -r -o $output$reload_objs'
  8520. hardcode_direct=no
  8521. ;;
  8522. motorola)
  8523. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8525. ;;
  8526. esac
  8527. runpath_var='LD_RUN_PATH'
  8528. hardcode_shlibpath_var=no
  8529. ;;
  8530. sysv4.3*)
  8531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8532. hardcode_shlibpath_var=no
  8533. export_dynamic_flag_spec='-Bexport'
  8534. ;;
  8535. sysv4*MP*)
  8536. if test -d /usr/nec; then
  8537. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8538. hardcode_shlibpath_var=no
  8539. runpath_var=LD_RUN_PATH
  8540. hardcode_runpath_var=yes
  8541. ld_shlibs=yes
  8542. fi
  8543. ;;
  8544. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8545. no_undefined_flag='${wl}-z,text'
  8546. archive_cmds_need_lc=no
  8547. hardcode_shlibpath_var=no
  8548. runpath_var='LD_RUN_PATH'
  8549. if test "$GCC" = yes; then
  8550. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8551. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8552. else
  8553. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8554. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8555. fi
  8556. ;;
  8557. sysv5* | sco3.2v5* | sco5v6*)
  8558. # Note: We can NOT use -z defs as we might desire, because we do not
  8559. # link with -lc, and that would cause any symbols used from libc to
  8560. # always be unresolved, which means just about no library would
  8561. # ever link correctly. If we're not using GNU ld we use -z text
  8562. # though, which does catch some bad symbols but isn't as heavy-handed
  8563. # as -z defs.
  8564. no_undefined_flag='${wl}-z,text'
  8565. allow_undefined_flag='${wl}-z,nodefs'
  8566. archive_cmds_need_lc=no
  8567. hardcode_shlibpath_var=no
  8568. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8569. hardcode_libdir_separator=':'
  8570. link_all_deplibs=yes
  8571. export_dynamic_flag_spec='${wl}-Bexport'
  8572. runpath_var='LD_RUN_PATH'
  8573. if test "$GCC" = yes; then
  8574. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8575. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8576. else
  8577. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8579. fi
  8580. ;;
  8581. uts4*)
  8582. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_shlibpath_var=no
  8585. ;;
  8586. *)
  8587. ld_shlibs=no
  8588. ;;
  8589. esac
  8590. if test x$host_vendor = xsni; then
  8591. case $host in
  8592. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8593. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8594. ;;
  8595. esac
  8596. fi
  8597. fi
  8598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8599. $as_echo "$ld_shlibs" >&6; }
  8600. test "$ld_shlibs" = no && can_build_shared=no
  8601. with_gnu_ld=$with_gnu_ld
  8602. #
  8603. # Do we need to explicitly link libc?
  8604. #
  8605. case "x$archive_cmds_need_lc" in
  8606. x|xyes)
  8607. # Assume -lc should be added
  8608. archive_cmds_need_lc=yes
  8609. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8610. case $archive_cmds in
  8611. *'~'*)
  8612. # FIXME: we may have to deal with multi-command sequences.
  8613. ;;
  8614. '$CC '*)
  8615. # Test whether the compiler implicitly links with -lc since on some
  8616. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8617. # to ld, don't add -lc before -lgcc.
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8619. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8620. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8621. $as_echo_n "(cached) " >&6
  8622. else
  8623. $RM conftest*
  8624. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8625. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8626. (eval $ac_compile) 2>&5
  8627. ac_status=$?
  8628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8629. test $ac_status = 0; } 2>conftest.err; then
  8630. soname=conftest
  8631. lib=conftest
  8632. libobjs=conftest.$ac_objext
  8633. deplibs=
  8634. wl=$lt_prog_compiler_wl
  8635. pic_flag=$lt_prog_compiler_pic
  8636. compiler_flags=-v
  8637. linker_flags=-v
  8638. verstring=
  8639. output_objdir=.
  8640. libname=conftest
  8641. lt_save_allow_undefined_flag=$allow_undefined_flag
  8642. allow_undefined_flag=
  8643. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8644. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8645. ac_status=$?
  8646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8647. test $ac_status = 0; }
  8648. then
  8649. lt_cv_archive_cmds_need_lc=no
  8650. else
  8651. lt_cv_archive_cmds_need_lc=yes
  8652. fi
  8653. allow_undefined_flag=$lt_save_allow_undefined_flag
  8654. else
  8655. cat conftest.err 1>&5
  8656. fi
  8657. $RM conftest*
  8658. fi
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8660. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8661. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8662. ;;
  8663. esac
  8664. fi
  8665. ;;
  8666. esac
  8667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8668. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8669. if test "$GCC" = yes; then
  8670. case $host_os in
  8671. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8672. *) lt_awk_arg="/^libraries:/" ;;
  8673. esac
  8674. case $host_os in
  8675. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8676. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8677. esac
  8678. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8679. case $lt_search_path_spec in
  8680. *\;*)
  8681. # if the path contains ";" then we assume it to be the separator
  8682. # otherwise default to the standard path separator (i.e. ":") - it is
  8683. # assumed that no part of a normal pathname contains ";" but that should
  8684. # okay in the real world where ";" in dirpaths is itself problematic.
  8685. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8686. ;;
  8687. *)
  8688. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8689. ;;
  8690. esac
  8691. # Ok, now we have the path, separated by spaces, we can step through it
  8692. # and add multilib dir if necessary...
  8693. lt_tmp_lt_search_path_spec=
  8694. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8695. # ...but if some path already ends with the multilib dir we assume
  8696. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8697. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8698. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8699. lt_multi_os_dir=
  8700. ;;
  8701. esac
  8702. for lt_sys_path in $lt_search_path_spec; do
  8703. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8704. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8705. elif test -n "$lt_multi_os_dir"; then
  8706. test -d "$lt_sys_path" && \
  8707. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8708. fi
  8709. done
  8710. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8711. BEGIN {RS=" "; FS="/|\n";} {
  8712. lt_foo="";
  8713. lt_count=0;
  8714. for (lt_i = NF; lt_i > 0; lt_i--) {
  8715. if ($lt_i != "" && $lt_i != ".") {
  8716. if ($lt_i == "..") {
  8717. lt_count++;
  8718. } else {
  8719. if (lt_count == 0) {
  8720. lt_foo="/" $lt_i lt_foo;
  8721. } else {
  8722. lt_count--;
  8723. }
  8724. }
  8725. }
  8726. }
  8727. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8728. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8729. }'`
  8730. # AWK program above erroneously prepends '/' to C:/dos/paths
  8731. # for these hosts.
  8732. case $host_os in
  8733. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8734. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8735. esac
  8736. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8737. else
  8738. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8739. fi
  8740. library_names_spec=
  8741. libname_spec='lib$name'
  8742. soname_spec=
  8743. shrext_cmds=".so"
  8744. postinstall_cmds=
  8745. postuninstall_cmds=
  8746. finish_cmds=
  8747. finish_eval=
  8748. shlibpath_var=
  8749. shlibpath_overrides_runpath=unknown
  8750. version_type=none
  8751. dynamic_linker="$host_os ld.so"
  8752. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8753. need_lib_prefix=unknown
  8754. hardcode_into_libs=no
  8755. # when you set need_version to no, make sure it does not cause -set_version
  8756. # flags to be left without arguments
  8757. need_version=unknown
  8758. case $host_os in
  8759. aix3*)
  8760. version_type=linux # correct to gnu/linux during the next big refactor
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8762. shlibpath_var=LIBPATH
  8763. # AIX 3 has no versioning support, so we append a major version to the name.
  8764. soname_spec='${libname}${release}${shared_ext}$major'
  8765. ;;
  8766. aix[4-9]*)
  8767. version_type=linux # correct to gnu/linux during the next big refactor
  8768. need_lib_prefix=no
  8769. need_version=no
  8770. hardcode_into_libs=yes
  8771. if test "$host_cpu" = ia64; then
  8772. # AIX 5 supports IA64
  8773. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8774. shlibpath_var=LD_LIBRARY_PATH
  8775. else
  8776. # With GCC up to 2.95.x, collect2 would create an import file
  8777. # for dependence libraries. The import file would start with
  8778. # the line `#! .'. This would cause the generated library to
  8779. # depend on `.', always an invalid library. This was fixed in
  8780. # development snapshots of GCC prior to 3.0.
  8781. case $host_os in
  8782. aix4 | aix4.[01] | aix4.[01].*)
  8783. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8784. echo ' yes '
  8785. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8786. :
  8787. else
  8788. can_build_shared=no
  8789. fi
  8790. ;;
  8791. esac
  8792. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8793. # soname into executable. Probably we can add versioning support to
  8794. # collect2, so additional links can be useful in future.
  8795. if test "$aix_use_runtimelinking" = yes; then
  8796. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8797. # instead of lib<name>.a to let people know that these are not
  8798. # typical AIX shared libraries.
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8800. else
  8801. # We preserve .a as extension for shared libraries through AIX4.2
  8802. # and later when we are not doing run time linking.
  8803. library_names_spec='${libname}${release}.a $libname.a'
  8804. soname_spec='${libname}${release}${shared_ext}$major'
  8805. fi
  8806. shlibpath_var=LIBPATH
  8807. fi
  8808. ;;
  8809. amigaos*)
  8810. case $host_cpu in
  8811. powerpc)
  8812. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8813. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8815. ;;
  8816. m68k)
  8817. library_names_spec='$libname.ixlibrary $libname.a'
  8818. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8819. 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'
  8820. ;;
  8821. esac
  8822. ;;
  8823. beos*)
  8824. library_names_spec='${libname}${shared_ext}'
  8825. dynamic_linker="$host_os ld.so"
  8826. shlibpath_var=LIBRARY_PATH
  8827. ;;
  8828. bsdi[45]*)
  8829. version_type=linux # correct to gnu/linux during the next big refactor
  8830. need_version=no
  8831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8832. soname_spec='${libname}${release}${shared_ext}$major'
  8833. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8836. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8837. # the default ld.so.conf also contains /usr/contrib/lib and
  8838. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8839. # libtool to hard-code these into programs
  8840. ;;
  8841. cygwin* | mingw* | pw32* | cegcc*)
  8842. version_type=windows
  8843. shrext_cmds=".dll"
  8844. need_version=no
  8845. need_lib_prefix=no
  8846. case $GCC,$cc_basename in
  8847. yes,*)
  8848. # gcc
  8849. library_names_spec='$libname.dll.a'
  8850. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8851. postinstall_cmds='base_file=`basename \${file}`~
  8852. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8853. dldir=$destdir/`dirname \$dlpath`~
  8854. test -d \$dldir || mkdir -p \$dldir~
  8855. $install_prog $dir/$dlname \$dldir/$dlname~
  8856. chmod a+x \$dldir/$dlname~
  8857. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8858. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8859. fi'
  8860. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8861. dlpath=$dir/\$dldll~
  8862. $RM \$dlpath'
  8863. shlibpath_overrides_runpath=yes
  8864. case $host_os in
  8865. cygwin*)
  8866. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8867. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8868. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8869. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8870. ;;
  8871. mingw* | cegcc*)
  8872. # MinGW DLLs use traditional 'lib' prefix
  8873. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8874. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8875. ;;
  8876. pw32*)
  8877. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8878. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8879. ;;
  8880. esac
  8881. dynamic_linker='Win32 ld.exe'
  8882. ;;
  8883. *,cl*)
  8884. # Native MSVC
  8885. libname_spec='$name'
  8886. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8887. library_names_spec='${libname}.dll.lib'
  8888. case $build_os in
  8889. mingw*)
  8890. sys_lib_search_path_spec=
  8891. lt_save_ifs=$IFS
  8892. IFS=';'
  8893. for lt_path in $LIB
  8894. do
  8895. IFS=$lt_save_ifs
  8896. # Let DOS variable expansion print the short 8.3 style file name.
  8897. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8898. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8899. done
  8900. IFS=$lt_save_ifs
  8901. # Convert to MSYS style.
  8902. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8903. ;;
  8904. cygwin*)
  8905. # Convert to unix form, then to dos form, then back to unix form
  8906. # but this time dos style (no spaces!) so that the unix form looks
  8907. # like /cygdrive/c/PROGRA~1:/cygdr...
  8908. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8909. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8910. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8911. ;;
  8912. *)
  8913. sys_lib_search_path_spec="$LIB"
  8914. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8915. # It is most probably a Windows format PATH.
  8916. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8917. else
  8918. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8919. fi
  8920. # FIXME: find the short name or the path components, as spaces are
  8921. # common. (e.g. "Program Files" -> "PROGRA~1")
  8922. ;;
  8923. esac
  8924. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8925. postinstall_cmds='base_file=`basename \${file}`~
  8926. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8927. dldir=$destdir/`dirname \$dlpath`~
  8928. test -d \$dldir || mkdir -p \$dldir~
  8929. $install_prog $dir/$dlname \$dldir/$dlname'
  8930. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8931. dlpath=$dir/\$dldll~
  8932. $RM \$dlpath'
  8933. shlibpath_overrides_runpath=yes
  8934. dynamic_linker='Win32 link.exe'
  8935. ;;
  8936. *)
  8937. # Assume MSVC wrapper
  8938. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8939. dynamic_linker='Win32 ld.exe'
  8940. ;;
  8941. esac
  8942. # FIXME: first we should search . and the directory the executable is in
  8943. shlibpath_var=PATH
  8944. ;;
  8945. darwin* | rhapsody*)
  8946. dynamic_linker="$host_os dyld"
  8947. version_type=darwin
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8951. soname_spec='${libname}${release}${major}$shared_ext'
  8952. shlibpath_overrides_runpath=yes
  8953. shlibpath_var=DYLD_LIBRARY_PATH
  8954. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8955. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8957. ;;
  8958. dgux*)
  8959. version_type=linux # correct to gnu/linux during the next big refactor
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. ;;
  8966. freebsd* | dragonfly*)
  8967. # DragonFly does not have aout. When/if they implement a new
  8968. # versioning mechanism, adjust this.
  8969. if test -x /usr/bin/objformat; then
  8970. objformat=`/usr/bin/objformat`
  8971. else
  8972. case $host_os in
  8973. freebsd[23].*) objformat=aout ;;
  8974. *) objformat=elf ;;
  8975. esac
  8976. fi
  8977. version_type=freebsd-$objformat
  8978. case $version_type in
  8979. freebsd-elf*)
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8981. need_version=no
  8982. need_lib_prefix=no
  8983. ;;
  8984. freebsd-*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8986. need_version=yes
  8987. ;;
  8988. esac
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. case $host_os in
  8991. freebsd2.*)
  8992. shlibpath_overrides_runpath=yes
  8993. ;;
  8994. freebsd3.[01]* | freebsdelf3.[01]*)
  8995. shlibpath_overrides_runpath=yes
  8996. hardcode_into_libs=yes
  8997. ;;
  8998. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8999. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9000. shlibpath_overrides_runpath=no
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. *) # from 4.6 on, and DragonFly
  9004. shlibpath_overrides_runpath=yes
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. esac
  9008. ;;
  9009. gnu*)
  9010. version_type=linux # correct to gnu/linux during the next big refactor
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. shlibpath_var=LD_LIBRARY_PATH
  9016. shlibpath_overrides_runpath=no
  9017. hardcode_into_libs=yes
  9018. ;;
  9019. haiku*)
  9020. version_type=linux # correct to gnu/linux during the next big refactor
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. dynamic_linker="$host_os runtime_loader"
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9025. soname_spec='${libname}${release}${shared_ext}$major'
  9026. shlibpath_var=LIBRARY_PATH
  9027. shlibpath_overrides_runpath=yes
  9028. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9029. hardcode_into_libs=yes
  9030. ;;
  9031. hpux9* | hpux10* | hpux11*)
  9032. # Give a soname corresponding to the major version so that dld.sl refuses to
  9033. # link against other versions.
  9034. version_type=sunos
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. case $host_cpu in
  9038. ia64*)
  9039. shrext_cmds='.so'
  9040. hardcode_into_libs=yes
  9041. dynamic_linker="$host_os dld.so"
  9042. shlibpath_var=LD_LIBRARY_PATH
  9043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9045. soname_spec='${libname}${release}${shared_ext}$major'
  9046. if test "X$HPUX_IA64_MODE" = X32; then
  9047. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9048. else
  9049. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9050. fi
  9051. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9052. ;;
  9053. hppa*64*)
  9054. shrext_cmds='.sl'
  9055. hardcode_into_libs=yes
  9056. dynamic_linker="$host_os dld.sl"
  9057. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9060. soname_spec='${libname}${release}${shared_ext}$major'
  9061. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9063. ;;
  9064. *)
  9065. shrext_cmds='.sl'
  9066. dynamic_linker="$host_os dld.sl"
  9067. shlibpath_var=SHLIB_PATH
  9068. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9070. soname_spec='${libname}${release}${shared_ext}$major'
  9071. ;;
  9072. esac
  9073. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9074. postinstall_cmds='chmod 555 $lib'
  9075. # or fails outright, so override atomically:
  9076. install_override_mode=555
  9077. ;;
  9078. interix[3-9]*)
  9079. version_type=linux # correct to gnu/linux during the next big refactor
  9080. need_lib_prefix=no
  9081. need_version=no
  9082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9083. soname_spec='${libname}${release}${shared_ext}$major'
  9084. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. shlibpath_overrides_runpath=no
  9087. hardcode_into_libs=yes
  9088. ;;
  9089. irix5* | irix6* | nonstopux*)
  9090. case $host_os in
  9091. nonstopux*) version_type=nonstopux ;;
  9092. *)
  9093. if test "$lt_cv_prog_gnu_ld" = yes; then
  9094. version_type=linux # correct to gnu/linux during the next big refactor
  9095. else
  9096. version_type=irix
  9097. fi ;;
  9098. esac
  9099. need_lib_prefix=no
  9100. need_version=no
  9101. soname_spec='${libname}${release}${shared_ext}$major'
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9103. case $host_os in
  9104. irix5* | nonstopux*)
  9105. libsuff= shlibsuff=
  9106. ;;
  9107. *)
  9108. case $LD in # libtool.m4 will add one of these switches to LD
  9109. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9110. libsuff= shlibsuff= libmagic=32-bit;;
  9111. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9112. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9113. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9114. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9115. *) libsuff= shlibsuff= libmagic=never-match;;
  9116. esac
  9117. ;;
  9118. esac
  9119. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9120. shlibpath_overrides_runpath=no
  9121. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9122. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9123. hardcode_into_libs=yes
  9124. ;;
  9125. # No shared lib support for Linux oldld, aout, or coff.
  9126. linux*oldld* | linux*aout* | linux*coff*)
  9127. dynamic_linker=no
  9128. ;;
  9129. # This must be glibc/ELF.
  9130. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9131. version_type=linux # correct to gnu/linux during the next big refactor
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. shlibpath_overrides_runpath=no
  9139. # Some binutils ld are patched to set DT_RUNPATH
  9140. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9141. $as_echo_n "(cached) " >&6
  9142. else
  9143. lt_cv_shlibpath_overrides_runpath=no
  9144. save_LDFLAGS=$LDFLAGS
  9145. save_libdir=$libdir
  9146. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9147. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9149. /* end confdefs.h. */
  9150. int
  9151. main ()
  9152. {
  9153. ;
  9154. return 0;
  9155. }
  9156. _ACEOF
  9157. if ac_fn_c_try_link "$LINENO"; then :
  9158. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9159. lt_cv_shlibpath_overrides_runpath=yes
  9160. fi
  9161. fi
  9162. rm -f core conftest.err conftest.$ac_objext \
  9163. conftest$ac_exeext conftest.$ac_ext
  9164. LDFLAGS=$save_LDFLAGS
  9165. libdir=$save_libdir
  9166. fi
  9167. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9168. # This implies no fast_install, which is unacceptable.
  9169. # Some rework will be needed to allow for fast_install
  9170. # before this can be enabled.
  9171. hardcode_into_libs=yes
  9172. # Append ld.so.conf contents to the search path
  9173. if test -f /etc/ld.so.conf; then
  9174. 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' ' '`
  9175. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9176. fi
  9177. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9178. # powerpc, because MkLinux only supported shared libraries with the
  9179. # GNU dynamic linker. Since this was broken with cross compilers,
  9180. # most powerpc-linux boxes support dynamic linking these days and
  9181. # people can always --disable-shared, the test was removed, and we
  9182. # assume the GNU/Linux dynamic linker is in use.
  9183. dynamic_linker='GNU/Linux ld.so'
  9184. ;;
  9185. netbsd*)
  9186. version_type=sunos
  9187. need_lib_prefix=no
  9188. need_version=no
  9189. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9191. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9192. dynamic_linker='NetBSD (a.out) ld.so'
  9193. else
  9194. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. dynamic_linker='NetBSD ld.elf_so'
  9197. fi
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. shlibpath_overrides_runpath=yes
  9200. hardcode_into_libs=yes
  9201. ;;
  9202. newsos6)
  9203. version_type=linux # correct to gnu/linux during the next big refactor
  9204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. shlibpath_overrides_runpath=yes
  9207. ;;
  9208. *nto* | *qnx*)
  9209. version_type=qnx
  9210. need_lib_prefix=no
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. soname_spec='${libname}${release}${shared_ext}$major'
  9214. shlibpath_var=LD_LIBRARY_PATH
  9215. shlibpath_overrides_runpath=no
  9216. hardcode_into_libs=yes
  9217. dynamic_linker='ldqnx.so'
  9218. ;;
  9219. openbsd*)
  9220. version_type=sunos
  9221. sys_lib_dlsearch_path_spec="/usr/lib"
  9222. need_lib_prefix=no
  9223. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9224. case $host_os in
  9225. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9226. *) need_version=no ;;
  9227. esac
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9229. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9230. shlibpath_var=LD_LIBRARY_PATH
  9231. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9232. case $host_os in
  9233. openbsd2.[89] | openbsd2.[89].*)
  9234. shlibpath_overrides_runpath=no
  9235. ;;
  9236. *)
  9237. shlibpath_overrides_runpath=yes
  9238. ;;
  9239. esac
  9240. else
  9241. shlibpath_overrides_runpath=yes
  9242. fi
  9243. ;;
  9244. os2*)
  9245. libname_spec='$name'
  9246. shrext_cmds=".dll"
  9247. need_lib_prefix=no
  9248. library_names_spec='$libname${shared_ext} $libname.a'
  9249. dynamic_linker='OS/2 ld.exe'
  9250. shlibpath_var=LIBPATH
  9251. ;;
  9252. osf3* | osf4* | osf5*)
  9253. version_type=osf
  9254. need_lib_prefix=no
  9255. need_version=no
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9258. shlibpath_var=LD_LIBRARY_PATH
  9259. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9260. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9261. ;;
  9262. rdos*)
  9263. dynamic_linker=no
  9264. ;;
  9265. solaris*)
  9266. version_type=linux # correct to gnu/linux during the next big refactor
  9267. need_lib_prefix=no
  9268. need_version=no
  9269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9270. soname_spec='${libname}${release}${shared_ext}$major'
  9271. shlibpath_var=LD_LIBRARY_PATH
  9272. shlibpath_overrides_runpath=yes
  9273. hardcode_into_libs=yes
  9274. # ldd complains unless libraries are executable
  9275. postinstall_cmds='chmod +x $lib'
  9276. ;;
  9277. sunos4*)
  9278. version_type=sunos
  9279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9280. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9281. shlibpath_var=LD_LIBRARY_PATH
  9282. shlibpath_overrides_runpath=yes
  9283. if test "$with_gnu_ld" = yes; then
  9284. need_lib_prefix=no
  9285. fi
  9286. need_version=yes
  9287. ;;
  9288. sysv4 | sysv4.3*)
  9289. version_type=linux # correct to gnu/linux during the next big refactor
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. shlibpath_var=LD_LIBRARY_PATH
  9293. case $host_vendor in
  9294. sni)
  9295. shlibpath_overrides_runpath=no
  9296. need_lib_prefix=no
  9297. runpath_var=LD_RUN_PATH
  9298. ;;
  9299. siemens)
  9300. need_lib_prefix=no
  9301. ;;
  9302. motorola)
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. shlibpath_overrides_runpath=no
  9306. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9307. ;;
  9308. esac
  9309. ;;
  9310. sysv4*MP*)
  9311. if test -d /usr/nec ;then
  9312. version_type=linux # correct to gnu/linux during the next big refactor
  9313. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9314. soname_spec='$libname${shared_ext}.$major'
  9315. shlibpath_var=LD_LIBRARY_PATH
  9316. fi
  9317. ;;
  9318. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9319. version_type=freebsd-elf
  9320. need_lib_prefix=no
  9321. need_version=no
  9322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9323. soname_spec='${libname}${release}${shared_ext}$major'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. shlibpath_overrides_runpath=yes
  9326. hardcode_into_libs=yes
  9327. if test "$with_gnu_ld" = yes; then
  9328. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9329. else
  9330. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9331. case $host_os in
  9332. sco3.2v5*)
  9333. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9334. ;;
  9335. esac
  9336. fi
  9337. sys_lib_dlsearch_path_spec='/usr/lib'
  9338. ;;
  9339. tpf*)
  9340. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9341. version_type=linux # correct to gnu/linux during the next big refactor
  9342. need_lib_prefix=no
  9343. need_version=no
  9344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9345. shlibpath_var=LD_LIBRARY_PATH
  9346. shlibpath_overrides_runpath=no
  9347. hardcode_into_libs=yes
  9348. ;;
  9349. uts4*)
  9350. version_type=linux # correct to gnu/linux during the next big refactor
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9352. soname_spec='${libname}${release}${shared_ext}$major'
  9353. shlibpath_var=LD_LIBRARY_PATH
  9354. ;;
  9355. *)
  9356. dynamic_linker=no
  9357. ;;
  9358. esac
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9360. $as_echo "$dynamic_linker" >&6; }
  9361. test "$dynamic_linker" = no && can_build_shared=no
  9362. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9363. if test "$GCC" = yes; then
  9364. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9365. fi
  9366. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9367. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9368. fi
  9369. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9370. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9371. fi
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9373. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9374. hardcode_action=
  9375. if test -n "$hardcode_libdir_flag_spec" ||
  9376. test -n "$runpath_var" ||
  9377. test "X$hardcode_automatic" = "Xyes" ; then
  9378. # We can hardcode non-existent directories.
  9379. if test "$hardcode_direct" != no &&
  9380. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9381. # have to relink, otherwise we might link with an installed library
  9382. # when we should be linking with a yet-to-be-installed one
  9383. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9384. test "$hardcode_minus_L" != no; then
  9385. # Linking always hardcodes the temporary library directory.
  9386. hardcode_action=relink
  9387. else
  9388. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9389. hardcode_action=immediate
  9390. fi
  9391. else
  9392. # We cannot hardcode anything, or else we can only hardcode existing
  9393. # directories.
  9394. hardcode_action=unsupported
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9397. $as_echo "$hardcode_action" >&6; }
  9398. if test "$hardcode_action" = relink ||
  9399. test "$inherit_rpath" = yes; then
  9400. # Fast installation is not supported
  9401. enable_fast_install=no
  9402. elif test "$shlibpath_overrides_runpath" = yes ||
  9403. test "$enable_shared" = no; then
  9404. # Fast installation is not necessary
  9405. enable_fast_install=needless
  9406. fi
  9407. if test "x$enable_dlopen" != xyes; then
  9408. enable_dlopen=unknown
  9409. enable_dlopen_self=unknown
  9410. enable_dlopen_self_static=unknown
  9411. else
  9412. lt_cv_dlopen=no
  9413. lt_cv_dlopen_libs=
  9414. case $host_os in
  9415. beos*)
  9416. lt_cv_dlopen="load_add_on"
  9417. lt_cv_dlopen_libs=
  9418. lt_cv_dlopen_self=yes
  9419. ;;
  9420. mingw* | pw32* | cegcc*)
  9421. lt_cv_dlopen="LoadLibrary"
  9422. lt_cv_dlopen_libs=
  9423. ;;
  9424. cygwin*)
  9425. lt_cv_dlopen="dlopen"
  9426. lt_cv_dlopen_libs=
  9427. ;;
  9428. darwin*)
  9429. # if libdl is installed we need to link against it
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9431. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9432. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9433. $as_echo_n "(cached) " >&6
  9434. else
  9435. ac_check_lib_save_LIBS=$LIBS
  9436. LIBS="-ldl $LIBS"
  9437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9438. /* end confdefs.h. */
  9439. /* Override any GCC internal prototype to avoid an error.
  9440. Use char because int might match the return type of a GCC
  9441. builtin and then its argument prototype would still apply. */
  9442. #ifdef __cplusplus
  9443. extern "C"
  9444. #endif
  9445. char dlopen ();
  9446. int
  9447. main ()
  9448. {
  9449. return dlopen ();
  9450. ;
  9451. return 0;
  9452. }
  9453. _ACEOF
  9454. if ac_fn_c_try_link "$LINENO"; then :
  9455. ac_cv_lib_dl_dlopen=yes
  9456. else
  9457. ac_cv_lib_dl_dlopen=no
  9458. fi
  9459. rm -f core conftest.err conftest.$ac_objext \
  9460. conftest$ac_exeext conftest.$ac_ext
  9461. LIBS=$ac_check_lib_save_LIBS
  9462. fi
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9464. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9465. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9466. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9467. else
  9468. lt_cv_dlopen="dyld"
  9469. lt_cv_dlopen_libs=
  9470. lt_cv_dlopen_self=yes
  9471. fi
  9472. ;;
  9473. *)
  9474. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9475. if test "x$ac_cv_func_shl_load" = xyes; then :
  9476. lt_cv_dlopen="shl_load"
  9477. else
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9479. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9480. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9481. $as_echo_n "(cached) " >&6
  9482. else
  9483. ac_check_lib_save_LIBS=$LIBS
  9484. LIBS="-ldld $LIBS"
  9485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h. */
  9487. /* Override any GCC internal prototype to avoid an error.
  9488. Use char because int might match the return type of a GCC
  9489. builtin and then its argument prototype would still apply. */
  9490. #ifdef __cplusplus
  9491. extern "C"
  9492. #endif
  9493. char shl_load ();
  9494. int
  9495. main ()
  9496. {
  9497. return shl_load ();
  9498. ;
  9499. return 0;
  9500. }
  9501. _ACEOF
  9502. if ac_fn_c_try_link "$LINENO"; then :
  9503. ac_cv_lib_dld_shl_load=yes
  9504. else
  9505. ac_cv_lib_dld_shl_load=no
  9506. fi
  9507. rm -f core conftest.err conftest.$ac_objext \
  9508. conftest$ac_exeext conftest.$ac_ext
  9509. LIBS=$ac_check_lib_save_LIBS
  9510. fi
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9512. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9513. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9514. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9515. else
  9516. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9517. if test "x$ac_cv_func_dlopen" = xyes; then :
  9518. lt_cv_dlopen="dlopen"
  9519. else
  9520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9521. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9522. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9523. $as_echo_n "(cached) " >&6
  9524. else
  9525. ac_check_lib_save_LIBS=$LIBS
  9526. LIBS="-ldl $LIBS"
  9527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9528. /* end confdefs.h. */
  9529. /* Override any GCC internal prototype to avoid an error.
  9530. Use char because int might match the return type of a GCC
  9531. builtin and then its argument prototype would still apply. */
  9532. #ifdef __cplusplus
  9533. extern "C"
  9534. #endif
  9535. char dlopen ();
  9536. int
  9537. main ()
  9538. {
  9539. return dlopen ();
  9540. ;
  9541. return 0;
  9542. }
  9543. _ACEOF
  9544. if ac_fn_c_try_link "$LINENO"; then :
  9545. ac_cv_lib_dl_dlopen=yes
  9546. else
  9547. ac_cv_lib_dl_dlopen=no
  9548. fi
  9549. rm -f core conftest.err conftest.$ac_objext \
  9550. conftest$ac_exeext conftest.$ac_ext
  9551. LIBS=$ac_check_lib_save_LIBS
  9552. fi
  9553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9554. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9555. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9556. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9557. else
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9559. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9560. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9561. $as_echo_n "(cached) " >&6
  9562. else
  9563. ac_check_lib_save_LIBS=$LIBS
  9564. LIBS="-lsvld $LIBS"
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. /* Override any GCC internal prototype to avoid an error.
  9568. Use char because int might match the return type of a GCC
  9569. builtin and then its argument prototype would still apply. */
  9570. #ifdef __cplusplus
  9571. extern "C"
  9572. #endif
  9573. char dlopen ();
  9574. int
  9575. main ()
  9576. {
  9577. return dlopen ();
  9578. ;
  9579. return 0;
  9580. }
  9581. _ACEOF
  9582. if ac_fn_c_try_link "$LINENO"; then :
  9583. ac_cv_lib_svld_dlopen=yes
  9584. else
  9585. ac_cv_lib_svld_dlopen=no
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext \
  9588. conftest$ac_exeext conftest.$ac_ext
  9589. LIBS=$ac_check_lib_save_LIBS
  9590. fi
  9591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9592. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9593. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9594. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9595. else
  9596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9597. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9598. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9599. $as_echo_n "(cached) " >&6
  9600. else
  9601. ac_check_lib_save_LIBS=$LIBS
  9602. LIBS="-ldld $LIBS"
  9603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9604. /* end confdefs.h. */
  9605. /* Override any GCC internal prototype to avoid an error.
  9606. Use char because int might match the return type of a GCC
  9607. builtin and then its argument prototype would still apply. */
  9608. #ifdef __cplusplus
  9609. extern "C"
  9610. #endif
  9611. char dld_link ();
  9612. int
  9613. main ()
  9614. {
  9615. return dld_link ();
  9616. ;
  9617. return 0;
  9618. }
  9619. _ACEOF
  9620. if ac_fn_c_try_link "$LINENO"; then :
  9621. ac_cv_lib_dld_dld_link=yes
  9622. else
  9623. ac_cv_lib_dld_dld_link=no
  9624. fi
  9625. rm -f core conftest.err conftest.$ac_objext \
  9626. conftest$ac_exeext conftest.$ac_ext
  9627. LIBS=$ac_check_lib_save_LIBS
  9628. fi
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9630. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9631. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9632. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. fi
  9639. ;;
  9640. esac
  9641. if test "x$lt_cv_dlopen" != xno; then
  9642. enable_dlopen=yes
  9643. else
  9644. enable_dlopen=no
  9645. fi
  9646. case $lt_cv_dlopen in
  9647. dlopen)
  9648. save_CPPFLAGS="$CPPFLAGS"
  9649. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9650. save_LDFLAGS="$LDFLAGS"
  9651. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9652. save_LIBS="$LIBS"
  9653. LIBS="$lt_cv_dlopen_libs $LIBS"
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9655. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9656. if ${lt_cv_dlopen_self+:} false; then :
  9657. $as_echo_n "(cached) " >&6
  9658. else
  9659. if test "$cross_compiling" = yes; then :
  9660. lt_cv_dlopen_self=cross
  9661. else
  9662. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9663. lt_status=$lt_dlunknown
  9664. cat > conftest.$ac_ext <<_LT_EOF
  9665. #line $LINENO "configure"
  9666. #include "confdefs.h"
  9667. #if HAVE_DLFCN_H
  9668. #include <dlfcn.h>
  9669. #endif
  9670. #include <stdio.h>
  9671. #ifdef RTLD_GLOBAL
  9672. # define LT_DLGLOBAL RTLD_GLOBAL
  9673. #else
  9674. # ifdef DL_GLOBAL
  9675. # define LT_DLGLOBAL DL_GLOBAL
  9676. # else
  9677. # define LT_DLGLOBAL 0
  9678. # endif
  9679. #endif
  9680. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9681. find out it does not work in some platform. */
  9682. #ifndef LT_DLLAZY_OR_NOW
  9683. # ifdef RTLD_LAZY
  9684. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9685. # else
  9686. # ifdef DL_LAZY
  9687. # define LT_DLLAZY_OR_NOW DL_LAZY
  9688. # else
  9689. # ifdef RTLD_NOW
  9690. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9691. # else
  9692. # ifdef DL_NOW
  9693. # define LT_DLLAZY_OR_NOW DL_NOW
  9694. # else
  9695. # define LT_DLLAZY_OR_NOW 0
  9696. # endif
  9697. # endif
  9698. # endif
  9699. # endif
  9700. #endif
  9701. /* When -fvisbility=hidden is used, assume the code has been annotated
  9702. correspondingly for the symbols needed. */
  9703. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9704. int fnord () __attribute__((visibility("default")));
  9705. #endif
  9706. int fnord () { return 42; }
  9707. int main ()
  9708. {
  9709. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9710. int status = $lt_dlunknown;
  9711. if (self)
  9712. {
  9713. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9714. else
  9715. {
  9716. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9717. else puts (dlerror ());
  9718. }
  9719. /* dlclose (self); */
  9720. }
  9721. else
  9722. puts (dlerror ());
  9723. return status;
  9724. }
  9725. _LT_EOF
  9726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9727. (eval $ac_link) 2>&5
  9728. ac_status=$?
  9729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9730. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9731. (./conftest; exit; ) >&5 2>/dev/null
  9732. lt_status=$?
  9733. case x$lt_status in
  9734. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9735. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9736. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9737. esac
  9738. else :
  9739. # compilation failed
  9740. lt_cv_dlopen_self=no
  9741. fi
  9742. fi
  9743. rm -fr conftest*
  9744. fi
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9746. $as_echo "$lt_cv_dlopen_self" >&6; }
  9747. if test "x$lt_cv_dlopen_self" = xyes; then
  9748. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9750. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9751. if ${lt_cv_dlopen_self_static+:} false; then :
  9752. $as_echo_n "(cached) " >&6
  9753. else
  9754. if test "$cross_compiling" = yes; then :
  9755. lt_cv_dlopen_self_static=cross
  9756. else
  9757. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9758. lt_status=$lt_dlunknown
  9759. cat > conftest.$ac_ext <<_LT_EOF
  9760. #line $LINENO "configure"
  9761. #include "confdefs.h"
  9762. #if HAVE_DLFCN_H
  9763. #include <dlfcn.h>
  9764. #endif
  9765. #include <stdio.h>
  9766. #ifdef RTLD_GLOBAL
  9767. # define LT_DLGLOBAL RTLD_GLOBAL
  9768. #else
  9769. # ifdef DL_GLOBAL
  9770. # define LT_DLGLOBAL DL_GLOBAL
  9771. # else
  9772. # define LT_DLGLOBAL 0
  9773. # endif
  9774. #endif
  9775. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9776. find out it does not work in some platform. */
  9777. #ifndef LT_DLLAZY_OR_NOW
  9778. # ifdef RTLD_LAZY
  9779. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9780. # else
  9781. # ifdef DL_LAZY
  9782. # define LT_DLLAZY_OR_NOW DL_LAZY
  9783. # else
  9784. # ifdef RTLD_NOW
  9785. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9786. # else
  9787. # ifdef DL_NOW
  9788. # define LT_DLLAZY_OR_NOW DL_NOW
  9789. # else
  9790. # define LT_DLLAZY_OR_NOW 0
  9791. # endif
  9792. # endif
  9793. # endif
  9794. # endif
  9795. #endif
  9796. /* When -fvisbility=hidden is used, assume the code has been annotated
  9797. correspondingly for the symbols needed. */
  9798. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9799. int fnord () __attribute__((visibility("default")));
  9800. #endif
  9801. int fnord () { return 42; }
  9802. int main ()
  9803. {
  9804. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9805. int status = $lt_dlunknown;
  9806. if (self)
  9807. {
  9808. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9809. else
  9810. {
  9811. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9812. else puts (dlerror ());
  9813. }
  9814. /* dlclose (self); */
  9815. }
  9816. else
  9817. puts (dlerror ());
  9818. return status;
  9819. }
  9820. _LT_EOF
  9821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9822. (eval $ac_link) 2>&5
  9823. ac_status=$?
  9824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9825. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9826. (./conftest; exit; ) >&5 2>/dev/null
  9827. lt_status=$?
  9828. case x$lt_status in
  9829. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9830. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9831. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9832. esac
  9833. else :
  9834. # compilation failed
  9835. lt_cv_dlopen_self_static=no
  9836. fi
  9837. fi
  9838. rm -fr conftest*
  9839. fi
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9841. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9842. fi
  9843. CPPFLAGS="$save_CPPFLAGS"
  9844. LDFLAGS="$save_LDFLAGS"
  9845. LIBS="$save_LIBS"
  9846. ;;
  9847. esac
  9848. case $lt_cv_dlopen_self in
  9849. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9850. *) enable_dlopen_self=unknown ;;
  9851. esac
  9852. case $lt_cv_dlopen_self_static in
  9853. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9854. *) enable_dlopen_self_static=unknown ;;
  9855. esac
  9856. fi
  9857. striplib=
  9858. old_striplib=
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9860. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9861. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9862. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9863. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9865. $as_echo "yes" >&6; }
  9866. else
  9867. # FIXME - insert some real tests, host_os isn't really good enough
  9868. case $host_os in
  9869. darwin*)
  9870. if test -n "$STRIP" ; then
  9871. striplib="$STRIP -x"
  9872. old_striplib="$STRIP -S"
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9874. $as_echo "yes" >&6; }
  9875. else
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. $as_echo "no" >&6; }
  9878. fi
  9879. ;;
  9880. *)
  9881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9882. $as_echo "no" >&6; }
  9883. ;;
  9884. esac
  9885. fi
  9886. # Report which library types will actually be built
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9888. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9890. $as_echo "$can_build_shared" >&6; }
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9892. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9893. test "$can_build_shared" = "no" && enable_shared=no
  9894. # On AIX, shared libraries and static libraries use the same namespace, and
  9895. # are all built from PIC.
  9896. case $host_os in
  9897. aix3*)
  9898. test "$enable_shared" = yes && enable_static=no
  9899. if test -n "$RANLIB"; then
  9900. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9901. postinstall_cmds='$RANLIB $lib'
  9902. fi
  9903. ;;
  9904. aix[4-9]*)
  9905. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9906. test "$enable_shared" = yes && enable_static=no
  9907. fi
  9908. ;;
  9909. esac
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9911. $as_echo "$enable_shared" >&6; }
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9913. $as_echo_n "checking whether to build static libraries... " >&6; }
  9914. # Make sure either enable_shared or enable_static is yes.
  9915. test "$enable_shared" = yes || enable_static=yes
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9917. $as_echo "$enable_static" >&6; }
  9918. fi
  9919. ac_ext=c
  9920. ac_cpp='$CPP $CPPFLAGS'
  9921. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9922. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9923. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9924. CC="$lt_save_CC"
  9925. ac_config_commands="$ac_config_commands libtool"
  9926. # Only expand once:
  9927. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9928. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9929. LT_REVISION=$SDL_INTERFACE_AGE
  9930. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9931. ac_ext=c
  9932. ac_cpp='$CPP $CPPFLAGS'
  9933. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9934. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9935. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9936. if test -n "$ac_tool_prefix"; then
  9937. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9938. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9940. $as_echo_n "checking for $ac_word... " >&6; }
  9941. if ${ac_cv_prog_CC+:} false; then :
  9942. $as_echo_n "(cached) " >&6
  9943. else
  9944. if test -n "$CC"; then
  9945. ac_cv_prog_CC="$CC" # Let the user override the test.
  9946. else
  9947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9948. for as_dir in $PATH
  9949. do
  9950. IFS=$as_save_IFS
  9951. test -z "$as_dir" && as_dir=.
  9952. for ac_exec_ext in '' $ac_executable_extensions; do
  9953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9954. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9956. break 2
  9957. fi
  9958. done
  9959. done
  9960. IFS=$as_save_IFS
  9961. fi
  9962. fi
  9963. CC=$ac_cv_prog_CC
  9964. if test -n "$CC"; then
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9966. $as_echo "$CC" >&6; }
  9967. else
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9969. $as_echo "no" >&6; }
  9970. fi
  9971. fi
  9972. if test -z "$ac_cv_prog_CC"; then
  9973. ac_ct_CC=$CC
  9974. # Extract the first word of "gcc", so it can be a program name with args.
  9975. set dummy gcc; ac_word=$2
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9977. $as_echo_n "checking for $ac_word... " >&6; }
  9978. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9979. $as_echo_n "(cached) " >&6
  9980. else
  9981. if test -n "$ac_ct_CC"; then
  9982. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9983. else
  9984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9985. for as_dir in $PATH
  9986. do
  9987. IFS=$as_save_IFS
  9988. test -z "$as_dir" && as_dir=.
  9989. for ac_exec_ext in '' $ac_executable_extensions; do
  9990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9991. ac_cv_prog_ac_ct_CC="gcc"
  9992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9993. break 2
  9994. fi
  9995. done
  9996. done
  9997. IFS=$as_save_IFS
  9998. fi
  9999. fi
  10000. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10001. if test -n "$ac_ct_CC"; then
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10003. $as_echo "$ac_ct_CC" >&6; }
  10004. else
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10006. $as_echo "no" >&6; }
  10007. fi
  10008. if test "x$ac_ct_CC" = x; then
  10009. CC=""
  10010. else
  10011. case $cross_compiling:$ac_tool_warned in
  10012. yes:)
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10015. ac_tool_warned=yes ;;
  10016. esac
  10017. CC=$ac_ct_CC
  10018. fi
  10019. else
  10020. CC="$ac_cv_prog_CC"
  10021. fi
  10022. if test -z "$CC"; then
  10023. if test -n "$ac_tool_prefix"; then
  10024. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10025. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10027. $as_echo_n "checking for $ac_word... " >&6; }
  10028. if ${ac_cv_prog_CC+:} false; then :
  10029. $as_echo_n "(cached) " >&6
  10030. else
  10031. if test -n "$CC"; then
  10032. ac_cv_prog_CC="$CC" # Let the user override the test.
  10033. else
  10034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10035. for as_dir in $PATH
  10036. do
  10037. IFS=$as_save_IFS
  10038. test -z "$as_dir" && as_dir=.
  10039. for ac_exec_ext in '' $ac_executable_extensions; do
  10040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10041. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10043. break 2
  10044. fi
  10045. done
  10046. done
  10047. IFS=$as_save_IFS
  10048. fi
  10049. fi
  10050. CC=$ac_cv_prog_CC
  10051. if test -n "$CC"; then
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10053. $as_echo "$CC" >&6; }
  10054. else
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10056. $as_echo "no" >&6; }
  10057. fi
  10058. fi
  10059. fi
  10060. if test -z "$CC"; then
  10061. # Extract the first word of "cc", so it can be a program name with args.
  10062. set dummy cc; ac_word=$2
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10064. $as_echo_n "checking for $ac_word... " >&6; }
  10065. if ${ac_cv_prog_CC+:} false; then :
  10066. $as_echo_n "(cached) " >&6
  10067. else
  10068. if test -n "$CC"; then
  10069. ac_cv_prog_CC="$CC" # Let the user override the test.
  10070. else
  10071. ac_prog_rejected=no
  10072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10073. for as_dir in $PATH
  10074. do
  10075. IFS=$as_save_IFS
  10076. test -z "$as_dir" && as_dir=.
  10077. for ac_exec_ext in '' $ac_executable_extensions; do
  10078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10079. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10080. ac_prog_rejected=yes
  10081. continue
  10082. fi
  10083. ac_cv_prog_CC="cc"
  10084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10085. break 2
  10086. fi
  10087. done
  10088. done
  10089. IFS=$as_save_IFS
  10090. if test $ac_prog_rejected = yes; then
  10091. # We found a bogon in the path, so make sure we never use it.
  10092. set dummy $ac_cv_prog_CC
  10093. shift
  10094. if test $# != 0; then
  10095. # We chose a different compiler from the bogus one.
  10096. # However, it has the same basename, so the bogon will be chosen
  10097. # first if we set CC to just the basename; use the full file name.
  10098. shift
  10099. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10100. fi
  10101. fi
  10102. fi
  10103. fi
  10104. CC=$ac_cv_prog_CC
  10105. if test -n "$CC"; then
  10106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10107. $as_echo "$CC" >&6; }
  10108. else
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10110. $as_echo "no" >&6; }
  10111. fi
  10112. fi
  10113. if test -z "$CC"; then
  10114. if test -n "$ac_tool_prefix"; then
  10115. for ac_prog in cl.exe
  10116. do
  10117. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10118. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10120. $as_echo_n "checking for $ac_word... " >&6; }
  10121. if ${ac_cv_prog_CC+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. if test -n "$CC"; then
  10125. ac_cv_prog_CC="$CC" # Let the user override the test.
  10126. else
  10127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10128. for as_dir in $PATH
  10129. do
  10130. IFS=$as_save_IFS
  10131. test -z "$as_dir" && as_dir=.
  10132. for ac_exec_ext in '' $ac_executable_extensions; do
  10133. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10134. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10136. break 2
  10137. fi
  10138. done
  10139. done
  10140. IFS=$as_save_IFS
  10141. fi
  10142. fi
  10143. CC=$ac_cv_prog_CC
  10144. if test -n "$CC"; then
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10146. $as_echo "$CC" >&6; }
  10147. else
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10149. $as_echo "no" >&6; }
  10150. fi
  10151. test -n "$CC" && break
  10152. done
  10153. fi
  10154. if test -z "$CC"; then
  10155. ac_ct_CC=$CC
  10156. for ac_prog in cl.exe
  10157. do
  10158. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10159. set dummy $ac_prog; ac_word=$2
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10161. $as_echo_n "checking for $ac_word... " >&6; }
  10162. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10163. $as_echo_n "(cached) " >&6
  10164. else
  10165. if test -n "$ac_ct_CC"; then
  10166. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10167. else
  10168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10169. for as_dir in $PATH
  10170. do
  10171. IFS=$as_save_IFS
  10172. test -z "$as_dir" && as_dir=.
  10173. for ac_exec_ext in '' $ac_executable_extensions; do
  10174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10175. ac_cv_prog_ac_ct_CC="$ac_prog"
  10176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10177. break 2
  10178. fi
  10179. done
  10180. done
  10181. IFS=$as_save_IFS
  10182. fi
  10183. fi
  10184. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10185. if test -n "$ac_ct_CC"; then
  10186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10187. $as_echo "$ac_ct_CC" >&6; }
  10188. else
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10190. $as_echo "no" >&6; }
  10191. fi
  10192. test -n "$ac_ct_CC" && break
  10193. done
  10194. if test "x$ac_ct_CC" = x; then
  10195. CC=""
  10196. else
  10197. case $cross_compiling:$ac_tool_warned in
  10198. yes:)
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10201. ac_tool_warned=yes ;;
  10202. esac
  10203. CC=$ac_ct_CC
  10204. fi
  10205. fi
  10206. fi
  10207. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10209. as_fn_error $? "no acceptable C compiler found in \$PATH
  10210. See \`config.log' for more details" "$LINENO" 5; }
  10211. # Provide some information about the compiler.
  10212. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10213. set X $ac_compile
  10214. ac_compiler=$2
  10215. for ac_option in --version -v -V -qversion; do
  10216. { { ac_try="$ac_compiler $ac_option >&5"
  10217. case "(($ac_try" in
  10218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10219. *) ac_try_echo=$ac_try;;
  10220. esac
  10221. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10222. $as_echo "$ac_try_echo"; } >&5
  10223. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10224. ac_status=$?
  10225. if test -s conftest.err; then
  10226. sed '10a\
  10227. ... rest of stderr output deleted ...
  10228. 10q' conftest.err >conftest.er1
  10229. cat conftest.er1 >&5
  10230. fi
  10231. rm -f conftest.er1 conftest.err
  10232. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10233. test $ac_status = 0; }
  10234. done
  10235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10236. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10237. if ${ac_cv_c_compiler_gnu+:} false; then :
  10238. $as_echo_n "(cached) " >&6
  10239. else
  10240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10241. /* end confdefs.h. */
  10242. int
  10243. main ()
  10244. {
  10245. #ifndef __GNUC__
  10246. choke me
  10247. #endif
  10248. ;
  10249. return 0;
  10250. }
  10251. _ACEOF
  10252. if ac_fn_c_try_compile "$LINENO"; then :
  10253. ac_compiler_gnu=yes
  10254. else
  10255. ac_compiler_gnu=no
  10256. fi
  10257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10258. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10259. fi
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10261. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10262. if test $ac_compiler_gnu = yes; then
  10263. GCC=yes
  10264. else
  10265. GCC=
  10266. fi
  10267. ac_test_CFLAGS=${CFLAGS+set}
  10268. ac_save_CFLAGS=$CFLAGS
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10270. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10271. if ${ac_cv_prog_cc_g+:} false; then :
  10272. $as_echo_n "(cached) " >&6
  10273. else
  10274. ac_save_c_werror_flag=$ac_c_werror_flag
  10275. ac_c_werror_flag=yes
  10276. ac_cv_prog_cc_g=no
  10277. CFLAGS="-g"
  10278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10279. /* end confdefs.h. */
  10280. int
  10281. main ()
  10282. {
  10283. ;
  10284. return 0;
  10285. }
  10286. _ACEOF
  10287. if ac_fn_c_try_compile "$LINENO"; then :
  10288. ac_cv_prog_cc_g=yes
  10289. else
  10290. CFLAGS=""
  10291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10292. /* end confdefs.h. */
  10293. int
  10294. main ()
  10295. {
  10296. ;
  10297. return 0;
  10298. }
  10299. _ACEOF
  10300. if ac_fn_c_try_compile "$LINENO"; then :
  10301. else
  10302. ac_c_werror_flag=$ac_save_c_werror_flag
  10303. CFLAGS="-g"
  10304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10305. /* end confdefs.h. */
  10306. int
  10307. main ()
  10308. {
  10309. ;
  10310. return 0;
  10311. }
  10312. _ACEOF
  10313. if ac_fn_c_try_compile "$LINENO"; then :
  10314. ac_cv_prog_cc_g=yes
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10317. fi
  10318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10321. ac_c_werror_flag=$ac_save_c_werror_flag
  10322. fi
  10323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10324. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10325. if test "$ac_test_CFLAGS" = set; then
  10326. CFLAGS=$ac_save_CFLAGS
  10327. elif test $ac_cv_prog_cc_g = yes; then
  10328. if test "$GCC" = yes; then
  10329. CFLAGS="-g -O2"
  10330. else
  10331. CFLAGS="-g"
  10332. fi
  10333. else
  10334. if test "$GCC" = yes; then
  10335. CFLAGS="-O2"
  10336. else
  10337. CFLAGS=
  10338. fi
  10339. fi
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10341. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10342. if ${ac_cv_prog_cc_c89+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. ac_cv_prog_cc_c89=no
  10346. ac_save_CC=$CC
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. #include <stdarg.h>
  10350. #include <stdio.h>
  10351. struct stat;
  10352. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10353. struct buf { int x; };
  10354. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10355. static char *e (p, i)
  10356. char **p;
  10357. int i;
  10358. {
  10359. return p[i];
  10360. }
  10361. static char *f (char * (*g) (char **, int), char **p, ...)
  10362. {
  10363. char *s;
  10364. va_list v;
  10365. va_start (v,p);
  10366. s = g (p, va_arg (v,int));
  10367. va_end (v);
  10368. return s;
  10369. }
  10370. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10371. function prototypes and stuff, but not '\xHH' hex character constants.
  10372. These don't provoke an error unfortunately, instead are silently treated
  10373. as 'x'. The following induces an error, until -std is added to get
  10374. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10375. array size at least. It's necessary to write '\x00'==0 to get something
  10376. that's true only with -std. */
  10377. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10378. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10379. inside strings and character constants. */
  10380. #define FOO(x) 'x'
  10381. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10382. int test (int i, double x);
  10383. struct s1 {int (*f) (int a);};
  10384. struct s2 {int (*f) (double a);};
  10385. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10386. int argc;
  10387. char **argv;
  10388. int
  10389. main ()
  10390. {
  10391. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10392. ;
  10393. return 0;
  10394. }
  10395. _ACEOF
  10396. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10397. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10398. do
  10399. CC="$ac_save_CC $ac_arg"
  10400. if ac_fn_c_try_compile "$LINENO"; then :
  10401. ac_cv_prog_cc_c89=$ac_arg
  10402. fi
  10403. rm -f core conftest.err conftest.$ac_objext
  10404. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10405. done
  10406. rm -f conftest.$ac_ext
  10407. CC=$ac_save_CC
  10408. fi
  10409. # AC_CACHE_VAL
  10410. case "x$ac_cv_prog_cc_c89" in
  10411. x)
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10413. $as_echo "none needed" >&6; } ;;
  10414. xno)
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10416. $as_echo "unsupported" >&6; } ;;
  10417. *)
  10418. CC="$CC $ac_cv_prog_cc_c89"
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10420. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10421. esac
  10422. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10423. fi
  10424. ac_ext=c
  10425. ac_cpp='$CPP $CPPFLAGS'
  10426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10429. ac_ext=cpp
  10430. ac_cpp='$CXXCPP $CPPFLAGS'
  10431. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10432. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10433. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10434. if test -z "$CXX"; then
  10435. if test -n "$CCC"; then
  10436. CXX=$CCC
  10437. else
  10438. if test -n "$ac_tool_prefix"; then
  10439. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10440. do
  10441. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10442. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10444. $as_echo_n "checking for $ac_word... " >&6; }
  10445. if ${ac_cv_prog_CXX+:} false; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. if test -n "$CXX"; then
  10449. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10450. else
  10451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10452. for as_dir in $PATH
  10453. do
  10454. IFS=$as_save_IFS
  10455. test -z "$as_dir" && as_dir=.
  10456. for ac_exec_ext in '' $ac_executable_extensions; do
  10457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10458. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10460. break 2
  10461. fi
  10462. done
  10463. done
  10464. IFS=$as_save_IFS
  10465. fi
  10466. fi
  10467. CXX=$ac_cv_prog_CXX
  10468. if test -n "$CXX"; then
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10470. $as_echo "$CXX" >&6; }
  10471. else
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10473. $as_echo "no" >&6; }
  10474. fi
  10475. test -n "$CXX" && break
  10476. done
  10477. fi
  10478. if test -z "$CXX"; then
  10479. ac_ct_CXX=$CXX
  10480. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10481. do
  10482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10483. set dummy $ac_prog; ac_word=$2
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10485. $as_echo_n "checking for $ac_word... " >&6; }
  10486. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. if test -n "$ac_ct_CXX"; then
  10490. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10491. else
  10492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10493. for as_dir in $PATH
  10494. do
  10495. IFS=$as_save_IFS
  10496. test -z "$as_dir" && as_dir=.
  10497. for ac_exec_ext in '' $ac_executable_extensions; do
  10498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10499. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10501. break 2
  10502. fi
  10503. done
  10504. done
  10505. IFS=$as_save_IFS
  10506. fi
  10507. fi
  10508. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10509. if test -n "$ac_ct_CXX"; then
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10511. $as_echo "$ac_ct_CXX" >&6; }
  10512. else
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10514. $as_echo "no" >&6; }
  10515. fi
  10516. test -n "$ac_ct_CXX" && break
  10517. done
  10518. if test "x$ac_ct_CXX" = x; then
  10519. CXX="g++"
  10520. else
  10521. case $cross_compiling:$ac_tool_warned in
  10522. yes:)
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10524. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10525. ac_tool_warned=yes ;;
  10526. esac
  10527. CXX=$ac_ct_CXX
  10528. fi
  10529. fi
  10530. fi
  10531. fi
  10532. # Provide some information about the compiler.
  10533. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10534. set X $ac_compile
  10535. ac_compiler=$2
  10536. for ac_option in --version -v -V -qversion; do
  10537. { { ac_try="$ac_compiler $ac_option >&5"
  10538. case "(($ac_try" in
  10539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10540. *) ac_try_echo=$ac_try;;
  10541. esac
  10542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10543. $as_echo "$ac_try_echo"; } >&5
  10544. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10545. ac_status=$?
  10546. if test -s conftest.err; then
  10547. sed '10a\
  10548. ... rest of stderr output deleted ...
  10549. 10q' conftest.err >conftest.er1
  10550. cat conftest.er1 >&5
  10551. fi
  10552. rm -f conftest.er1 conftest.err
  10553. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10554. test $ac_status = 0; }
  10555. done
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10557. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10558. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10559. $as_echo_n "(cached) " >&6
  10560. else
  10561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10562. /* end confdefs.h. */
  10563. int
  10564. main ()
  10565. {
  10566. #ifndef __GNUC__
  10567. choke me
  10568. #endif
  10569. ;
  10570. return 0;
  10571. }
  10572. _ACEOF
  10573. if ac_fn_cxx_try_compile "$LINENO"; then :
  10574. ac_compiler_gnu=yes
  10575. else
  10576. ac_compiler_gnu=no
  10577. fi
  10578. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10579. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10580. fi
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10582. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10583. if test $ac_compiler_gnu = yes; then
  10584. GXX=yes
  10585. else
  10586. GXX=
  10587. fi
  10588. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10589. ac_save_CXXFLAGS=$CXXFLAGS
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10591. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10592. if ${ac_cv_prog_cxx_g+:} false; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10596. ac_cxx_werror_flag=yes
  10597. ac_cv_prog_cxx_g=no
  10598. CXXFLAGS="-g"
  10599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10600. /* end confdefs.h. */
  10601. int
  10602. main ()
  10603. {
  10604. ;
  10605. return 0;
  10606. }
  10607. _ACEOF
  10608. if ac_fn_cxx_try_compile "$LINENO"; then :
  10609. ac_cv_prog_cxx_g=yes
  10610. else
  10611. CXXFLAGS=""
  10612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10613. /* end confdefs.h. */
  10614. int
  10615. main ()
  10616. {
  10617. ;
  10618. return 0;
  10619. }
  10620. _ACEOF
  10621. if ac_fn_cxx_try_compile "$LINENO"; then :
  10622. else
  10623. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10624. CXXFLAGS="-g"
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. int
  10628. main ()
  10629. {
  10630. ;
  10631. return 0;
  10632. }
  10633. _ACEOF
  10634. if ac_fn_cxx_try_compile "$LINENO"; then :
  10635. ac_cv_prog_cxx_g=yes
  10636. fi
  10637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10638. fi
  10639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10640. fi
  10641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10642. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10643. fi
  10644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10645. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10646. if test "$ac_test_CXXFLAGS" = set; then
  10647. CXXFLAGS=$ac_save_CXXFLAGS
  10648. elif test $ac_cv_prog_cxx_g = yes; then
  10649. if test "$GXX" = yes; then
  10650. CXXFLAGS="-g -O2"
  10651. else
  10652. CXXFLAGS="-g"
  10653. fi
  10654. else
  10655. if test "$GXX" = yes; then
  10656. CXXFLAGS="-O2"
  10657. else
  10658. CXXFLAGS=
  10659. fi
  10660. fi
  10661. ac_ext=c
  10662. ac_cpp='$CPP $CPPFLAGS'
  10663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10666. func_stripname_cnf ()
  10667. {
  10668. case ${2} in
  10669. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10670. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10671. esac
  10672. } # func_stripname_cnf
  10673. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10674. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10675. (test "X$CXX" != "Xg++"))) ; then
  10676. ac_ext=cpp
  10677. ac_cpp='$CXXCPP $CPPFLAGS'
  10678. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10679. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10680. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10682. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10683. if test -z "$CXXCPP"; then
  10684. if ${ac_cv_prog_CXXCPP+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. # Double quotes because CXXCPP needs to be expanded
  10688. for CXXCPP in "$CXX -E" "/lib/cpp"
  10689. do
  10690. ac_preproc_ok=false
  10691. for ac_cxx_preproc_warn_flag in '' yes
  10692. do
  10693. # Use a header file that comes with gcc, so configuring glibc
  10694. # with a fresh cross-compiler works.
  10695. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10696. # <limits.h> exists even on freestanding compilers.
  10697. # On the NeXT, cc -E runs the code through the compiler's parser,
  10698. # not just through cpp. "Syntax error" is here to catch this case.
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. #ifdef __STDC__
  10702. # include <limits.h>
  10703. #else
  10704. # include <assert.h>
  10705. #endif
  10706. Syntax error
  10707. _ACEOF
  10708. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10709. else
  10710. # Broken: fails on valid input.
  10711. continue
  10712. fi
  10713. rm -f conftest.err conftest.i conftest.$ac_ext
  10714. # OK, works on sane cases. Now check whether nonexistent headers
  10715. # can be detected and how.
  10716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10717. /* end confdefs.h. */
  10718. #include <ac_nonexistent.h>
  10719. _ACEOF
  10720. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10721. # Broken: success on invalid input.
  10722. continue
  10723. else
  10724. # Passes both tests.
  10725. ac_preproc_ok=:
  10726. break
  10727. fi
  10728. rm -f conftest.err conftest.i conftest.$ac_ext
  10729. done
  10730. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10731. rm -f conftest.i conftest.err conftest.$ac_ext
  10732. if $ac_preproc_ok; then :
  10733. break
  10734. fi
  10735. done
  10736. ac_cv_prog_CXXCPP=$CXXCPP
  10737. fi
  10738. CXXCPP=$ac_cv_prog_CXXCPP
  10739. else
  10740. ac_cv_prog_CXXCPP=$CXXCPP
  10741. fi
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10743. $as_echo "$CXXCPP" >&6; }
  10744. ac_preproc_ok=false
  10745. for ac_cxx_preproc_warn_flag in '' yes
  10746. do
  10747. # Use a header file that comes with gcc, so configuring glibc
  10748. # with a fresh cross-compiler works.
  10749. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10750. # <limits.h> exists even on freestanding compilers.
  10751. # On the NeXT, cc -E runs the code through the compiler's parser,
  10752. # not just through cpp. "Syntax error" is here to catch this case.
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. #ifdef __STDC__
  10756. # include <limits.h>
  10757. #else
  10758. # include <assert.h>
  10759. #endif
  10760. Syntax error
  10761. _ACEOF
  10762. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10763. else
  10764. # Broken: fails on valid input.
  10765. continue
  10766. fi
  10767. rm -f conftest.err conftest.i conftest.$ac_ext
  10768. # OK, works on sane cases. Now check whether nonexistent headers
  10769. # can be detected and how.
  10770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10771. /* end confdefs.h. */
  10772. #include <ac_nonexistent.h>
  10773. _ACEOF
  10774. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10775. # Broken: success on invalid input.
  10776. continue
  10777. else
  10778. # Passes both tests.
  10779. ac_preproc_ok=:
  10780. break
  10781. fi
  10782. rm -f conftest.err conftest.i conftest.$ac_ext
  10783. done
  10784. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10785. rm -f conftest.i conftest.err conftest.$ac_ext
  10786. if $ac_preproc_ok; then :
  10787. else
  10788. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10789. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10790. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10791. See \`config.log' for more details" "$LINENO" 5; }
  10792. fi
  10793. ac_ext=c
  10794. ac_cpp='$CPP $CPPFLAGS'
  10795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10798. else
  10799. _lt_caught_CXX_error=yes
  10800. fi
  10801. ac_ext=cpp
  10802. ac_cpp='$CXXCPP $CPPFLAGS'
  10803. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10804. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10805. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10806. archive_cmds_need_lc_CXX=no
  10807. allow_undefined_flag_CXX=
  10808. always_export_symbols_CXX=no
  10809. archive_expsym_cmds_CXX=
  10810. compiler_needs_object_CXX=no
  10811. export_dynamic_flag_spec_CXX=
  10812. hardcode_direct_CXX=no
  10813. hardcode_direct_absolute_CXX=no
  10814. hardcode_libdir_flag_spec_CXX=
  10815. hardcode_libdir_separator_CXX=
  10816. hardcode_minus_L_CXX=no
  10817. hardcode_shlibpath_var_CXX=unsupported
  10818. hardcode_automatic_CXX=no
  10819. inherit_rpath_CXX=no
  10820. module_cmds_CXX=
  10821. module_expsym_cmds_CXX=
  10822. link_all_deplibs_CXX=unknown
  10823. old_archive_cmds_CXX=$old_archive_cmds
  10824. reload_flag_CXX=$reload_flag
  10825. reload_cmds_CXX=$reload_cmds
  10826. no_undefined_flag_CXX=
  10827. whole_archive_flag_spec_CXX=
  10828. enable_shared_with_static_runtimes_CXX=no
  10829. # Source file extension for C++ test sources.
  10830. ac_ext=cpp
  10831. # Object file extension for compiled C++ test sources.
  10832. objext=o
  10833. objext_CXX=$objext
  10834. # No sense in running all these tests if we already determined that
  10835. # the CXX compiler isn't working. Some variables (like enable_shared)
  10836. # are currently assumed to apply to all compilers on this platform,
  10837. # and will be corrupted by setting them based on a non-working compiler.
  10838. if test "$_lt_caught_CXX_error" != yes; then
  10839. # Code to be used in simple compile tests
  10840. lt_simple_compile_test_code="int some_variable = 0;"
  10841. # Code to be used in simple link tests
  10842. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10843. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10844. # If no C compiler was specified, use CC.
  10845. LTCC=${LTCC-"$CC"}
  10846. # If no C compiler flags were specified, use CFLAGS.
  10847. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10848. # Allow CC to be a program name with arguments.
  10849. compiler=$CC
  10850. # save warnings/boilerplate of simple test code
  10851. ac_outfile=conftest.$ac_objext
  10852. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10853. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10854. _lt_compiler_boilerplate=`cat conftest.err`
  10855. $RM conftest*
  10856. ac_outfile=conftest.$ac_objext
  10857. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10858. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10859. _lt_linker_boilerplate=`cat conftest.err`
  10860. $RM -r conftest*
  10861. # Allow CC to be a program name with arguments.
  10862. lt_save_CC=$CC
  10863. lt_save_CFLAGS=$CFLAGS
  10864. lt_save_LD=$LD
  10865. lt_save_GCC=$GCC
  10866. GCC=$GXX
  10867. lt_save_with_gnu_ld=$with_gnu_ld
  10868. lt_save_path_LD=$lt_cv_path_LD
  10869. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10870. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10871. else
  10872. $as_unset lt_cv_prog_gnu_ld
  10873. fi
  10874. if test -n "${lt_cv_path_LDCXX+set}"; then
  10875. lt_cv_path_LD=$lt_cv_path_LDCXX
  10876. else
  10877. $as_unset lt_cv_path_LD
  10878. fi
  10879. test -z "${LDCXX+set}" || LD=$LDCXX
  10880. CC=${CXX-"c++"}
  10881. CFLAGS=$CXXFLAGS
  10882. compiler=$CC
  10883. compiler_CXX=$CC
  10884. for cc_temp in $compiler""; do
  10885. case $cc_temp in
  10886. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10887. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10888. \-*) ;;
  10889. *) break;;
  10890. esac
  10891. done
  10892. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10893. if test -n "$compiler"; then
  10894. # We don't want -fno-exception when compiling C++ code, so set the
  10895. # no_builtin_flag separately
  10896. if test "$GXX" = yes; then
  10897. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10898. else
  10899. lt_prog_compiler_no_builtin_flag_CXX=
  10900. fi
  10901. if test "$GXX" = yes; then
  10902. # Set up default GNU C++ configuration
  10903. # Check whether --with-gnu-ld was given.
  10904. if test "${with_gnu_ld+set}" = set; then :
  10905. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10906. else
  10907. with_gnu_ld=no
  10908. fi
  10909. ac_prog=ld
  10910. if test "$GCC" = yes; then
  10911. # Check if gcc -print-prog-name=ld gives a path.
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10913. $as_echo_n "checking for ld used by $CC... " >&6; }
  10914. case $host in
  10915. *-*-mingw*)
  10916. # gcc leaves a trailing carriage return which upsets mingw
  10917. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10918. *)
  10919. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10920. esac
  10921. case $ac_prog in
  10922. # Accept absolute paths.
  10923. [\\/]* | ?:[\\/]*)
  10924. re_direlt='/[^/][^/]*/\.\./'
  10925. # Canonicalize the pathname of ld
  10926. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10927. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10928. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10929. done
  10930. test -z "$LD" && LD="$ac_prog"
  10931. ;;
  10932. "")
  10933. # If it fails, then pretend we aren't using GCC.
  10934. ac_prog=ld
  10935. ;;
  10936. *)
  10937. # If it is relative, then search for the first ld in PATH.
  10938. with_gnu_ld=unknown
  10939. ;;
  10940. esac
  10941. elif test "$with_gnu_ld" = yes; then
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10943. $as_echo_n "checking for GNU ld... " >&6; }
  10944. else
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10946. $as_echo_n "checking for non-GNU ld... " >&6; }
  10947. fi
  10948. if ${lt_cv_path_LD+:} false; then :
  10949. $as_echo_n "(cached) " >&6
  10950. else
  10951. if test -z "$LD"; then
  10952. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10953. for ac_dir in $PATH; do
  10954. IFS="$lt_save_ifs"
  10955. test -z "$ac_dir" && ac_dir=.
  10956. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10957. lt_cv_path_LD="$ac_dir/$ac_prog"
  10958. # Check to see if the program is GNU ld. I'd rather use --version,
  10959. # but apparently some variants of GNU ld only accept -v.
  10960. # Break only if it was the GNU/non-GNU ld that we prefer.
  10961. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10962. *GNU* | *'with BFD'*)
  10963. test "$with_gnu_ld" != no && break
  10964. ;;
  10965. *)
  10966. test "$with_gnu_ld" != yes && break
  10967. ;;
  10968. esac
  10969. fi
  10970. done
  10971. IFS="$lt_save_ifs"
  10972. else
  10973. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10974. fi
  10975. fi
  10976. LD="$lt_cv_path_LD"
  10977. if test -n "$LD"; then
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10979. $as_echo "$LD" >&6; }
  10980. else
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10982. $as_echo "no" >&6; }
  10983. fi
  10984. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10986. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10987. if ${lt_cv_prog_gnu_ld+:} false; then :
  10988. $as_echo_n "(cached) " >&6
  10989. else
  10990. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10991. case `$LD -v 2>&1 </dev/null` in
  10992. *GNU* | *'with BFD'*)
  10993. lt_cv_prog_gnu_ld=yes
  10994. ;;
  10995. *)
  10996. lt_cv_prog_gnu_ld=no
  10997. ;;
  10998. esac
  10999. fi
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11001. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11002. with_gnu_ld=$lt_cv_prog_gnu_ld
  11003. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11004. # archiving commands below assume that GNU ld is being used.
  11005. if test "$with_gnu_ld" = yes; then
  11006. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11007. 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'
  11008. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11009. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11010. # If archive_cmds runs LD, not CC, wlarc should be empty
  11011. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11012. # investigate it a little bit more. (MM)
  11013. wlarc='${wl}'
  11014. # ancient GNU ld didn't support --whole-archive et. al.
  11015. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11016. $GREP 'no-whole-archive' > /dev/null; then
  11017. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11018. else
  11019. whole_archive_flag_spec_CXX=
  11020. fi
  11021. else
  11022. with_gnu_ld=no
  11023. wlarc=
  11024. # A generic and very simple default shared library creation
  11025. # command for GNU C++ for the case where it uses the native
  11026. # linker, instead of GNU ld. If possible, this setting should
  11027. # overridden to take advantage of the native linker features on
  11028. # the platform it is being used on.
  11029. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11030. fi
  11031. # Commands to make compiler produce verbose output that lists
  11032. # what "hidden" libraries, object files and flags are used when
  11033. # linking a shared library.
  11034. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11035. else
  11036. GXX=no
  11037. with_gnu_ld=no
  11038. wlarc=
  11039. fi
  11040. # PORTME: fill in a description of your system's C++ link characteristics
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11042. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11043. ld_shlibs_CXX=yes
  11044. case $host_os in
  11045. aix3*)
  11046. # FIXME: insert proper C++ library support
  11047. ld_shlibs_CXX=no
  11048. ;;
  11049. aix[4-9]*)
  11050. if test "$host_cpu" = ia64; then
  11051. # On IA64, the linker does run time linking by default, so we don't
  11052. # have to do anything special.
  11053. aix_use_runtimelinking=no
  11054. exp_sym_flag='-Bexport'
  11055. no_entry_flag=""
  11056. else
  11057. aix_use_runtimelinking=no
  11058. # Test if we are trying to use run time linking or normal
  11059. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11060. # need to do runtime linking.
  11061. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11062. for ld_flag in $LDFLAGS; do
  11063. case $ld_flag in
  11064. *-brtl*)
  11065. aix_use_runtimelinking=yes
  11066. break
  11067. ;;
  11068. esac
  11069. done
  11070. ;;
  11071. esac
  11072. exp_sym_flag='-bexport'
  11073. no_entry_flag='-bnoentry'
  11074. fi
  11075. # When large executables or shared objects are built, AIX ld can
  11076. # have problems creating the table of contents. If linking a library
  11077. # or program results in "error TOC overflow" add -mminimal-toc to
  11078. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11079. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11080. archive_cmds_CXX=''
  11081. hardcode_direct_CXX=yes
  11082. hardcode_direct_absolute_CXX=yes
  11083. hardcode_libdir_separator_CXX=':'
  11084. link_all_deplibs_CXX=yes
  11085. file_list_spec_CXX='${wl}-f,'
  11086. if test "$GXX" = yes; then
  11087. case $host_os in aix4.[012]|aix4.[012].*)
  11088. # We only want to do this on AIX 4.2 and lower, the check
  11089. # below for broken collect2 doesn't work under 4.3+
  11090. collect2name=`${CC} -print-prog-name=collect2`
  11091. if test -f "$collect2name" &&
  11092. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11093. then
  11094. # We have reworked collect2
  11095. :
  11096. else
  11097. # We have old collect2
  11098. hardcode_direct_CXX=unsupported
  11099. # It fails to find uninstalled libraries when the uninstalled
  11100. # path is not listed in the libpath. Setting hardcode_minus_L
  11101. # to unsupported forces relinking
  11102. hardcode_minus_L_CXX=yes
  11103. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11104. hardcode_libdir_separator_CXX=
  11105. fi
  11106. esac
  11107. shared_flag='-shared'
  11108. if test "$aix_use_runtimelinking" = yes; then
  11109. shared_flag="$shared_flag "'${wl}-G'
  11110. fi
  11111. else
  11112. # not using gcc
  11113. if test "$host_cpu" = ia64; then
  11114. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11115. # chokes on -Wl,-G. The following line is correct:
  11116. shared_flag='-G'
  11117. else
  11118. if test "$aix_use_runtimelinking" = yes; then
  11119. shared_flag='${wl}-G'
  11120. else
  11121. shared_flag='${wl}-bM:SRE'
  11122. fi
  11123. fi
  11124. fi
  11125. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11126. # It seems that -bexpall does not export symbols beginning with
  11127. # underscore (_), so it is better to generate a list of symbols to
  11128. # export.
  11129. always_export_symbols_CXX=yes
  11130. if test "$aix_use_runtimelinking" = yes; then
  11131. # Warning - without using the other runtime loading flags (-brtl),
  11132. # -berok will link without error, but may produce a broken library.
  11133. allow_undefined_flag_CXX='-berok'
  11134. # Determine the default libpath from the value encoded in an empty
  11135. # executable.
  11136. if test "${lt_cv_aix_libpath+set}" = set; then
  11137. aix_libpath=$lt_cv_aix_libpath
  11138. else
  11139. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11143. /* end confdefs.h. */
  11144. int
  11145. main ()
  11146. {
  11147. ;
  11148. return 0;
  11149. }
  11150. _ACEOF
  11151. if ac_fn_cxx_try_link "$LINENO"; then :
  11152. lt_aix_libpath_sed='
  11153. /Import File Strings/,/^$/ {
  11154. /^0/ {
  11155. s/^0 *\([^ ]*\) *$/\1/
  11156. p
  11157. }
  11158. }'
  11159. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11160. # Check for a 64-bit object if we didn't find anything.
  11161. if test -z "$lt_cv_aix_libpath__CXX"; then
  11162. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11163. fi
  11164. fi
  11165. rm -f core conftest.err conftest.$ac_objext \
  11166. conftest$ac_exeext conftest.$ac_ext
  11167. if test -z "$lt_cv_aix_libpath__CXX"; then
  11168. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11169. fi
  11170. fi
  11171. aix_libpath=$lt_cv_aix_libpath__CXX
  11172. fi
  11173. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11174. 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"
  11175. else
  11176. if test "$host_cpu" = ia64; then
  11177. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11178. allow_undefined_flag_CXX="-z nodefs"
  11179. 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"
  11180. else
  11181. # Determine the default libpath from the value encoded in an
  11182. # empty executable.
  11183. if test "${lt_cv_aix_libpath+set}" = set; then
  11184. aix_libpath=$lt_cv_aix_libpath
  11185. else
  11186. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11187. $as_echo_n "(cached) " >&6
  11188. else
  11189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11190. /* end confdefs.h. */
  11191. int
  11192. main ()
  11193. {
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. if ac_fn_cxx_try_link "$LINENO"; then :
  11199. lt_aix_libpath_sed='
  11200. /Import File Strings/,/^$/ {
  11201. /^0/ {
  11202. s/^0 *\([^ ]*\) *$/\1/
  11203. p
  11204. }
  11205. }'
  11206. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11207. # Check for a 64-bit object if we didn't find anything.
  11208. if test -z "$lt_cv_aix_libpath__CXX"; then
  11209. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11210. fi
  11211. fi
  11212. rm -f core conftest.err conftest.$ac_objext \
  11213. conftest$ac_exeext conftest.$ac_ext
  11214. if test -z "$lt_cv_aix_libpath__CXX"; then
  11215. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11216. fi
  11217. fi
  11218. aix_libpath=$lt_cv_aix_libpath__CXX
  11219. fi
  11220. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11221. # Warning - without using the other run time loading flags,
  11222. # -berok will link without error, but may produce a broken library.
  11223. no_undefined_flag_CXX=' ${wl}-bernotok'
  11224. allow_undefined_flag_CXX=' ${wl}-berok'
  11225. if test "$with_gnu_ld" = yes; then
  11226. # We only use this code for GNU lds that support --whole-archive.
  11227. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11228. else
  11229. # Exported symbols can be pulled into shared objects from archives
  11230. whole_archive_flag_spec_CXX='$convenience'
  11231. fi
  11232. archive_cmds_need_lc_CXX=yes
  11233. # This is similar to how AIX traditionally builds its shared
  11234. # libraries.
  11235. 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'
  11236. fi
  11237. fi
  11238. ;;
  11239. beos*)
  11240. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11241. allow_undefined_flag_CXX=unsupported
  11242. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11243. # support --undefined. This deserves some investigation. FIXME
  11244. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11245. else
  11246. ld_shlibs_CXX=no
  11247. fi
  11248. ;;
  11249. chorus*)
  11250. case $cc_basename in
  11251. *)
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. esac
  11256. ;;
  11257. cygwin* | mingw* | pw32* | cegcc*)
  11258. case $GXX,$cc_basename in
  11259. ,cl* | no,cl*)
  11260. # Native MSVC
  11261. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11262. # no search path for DLLs.
  11263. hardcode_libdir_flag_spec_CXX=' '
  11264. allow_undefined_flag_CXX=unsupported
  11265. always_export_symbols_CXX=yes
  11266. file_list_spec_CXX='@'
  11267. # Tell ltmain to make .lib files, not .a files.
  11268. libext=lib
  11269. # Tell ltmain to make .dll files, not .so files.
  11270. shrext_cmds=".dll"
  11271. # FIXME: Setting linknames here is a bad hack.
  11272. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11273. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11274. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11275. else
  11276. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11277. fi~
  11278. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11279. linknames='
  11280. # The linker will not automatically build a static lib if we build a DLL.
  11281. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11282. enable_shared_with_static_runtimes_CXX=yes
  11283. # Don't use ranlib
  11284. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11285. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11286. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11287. case $lt_outputfile in
  11288. *.exe|*.EXE) ;;
  11289. *)
  11290. lt_outputfile="$lt_outputfile.exe"
  11291. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11292. ;;
  11293. esac~
  11294. func_to_tool_file "$lt_outputfile"~
  11295. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11296. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11297. $RM "$lt_outputfile.manifest";
  11298. fi'
  11299. ;;
  11300. *)
  11301. # g++
  11302. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11303. # as there is no search path for DLLs.
  11304. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11305. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11306. allow_undefined_flag_CXX=unsupported
  11307. always_export_symbols_CXX=no
  11308. enable_shared_with_static_runtimes_CXX=yes
  11309. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11310. 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'
  11311. # If the export-symbols file already is a .def file (1st line
  11312. # is EXPORTS), use it as is; otherwise, prepend...
  11313. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11314. cp $export_symbols $output_objdir/$soname.def;
  11315. else
  11316. echo EXPORTS > $output_objdir/$soname.def;
  11317. cat $export_symbols >> $output_objdir/$soname.def;
  11318. fi~
  11319. $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'
  11320. else
  11321. ld_shlibs_CXX=no
  11322. fi
  11323. ;;
  11324. esac
  11325. ;;
  11326. darwin* | rhapsody*)
  11327. archive_cmds_need_lc_CXX=no
  11328. hardcode_direct_CXX=no
  11329. hardcode_automatic_CXX=yes
  11330. hardcode_shlibpath_var_CXX=unsupported
  11331. if test "$lt_cv_ld_force_load" = "yes"; then
  11332. 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\"`'
  11333. else
  11334. whole_archive_flag_spec_CXX=''
  11335. fi
  11336. link_all_deplibs_CXX=yes
  11337. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11338. case $cc_basename in
  11339. ifort*) _lt_dar_can_shared=yes ;;
  11340. *) _lt_dar_can_shared=$GCC ;;
  11341. esac
  11342. if test "$_lt_dar_can_shared" = "yes"; then
  11343. output_verbose_link_cmd=func_echo_all
  11344. 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}"
  11345. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11346. 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}"
  11347. 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}"
  11348. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11349. 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}"
  11350. 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}"
  11351. fi
  11352. else
  11353. ld_shlibs_CXX=no
  11354. fi
  11355. ;;
  11356. dgux*)
  11357. case $cc_basename in
  11358. ec++*)
  11359. # FIXME: insert proper C++ library support
  11360. ld_shlibs_CXX=no
  11361. ;;
  11362. ghcx*)
  11363. # Green Hills C++ Compiler
  11364. # FIXME: insert proper C++ library support
  11365. ld_shlibs_CXX=no
  11366. ;;
  11367. *)
  11368. # FIXME: insert proper C++ library support
  11369. ld_shlibs_CXX=no
  11370. ;;
  11371. esac
  11372. ;;
  11373. freebsd2.*)
  11374. # C++ shared libraries reported to be fairly broken before
  11375. # switch to ELF
  11376. ld_shlibs_CXX=no
  11377. ;;
  11378. freebsd-elf*)
  11379. archive_cmds_need_lc_CXX=no
  11380. ;;
  11381. freebsd* | dragonfly*)
  11382. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11383. # conventions
  11384. ld_shlibs_CXX=yes
  11385. ;;
  11386. gnu*)
  11387. ;;
  11388. haiku*)
  11389. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11390. link_all_deplibs_CXX=yes
  11391. ;;
  11392. hpux9*)
  11393. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11394. hardcode_libdir_separator_CXX=:
  11395. export_dynamic_flag_spec_CXX='${wl}-E'
  11396. hardcode_direct_CXX=yes
  11397. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11398. # but as the default
  11399. # location of the library.
  11400. case $cc_basename in
  11401. CC*)
  11402. # FIXME: insert proper C++ library support
  11403. ld_shlibs_CXX=no
  11404. ;;
  11405. aCC*)
  11406. 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'
  11407. # Commands to make compiler produce verbose output that lists
  11408. # what "hidden" libraries, object files and flags are used when
  11409. # linking a shared library.
  11410. #
  11411. # There doesn't appear to be a way to prevent this compiler from
  11412. # explicitly linking system object files so we need to strip them
  11413. # from the output so that they don't get included in the library
  11414. # dependencies.
  11415. 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"'
  11416. ;;
  11417. *)
  11418. if test "$GXX" = yes; then
  11419. 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'
  11420. else
  11421. # FIXME: insert proper C++ library support
  11422. ld_shlibs_CXX=no
  11423. fi
  11424. ;;
  11425. esac
  11426. ;;
  11427. hpux10*|hpux11*)
  11428. if test $with_gnu_ld = no; then
  11429. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11430. hardcode_libdir_separator_CXX=:
  11431. case $host_cpu in
  11432. hppa*64*|ia64*)
  11433. ;;
  11434. *)
  11435. export_dynamic_flag_spec_CXX='${wl}-E'
  11436. ;;
  11437. esac
  11438. fi
  11439. case $host_cpu in
  11440. hppa*64*|ia64*)
  11441. hardcode_direct_CXX=no
  11442. hardcode_shlibpath_var_CXX=no
  11443. ;;
  11444. *)
  11445. hardcode_direct_CXX=yes
  11446. hardcode_direct_absolute_CXX=yes
  11447. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11448. # but as the default
  11449. # location of the library.
  11450. ;;
  11451. esac
  11452. case $cc_basename in
  11453. CC*)
  11454. # FIXME: insert proper C++ library support
  11455. ld_shlibs_CXX=no
  11456. ;;
  11457. aCC*)
  11458. case $host_cpu in
  11459. hppa*64*)
  11460. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11461. ;;
  11462. ia64*)
  11463. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11464. ;;
  11465. *)
  11466. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11467. ;;
  11468. esac
  11469. # Commands to make compiler produce verbose output that lists
  11470. # what "hidden" libraries, object files and flags are used when
  11471. # linking a shared library.
  11472. #
  11473. # There doesn't appear to be a way to prevent this compiler from
  11474. # explicitly linking system object files so we need to strip them
  11475. # from the output so that they don't get included in the library
  11476. # dependencies.
  11477. 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"'
  11478. ;;
  11479. *)
  11480. if test "$GXX" = yes; then
  11481. if test $with_gnu_ld = no; then
  11482. case $host_cpu in
  11483. hppa*64*)
  11484. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11485. ;;
  11486. ia64*)
  11487. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11488. ;;
  11489. *)
  11490. 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'
  11491. ;;
  11492. esac
  11493. fi
  11494. else
  11495. # FIXME: insert proper C++ library support
  11496. ld_shlibs_CXX=no
  11497. fi
  11498. ;;
  11499. esac
  11500. ;;
  11501. interix[3-9]*)
  11502. hardcode_direct_CXX=no
  11503. hardcode_shlibpath_var_CXX=no
  11504. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11505. export_dynamic_flag_spec_CXX='${wl}-E'
  11506. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11507. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11508. # default) and relocated if they conflict, which is a slow very memory
  11509. # consuming and fragmenting process. To avoid this, we pick a random,
  11510. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11511. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11512. 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'
  11513. 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'
  11514. ;;
  11515. irix5* | irix6*)
  11516. case $cc_basename in
  11517. CC*)
  11518. # SGI C++
  11519. 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'
  11520. # Archives containing C++ object files must be created using
  11521. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11522. # necessary to make sure instantiated templates are included
  11523. # in the archive.
  11524. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11525. ;;
  11526. *)
  11527. if test "$GXX" = yes; then
  11528. if test "$with_gnu_ld" = no; then
  11529. 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'
  11530. else
  11531. 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'
  11532. fi
  11533. fi
  11534. link_all_deplibs_CXX=yes
  11535. ;;
  11536. esac
  11537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11538. hardcode_libdir_separator_CXX=:
  11539. inherit_rpath_CXX=yes
  11540. ;;
  11541. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11542. case $cc_basename in
  11543. KCC*)
  11544. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11545. # KCC will only create a shared library if the output file
  11546. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11547. # to its proper name (with version) after linking.
  11548. 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'
  11549. 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'
  11550. # Commands to make compiler produce verbose output that lists
  11551. # what "hidden" libraries, object files and flags are used when
  11552. # linking a shared library.
  11553. #
  11554. # There doesn't appear to be a way to prevent this compiler from
  11555. # explicitly linking system object files so we need to strip them
  11556. # from the output so that they don't get included in the library
  11557. # dependencies.
  11558. 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"'
  11559. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11560. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11561. # Archives containing C++ object files must be created using
  11562. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11563. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11564. ;;
  11565. icpc* | ecpc* )
  11566. # Intel C++
  11567. with_gnu_ld=yes
  11568. # version 8.0 and above of icpc choke on multiply defined symbols
  11569. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11570. # earlier do not add the objects themselves.
  11571. case `$CC -V 2>&1` in
  11572. *"Version 7."*)
  11573. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11574. 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'
  11575. ;;
  11576. *) # Version 8.0 or newer
  11577. tmp_idyn=
  11578. case $host_cpu in
  11579. ia64*) tmp_idyn=' -i_dynamic';;
  11580. esac
  11581. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11582. 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'
  11583. ;;
  11584. esac
  11585. archive_cmds_need_lc_CXX=no
  11586. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11587. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11588. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11589. ;;
  11590. pgCC* | pgcpp*)
  11591. # Portland Group C++ compiler
  11592. case `$CC -V` in
  11593. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11594. prelink_cmds_CXX='tpldir=Template.dir~
  11595. rm -rf $tpldir~
  11596. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11597. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11598. old_archive_cmds_CXX='tpldir=Template.dir~
  11599. rm -rf $tpldir~
  11600. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11601. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11602. $RANLIB $oldlib'
  11603. archive_cmds_CXX='tpldir=Template.dir~
  11604. rm -rf $tpldir~
  11605. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11606. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11607. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11608. rm -rf $tpldir~
  11609. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11610. $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'
  11611. ;;
  11612. *) # Version 6 and above use weak symbols
  11613. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11614. 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'
  11615. ;;
  11616. esac
  11617. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11618. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11619. 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'
  11620. ;;
  11621. cxx*)
  11622. # Compaq C++
  11623. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11624. 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'
  11625. runpath_var=LD_RUN_PATH
  11626. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11627. hardcode_libdir_separator_CXX=:
  11628. # Commands to make compiler produce verbose output that lists
  11629. # what "hidden" libraries, object files and flags are used when
  11630. # linking a shared library.
  11631. #
  11632. # There doesn't appear to be a way to prevent this compiler from
  11633. # explicitly linking system object files so we need to strip them
  11634. # from the output so that they don't get included in the library
  11635. # dependencies.
  11636. 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'
  11637. ;;
  11638. xl* | mpixl* | bgxl*)
  11639. # IBM XL 8.0 on PPC, with GNU ld
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11641. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11642. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11643. if test "x$supports_anon_versioning" = xyes; then
  11644. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11645. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11646. echo "local: *; };" >> $output_objdir/$libname.ver~
  11647. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11648. fi
  11649. ;;
  11650. *)
  11651. case `$CC -V 2>&1 | sed 5q` in
  11652. *Sun\ C*)
  11653. # Sun C++ 5.9
  11654. no_undefined_flag_CXX=' -zdefs'
  11655. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11656. 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'
  11657. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11658. 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'
  11659. compiler_needs_object_CXX=yes
  11660. # Not sure whether something based on
  11661. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11662. # would be better.
  11663. output_verbose_link_cmd='func_echo_all'
  11664. # Archives containing C++ object files must be created using
  11665. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11666. # necessary to make sure instantiated templates are included
  11667. # in the archive.
  11668. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11669. ;;
  11670. esac
  11671. ;;
  11672. esac
  11673. ;;
  11674. lynxos*)
  11675. # FIXME: insert proper C++ library support
  11676. ld_shlibs_CXX=no
  11677. ;;
  11678. m88k*)
  11679. # FIXME: insert proper C++ library support
  11680. ld_shlibs_CXX=no
  11681. ;;
  11682. mvs*)
  11683. case $cc_basename in
  11684. cxx*)
  11685. # FIXME: insert proper C++ library support
  11686. ld_shlibs_CXX=no
  11687. ;;
  11688. *)
  11689. # FIXME: insert proper C++ library support
  11690. ld_shlibs_CXX=no
  11691. ;;
  11692. esac
  11693. ;;
  11694. netbsd*)
  11695. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11696. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11697. wlarc=
  11698. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11699. hardcode_direct_CXX=yes
  11700. hardcode_shlibpath_var_CXX=no
  11701. fi
  11702. # Workaround some broken pre-1.5 toolchains
  11703. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11704. ;;
  11705. *nto* | *qnx*)
  11706. ld_shlibs_CXX=yes
  11707. ;;
  11708. openbsd2*)
  11709. # C++ shared libraries are fairly broken
  11710. ld_shlibs_CXX=no
  11711. ;;
  11712. openbsd*)
  11713. if test -f /usr/libexec/ld.so; then
  11714. hardcode_direct_CXX=yes
  11715. hardcode_shlibpath_var_CXX=no
  11716. hardcode_direct_absolute_CXX=yes
  11717. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11718. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11719. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11720. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11721. export_dynamic_flag_spec_CXX='${wl}-E'
  11722. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11723. fi
  11724. output_verbose_link_cmd=func_echo_all
  11725. else
  11726. ld_shlibs_CXX=no
  11727. fi
  11728. ;;
  11729. osf3* | osf4* | osf5*)
  11730. case $cc_basename in
  11731. KCC*)
  11732. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11733. # KCC will only create a shared library if the output file
  11734. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11735. # to its proper name (with version) after linking.
  11736. 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'
  11737. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11738. hardcode_libdir_separator_CXX=:
  11739. # Archives containing C++ object files must be created using
  11740. # the KAI C++ compiler.
  11741. case $host in
  11742. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11743. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11744. esac
  11745. ;;
  11746. RCC*)
  11747. # Rational C++ 2.4.1
  11748. # FIXME: insert proper C++ library support
  11749. ld_shlibs_CXX=no
  11750. ;;
  11751. cxx*)
  11752. case $host in
  11753. osf3*)
  11754. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11755. 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'
  11756. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11757. ;;
  11758. *)
  11759. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11760. 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'
  11761. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11762. echo "-hidden">> $lib.exp~
  11763. $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~
  11764. $RM $lib.exp'
  11765. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11766. ;;
  11767. esac
  11768. hardcode_libdir_separator_CXX=:
  11769. # Commands to make compiler produce verbose output that lists
  11770. # what "hidden" libraries, object files and flags are used when
  11771. # linking a shared library.
  11772. #
  11773. # There doesn't appear to be a way to prevent this compiler from
  11774. # explicitly linking system object files so we need to strip them
  11775. # from the output so that they don't get included in the library
  11776. # dependencies.
  11777. 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"'
  11778. ;;
  11779. *)
  11780. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11781. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11782. case $host in
  11783. osf3*)
  11784. 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'
  11785. ;;
  11786. *)
  11787. 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'
  11788. ;;
  11789. esac
  11790. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11791. hardcode_libdir_separator_CXX=:
  11792. # Commands to make compiler produce verbose output that lists
  11793. # what "hidden" libraries, object files and flags are used when
  11794. # linking a shared library.
  11795. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11796. else
  11797. # FIXME: insert proper C++ library support
  11798. ld_shlibs_CXX=no
  11799. fi
  11800. ;;
  11801. esac
  11802. ;;
  11803. psos*)
  11804. # FIXME: insert proper C++ library support
  11805. ld_shlibs_CXX=no
  11806. ;;
  11807. sunos4*)
  11808. case $cc_basename in
  11809. CC*)
  11810. # Sun C++ 4.x
  11811. # FIXME: insert proper C++ library support
  11812. ld_shlibs_CXX=no
  11813. ;;
  11814. lcc*)
  11815. # Lucid
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. ;;
  11819. *)
  11820. # FIXME: insert proper C++ library support
  11821. ld_shlibs_CXX=no
  11822. ;;
  11823. esac
  11824. ;;
  11825. solaris*)
  11826. case $cc_basename in
  11827. CC* | sunCC*)
  11828. # Sun C++ 4.2, 5.x and Centerline C++
  11829. archive_cmds_need_lc_CXX=yes
  11830. no_undefined_flag_CXX=' -zdefs'
  11831. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11832. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11833. $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'
  11834. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11835. hardcode_shlibpath_var_CXX=no
  11836. case $host_os in
  11837. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11838. *)
  11839. # The compiler driver will combine and reorder linker options,
  11840. # but understands `-z linker_flag'.
  11841. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11842. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11843. ;;
  11844. esac
  11845. link_all_deplibs_CXX=yes
  11846. output_verbose_link_cmd='func_echo_all'
  11847. # Archives containing C++ object files must be created using
  11848. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11849. # necessary to make sure instantiated templates are included
  11850. # in the archive.
  11851. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11852. ;;
  11853. gcx*)
  11854. # Green Hills C++ Compiler
  11855. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11856. # The C++ compiler must be used to create the archive.
  11857. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11858. ;;
  11859. *)
  11860. # GNU C++ compiler with Solaris linker
  11861. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11862. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11863. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11864. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11865. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11866. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11867. # Commands to make compiler produce verbose output that lists
  11868. # what "hidden" libraries, object files and flags are used when
  11869. # linking a shared library.
  11870. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11871. else
  11872. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11873. # platform.
  11874. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11875. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11876. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11877. # Commands to make compiler produce verbose output that lists
  11878. # what "hidden" libraries, object files and flags are used when
  11879. # linking a shared library.
  11880. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11881. fi
  11882. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11883. case $host_os in
  11884. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11885. *)
  11886. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11887. ;;
  11888. esac
  11889. fi
  11890. ;;
  11891. esac
  11892. ;;
  11893. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11894. no_undefined_flag_CXX='${wl}-z,text'
  11895. archive_cmds_need_lc_CXX=no
  11896. hardcode_shlibpath_var_CXX=no
  11897. runpath_var='LD_RUN_PATH'
  11898. case $cc_basename in
  11899. CC*)
  11900. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11901. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11902. ;;
  11903. *)
  11904. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11905. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11906. ;;
  11907. esac
  11908. ;;
  11909. sysv5* | sco3.2v5* | sco5v6*)
  11910. # Note: We can NOT use -z defs as we might desire, because we do not
  11911. # link with -lc, and that would cause any symbols used from libc to
  11912. # always be unresolved, which means just about no library would
  11913. # ever link correctly. If we're not using GNU ld we use -z text
  11914. # though, which does catch some bad symbols but isn't as heavy-handed
  11915. # as -z defs.
  11916. no_undefined_flag_CXX='${wl}-z,text'
  11917. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11918. archive_cmds_need_lc_CXX=no
  11919. hardcode_shlibpath_var_CXX=no
  11920. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11921. hardcode_libdir_separator_CXX=':'
  11922. link_all_deplibs_CXX=yes
  11923. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11924. runpath_var='LD_RUN_PATH'
  11925. case $cc_basename in
  11926. CC*)
  11927. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11928. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11929. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11930. '"$old_archive_cmds_CXX"
  11931. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11932. '"$reload_cmds_CXX"
  11933. ;;
  11934. *)
  11935. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11936. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11937. ;;
  11938. esac
  11939. ;;
  11940. tandem*)
  11941. case $cc_basename in
  11942. NCC*)
  11943. # NonStop-UX NCC 3.20
  11944. # FIXME: insert proper C++ library support
  11945. ld_shlibs_CXX=no
  11946. ;;
  11947. *)
  11948. # FIXME: insert proper C++ library support
  11949. ld_shlibs_CXX=no
  11950. ;;
  11951. esac
  11952. ;;
  11953. vxworks*)
  11954. # FIXME: insert proper C++ library support
  11955. ld_shlibs_CXX=no
  11956. ;;
  11957. *)
  11958. # FIXME: insert proper C++ library support
  11959. ld_shlibs_CXX=no
  11960. ;;
  11961. esac
  11962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11963. $as_echo "$ld_shlibs_CXX" >&6; }
  11964. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11965. GCC_CXX="$GXX"
  11966. LD_CXX="$LD"
  11967. ## CAVEAT EMPTOR:
  11968. ## There is no encapsulation within the following macros, do not change
  11969. ## the running order or otherwise move them around unless you know exactly
  11970. ## what you are doing...
  11971. # Dependencies to place before and after the object being linked:
  11972. predep_objects_CXX=
  11973. postdep_objects_CXX=
  11974. predeps_CXX=
  11975. postdeps_CXX=
  11976. compiler_lib_search_path_CXX=
  11977. cat > conftest.$ac_ext <<_LT_EOF
  11978. class Foo
  11979. {
  11980. public:
  11981. Foo (void) { a = 0; }
  11982. private:
  11983. int a;
  11984. };
  11985. _LT_EOF
  11986. _lt_libdeps_save_CFLAGS=$CFLAGS
  11987. case "$CC $CFLAGS " in #(
  11988. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11989. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11990. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11991. esac
  11992. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11993. (eval $ac_compile) 2>&5
  11994. ac_status=$?
  11995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11996. test $ac_status = 0; }; then
  11997. # Parse the compiler output and extract the necessary
  11998. # objects, libraries and library flags.
  11999. # Sentinel used to keep track of whether or not we are before
  12000. # the conftest object file.
  12001. pre_test_object_deps_done=no
  12002. for p in `eval "$output_verbose_link_cmd"`; do
  12003. case ${prev}${p} in
  12004. -L* | -R* | -l*)
  12005. # Some compilers place space between "-{L,R}" and the path.
  12006. # Remove the space.
  12007. if test $p = "-L" ||
  12008. test $p = "-R"; then
  12009. prev=$p
  12010. continue
  12011. fi
  12012. # Expand the sysroot to ease extracting the directories later.
  12013. if test -z "$prev"; then
  12014. case $p in
  12015. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12016. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12017. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12018. esac
  12019. fi
  12020. case $p in
  12021. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12022. esac
  12023. if test "$pre_test_object_deps_done" = no; then
  12024. case ${prev} in
  12025. -L | -R)
  12026. # Internal compiler library paths should come after those
  12027. # provided the user. The postdeps already come after the
  12028. # user supplied libs so there is no need to process them.
  12029. if test -z "$compiler_lib_search_path_CXX"; then
  12030. compiler_lib_search_path_CXX="${prev}${p}"
  12031. else
  12032. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12033. fi
  12034. ;;
  12035. # The "-l" case would never come before the object being
  12036. # linked, so don't bother handling this case.
  12037. esac
  12038. else
  12039. if test -z "$postdeps_CXX"; then
  12040. postdeps_CXX="${prev}${p}"
  12041. else
  12042. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12043. fi
  12044. fi
  12045. prev=
  12046. ;;
  12047. *.lto.$objext) ;; # Ignore GCC LTO objects
  12048. *.$objext)
  12049. # This assumes that the test object file only shows up
  12050. # once in the compiler output.
  12051. if test "$p" = "conftest.$objext"; then
  12052. pre_test_object_deps_done=yes
  12053. continue
  12054. fi
  12055. if test "$pre_test_object_deps_done" = no; then
  12056. if test -z "$predep_objects_CXX"; then
  12057. predep_objects_CXX="$p"
  12058. else
  12059. predep_objects_CXX="$predep_objects_CXX $p"
  12060. fi
  12061. else
  12062. if test -z "$postdep_objects_CXX"; then
  12063. postdep_objects_CXX="$p"
  12064. else
  12065. postdep_objects_CXX="$postdep_objects_CXX $p"
  12066. fi
  12067. fi
  12068. ;;
  12069. *) ;; # Ignore the rest.
  12070. esac
  12071. done
  12072. # Clean up.
  12073. rm -f a.out a.exe
  12074. else
  12075. echo "libtool.m4: error: problem compiling CXX test program"
  12076. fi
  12077. $RM -f confest.$objext
  12078. CFLAGS=$_lt_libdeps_save_CFLAGS
  12079. # PORTME: override above test on systems where it is broken
  12080. case $host_os in
  12081. interix[3-9]*)
  12082. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12083. # hack all around it, let's just trust "g++" to DTRT.
  12084. predep_objects_CXX=
  12085. postdep_objects_CXX=
  12086. postdeps_CXX=
  12087. ;;
  12088. linux*)
  12089. case `$CC -V 2>&1 | sed 5q` in
  12090. *Sun\ C*)
  12091. # Sun C++ 5.9
  12092. # The more standards-conforming stlport4 library is
  12093. # incompatible with the Cstd library. Avoid specifying
  12094. # it if it's in CXXFLAGS. Ignore libCrun as
  12095. # -library=stlport4 depends on it.
  12096. case " $CXX $CXXFLAGS " in
  12097. *" -library=stlport4 "*)
  12098. solaris_use_stlport4=yes
  12099. ;;
  12100. esac
  12101. if test "$solaris_use_stlport4" != yes; then
  12102. postdeps_CXX='-library=Cstd -library=Crun'
  12103. fi
  12104. ;;
  12105. esac
  12106. ;;
  12107. solaris*)
  12108. case $cc_basename in
  12109. CC* | sunCC*)
  12110. # The more standards-conforming stlport4 library is
  12111. # incompatible with the Cstd library. Avoid specifying
  12112. # it if it's in CXXFLAGS. Ignore libCrun as
  12113. # -library=stlport4 depends on it.
  12114. case " $CXX $CXXFLAGS " in
  12115. *" -library=stlport4 "*)
  12116. solaris_use_stlport4=yes
  12117. ;;
  12118. esac
  12119. # Adding this requires a known-good setup of shared libraries for
  12120. # Sun compiler versions before 5.6, else PIC objects from an old
  12121. # archive will be linked into the output, leading to subtle bugs.
  12122. if test "$solaris_use_stlport4" != yes; then
  12123. postdeps_CXX='-library=Cstd -library=Crun'
  12124. fi
  12125. ;;
  12126. esac
  12127. ;;
  12128. esac
  12129. case " $postdeps_CXX " in
  12130. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12131. esac
  12132. compiler_lib_search_dirs_CXX=
  12133. if test -n "${compiler_lib_search_path_CXX}"; then
  12134. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12135. fi
  12136. lt_prog_compiler_wl_CXX=
  12137. lt_prog_compiler_pic_CXX=
  12138. lt_prog_compiler_static_CXX=
  12139. # C++ specific cases for pic, static, wl, etc.
  12140. if test "$GXX" = yes; then
  12141. lt_prog_compiler_wl_CXX='-Wl,'
  12142. lt_prog_compiler_static_CXX='-static'
  12143. case $host_os in
  12144. aix*)
  12145. # All AIX code is PIC.
  12146. if test "$host_cpu" = ia64; then
  12147. # AIX 5 now supports IA64 processor
  12148. lt_prog_compiler_static_CXX='-Bstatic'
  12149. fi
  12150. ;;
  12151. amigaos*)
  12152. case $host_cpu in
  12153. powerpc)
  12154. # see comment about AmigaOS4 .so support
  12155. lt_prog_compiler_pic_CXX='-fPIC'
  12156. ;;
  12157. m68k)
  12158. # FIXME: we need at least 68020 code to build shared libraries, but
  12159. # adding the `-m68020' flag to GCC prevents building anything better,
  12160. # like `-m68040'.
  12161. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12162. ;;
  12163. esac
  12164. ;;
  12165. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12166. # PIC is the default for these OSes.
  12167. ;;
  12168. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12169. # This hack is so that the source file can tell whether it is being
  12170. # built for inclusion in a dll (and should export symbols for example).
  12171. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12172. # (--disable-auto-import) libraries
  12173. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12174. ;;
  12175. darwin* | rhapsody*)
  12176. # PIC is the default on this platform
  12177. # Common symbols not allowed in MH_DYLIB files
  12178. lt_prog_compiler_pic_CXX='-fno-common'
  12179. ;;
  12180. *djgpp*)
  12181. # DJGPP does not support shared libraries at all
  12182. lt_prog_compiler_pic_CXX=
  12183. ;;
  12184. haiku*)
  12185. # PIC is the default for Haiku.
  12186. # The "-static" flag exists, but is broken.
  12187. lt_prog_compiler_static_CXX=
  12188. ;;
  12189. interix[3-9]*)
  12190. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12191. # Instead, we relocate shared libraries at runtime.
  12192. ;;
  12193. sysv4*MP*)
  12194. if test -d /usr/nec; then
  12195. lt_prog_compiler_pic_CXX=-Kconform_pic
  12196. fi
  12197. ;;
  12198. hpux*)
  12199. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12200. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12201. # sets the default TLS model and affects inlining.
  12202. case $host_cpu in
  12203. hppa*64*)
  12204. ;;
  12205. *)
  12206. lt_prog_compiler_pic_CXX='-fPIC'
  12207. ;;
  12208. esac
  12209. ;;
  12210. *qnx* | *nto*)
  12211. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12212. # it will coredump.
  12213. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12214. ;;
  12215. *)
  12216. lt_prog_compiler_pic_CXX='-fPIC'
  12217. ;;
  12218. esac
  12219. else
  12220. case $host_os in
  12221. aix[4-9]*)
  12222. # All AIX code is PIC.
  12223. if test "$host_cpu" = ia64; then
  12224. # AIX 5 now supports IA64 processor
  12225. lt_prog_compiler_static_CXX='-Bstatic'
  12226. else
  12227. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12228. fi
  12229. ;;
  12230. chorus*)
  12231. case $cc_basename in
  12232. cxch68*)
  12233. # Green Hills C++ Compiler
  12234. # _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"
  12235. ;;
  12236. esac
  12237. ;;
  12238. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12239. # This hack is so that the source file can tell whether it is being
  12240. # built for inclusion in a dll (and should export symbols for example).
  12241. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12242. ;;
  12243. dgux*)
  12244. case $cc_basename in
  12245. ec++*)
  12246. lt_prog_compiler_pic_CXX='-KPIC'
  12247. ;;
  12248. ghcx*)
  12249. # Green Hills C++ Compiler
  12250. lt_prog_compiler_pic_CXX='-pic'
  12251. ;;
  12252. *)
  12253. ;;
  12254. esac
  12255. ;;
  12256. freebsd* | dragonfly*)
  12257. # FreeBSD uses GNU C++
  12258. ;;
  12259. hpux9* | hpux10* | hpux11*)
  12260. case $cc_basename in
  12261. CC*)
  12262. lt_prog_compiler_wl_CXX='-Wl,'
  12263. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12264. if test "$host_cpu" != ia64; then
  12265. lt_prog_compiler_pic_CXX='+Z'
  12266. fi
  12267. ;;
  12268. aCC*)
  12269. lt_prog_compiler_wl_CXX='-Wl,'
  12270. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12271. case $host_cpu in
  12272. hppa*64*|ia64*)
  12273. # +Z the default
  12274. ;;
  12275. *)
  12276. lt_prog_compiler_pic_CXX='+Z'
  12277. ;;
  12278. esac
  12279. ;;
  12280. *)
  12281. ;;
  12282. esac
  12283. ;;
  12284. interix*)
  12285. # This is c89, which is MS Visual C++ (no shared libs)
  12286. # Anyone wants to do a port?
  12287. ;;
  12288. irix5* | irix6* | nonstopux*)
  12289. case $cc_basename in
  12290. CC*)
  12291. lt_prog_compiler_wl_CXX='-Wl,'
  12292. lt_prog_compiler_static_CXX='-non_shared'
  12293. # CC pic flag -KPIC is the default.
  12294. ;;
  12295. *)
  12296. ;;
  12297. esac
  12298. ;;
  12299. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12300. case $cc_basename in
  12301. KCC*)
  12302. # KAI C++ Compiler
  12303. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12304. lt_prog_compiler_pic_CXX='-fPIC'
  12305. ;;
  12306. ecpc* )
  12307. # old Intel C++ for x86_64 which still supported -KPIC.
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. lt_prog_compiler_pic_CXX='-KPIC'
  12310. lt_prog_compiler_static_CXX='-static'
  12311. ;;
  12312. icpc* )
  12313. # Intel C++, used to be incompatible with GCC.
  12314. # ICC 10 doesn't accept -KPIC any more.
  12315. lt_prog_compiler_wl_CXX='-Wl,'
  12316. lt_prog_compiler_pic_CXX='-fPIC'
  12317. lt_prog_compiler_static_CXX='-static'
  12318. ;;
  12319. pgCC* | pgcpp*)
  12320. # Portland Group C++ compiler
  12321. lt_prog_compiler_wl_CXX='-Wl,'
  12322. lt_prog_compiler_pic_CXX='-fpic'
  12323. lt_prog_compiler_static_CXX='-Bstatic'
  12324. ;;
  12325. cxx*)
  12326. # Compaq C++
  12327. # Make sure the PIC flag is empty. It appears that all Alpha
  12328. # Linux and Compaq Tru64 Unix objects are PIC.
  12329. lt_prog_compiler_pic_CXX=
  12330. lt_prog_compiler_static_CXX='-non_shared'
  12331. ;;
  12332. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12333. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12334. lt_prog_compiler_wl_CXX='-Wl,'
  12335. lt_prog_compiler_pic_CXX='-qpic'
  12336. lt_prog_compiler_static_CXX='-qstaticlink'
  12337. ;;
  12338. *)
  12339. case `$CC -V 2>&1 | sed 5q` in
  12340. *Sun\ C*)
  12341. # Sun C++ 5.9
  12342. lt_prog_compiler_pic_CXX='-KPIC'
  12343. lt_prog_compiler_static_CXX='-Bstatic'
  12344. lt_prog_compiler_wl_CXX='-Qoption ld '
  12345. ;;
  12346. esac
  12347. ;;
  12348. esac
  12349. ;;
  12350. lynxos*)
  12351. ;;
  12352. m88k*)
  12353. ;;
  12354. mvs*)
  12355. case $cc_basename in
  12356. cxx*)
  12357. lt_prog_compiler_pic_CXX='-W c,exportall'
  12358. ;;
  12359. *)
  12360. ;;
  12361. esac
  12362. ;;
  12363. netbsd*)
  12364. ;;
  12365. *qnx* | *nto*)
  12366. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12367. # it will coredump.
  12368. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12369. ;;
  12370. osf3* | osf4* | osf5*)
  12371. case $cc_basename in
  12372. KCC*)
  12373. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12374. ;;
  12375. RCC*)
  12376. # Rational C++ 2.4.1
  12377. lt_prog_compiler_pic_CXX='-pic'
  12378. ;;
  12379. cxx*)
  12380. # Digital/Compaq C++
  12381. lt_prog_compiler_wl_CXX='-Wl,'
  12382. # Make sure the PIC flag is empty. It appears that all Alpha
  12383. # Linux and Compaq Tru64 Unix objects are PIC.
  12384. lt_prog_compiler_pic_CXX=
  12385. lt_prog_compiler_static_CXX='-non_shared'
  12386. ;;
  12387. *)
  12388. ;;
  12389. esac
  12390. ;;
  12391. psos*)
  12392. ;;
  12393. solaris*)
  12394. case $cc_basename in
  12395. CC* | sunCC*)
  12396. # Sun C++ 4.2, 5.x and Centerline C++
  12397. lt_prog_compiler_pic_CXX='-KPIC'
  12398. lt_prog_compiler_static_CXX='-Bstatic'
  12399. lt_prog_compiler_wl_CXX='-Qoption ld '
  12400. ;;
  12401. gcx*)
  12402. # Green Hills C++ Compiler
  12403. lt_prog_compiler_pic_CXX='-PIC'
  12404. ;;
  12405. *)
  12406. ;;
  12407. esac
  12408. ;;
  12409. sunos4*)
  12410. case $cc_basename in
  12411. CC*)
  12412. # Sun C++ 4.x
  12413. lt_prog_compiler_pic_CXX='-pic'
  12414. lt_prog_compiler_static_CXX='-Bstatic'
  12415. ;;
  12416. lcc*)
  12417. # Lucid
  12418. lt_prog_compiler_pic_CXX='-pic'
  12419. ;;
  12420. *)
  12421. ;;
  12422. esac
  12423. ;;
  12424. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12425. case $cc_basename in
  12426. CC*)
  12427. lt_prog_compiler_wl_CXX='-Wl,'
  12428. lt_prog_compiler_pic_CXX='-KPIC'
  12429. lt_prog_compiler_static_CXX='-Bstatic'
  12430. ;;
  12431. esac
  12432. ;;
  12433. tandem*)
  12434. case $cc_basename in
  12435. NCC*)
  12436. # NonStop-UX NCC 3.20
  12437. lt_prog_compiler_pic_CXX='-KPIC'
  12438. ;;
  12439. *)
  12440. ;;
  12441. esac
  12442. ;;
  12443. vxworks*)
  12444. ;;
  12445. *)
  12446. lt_prog_compiler_can_build_shared_CXX=no
  12447. ;;
  12448. esac
  12449. fi
  12450. case $host_os in
  12451. # For platforms which do not support PIC, -DPIC is meaningless:
  12452. *djgpp*)
  12453. lt_prog_compiler_pic_CXX=
  12454. ;;
  12455. *)
  12456. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12457. ;;
  12458. esac
  12459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12460. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12461. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12462. $as_echo_n "(cached) " >&6
  12463. else
  12464. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12465. fi
  12466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12467. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12468. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12469. #
  12470. # Check to make sure the PIC flag actually works.
  12471. #
  12472. if test -n "$lt_prog_compiler_pic_CXX"; then
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12474. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12475. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12476. $as_echo_n "(cached) " >&6
  12477. else
  12478. lt_cv_prog_compiler_pic_works_CXX=no
  12479. ac_outfile=conftest.$ac_objext
  12480. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12481. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12482. # Insert the option either (1) after the last *FLAGS variable, or
  12483. # (2) before a word containing "conftest.", or (3) at the end.
  12484. # Note that $ac_compile itself does not contain backslashes and begins
  12485. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12486. # The option is referenced via a variable to avoid confusing sed.
  12487. lt_compile=`echo "$ac_compile" | $SED \
  12488. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12489. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12490. -e 's:$: $lt_compiler_flag:'`
  12491. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12492. (eval "$lt_compile" 2>conftest.err)
  12493. ac_status=$?
  12494. cat conftest.err >&5
  12495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12496. if (exit $ac_status) && test -s "$ac_outfile"; then
  12497. # The compiler can only warn and ignore the option if not recognized
  12498. # So say no if there are warnings other than the usual output.
  12499. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12500. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12501. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12502. lt_cv_prog_compiler_pic_works_CXX=yes
  12503. fi
  12504. fi
  12505. $RM conftest*
  12506. fi
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12508. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12509. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12510. case $lt_prog_compiler_pic_CXX in
  12511. "" | " "*) ;;
  12512. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12513. esac
  12514. else
  12515. lt_prog_compiler_pic_CXX=
  12516. lt_prog_compiler_can_build_shared_CXX=no
  12517. fi
  12518. fi
  12519. #
  12520. # Check to make sure the static flag actually works.
  12521. #
  12522. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12524. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12525. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12526. $as_echo_n "(cached) " >&6
  12527. else
  12528. lt_cv_prog_compiler_static_works_CXX=no
  12529. save_LDFLAGS="$LDFLAGS"
  12530. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12531. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12532. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12533. # The linker can only warn and ignore the option if not recognized
  12534. # So say no if there are warnings
  12535. if test -s conftest.err; then
  12536. # Append any errors to the config.log.
  12537. cat conftest.err 1>&5
  12538. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12539. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12540. if diff conftest.exp conftest.er2 >/dev/null; then
  12541. lt_cv_prog_compiler_static_works_CXX=yes
  12542. fi
  12543. else
  12544. lt_cv_prog_compiler_static_works_CXX=yes
  12545. fi
  12546. fi
  12547. $RM -r conftest*
  12548. LDFLAGS="$save_LDFLAGS"
  12549. fi
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12551. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12552. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12553. :
  12554. else
  12555. lt_prog_compiler_static_CXX=
  12556. fi
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12558. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12559. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12560. $as_echo_n "(cached) " >&6
  12561. else
  12562. lt_cv_prog_compiler_c_o_CXX=no
  12563. $RM -r conftest 2>/dev/null
  12564. mkdir conftest
  12565. cd conftest
  12566. mkdir out
  12567. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12568. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12569. # Insert the option either (1) after the last *FLAGS variable, or
  12570. # (2) before a word containing "conftest.", or (3) at the end.
  12571. # Note that $ac_compile itself does not contain backslashes and begins
  12572. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12573. lt_compile=`echo "$ac_compile" | $SED \
  12574. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12575. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12576. -e 's:$: $lt_compiler_flag:'`
  12577. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12578. (eval "$lt_compile" 2>out/conftest.err)
  12579. ac_status=$?
  12580. cat out/conftest.err >&5
  12581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12582. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12583. then
  12584. # The compiler can only warn and ignore the option if not recognized
  12585. # So say no if there are warnings
  12586. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12587. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12588. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12589. lt_cv_prog_compiler_c_o_CXX=yes
  12590. fi
  12591. fi
  12592. chmod u+w . 2>&5
  12593. $RM conftest*
  12594. # SGI C++ compiler will create directory out/ii_files/ for
  12595. # template instantiation
  12596. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12597. $RM out/* && rmdir out
  12598. cd ..
  12599. $RM -r conftest
  12600. $RM conftest*
  12601. fi
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12603. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12605. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12606. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12607. $as_echo_n "(cached) " >&6
  12608. else
  12609. lt_cv_prog_compiler_c_o_CXX=no
  12610. $RM -r conftest 2>/dev/null
  12611. mkdir conftest
  12612. cd conftest
  12613. mkdir out
  12614. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12615. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12616. # Insert the option either (1) after the last *FLAGS variable, or
  12617. # (2) before a word containing "conftest.", or (3) at the end.
  12618. # Note that $ac_compile itself does not contain backslashes and begins
  12619. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12620. lt_compile=`echo "$ac_compile" | $SED \
  12621. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12622. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12623. -e 's:$: $lt_compiler_flag:'`
  12624. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12625. (eval "$lt_compile" 2>out/conftest.err)
  12626. ac_status=$?
  12627. cat out/conftest.err >&5
  12628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12629. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12630. then
  12631. # The compiler can only warn and ignore the option if not recognized
  12632. # So say no if there are warnings
  12633. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12634. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12635. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12636. lt_cv_prog_compiler_c_o_CXX=yes
  12637. fi
  12638. fi
  12639. chmod u+w . 2>&5
  12640. $RM conftest*
  12641. # SGI C++ compiler will create directory out/ii_files/ for
  12642. # template instantiation
  12643. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12644. $RM out/* && rmdir out
  12645. cd ..
  12646. $RM -r conftest
  12647. $RM conftest*
  12648. fi
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12650. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12651. hard_links="nottested"
  12652. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12653. # do not overwrite the value of need_locks provided by the user
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12655. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12656. hard_links=yes
  12657. $RM conftest*
  12658. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12659. touch conftest.a
  12660. ln conftest.a conftest.b 2>&5 || hard_links=no
  12661. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12663. $as_echo "$hard_links" >&6; }
  12664. if test "$hard_links" = no; then
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12666. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12667. need_locks=warn
  12668. fi
  12669. else
  12670. need_locks=no
  12671. fi
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12673. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12674. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12675. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12676. case $host_os in
  12677. aix[4-9]*)
  12678. # If we're using GNU nm, then we don't want the "-C" option.
  12679. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12680. # Also, AIX nm treats weak defined symbols like other global defined
  12681. # symbols, whereas GNU nm marks them as "W".
  12682. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12683. 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'
  12684. else
  12685. 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'
  12686. fi
  12687. ;;
  12688. pw32*)
  12689. export_symbols_cmds_CXX="$ltdll_cmds"
  12690. ;;
  12691. cygwin* | mingw* | cegcc*)
  12692. case $cc_basename in
  12693. cl*)
  12694. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12695. ;;
  12696. *)
  12697. 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'
  12698. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12699. ;;
  12700. esac
  12701. ;;
  12702. *)
  12703. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12704. ;;
  12705. esac
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12707. $as_echo "$ld_shlibs_CXX" >&6; }
  12708. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12709. with_gnu_ld_CXX=$with_gnu_ld
  12710. #
  12711. # Do we need to explicitly link libc?
  12712. #
  12713. case "x$archive_cmds_need_lc_CXX" in
  12714. x|xyes)
  12715. # Assume -lc should be added
  12716. archive_cmds_need_lc_CXX=yes
  12717. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12718. case $archive_cmds_CXX in
  12719. *'~'*)
  12720. # FIXME: we may have to deal with multi-command sequences.
  12721. ;;
  12722. '$CC '*)
  12723. # Test whether the compiler implicitly links with -lc since on some
  12724. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12725. # to ld, don't add -lc before -lgcc.
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12727. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12728. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12729. $as_echo_n "(cached) " >&6
  12730. else
  12731. $RM conftest*
  12732. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12734. (eval $ac_compile) 2>&5
  12735. ac_status=$?
  12736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12737. test $ac_status = 0; } 2>conftest.err; then
  12738. soname=conftest
  12739. lib=conftest
  12740. libobjs=conftest.$ac_objext
  12741. deplibs=
  12742. wl=$lt_prog_compiler_wl_CXX
  12743. pic_flag=$lt_prog_compiler_pic_CXX
  12744. compiler_flags=-v
  12745. linker_flags=-v
  12746. verstring=
  12747. output_objdir=.
  12748. libname=conftest
  12749. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12750. allow_undefined_flag_CXX=
  12751. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12752. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12753. ac_status=$?
  12754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12755. test $ac_status = 0; }
  12756. then
  12757. lt_cv_archive_cmds_need_lc_CXX=no
  12758. else
  12759. lt_cv_archive_cmds_need_lc_CXX=yes
  12760. fi
  12761. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12762. else
  12763. cat conftest.err 1>&5
  12764. fi
  12765. $RM conftest*
  12766. fi
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12768. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12769. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12770. ;;
  12771. esac
  12772. fi
  12773. ;;
  12774. esac
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12776. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12777. library_names_spec=
  12778. libname_spec='lib$name'
  12779. soname_spec=
  12780. shrext_cmds=".so"
  12781. postinstall_cmds=
  12782. postuninstall_cmds=
  12783. finish_cmds=
  12784. finish_eval=
  12785. shlibpath_var=
  12786. shlibpath_overrides_runpath=unknown
  12787. version_type=none
  12788. dynamic_linker="$host_os ld.so"
  12789. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12790. need_lib_prefix=unknown
  12791. hardcode_into_libs=no
  12792. # when you set need_version to no, make sure it does not cause -set_version
  12793. # flags to be left without arguments
  12794. need_version=unknown
  12795. case $host_os in
  12796. aix3*)
  12797. version_type=linux # correct to gnu/linux during the next big refactor
  12798. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12799. shlibpath_var=LIBPATH
  12800. # AIX 3 has no versioning support, so we append a major version to the name.
  12801. soname_spec='${libname}${release}${shared_ext}$major'
  12802. ;;
  12803. aix[4-9]*)
  12804. version_type=linux # correct to gnu/linux during the next big refactor
  12805. need_lib_prefix=no
  12806. need_version=no
  12807. hardcode_into_libs=yes
  12808. if test "$host_cpu" = ia64; then
  12809. # AIX 5 supports IA64
  12810. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12811. shlibpath_var=LD_LIBRARY_PATH
  12812. else
  12813. # With GCC up to 2.95.x, collect2 would create an import file
  12814. # for dependence libraries. The import file would start with
  12815. # the line `#! .'. This would cause the generated library to
  12816. # depend on `.', always an invalid library. This was fixed in
  12817. # development snapshots of GCC prior to 3.0.
  12818. case $host_os in
  12819. aix4 | aix4.[01] | aix4.[01].*)
  12820. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12821. echo ' yes '
  12822. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12823. :
  12824. else
  12825. can_build_shared=no
  12826. fi
  12827. ;;
  12828. esac
  12829. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12830. # soname into executable. Probably we can add versioning support to
  12831. # collect2, so additional links can be useful in future.
  12832. if test "$aix_use_runtimelinking" = yes; then
  12833. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12834. # instead of lib<name>.a to let people know that these are not
  12835. # typical AIX shared libraries.
  12836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12837. else
  12838. # We preserve .a as extension for shared libraries through AIX4.2
  12839. # and later when we are not doing run time linking.
  12840. library_names_spec='${libname}${release}.a $libname.a'
  12841. soname_spec='${libname}${release}${shared_ext}$major'
  12842. fi
  12843. shlibpath_var=LIBPATH
  12844. fi
  12845. ;;
  12846. amigaos*)
  12847. case $host_cpu in
  12848. powerpc)
  12849. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12850. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12852. ;;
  12853. m68k)
  12854. library_names_spec='$libname.ixlibrary $libname.a'
  12855. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12856. 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'
  12857. ;;
  12858. esac
  12859. ;;
  12860. beos*)
  12861. library_names_spec='${libname}${shared_ext}'
  12862. dynamic_linker="$host_os ld.so"
  12863. shlibpath_var=LIBRARY_PATH
  12864. ;;
  12865. bsdi[45]*)
  12866. version_type=linux # correct to gnu/linux during the next big refactor
  12867. need_version=no
  12868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12869. soname_spec='${libname}${release}${shared_ext}$major'
  12870. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12871. shlibpath_var=LD_LIBRARY_PATH
  12872. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12873. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12874. # the default ld.so.conf also contains /usr/contrib/lib and
  12875. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12876. # libtool to hard-code these into programs
  12877. ;;
  12878. cygwin* | mingw* | pw32* | cegcc*)
  12879. version_type=windows
  12880. shrext_cmds=".dll"
  12881. need_version=no
  12882. need_lib_prefix=no
  12883. case $GCC,$cc_basename in
  12884. yes,*)
  12885. # gcc
  12886. library_names_spec='$libname.dll.a'
  12887. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12888. postinstall_cmds='base_file=`basename \${file}`~
  12889. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12890. dldir=$destdir/`dirname \$dlpath`~
  12891. test -d \$dldir || mkdir -p \$dldir~
  12892. $install_prog $dir/$dlname \$dldir/$dlname~
  12893. chmod a+x \$dldir/$dlname~
  12894. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12895. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12896. fi'
  12897. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12898. dlpath=$dir/\$dldll~
  12899. $RM \$dlpath'
  12900. shlibpath_overrides_runpath=yes
  12901. case $host_os in
  12902. cygwin*)
  12903. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12904. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12905. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12906. ;;
  12907. mingw* | cegcc*)
  12908. # MinGW DLLs use traditional 'lib' prefix
  12909. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12910. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12911. ;;
  12912. pw32*)
  12913. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12914. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12915. ;;
  12916. esac
  12917. dynamic_linker='Win32 ld.exe'
  12918. ;;
  12919. *,cl*)
  12920. # Native MSVC
  12921. libname_spec='$name'
  12922. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12923. library_names_spec='${libname}.dll.lib'
  12924. case $build_os in
  12925. mingw*)
  12926. sys_lib_search_path_spec=
  12927. lt_save_ifs=$IFS
  12928. IFS=';'
  12929. for lt_path in $LIB
  12930. do
  12931. IFS=$lt_save_ifs
  12932. # Let DOS variable expansion print the short 8.3 style file name.
  12933. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12934. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12935. done
  12936. IFS=$lt_save_ifs
  12937. # Convert to MSYS style.
  12938. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12939. ;;
  12940. cygwin*)
  12941. # Convert to unix form, then to dos form, then back to unix form
  12942. # but this time dos style (no spaces!) so that the unix form looks
  12943. # like /cygdrive/c/PROGRA~1:/cygdr...
  12944. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12945. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12946. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12947. ;;
  12948. *)
  12949. sys_lib_search_path_spec="$LIB"
  12950. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12951. # It is most probably a Windows format PATH.
  12952. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12953. else
  12954. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12955. fi
  12956. # FIXME: find the short name or the path components, as spaces are
  12957. # common. (e.g. "Program Files" -> "PROGRA~1")
  12958. ;;
  12959. esac
  12960. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12961. postinstall_cmds='base_file=`basename \${file}`~
  12962. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12963. dldir=$destdir/`dirname \$dlpath`~
  12964. test -d \$dldir || mkdir -p \$dldir~
  12965. $install_prog $dir/$dlname \$dldir/$dlname'
  12966. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12967. dlpath=$dir/\$dldll~
  12968. $RM \$dlpath'
  12969. shlibpath_overrides_runpath=yes
  12970. dynamic_linker='Win32 link.exe'
  12971. ;;
  12972. *)
  12973. # Assume MSVC wrapper
  12974. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12975. dynamic_linker='Win32 ld.exe'
  12976. ;;
  12977. esac
  12978. # FIXME: first we should search . and the directory the executable is in
  12979. shlibpath_var=PATH
  12980. ;;
  12981. darwin* | rhapsody*)
  12982. dynamic_linker="$host_os dyld"
  12983. version_type=darwin
  12984. need_lib_prefix=no
  12985. need_version=no
  12986. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12987. soname_spec='${libname}${release}${major}$shared_ext'
  12988. shlibpath_overrides_runpath=yes
  12989. shlibpath_var=DYLD_LIBRARY_PATH
  12990. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12991. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12992. ;;
  12993. dgux*)
  12994. version_type=linux # correct to gnu/linux during the next big refactor
  12995. need_lib_prefix=no
  12996. need_version=no
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. shlibpath_var=LD_LIBRARY_PATH
  13000. ;;
  13001. freebsd* | dragonfly*)
  13002. # DragonFly does not have aout. When/if they implement a new
  13003. # versioning mechanism, adjust this.
  13004. if test -x /usr/bin/objformat; then
  13005. objformat=`/usr/bin/objformat`
  13006. else
  13007. case $host_os in
  13008. freebsd[23].*) objformat=aout ;;
  13009. *) objformat=elf ;;
  13010. esac
  13011. fi
  13012. version_type=freebsd-$objformat
  13013. case $version_type in
  13014. freebsd-elf*)
  13015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13016. need_version=no
  13017. need_lib_prefix=no
  13018. ;;
  13019. freebsd-*)
  13020. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13021. need_version=yes
  13022. ;;
  13023. esac
  13024. shlibpath_var=LD_LIBRARY_PATH
  13025. case $host_os in
  13026. freebsd2.*)
  13027. shlibpath_overrides_runpath=yes
  13028. ;;
  13029. freebsd3.[01]* | freebsdelf3.[01]*)
  13030. shlibpath_overrides_runpath=yes
  13031. hardcode_into_libs=yes
  13032. ;;
  13033. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13034. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13035. shlibpath_overrides_runpath=no
  13036. hardcode_into_libs=yes
  13037. ;;
  13038. *) # from 4.6 on, and DragonFly
  13039. shlibpath_overrides_runpath=yes
  13040. hardcode_into_libs=yes
  13041. ;;
  13042. esac
  13043. ;;
  13044. gnu*)
  13045. version_type=linux # correct to gnu/linux during the next big refactor
  13046. need_lib_prefix=no
  13047. need_version=no
  13048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13049. soname_spec='${libname}${release}${shared_ext}$major'
  13050. shlibpath_var=LD_LIBRARY_PATH
  13051. shlibpath_overrides_runpath=no
  13052. hardcode_into_libs=yes
  13053. ;;
  13054. haiku*)
  13055. version_type=linux # correct to gnu/linux during the next big refactor
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. dynamic_linker="$host_os runtime_loader"
  13059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13060. soname_spec='${libname}${release}${shared_ext}$major'
  13061. shlibpath_var=LIBRARY_PATH
  13062. shlibpath_overrides_runpath=yes
  13063. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13064. hardcode_into_libs=yes
  13065. ;;
  13066. hpux9* | hpux10* | hpux11*)
  13067. # Give a soname corresponding to the major version so that dld.sl refuses to
  13068. # link against other versions.
  13069. version_type=sunos
  13070. need_lib_prefix=no
  13071. need_version=no
  13072. case $host_cpu in
  13073. ia64*)
  13074. shrext_cmds='.so'
  13075. hardcode_into_libs=yes
  13076. dynamic_linker="$host_os dld.so"
  13077. shlibpath_var=LD_LIBRARY_PATH
  13078. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13080. soname_spec='${libname}${release}${shared_ext}$major'
  13081. if test "X$HPUX_IA64_MODE" = X32; then
  13082. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13083. else
  13084. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13085. fi
  13086. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13087. ;;
  13088. hppa*64*)
  13089. shrext_cmds='.sl'
  13090. hardcode_into_libs=yes
  13091. dynamic_linker="$host_os dld.sl"
  13092. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13093. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13095. soname_spec='${libname}${release}${shared_ext}$major'
  13096. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13097. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13098. ;;
  13099. *)
  13100. shrext_cmds='.sl'
  13101. dynamic_linker="$host_os dld.sl"
  13102. shlibpath_var=SHLIB_PATH
  13103. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13105. soname_spec='${libname}${release}${shared_ext}$major'
  13106. ;;
  13107. esac
  13108. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13109. postinstall_cmds='chmod 555 $lib'
  13110. # or fails outright, so override atomically:
  13111. install_override_mode=555
  13112. ;;
  13113. interix[3-9]*)
  13114. version_type=linux # correct to gnu/linux during the next big refactor
  13115. need_lib_prefix=no
  13116. need_version=no
  13117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13118. soname_spec='${libname}${release}${shared_ext}$major'
  13119. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. shlibpath_overrides_runpath=no
  13122. hardcode_into_libs=yes
  13123. ;;
  13124. irix5* | irix6* | nonstopux*)
  13125. case $host_os in
  13126. nonstopux*) version_type=nonstopux ;;
  13127. *)
  13128. if test "$lt_cv_prog_gnu_ld" = yes; then
  13129. version_type=linux # correct to gnu/linux during the next big refactor
  13130. else
  13131. version_type=irix
  13132. fi ;;
  13133. esac
  13134. need_lib_prefix=no
  13135. need_version=no
  13136. soname_spec='${libname}${release}${shared_ext}$major'
  13137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13138. case $host_os in
  13139. irix5* | nonstopux*)
  13140. libsuff= shlibsuff=
  13141. ;;
  13142. *)
  13143. case $LD in # libtool.m4 will add one of these switches to LD
  13144. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13145. libsuff= shlibsuff= libmagic=32-bit;;
  13146. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13147. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13148. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13149. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13150. *) libsuff= shlibsuff= libmagic=never-match;;
  13151. esac
  13152. ;;
  13153. esac
  13154. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13155. shlibpath_overrides_runpath=no
  13156. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13157. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13158. hardcode_into_libs=yes
  13159. ;;
  13160. # No shared lib support for Linux oldld, aout, or coff.
  13161. linux*oldld* | linux*aout* | linux*coff*)
  13162. dynamic_linker=no
  13163. ;;
  13164. # This must be glibc/ELF.
  13165. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13166. version_type=linux # correct to gnu/linux during the next big refactor
  13167. need_lib_prefix=no
  13168. need_version=no
  13169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13170. soname_spec='${libname}${release}${shared_ext}$major'
  13171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13172. shlibpath_var=LD_LIBRARY_PATH
  13173. shlibpath_overrides_runpath=no
  13174. # Some binutils ld are patched to set DT_RUNPATH
  13175. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13176. $as_echo_n "(cached) " >&6
  13177. else
  13178. lt_cv_shlibpath_overrides_runpath=no
  13179. save_LDFLAGS=$LDFLAGS
  13180. save_libdir=$libdir
  13181. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13182. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13184. /* end confdefs.h. */
  13185. int
  13186. main ()
  13187. {
  13188. ;
  13189. return 0;
  13190. }
  13191. _ACEOF
  13192. if ac_fn_cxx_try_link "$LINENO"; then :
  13193. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13194. lt_cv_shlibpath_overrides_runpath=yes
  13195. fi
  13196. fi
  13197. rm -f core conftest.err conftest.$ac_objext \
  13198. conftest$ac_exeext conftest.$ac_ext
  13199. LDFLAGS=$save_LDFLAGS
  13200. libdir=$save_libdir
  13201. fi
  13202. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13203. # This implies no fast_install, which is unacceptable.
  13204. # Some rework will be needed to allow for fast_install
  13205. # before this can be enabled.
  13206. hardcode_into_libs=yes
  13207. # Append ld.so.conf contents to the search path
  13208. if test -f /etc/ld.so.conf; then
  13209. 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' ' '`
  13210. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13211. fi
  13212. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13213. # powerpc, because MkLinux only supported shared libraries with the
  13214. # GNU dynamic linker. Since this was broken with cross compilers,
  13215. # most powerpc-linux boxes support dynamic linking these days and
  13216. # people can always --disable-shared, the test was removed, and we
  13217. # assume the GNU/Linux dynamic linker is in use.
  13218. dynamic_linker='GNU/Linux ld.so'
  13219. ;;
  13220. netbsd*)
  13221. version_type=sunos
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13227. dynamic_linker='NetBSD (a.out) ld.so'
  13228. else
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. dynamic_linker='NetBSD ld.elf_so'
  13232. fi
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. shlibpath_overrides_runpath=yes
  13235. hardcode_into_libs=yes
  13236. ;;
  13237. newsos6)
  13238. version_type=linux # correct to gnu/linux during the next big refactor
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. shlibpath_overrides_runpath=yes
  13242. ;;
  13243. *nto* | *qnx*)
  13244. version_type=qnx
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13248. soname_spec='${libname}${release}${shared_ext}$major'
  13249. shlibpath_var=LD_LIBRARY_PATH
  13250. shlibpath_overrides_runpath=no
  13251. hardcode_into_libs=yes
  13252. dynamic_linker='ldqnx.so'
  13253. ;;
  13254. openbsd*)
  13255. version_type=sunos
  13256. sys_lib_dlsearch_path_spec="/usr/lib"
  13257. need_lib_prefix=no
  13258. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13259. case $host_os in
  13260. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13261. *) need_version=no ;;
  13262. esac
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13264. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13265. shlibpath_var=LD_LIBRARY_PATH
  13266. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13267. case $host_os in
  13268. openbsd2.[89] | openbsd2.[89].*)
  13269. shlibpath_overrides_runpath=no
  13270. ;;
  13271. *)
  13272. shlibpath_overrides_runpath=yes
  13273. ;;
  13274. esac
  13275. else
  13276. shlibpath_overrides_runpath=yes
  13277. fi
  13278. ;;
  13279. os2*)
  13280. libname_spec='$name'
  13281. shrext_cmds=".dll"
  13282. need_lib_prefix=no
  13283. library_names_spec='$libname${shared_ext} $libname.a'
  13284. dynamic_linker='OS/2 ld.exe'
  13285. shlibpath_var=LIBPATH
  13286. ;;
  13287. osf3* | osf4* | osf5*)
  13288. version_type=osf
  13289. need_lib_prefix=no
  13290. need_version=no
  13291. soname_spec='${libname}${release}${shared_ext}$major'
  13292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13293. shlibpath_var=LD_LIBRARY_PATH
  13294. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13295. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13296. ;;
  13297. rdos*)
  13298. dynamic_linker=no
  13299. ;;
  13300. solaris*)
  13301. version_type=linux # correct to gnu/linux during the next big refactor
  13302. need_lib_prefix=no
  13303. need_version=no
  13304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13305. soname_spec='${libname}${release}${shared_ext}$major'
  13306. shlibpath_var=LD_LIBRARY_PATH
  13307. shlibpath_overrides_runpath=yes
  13308. hardcode_into_libs=yes
  13309. # ldd complains unless libraries are executable
  13310. postinstall_cmds='chmod +x $lib'
  13311. ;;
  13312. sunos4*)
  13313. version_type=sunos
  13314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13315. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13316. shlibpath_var=LD_LIBRARY_PATH
  13317. shlibpath_overrides_runpath=yes
  13318. if test "$with_gnu_ld" = yes; then
  13319. need_lib_prefix=no
  13320. fi
  13321. need_version=yes
  13322. ;;
  13323. sysv4 | sysv4.3*)
  13324. version_type=linux # correct to gnu/linux during the next big refactor
  13325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13326. soname_spec='${libname}${release}${shared_ext}$major'
  13327. shlibpath_var=LD_LIBRARY_PATH
  13328. case $host_vendor in
  13329. sni)
  13330. shlibpath_overrides_runpath=no
  13331. need_lib_prefix=no
  13332. runpath_var=LD_RUN_PATH
  13333. ;;
  13334. siemens)
  13335. need_lib_prefix=no
  13336. ;;
  13337. motorola)
  13338. need_lib_prefix=no
  13339. need_version=no
  13340. shlibpath_overrides_runpath=no
  13341. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13342. ;;
  13343. esac
  13344. ;;
  13345. sysv4*MP*)
  13346. if test -d /usr/nec ;then
  13347. version_type=linux # correct to gnu/linux during the next big refactor
  13348. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13349. soname_spec='$libname${shared_ext}.$major'
  13350. shlibpath_var=LD_LIBRARY_PATH
  13351. fi
  13352. ;;
  13353. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13354. version_type=freebsd-elf
  13355. need_lib_prefix=no
  13356. need_version=no
  13357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13358. soname_spec='${libname}${release}${shared_ext}$major'
  13359. shlibpath_var=LD_LIBRARY_PATH
  13360. shlibpath_overrides_runpath=yes
  13361. hardcode_into_libs=yes
  13362. if test "$with_gnu_ld" = yes; then
  13363. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13364. else
  13365. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13366. case $host_os in
  13367. sco3.2v5*)
  13368. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13369. ;;
  13370. esac
  13371. fi
  13372. sys_lib_dlsearch_path_spec='/usr/lib'
  13373. ;;
  13374. tpf*)
  13375. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13376. version_type=linux # correct to gnu/linux during the next big refactor
  13377. need_lib_prefix=no
  13378. need_version=no
  13379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=no
  13382. hardcode_into_libs=yes
  13383. ;;
  13384. uts4*)
  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. soname_spec='${libname}${release}${shared_ext}$major'
  13388. shlibpath_var=LD_LIBRARY_PATH
  13389. ;;
  13390. *)
  13391. dynamic_linker=no
  13392. ;;
  13393. esac
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13395. $as_echo "$dynamic_linker" >&6; }
  13396. test "$dynamic_linker" = no && can_build_shared=no
  13397. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13398. if test "$GCC" = yes; then
  13399. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13400. fi
  13401. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13402. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13403. fi
  13404. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13405. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13406. fi
  13407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13408. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13409. hardcode_action_CXX=
  13410. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13411. test -n "$runpath_var_CXX" ||
  13412. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13413. # We can hardcode non-existent directories.
  13414. if test "$hardcode_direct_CXX" != no &&
  13415. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13416. # have to relink, otherwise we might link with an installed library
  13417. # when we should be linking with a yet-to-be-installed one
  13418. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13419. test "$hardcode_minus_L_CXX" != no; then
  13420. # Linking always hardcodes the temporary library directory.
  13421. hardcode_action_CXX=relink
  13422. else
  13423. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13424. hardcode_action_CXX=immediate
  13425. fi
  13426. else
  13427. # We cannot hardcode anything, or else we can only hardcode existing
  13428. # directories.
  13429. hardcode_action_CXX=unsupported
  13430. fi
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13432. $as_echo "$hardcode_action_CXX" >&6; }
  13433. if test "$hardcode_action_CXX" = relink ||
  13434. test "$inherit_rpath_CXX" = yes; then
  13435. # Fast installation is not supported
  13436. enable_fast_install=no
  13437. elif test "$shlibpath_overrides_runpath" = yes ||
  13438. test "$enable_shared" = no; then
  13439. # Fast installation is not necessary
  13440. enable_fast_install=needless
  13441. fi
  13442. fi # test -n "$compiler"
  13443. CC=$lt_save_CC
  13444. CFLAGS=$lt_save_CFLAGS
  13445. LDCXX=$LD
  13446. LD=$lt_save_LD
  13447. GCC=$lt_save_GCC
  13448. with_gnu_ld=$lt_save_with_gnu_ld
  13449. lt_cv_path_LDCXX=$lt_cv_path_LD
  13450. lt_cv_path_LD=$lt_save_path_LD
  13451. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13452. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13453. fi # test "$_lt_caught_CXX_error" != yes
  13454. ac_ext=c
  13455. ac_cpp='$CPP $CPPFLAGS'
  13456. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13457. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13458. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13459. # Find a good install program. We prefer a C program (faster),
  13460. # so one script is as good as another. But avoid the broken or
  13461. # incompatible versions:
  13462. # SysV /etc/install, /usr/sbin/install
  13463. # SunOS /usr/etc/install
  13464. # IRIX /sbin/install
  13465. # AIX /bin/install
  13466. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13467. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13468. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13469. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13470. # OS/2's system install, which has a completely different semantic
  13471. # ./install, which can be erroneously created by make from ./install.sh.
  13472. # Reject install programs that cannot install multiple files.
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13474. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13475. if test -z "$INSTALL"; then
  13476. if ${ac_cv_path_install+:} false; then :
  13477. $as_echo_n "(cached) " >&6
  13478. else
  13479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13480. for as_dir in $PATH
  13481. do
  13482. IFS=$as_save_IFS
  13483. test -z "$as_dir" && as_dir=.
  13484. # Account for people who put trailing slashes in PATH elements.
  13485. case $as_dir/ in #((
  13486. ./ | .// | /[cC]/* | \
  13487. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13488. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13489. /usr/ucb/* ) ;;
  13490. *)
  13491. # OSF1 and SCO ODT 3.0 have their own names for install.
  13492. # Don't use installbsd from OSF since it installs stuff as root
  13493. # by default.
  13494. for ac_prog in ginstall scoinst install; do
  13495. for ac_exec_ext in '' $ac_executable_extensions; do
  13496. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13497. if test $ac_prog = install &&
  13498. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13499. # AIX install. It has an incompatible calling convention.
  13500. :
  13501. elif test $ac_prog = install &&
  13502. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13503. # program-specific install script used by HP pwplus--don't use.
  13504. :
  13505. else
  13506. rm -rf conftest.one conftest.two conftest.dir
  13507. echo one > conftest.one
  13508. echo two > conftest.two
  13509. mkdir conftest.dir
  13510. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13511. test -s conftest.one && test -s conftest.two &&
  13512. test -s conftest.dir/conftest.one &&
  13513. test -s conftest.dir/conftest.two
  13514. then
  13515. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13516. break 3
  13517. fi
  13518. fi
  13519. fi
  13520. done
  13521. done
  13522. ;;
  13523. esac
  13524. done
  13525. IFS=$as_save_IFS
  13526. rm -rf conftest.one conftest.two conftest.dir
  13527. fi
  13528. if test "${ac_cv_path_install+set}" = set; then
  13529. INSTALL=$ac_cv_path_install
  13530. else
  13531. # As a last resort, use the slow shell script. Don't cache a
  13532. # value for INSTALL within a source directory, because that will
  13533. # break other packages using the cache if that directory is
  13534. # removed, or if the value is a relative name.
  13535. INSTALL=$ac_install_sh
  13536. fi
  13537. fi
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13539. $as_echo "$INSTALL" >&6; }
  13540. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13541. # It thinks the first close brace ends the variable substitution.
  13542. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13543. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13544. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13546. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13547. set x ${MAKE-make}
  13548. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13549. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13550. $as_echo_n "(cached) " >&6
  13551. else
  13552. cat >conftest.make <<\_ACEOF
  13553. SHELL = /bin/sh
  13554. all:
  13555. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13556. _ACEOF
  13557. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13558. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13559. *@@@%%%=?*=@@@%%%*)
  13560. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13561. *)
  13562. eval ac_cv_prog_make_${ac_make}_set=no;;
  13563. esac
  13564. rm -f conftest.make
  13565. fi
  13566. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13568. $as_echo "yes" >&6; }
  13569. SET_MAKE=
  13570. else
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13572. $as_echo "no" >&6; }
  13573. SET_MAKE="MAKE=${MAKE-make}"
  13574. fi
  13575. if test -n "$ac_tool_prefix"; then
  13576. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13577. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13579. $as_echo_n "checking for $ac_word... " >&6; }
  13580. if ${ac_cv_prog_WINDRES+:} false; then :
  13581. $as_echo_n "(cached) " >&6
  13582. else
  13583. if test -n "$WINDRES"; then
  13584. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13585. else
  13586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13587. for as_dir in $PATH
  13588. do
  13589. IFS=$as_save_IFS
  13590. test -z "$as_dir" && as_dir=.
  13591. for ac_exec_ext in '' $ac_executable_extensions; do
  13592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13593. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13595. break 2
  13596. fi
  13597. done
  13598. done
  13599. IFS=$as_save_IFS
  13600. fi
  13601. fi
  13602. WINDRES=$ac_cv_prog_WINDRES
  13603. if test -n "$WINDRES"; then
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13605. $as_echo "$WINDRES" >&6; }
  13606. else
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13608. $as_echo "no" >&6; }
  13609. fi
  13610. fi
  13611. if test -z "$ac_cv_prog_WINDRES"; then
  13612. ac_ct_WINDRES=$WINDRES
  13613. # Extract the first word of "windres", so it can be a program name with args.
  13614. set dummy windres; ac_word=$2
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13616. $as_echo_n "checking for $ac_word... " >&6; }
  13617. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13618. $as_echo_n "(cached) " >&6
  13619. else
  13620. if test -n "$ac_ct_WINDRES"; then
  13621. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13622. else
  13623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13624. for as_dir in $PATH
  13625. do
  13626. IFS=$as_save_IFS
  13627. test -z "$as_dir" && as_dir=.
  13628. for ac_exec_ext in '' $ac_executable_extensions; do
  13629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13630. ac_cv_prog_ac_ct_WINDRES="windres"
  13631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13632. break 2
  13633. fi
  13634. done
  13635. done
  13636. IFS=$as_save_IFS
  13637. fi
  13638. fi
  13639. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13640. if test -n "$ac_ct_WINDRES"; then
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13642. $as_echo "$ac_ct_WINDRES" >&6; }
  13643. else
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13645. $as_echo "no" >&6; }
  13646. fi
  13647. if test "x$ac_ct_WINDRES" = x; then
  13648. WINDRES=":"
  13649. else
  13650. case $cross_compiling:$ac_tool_warned in
  13651. yes:)
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13653. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13654. ac_tool_warned=yes ;;
  13655. esac
  13656. WINDRES=$ac_ct_WINDRES
  13657. fi
  13658. else
  13659. WINDRES="$ac_cv_prog_WINDRES"
  13660. fi
  13661. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13662. if test -n "$ac_tool_prefix"; then
  13663. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13664. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13666. $as_echo_n "checking for $ac_word... " >&6; }
  13667. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13668. $as_echo_n "(cached) " >&6
  13669. else
  13670. case $PKG_CONFIG in
  13671. [\\/]* | ?:[\\/]*)
  13672. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13673. ;;
  13674. *)
  13675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13676. for as_dir in $PATH
  13677. do
  13678. IFS=$as_save_IFS
  13679. test -z "$as_dir" && as_dir=.
  13680. for ac_exec_ext in '' $ac_executable_extensions; do
  13681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13682. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13684. break 2
  13685. fi
  13686. done
  13687. done
  13688. IFS=$as_save_IFS
  13689. ;;
  13690. esac
  13691. fi
  13692. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13693. if test -n "$PKG_CONFIG"; then
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13695. $as_echo "$PKG_CONFIG" >&6; }
  13696. else
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13698. $as_echo "no" >&6; }
  13699. fi
  13700. fi
  13701. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13702. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13703. # Extract the first word of "pkg-config", so it can be a program name with args.
  13704. set dummy pkg-config; ac_word=$2
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13706. $as_echo_n "checking for $ac_word... " >&6; }
  13707. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13708. $as_echo_n "(cached) " >&6
  13709. else
  13710. case $ac_pt_PKG_CONFIG in
  13711. [\\/]* | ?:[\\/]*)
  13712. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13713. ;;
  13714. *)
  13715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13716. for as_dir in $PATH
  13717. do
  13718. IFS=$as_save_IFS
  13719. test -z "$as_dir" && as_dir=.
  13720. for ac_exec_ext in '' $ac_executable_extensions; do
  13721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13722. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13724. break 2
  13725. fi
  13726. done
  13727. done
  13728. IFS=$as_save_IFS
  13729. ;;
  13730. esac
  13731. fi
  13732. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13733. if test -n "$ac_pt_PKG_CONFIG"; then
  13734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13735. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13736. else
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13738. $as_echo "no" >&6; }
  13739. fi
  13740. if test "x$ac_pt_PKG_CONFIG" = x; then
  13741. PKG_CONFIG=""
  13742. else
  13743. case $cross_compiling:$ac_tool_warned in
  13744. yes:)
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13747. ac_tool_warned=yes ;;
  13748. esac
  13749. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13750. fi
  13751. else
  13752. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13753. fi
  13754. fi
  13755. if test -n "$PKG_CONFIG"; then
  13756. _pkg_min_version=0.9.0
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13758. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13759. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13761. $as_echo "yes" >&6; }
  13762. else
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13764. $as_echo "no" >&6; }
  13765. PKG_CONFIG=""
  13766. fi
  13767. fi
  13768. case "$host" in
  13769. *-*-mingw32*)
  13770. # Except on msys, where make can't handle full pathnames (bug 1972)
  13771. ;;
  13772. *)
  13773. srcdir=`cd $srcdir && pwd`
  13774. ;;
  13775. esac
  13776. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13777. if test x$srcdir != x.; then
  13778. INCLUDE="-Iinclude $INCLUDE"
  13779. elif test -d .hg; then
  13780. as_fn_error $? "
  13781. *** When building from Mercurial you should configure and build in a
  13782. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13783. " "$LINENO" 5
  13784. fi
  13785. BASE_CFLAGS=""
  13786. BASE_LDFLAGS=""
  13787. case "$host" in
  13788. *-*-cygwin*)
  13789. # We build SDL on cygwin without the UNIX emulation layer
  13790. save_CFLAGS="$CFLAGS"
  13791. have_no_cygwin=no
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13793. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13794. CFLAGS="$save_CFLAGS -mno-cygwin"
  13795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13796. /* end confdefs.h. */
  13797. int
  13798. main ()
  13799. {
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. if ac_fn_c_try_compile "$LINENO"; then :
  13805. have_no_cygwin=yes
  13806. fi
  13807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13809. $as_echo "$have_no_cygwin" >&6; }
  13810. CFLAGS="$save_CFLAGS"
  13811. if test x$have_no_cygwin = xyes; then
  13812. BASE_CFLAGS="-mno-cygwin"
  13813. BASE_LDFLAGS="-mno-cygwin"
  13814. fi
  13815. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13816. ;;
  13817. esac
  13818. # Uncomment the following line if you want to force SDL and applications
  13819. # built with it to be compiled for a particular architecture.
  13820. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13821. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13822. # The default optimization for SDL is -O3 (Bug #31)
  13823. if test "x$orig_CFLAGS" = x; then
  13824. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13825. fi
  13826. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13827. BUILD_LDFLAGS="$LDFLAGS"
  13828. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13829. ## These are common directories to find software packages
  13830. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13831. # if test -d $path/include; then
  13832. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13833. # fi
  13834. # if test -d $path/lib; then
  13835. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13836. # fi
  13837. #done
  13838. SDL_CFLAGS="$BASE_CFLAGS"
  13839. SDL_LIBS="-lSDL2"
  13840. if test "x$BASE_LDFLAGS" != x; then
  13841. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13842. fi
  13843. if test "x$EXTRA_CFLAGS" != x; then
  13844. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13845. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13846. fi
  13847. if test "x$EXTRA_LDFLAGS" != x; then
  13848. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13849. fi
  13850. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13851. find_lib()
  13852. {
  13853. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13854. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13855. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13856. if test "$cross_compiling" = yes; then
  13857. host_lib_path=""
  13858. else
  13859. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13860. fi
  13861. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13862. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13863. if test x$lib != x; then
  13864. echo $lib
  13865. return
  13866. fi
  13867. done
  13868. # Try again, this time allowing more than one version digit after the .so
  13869. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13870. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13871. if test x$lib != x; then
  13872. echo $lib
  13873. return
  13874. fi
  13875. done
  13876. }
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13878. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13879. if ${ac_cv_c_const+:} false; then :
  13880. $as_echo_n "(cached) " >&6
  13881. else
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. int
  13885. main ()
  13886. {
  13887. #ifndef __cplusplus
  13888. /* Ultrix mips cc rejects this sort of thing. */
  13889. typedef int charset[2];
  13890. const charset cs = { 0, 0 };
  13891. /* SunOS 4.1.1 cc rejects this. */
  13892. char const *const *pcpcc;
  13893. char **ppc;
  13894. /* NEC SVR4.0.2 mips cc rejects this. */
  13895. struct point {int x, y;};
  13896. static struct point const zero = {0,0};
  13897. /* AIX XL C 1.02.0.0 rejects this.
  13898. It does not let you subtract one const X* pointer from another in
  13899. an arm of an if-expression whose if-part is not a constant
  13900. expression */
  13901. const char *g = "string";
  13902. pcpcc = &g + (g ? g-g : 0);
  13903. /* HPUX 7.0 cc rejects these. */
  13904. ++pcpcc;
  13905. ppc = (char**) pcpcc;
  13906. pcpcc = (char const *const *) ppc;
  13907. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13908. char tx;
  13909. char *t = &tx;
  13910. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13911. *t++ = 0;
  13912. if (s) return 0;
  13913. }
  13914. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13915. int x[] = {25, 17};
  13916. const int *foo = &x[0];
  13917. ++foo;
  13918. }
  13919. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13920. typedef const int *iptr;
  13921. iptr p = 0;
  13922. ++p;
  13923. }
  13924. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13925. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13926. struct s { int j; const int *ap[3]; } bx;
  13927. struct s *b = &bx; b->j = 5;
  13928. }
  13929. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13930. const int foo = 10;
  13931. if (!foo) return 0;
  13932. }
  13933. return !cs[0] && !zero.x;
  13934. #endif
  13935. ;
  13936. return 0;
  13937. }
  13938. _ACEOF
  13939. if ac_fn_c_try_compile "$LINENO"; then :
  13940. ac_cv_c_const=yes
  13941. else
  13942. ac_cv_c_const=no
  13943. fi
  13944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13945. fi
  13946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13947. $as_echo "$ac_cv_c_const" >&6; }
  13948. if test $ac_cv_c_const = no; then
  13949. $as_echo "#define const /**/" >>confdefs.h
  13950. fi
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13952. $as_echo_n "checking for inline... " >&6; }
  13953. if ${ac_cv_c_inline+:} false; then :
  13954. $as_echo_n "(cached) " >&6
  13955. else
  13956. ac_cv_c_inline=no
  13957. for ac_kw in inline __inline__ __inline; do
  13958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13959. /* end confdefs.h. */
  13960. #ifndef __cplusplus
  13961. typedef int foo_t;
  13962. static $ac_kw foo_t static_foo () {return 0; }
  13963. $ac_kw foo_t foo () {return 0; }
  13964. #endif
  13965. _ACEOF
  13966. if ac_fn_c_try_compile "$LINENO"; then :
  13967. ac_cv_c_inline=$ac_kw
  13968. fi
  13969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13970. test "$ac_cv_c_inline" != no && break
  13971. done
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13974. $as_echo "$ac_cv_c_inline" >&6; }
  13975. case $ac_cv_c_inline in
  13976. inline | yes) ;;
  13977. *)
  13978. case $ac_cv_c_inline in
  13979. no) ac_val=;;
  13980. *) ac_val=$ac_cv_c_inline;;
  13981. esac
  13982. cat >>confdefs.h <<_ACEOF
  13983. #ifndef __cplusplus
  13984. #define inline $ac_val
  13985. #endif
  13986. _ACEOF
  13987. ;;
  13988. esac
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13990. $as_echo_n "checking for working volatile... " >&6; }
  13991. if ${ac_cv_c_volatile+:} false; then :
  13992. $as_echo_n "(cached) " >&6
  13993. else
  13994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13995. /* end confdefs.h. */
  13996. int
  13997. main ()
  13998. {
  13999. volatile int x;
  14000. int * volatile y = (int *) 0;
  14001. return !x && !y;
  14002. ;
  14003. return 0;
  14004. }
  14005. _ACEOF
  14006. if ac_fn_c_try_compile "$LINENO"; then :
  14007. ac_cv_c_volatile=yes
  14008. else
  14009. ac_cv_c_volatile=no
  14010. fi
  14011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14014. $as_echo "$ac_cv_c_volatile" >&6; }
  14015. if test $ac_cv_c_volatile = no; then
  14016. $as_echo "#define volatile /**/" >>confdefs.h
  14017. fi
  14018. # Check whether --enable-assertions was given.
  14019. if test "${enable_assertions+set}" = set; then :
  14020. enableval=$enable_assertions;
  14021. else
  14022. enable_assertions=auto
  14023. fi
  14024. case "$enable_assertions" in
  14025. auto) # Use optimization settings to determine assertion level
  14026. ;;
  14027. disabled)
  14028. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14029. ;;
  14030. release)
  14031. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14032. ;;
  14033. enabled)
  14034. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14035. ;;
  14036. paranoid)
  14037. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14038. ;;
  14039. *)
  14040. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14041. ;;
  14042. esac
  14043. # Check whether --enable-dependency-tracking was given.
  14044. if test "${enable_dependency_tracking+set}" = set; then :
  14045. enableval=$enable_dependency_tracking;
  14046. else
  14047. enable_dependency_tracking=yes
  14048. fi
  14049. if test x$enable_dependency_tracking = xyes; then
  14050. have_gcc_mmd_mt=no
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14052. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14054. /* end confdefs.h. */
  14055. #if !defined(__GNUC__) || __GNUC__ < 3
  14056. #error Dependency tracking requires GCC 3.0 or newer
  14057. #endif
  14058. int
  14059. main ()
  14060. {
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. if ac_fn_c_try_compile "$LINENO"; then :
  14066. have_gcc_mmd_mt=yes
  14067. fi
  14068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14070. $as_echo "$have_gcc_mmd_mt" >&6; }
  14071. if test x$have_gcc_mmd_mt = xyes; then
  14072. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14073. fi
  14074. fi
  14075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14076. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14077. have_no_undefined=no
  14078. case "$host" in
  14079. *-*-openbsd*)
  14080. ;;
  14081. *)
  14082. save_LDFLAGS="$LDFLAGS"
  14083. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14085. /* end confdefs.h. */
  14086. int
  14087. main ()
  14088. {
  14089. ;
  14090. return 0;
  14091. }
  14092. _ACEOF
  14093. if ac_fn_c_try_link "$LINENO"; then :
  14094. have_no_undefined=yes
  14095. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14096. fi
  14097. rm -f core conftest.err conftest.$ac_objext \
  14098. conftest$ac_exeext conftest.$ac_ext
  14099. LDFLAGS="$save_LDFLAGS"
  14100. ;;
  14101. esac
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14103. $as_echo "$have_no_undefined" >&6; }
  14104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14105. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14106. have_dynamicbase=no
  14107. case "$host" in
  14108. *)
  14109. save_LDFLAGS="$LDFLAGS"
  14110. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14112. /* end confdefs.h. */
  14113. int
  14114. main ()
  14115. {
  14116. ;
  14117. return 0;
  14118. }
  14119. _ACEOF
  14120. if ac_fn_c_try_link "$LINENO"; then :
  14121. have_dynamicbase=yes
  14122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14123. fi
  14124. rm -f core conftest.err conftest.$ac_objext \
  14125. conftest$ac_exeext conftest.$ac_ext
  14126. LDFLAGS="$save_LDFLAGS"
  14127. ;;
  14128. esac
  14129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14130. $as_echo "$have_dynamicbase" >&6; }
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14132. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14133. have_nxcompat=no
  14134. case "$host" in
  14135. *)
  14136. save_LDFLAGS="$LDFLAGS"
  14137. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14139. /* end confdefs.h. */
  14140. int
  14141. main ()
  14142. {
  14143. ;
  14144. return 0;
  14145. }
  14146. _ACEOF
  14147. if ac_fn_c_try_link "$LINENO"; then :
  14148. have_nxcompat=yes
  14149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14150. fi
  14151. rm -f core conftest.err conftest.$ac_objext \
  14152. conftest$ac_exeext conftest.$ac_ext
  14153. LDFLAGS="$save_LDFLAGS"
  14154. ;;
  14155. esac
  14156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14157. $as_echo "$have_nxcompat" >&6; }
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14159. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14160. have_high_entropy_va=no
  14161. case "$host" in
  14162. *)
  14163. save_LDFLAGS="$LDFLAGS"
  14164. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14166. /* end confdefs.h. */
  14167. int
  14168. main ()
  14169. {
  14170. ;
  14171. return 0;
  14172. }
  14173. _ACEOF
  14174. if ac_fn_c_try_link "$LINENO"; then :
  14175. have_high_entropy_va=yes
  14176. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext \
  14179. conftest$ac_exeext conftest.$ac_ext
  14180. LDFLAGS="$save_LDFLAGS"
  14181. ;;
  14182. esac
  14183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14184. $as_echo "$have_high_entropy_va" >&6; }
  14185. # Check whether --enable-libc was given.
  14186. if test "${enable_libc+set}" = set; then :
  14187. enableval=$enable_libc;
  14188. else
  14189. enable_libc=yes
  14190. fi
  14191. if test x$enable_libc = xyes; then
  14192. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14194. $as_echo_n "checking for ANSI C header files... " >&6; }
  14195. if ${ac_cv_header_stdc+:} false; then :
  14196. $as_echo_n "(cached) " >&6
  14197. else
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. #include <stdlib.h>
  14201. #include <stdarg.h>
  14202. #include <string.h>
  14203. #include <float.h>
  14204. int
  14205. main ()
  14206. {
  14207. ;
  14208. return 0;
  14209. }
  14210. _ACEOF
  14211. if ac_fn_c_try_compile "$LINENO"; then :
  14212. ac_cv_header_stdc=yes
  14213. else
  14214. ac_cv_header_stdc=no
  14215. fi
  14216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14217. if test $ac_cv_header_stdc = yes; then
  14218. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14220. /* end confdefs.h. */
  14221. #include <string.h>
  14222. _ACEOF
  14223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14224. $EGREP "memchr" >/dev/null 2>&1; then :
  14225. else
  14226. ac_cv_header_stdc=no
  14227. fi
  14228. rm -f conftest*
  14229. fi
  14230. if test $ac_cv_header_stdc = yes; then
  14231. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. #include <stdlib.h>
  14235. _ACEOF
  14236. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14237. $EGREP "free" >/dev/null 2>&1; then :
  14238. else
  14239. ac_cv_header_stdc=no
  14240. fi
  14241. rm -f conftest*
  14242. fi
  14243. if test $ac_cv_header_stdc = yes; then
  14244. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14245. if test "$cross_compiling" = yes; then :
  14246. :
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <ctype.h>
  14251. #include <stdlib.h>
  14252. #if ((' ' & 0x0FF) == 0x020)
  14253. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14254. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14255. #else
  14256. # define ISLOWER(c) \
  14257. (('a' <= (c) && (c) <= 'i') \
  14258. || ('j' <= (c) && (c) <= 'r') \
  14259. || ('s' <= (c) && (c) <= 'z'))
  14260. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14261. #endif
  14262. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14263. int
  14264. main ()
  14265. {
  14266. int i;
  14267. for (i = 0; i < 256; i++)
  14268. if (XOR (islower (i), ISLOWER (i))
  14269. || toupper (i) != TOUPPER (i))
  14270. return 2;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_run "$LINENO"; then :
  14275. else
  14276. ac_cv_header_stdc=no
  14277. fi
  14278. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14279. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14280. fi
  14281. fi
  14282. fi
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14284. $as_echo "$ac_cv_header_stdc" >&6; }
  14285. if test $ac_cv_header_stdc = yes; then
  14286. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14287. fi
  14288. 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
  14289. do :
  14290. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14291. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14292. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14293. cat >>confdefs.h <<_ACEOF
  14294. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14295. _ACEOF
  14296. fi
  14297. done
  14298. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14299. if test "x$ac_cv_type_size_t" = xyes; then :
  14300. else
  14301. cat >>confdefs.h <<_ACEOF
  14302. #define size_t unsigned int
  14303. _ACEOF
  14304. fi
  14305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14306. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14307. if ${ac_cv_define_M_PI+:} false; then :
  14308. $as_echo_n "(cached) " >&6
  14309. else
  14310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14311. /* end confdefs.h. */
  14312. #include <math.h>
  14313. #ifdef M_PI
  14314. YES_IS_DEFINED
  14315. #endif
  14316. _ACEOF
  14317. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14318. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14319. ac_cv_define_M_PI=yes
  14320. else
  14321. ac_cv_define_M_PI=no
  14322. fi
  14323. rm -f conftest*
  14324. fi
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14326. $as_echo "$ac_cv_define_M_PI" >&6; }
  14327. if test "$ac_cv_define_M_PI" = "yes" ; then
  14328. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14329. fi
  14330. case "$host" in
  14331. *-*-cygwin* | *-*-mingw32*)
  14332. ;;
  14333. *)
  14334. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14335. # for constant arguments. Useless!
  14336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14337. $as_echo_n "checking for working alloca.h... " >&6; }
  14338. if ${ac_cv_working_alloca_h+:} false; then :
  14339. $as_echo_n "(cached) " >&6
  14340. else
  14341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14342. /* end confdefs.h. */
  14343. #include <alloca.h>
  14344. int
  14345. main ()
  14346. {
  14347. char *p = (char *) alloca (2 * sizeof (int));
  14348. if (p) return 0;
  14349. ;
  14350. return 0;
  14351. }
  14352. _ACEOF
  14353. if ac_fn_c_try_link "$LINENO"; then :
  14354. ac_cv_working_alloca_h=yes
  14355. else
  14356. ac_cv_working_alloca_h=no
  14357. fi
  14358. rm -f core conftest.err conftest.$ac_objext \
  14359. conftest$ac_exeext conftest.$ac_ext
  14360. fi
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14362. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14363. if test $ac_cv_working_alloca_h = yes; then
  14364. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14367. $as_echo_n "checking for alloca... " >&6; }
  14368. if ${ac_cv_func_alloca_works+:} false; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14372. /* end confdefs.h. */
  14373. #ifdef __GNUC__
  14374. # define alloca __builtin_alloca
  14375. #else
  14376. # ifdef _MSC_VER
  14377. # include <malloc.h>
  14378. # define alloca _alloca
  14379. # else
  14380. # ifdef HAVE_ALLOCA_H
  14381. # include <alloca.h>
  14382. # else
  14383. # ifdef _AIX
  14384. #pragma alloca
  14385. # else
  14386. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14387. void *alloca (size_t);
  14388. # endif
  14389. # endif
  14390. # endif
  14391. # endif
  14392. #endif
  14393. int
  14394. main ()
  14395. {
  14396. char *p = (char *) alloca (1);
  14397. if (p) return 0;
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. if ac_fn_c_try_link "$LINENO"; then :
  14403. ac_cv_func_alloca_works=yes
  14404. else
  14405. ac_cv_func_alloca_works=no
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext \
  14408. conftest$ac_exeext conftest.$ac_ext
  14409. fi
  14410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14411. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14412. if test $ac_cv_func_alloca_works = yes; then
  14413. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14414. else
  14415. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14416. # that cause trouble. Some versions do not even contain alloca or
  14417. # contain a buggy version. If you still want to use their alloca,
  14418. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14419. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14420. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14422. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14423. if ${ac_cv_os_cray+:} false; then :
  14424. $as_echo_n "(cached) " >&6
  14425. else
  14426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14427. /* end confdefs.h. */
  14428. #if defined CRAY && ! defined CRAY2
  14429. webecray
  14430. #else
  14431. wenotbecray
  14432. #endif
  14433. _ACEOF
  14434. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14435. $EGREP "webecray" >/dev/null 2>&1; then :
  14436. ac_cv_os_cray=yes
  14437. else
  14438. ac_cv_os_cray=no
  14439. fi
  14440. rm -f conftest*
  14441. fi
  14442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14443. $as_echo "$ac_cv_os_cray" >&6; }
  14444. if test $ac_cv_os_cray = yes; then
  14445. for ac_func in _getb67 GETB67 getb67; do
  14446. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14447. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14448. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14449. cat >>confdefs.h <<_ACEOF
  14450. #define CRAY_STACKSEG_END $ac_func
  14451. _ACEOF
  14452. break
  14453. fi
  14454. done
  14455. fi
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14457. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14458. if ${ac_cv_c_stack_direction+:} false; then :
  14459. $as_echo_n "(cached) " >&6
  14460. else
  14461. if test "$cross_compiling" = yes; then :
  14462. ac_cv_c_stack_direction=0
  14463. else
  14464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14465. /* end confdefs.h. */
  14466. $ac_includes_default
  14467. int
  14468. find_stack_direction (int *addr, int depth)
  14469. {
  14470. int dir, dummy = 0;
  14471. if (! addr)
  14472. addr = &dummy;
  14473. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14474. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14475. return dir + dummy;
  14476. }
  14477. int
  14478. main (int argc, char **argv)
  14479. {
  14480. return find_stack_direction (0, argc + !argv + 20) < 0;
  14481. }
  14482. _ACEOF
  14483. if ac_fn_c_try_run "$LINENO"; then :
  14484. ac_cv_c_stack_direction=1
  14485. else
  14486. ac_cv_c_stack_direction=-1
  14487. fi
  14488. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14489. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14490. fi
  14491. fi
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14493. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14494. cat >>confdefs.h <<_ACEOF
  14495. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14496. _ACEOF
  14497. fi
  14498. ;;
  14499. esac
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14501. $as_echo_n "checking for working memcmp... " >&6; }
  14502. if ${ac_cv_func_memcmp_working+:} false; then :
  14503. $as_echo_n "(cached) " >&6
  14504. else
  14505. if test "$cross_compiling" = yes; then :
  14506. ac_cv_func_memcmp_working=no
  14507. else
  14508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14509. /* end confdefs.h. */
  14510. $ac_includes_default
  14511. int
  14512. main ()
  14513. {
  14514. /* Some versions of memcmp are not 8-bit clean. */
  14515. char c0 = '\100', c1 = '\200', c2 = '\201';
  14516. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14517. return 1;
  14518. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14519. or more and with at least one buffer not starting on a 4-byte boundary.
  14520. William Lewis provided this test program. */
  14521. {
  14522. char foo[21];
  14523. char bar[21];
  14524. int i;
  14525. for (i = 0; i < 4; i++)
  14526. {
  14527. char *a = foo + i;
  14528. char *b = bar + i;
  14529. strcpy (a, "--------01111111");
  14530. strcpy (b, "--------10000000");
  14531. if (memcmp (a, b, 16) >= 0)
  14532. return 1;
  14533. }
  14534. return 0;
  14535. }
  14536. ;
  14537. return 0;
  14538. }
  14539. _ACEOF
  14540. if ac_fn_c_try_run "$LINENO"; then :
  14541. ac_cv_func_memcmp_working=yes
  14542. else
  14543. ac_cv_func_memcmp_working=no
  14544. fi
  14545. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14546. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14547. fi
  14548. fi
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14550. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14551. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14552. *" memcmp.$ac_objext "* ) ;;
  14553. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14554. ;;
  14555. esac
  14556. if test x$ac_cv_func_memcmp_working = xyes; then
  14557. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14558. fi
  14559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14560. $as_echo_n "checking for working strtod... " >&6; }
  14561. if ${ac_cv_func_strtod+:} false; then :
  14562. $as_echo_n "(cached) " >&6
  14563. else
  14564. if test "$cross_compiling" = yes; then :
  14565. ac_cv_func_strtod=no
  14566. else
  14567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14568. /* end confdefs.h. */
  14569. $ac_includes_default
  14570. #ifndef strtod
  14571. double strtod ();
  14572. #endif
  14573. int
  14574. main()
  14575. {
  14576. {
  14577. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14578. char *string = " +69";
  14579. char *term;
  14580. double value;
  14581. value = strtod (string, &term);
  14582. if (value != 69 || term != (string + 4))
  14583. return 1;
  14584. }
  14585. {
  14586. /* Under Solaris 2.4, strtod returns the wrong value for the
  14587. terminating character under some conditions. */
  14588. char *string = "NaN";
  14589. char *term;
  14590. strtod (string, &term);
  14591. if (term != string && *(term - 1) == 0)
  14592. return 1;
  14593. }
  14594. return 0;
  14595. }
  14596. _ACEOF
  14597. if ac_fn_c_try_run "$LINENO"; then :
  14598. ac_cv_func_strtod=yes
  14599. else
  14600. ac_cv_func_strtod=no
  14601. fi
  14602. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14603. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14604. fi
  14605. fi
  14606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14607. $as_echo "$ac_cv_func_strtod" >&6; }
  14608. if test $ac_cv_func_strtod = no; then
  14609. case " $LIBOBJS " in
  14610. *" strtod.$ac_objext "* ) ;;
  14611. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14612. ;;
  14613. esac
  14614. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14615. if test "x$ac_cv_func_pow" = xyes; then :
  14616. fi
  14617. if test $ac_cv_func_pow = no; then
  14618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14619. $as_echo_n "checking for pow in -lm... " >&6; }
  14620. if ${ac_cv_lib_m_pow+:} false; then :
  14621. $as_echo_n "(cached) " >&6
  14622. else
  14623. ac_check_lib_save_LIBS=$LIBS
  14624. LIBS="-lm $LIBS"
  14625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14626. /* end confdefs.h. */
  14627. /* Override any GCC internal prototype to avoid an error.
  14628. Use char because int might match the return type of a GCC
  14629. builtin and then its argument prototype would still apply. */
  14630. #ifdef __cplusplus
  14631. extern "C"
  14632. #endif
  14633. char pow ();
  14634. int
  14635. main ()
  14636. {
  14637. return pow ();
  14638. ;
  14639. return 0;
  14640. }
  14641. _ACEOF
  14642. if ac_fn_c_try_link "$LINENO"; then :
  14643. ac_cv_lib_m_pow=yes
  14644. else
  14645. ac_cv_lib_m_pow=no
  14646. fi
  14647. rm -f core conftest.err conftest.$ac_objext \
  14648. conftest$ac_exeext conftest.$ac_ext
  14649. LIBS=$ac_check_lib_save_LIBS
  14650. fi
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14652. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14653. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14654. POW_LIB=-lm
  14655. else
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14657. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14658. fi
  14659. fi
  14660. fi
  14661. if test x$ac_cv_func_strtod = xyes; then
  14662. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14663. fi
  14664. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14665. if test "x$ac_cv_func_mprotect" = xyes; then :
  14666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14667. /* end confdefs.h. */
  14668. #include <sys/types.h>
  14669. #include <sys/mman.h>
  14670. int
  14671. main ()
  14672. {
  14673. ;
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. if ac_fn_c_try_compile "$LINENO"; then :
  14678. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14679. fi
  14680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14681. fi
  14682. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr 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 poll _Exit
  14683. do :
  14684. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14685. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14686. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14687. cat >>confdefs.h <<_ACEOF
  14688. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14689. _ACEOF
  14690. fi
  14691. done
  14692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14693. $as_echo_n "checking for pow in -lm... " >&6; }
  14694. if ${ac_cv_lib_m_pow+:} false; then :
  14695. $as_echo_n "(cached) " >&6
  14696. else
  14697. ac_check_lib_save_LIBS=$LIBS
  14698. LIBS="-lm $LIBS"
  14699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14700. /* end confdefs.h. */
  14701. /* Override any GCC internal prototype to avoid an error.
  14702. Use char because int might match the return type of a GCC
  14703. builtin and then its argument prototype would still apply. */
  14704. #ifdef __cplusplus
  14705. extern "C"
  14706. #endif
  14707. char pow ();
  14708. int
  14709. main ()
  14710. {
  14711. return pow ();
  14712. ;
  14713. return 0;
  14714. }
  14715. _ACEOF
  14716. if ac_fn_c_try_link "$LINENO"; then :
  14717. ac_cv_lib_m_pow=yes
  14718. else
  14719. ac_cv_lib_m_pow=no
  14720. fi
  14721. rm -f core conftest.err conftest.$ac_objext \
  14722. conftest$ac_exeext conftest.$ac_ext
  14723. LIBS=$ac_check_lib_save_LIBS
  14724. fi
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14726. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14727. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14728. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14729. fi
  14730. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14731. do :
  14732. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14733. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14734. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14735. cat >>confdefs.h <<_ACEOF
  14736. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14737. _ACEOF
  14738. fi
  14739. done
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14741. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14742. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14743. $as_echo_n "(cached) " >&6
  14744. else
  14745. ac_check_lib_save_LIBS=$LIBS
  14746. LIBS="-liconv $LIBS"
  14747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14748. /* end confdefs.h. */
  14749. /* Override any GCC internal prototype to avoid an error.
  14750. Use char because int might match the return type of a GCC
  14751. builtin and then its argument prototype would still apply. */
  14752. #ifdef __cplusplus
  14753. extern "C"
  14754. #endif
  14755. char iconv_open ();
  14756. int
  14757. main ()
  14758. {
  14759. return iconv_open ();
  14760. ;
  14761. return 0;
  14762. }
  14763. _ACEOF
  14764. if ac_fn_c_try_link "$LINENO"; then :
  14765. ac_cv_lib_iconv_iconv_open=yes
  14766. else
  14767. ac_cv_lib_iconv_iconv_open=no
  14768. fi
  14769. rm -f core conftest.err conftest.$ac_objext \
  14770. conftest$ac_exeext conftest.$ac_ext
  14771. LIBS=$ac_check_lib_save_LIBS
  14772. fi
  14773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14774. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14775. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14776. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14777. fi
  14778. for ac_func in iconv
  14779. do :
  14780. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14781. if test "x$ac_cv_func_iconv" = xyes; then :
  14782. cat >>confdefs.h <<_ACEOF
  14783. #define HAVE_ICONV 1
  14784. _ACEOF
  14785. fi
  14786. done
  14787. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14788. "
  14789. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14790. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14791. fi
  14792. for ac_header in libunwind.h
  14793. do :
  14794. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14795. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14796. cat >>confdefs.h <<_ACEOF
  14797. #define HAVE_LIBUNWIND_H 1
  14798. _ACEOF
  14799. fi
  14800. done
  14801. fi
  14802. # Check whether --enable-gcc-atomics was given.
  14803. if test "${enable_gcc_atomics+set}" = set; then :
  14804. enableval=$enable_gcc_atomics;
  14805. else
  14806. enable_gcc_atomics=yes
  14807. fi
  14808. if test x$enable_gcc_atomics = xyes; then
  14809. have_gcc_atomics=no
  14810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14811. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14813. /* end confdefs.h. */
  14814. int
  14815. main ()
  14816. {
  14817. int a;
  14818. void *x, *y, *z;
  14819. __sync_lock_test_and_set(&a, 4);
  14820. __sync_lock_test_and_set(&x, y);
  14821. __sync_fetch_and_add(&a, 1);
  14822. __sync_bool_compare_and_swap(&a, 5, 10);
  14823. __sync_bool_compare_and_swap(&x, y, z);
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. if ac_fn_c_try_link "$LINENO"; then :
  14829. have_gcc_atomics=yes
  14830. fi
  14831. rm -f core conftest.err conftest.$ac_objext \
  14832. conftest$ac_exeext conftest.$ac_ext
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14834. $as_echo "$have_gcc_atomics" >&6; }
  14835. if test x$have_gcc_atomics = xyes; then
  14836. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14837. else
  14838. # See if we have the minimum operation needed for GCC atomics
  14839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14840. /* end confdefs.h. */
  14841. int
  14842. main ()
  14843. {
  14844. int a;
  14845. __sync_lock_test_and_set(&a, 1);
  14846. __sync_lock_release(&a);
  14847. ;
  14848. return 0;
  14849. }
  14850. _ACEOF
  14851. if ac_fn_c_try_link "$LINENO"; then :
  14852. have_gcc_sync_lock_test_and_set=yes
  14853. fi
  14854. rm -f core conftest.err conftest.$ac_objext \
  14855. conftest$ac_exeext conftest.$ac_ext
  14856. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14857. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14858. fi
  14859. fi
  14860. fi
  14861. # Standard C sources
  14862. SOURCES="$SOURCES $srcdir/src/*.c"
  14863. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14864. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14865. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14866. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14867. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14868. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14869. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14870. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14871. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14872. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14873. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14874. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14875. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14876. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14877. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14878. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14879. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14880. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14881. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14882. # Check whether --enable-atomic was given.
  14883. if test "${enable_atomic+set}" = set; then :
  14884. enableval=$enable_atomic;
  14885. else
  14886. enable_atomic=yes
  14887. fi
  14888. if test x$enable_atomic != xyes; then
  14889. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14890. else
  14891. SUMMARY_modules="${SUMMARY_modules} atomic"
  14892. fi
  14893. # Check whether --enable-audio was given.
  14894. if test "${enable_audio+set}" = set; then :
  14895. enableval=$enable_audio;
  14896. else
  14897. enable_audio=yes
  14898. fi
  14899. if test x$enable_audio != xyes; then
  14900. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14901. else
  14902. SUMMARY_modules="${SUMMARY_modules} audio"
  14903. fi
  14904. # Check whether --enable-video was given.
  14905. if test "${enable_video+set}" = set; then :
  14906. enableval=$enable_video;
  14907. else
  14908. enable_video=yes
  14909. fi
  14910. if test x$enable_video != xyes; then
  14911. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14912. else
  14913. SUMMARY_modules="${SUMMARY_modules} video"
  14914. fi
  14915. # Check whether --enable-render was given.
  14916. if test "${enable_render+set}" = set; then :
  14917. enableval=$enable_render;
  14918. else
  14919. enable_render=yes
  14920. fi
  14921. if test x$enable_render != xyes; then
  14922. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14923. else
  14924. SUMMARY_modules="${SUMMARY_modules} render"
  14925. fi
  14926. # Check whether --enable-events was given.
  14927. if test "${enable_events+set}" = set; then :
  14928. enableval=$enable_events;
  14929. else
  14930. enable_events=yes
  14931. fi
  14932. if test x$enable_events != xyes; then
  14933. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14934. else
  14935. SUMMARY_modules="${SUMMARY_modules} events"
  14936. fi
  14937. # Check whether --enable-joystick was given.
  14938. if test "${enable_joystick+set}" = set; then :
  14939. enableval=$enable_joystick;
  14940. else
  14941. enable_joystick=yes
  14942. fi
  14943. if test x$enable_joystick != xyes; then
  14944. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14945. else
  14946. SUMMARY_modules="${SUMMARY_modules} joystick"
  14947. fi
  14948. # Check whether --enable-haptic was given.
  14949. if test "${enable_haptic+set}" = set; then :
  14950. enableval=$enable_haptic;
  14951. else
  14952. enable_haptic=yes
  14953. fi
  14954. if test x$enable_haptic != xyes; then
  14955. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14956. else
  14957. SUMMARY_modules="${SUMMARY_modules} haptic"
  14958. fi
  14959. # Check whether --enable-sensor was given.
  14960. if test "${enable_sensor+set}" = set; then :
  14961. enableval=$enable_sensor;
  14962. else
  14963. enable_sensor=yes
  14964. fi
  14965. if test x$enable_sensor != xyes; then
  14966. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14967. else
  14968. SUMMARY_modules="${SUMMARY_modules} sensor"
  14969. fi
  14970. # Check whether --enable-power was given.
  14971. if test "${enable_power+set}" = set; then :
  14972. enableval=$enable_power;
  14973. else
  14974. enable_power=yes
  14975. fi
  14976. if test x$enable_power != xyes; then
  14977. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14978. else
  14979. SUMMARY_modules="${SUMMARY_modules} power"
  14980. fi
  14981. # Check whether --enable-filesystem was given.
  14982. if test "${enable_filesystem+set}" = set; then :
  14983. enableval=$enable_filesystem;
  14984. else
  14985. enable_filesystem=yes
  14986. fi
  14987. if test x$enable_filesystem != xyes; then
  14988. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14989. else
  14990. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14991. fi
  14992. # Check whether --enable-threads was given.
  14993. if test "${enable_threads+set}" = set; then :
  14994. enableval=$enable_threads;
  14995. else
  14996. enable_threads=yes
  14997. fi
  14998. if test x$enable_threads != xyes; then
  14999. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15000. else
  15001. SUMMARY_modules="${SUMMARY_modules} threads"
  15002. fi
  15003. # Check whether --enable-timers was given.
  15004. if test "${enable_timers+set}" = set; then :
  15005. enableval=$enable_timers;
  15006. else
  15007. enable_timers=yes
  15008. fi
  15009. if test x$enable_timers != xyes; then
  15010. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15011. else
  15012. SUMMARY_modules="${SUMMARY_modules} timers"
  15013. fi
  15014. # Check whether --enable-file was given.
  15015. if test "${enable_file+set}" = set; then :
  15016. enableval=$enable_file;
  15017. else
  15018. enable_file=yes
  15019. fi
  15020. if test x$enable_file != xyes; then
  15021. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15022. else
  15023. SUMMARY_modules="${SUMMARY_modules} file"
  15024. fi
  15025. # Check whether --enable-loadso was given.
  15026. if test "${enable_loadso+set}" = set; then :
  15027. enableval=$enable_loadso;
  15028. else
  15029. enable_loadso=yes
  15030. fi
  15031. if test x$enable_loadso != xyes; then
  15032. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15033. else
  15034. SUMMARY_modules="${SUMMARY_modules} loadso"
  15035. fi
  15036. # Check whether --enable-cpuinfo was given.
  15037. if test "${enable_cpuinfo+set}" = set; then :
  15038. enableval=$enable_cpuinfo;
  15039. else
  15040. enable_cpuinfo=yes
  15041. fi
  15042. if test x$enable_cpuinfo != xyes; then
  15043. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15044. else
  15045. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15046. fi
  15047. # Check whether --enable-assembly was given.
  15048. if test "${enable_assembly+set}" = set; then :
  15049. enableval=$enable_assembly;
  15050. else
  15051. enable_assembly=yes
  15052. fi
  15053. if test x$enable_assembly = xyes; then
  15054. SUMMARY_modules="${SUMMARY_modules} assembly"
  15055. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15056. # Make sure that we don't generate floating point code that would
  15057. # cause illegal instruction exceptions on older processors
  15058. case "$host" in
  15059. *-*-darwin*)
  15060. # Don't need to worry about Apple hardware, it's all SSE capable
  15061. default_ssemath=yes
  15062. ;;
  15063. *64-*-*)
  15064. # x86 64-bit architectures all have SSE instructions
  15065. default_ssemath=yes
  15066. ;;
  15067. *)
  15068. default_ssemath=no
  15069. ;;
  15070. esac
  15071. # Check whether --enable-ssemath was given.
  15072. if test "${enable_ssemath+set}" = set; then :
  15073. enableval=$enable_ssemath;
  15074. else
  15075. enable_ssemath=$default_ssemath
  15076. fi
  15077. if test x$enable_ssemath = xno; then
  15078. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15079. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15080. fi
  15081. fi
  15082. # Check whether --enable-mmx was given.
  15083. if test "${enable_mmx+set}" = set; then :
  15084. enableval=$enable_mmx;
  15085. else
  15086. enable_mmx=yes
  15087. fi
  15088. if test x$enable_mmx = xyes; then
  15089. save_CFLAGS="$CFLAGS"
  15090. have_gcc_mmx=no
  15091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15092. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15093. mmx_CFLAGS="-mmmx"
  15094. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15096. /* end confdefs.h. */
  15097. #ifdef __MINGW32__
  15098. #include <_mingw.h>
  15099. #ifdef __MINGW64_VERSION_MAJOR
  15100. #include <intrin.h>
  15101. #else
  15102. #include <mmintrin.h>
  15103. #endif
  15104. #else
  15105. #include <mmintrin.h>
  15106. #endif
  15107. #ifndef __MMX__
  15108. #error Assembler CPP flag not enabled
  15109. #endif
  15110. int
  15111. main ()
  15112. {
  15113. ;
  15114. return 0;
  15115. }
  15116. _ACEOF
  15117. if ac_fn_c_try_compile "$LINENO"; then :
  15118. have_gcc_mmx=yes
  15119. fi
  15120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  15122. $as_echo "$have_gcc_mmx" >&6; }
  15123. CFLAGS="$save_CFLAGS"
  15124. if test x$have_gcc_mmx = xyes; then
  15125. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15126. SUMMARY_math="${SUMMARY_math} mmx"
  15127. fi
  15128. fi
  15129. # Check whether --enable-3dnow was given.
  15130. if test "${enable_3dnow+set}" = set; then :
  15131. enableval=$enable_3dnow;
  15132. else
  15133. enable_3dnow=yes
  15134. fi
  15135. if test x$enable_3dnow = xyes; then
  15136. save_CFLAGS="$CFLAGS"
  15137. have_gcc_3dnow=no
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15139. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15140. amd3dnow_CFLAGS="-m3dnow"
  15141. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15143. /* end confdefs.h. */
  15144. #include <mm3dnow.h>
  15145. #ifndef __3dNOW__
  15146. #error Assembler CPP flag not enabled
  15147. #endif
  15148. int
  15149. main ()
  15150. {
  15151. void *p = 0;
  15152. _m_prefetch(p);
  15153. ;
  15154. return 0;
  15155. }
  15156. _ACEOF
  15157. if ac_fn_c_try_link "$LINENO"; then :
  15158. have_gcc_3dnow=yes
  15159. fi
  15160. rm -f core conftest.err conftest.$ac_objext \
  15161. conftest$ac_exeext conftest.$ac_ext
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15163. $as_echo "$have_gcc_3dnow" >&6; }
  15164. CFLAGS="$save_CFLAGS"
  15165. if test x$have_gcc_3dnow = xyes; then
  15166. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15167. SUMMARY_math="${SUMMARY_math} 3dnow"
  15168. fi
  15169. fi
  15170. # Check whether --enable-sse was given.
  15171. if test "${enable_sse+set}" = set; then :
  15172. enableval=$enable_sse;
  15173. else
  15174. enable_sse=yes
  15175. fi
  15176. if test x$enable_sse = xyes; then
  15177. save_CFLAGS="$CFLAGS"
  15178. have_gcc_sse=no
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15180. $as_echo_n "checking for GCC -msse option... " >&6; }
  15181. sse_CFLAGS="-msse"
  15182. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15184. /* end confdefs.h. */
  15185. #ifdef __MINGW32__
  15186. #include <_mingw.h>
  15187. #ifdef __MINGW64_VERSION_MAJOR
  15188. #include <intrin.h>
  15189. #else
  15190. #include <xmmintrin.h>
  15191. #endif
  15192. #else
  15193. #include <xmmintrin.h>
  15194. #endif
  15195. #ifndef __SSE__
  15196. #error Assembler CPP flag not enabled
  15197. #endif
  15198. int
  15199. main ()
  15200. {
  15201. ;
  15202. return 0;
  15203. }
  15204. _ACEOF
  15205. if ac_fn_c_try_compile "$LINENO"; then :
  15206. have_gcc_sse=yes
  15207. fi
  15208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15210. $as_echo "$have_gcc_sse" >&6; }
  15211. CFLAGS="$save_CFLAGS"
  15212. if test x$have_gcc_sse = xyes; then
  15213. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15214. SUMMARY_math="${SUMMARY_math} sse"
  15215. fi
  15216. fi
  15217. # Check whether --enable-sse2 was given.
  15218. if test "${enable_sse2+set}" = set; then :
  15219. enableval=$enable_sse2;
  15220. else
  15221. enable_sse2=$default_ssemath
  15222. fi
  15223. if test x$enable_sse2 = xyes; then
  15224. save_CFLAGS="$CFLAGS"
  15225. have_gcc_sse2=no
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15227. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15228. sse2_CFLAGS="-msse2"
  15229. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15231. /* end confdefs.h. */
  15232. #ifdef __MINGW32__
  15233. #include <_mingw.h>
  15234. #ifdef __MINGW64_VERSION_MAJOR
  15235. #include <intrin.h>
  15236. #else
  15237. #include <emmintrin.h>
  15238. #endif
  15239. #else
  15240. #include <emmintrin.h>
  15241. #endif
  15242. #ifndef __SSE2__
  15243. #error Assembler CPP flag not enabled
  15244. #endif
  15245. int
  15246. main ()
  15247. {
  15248. ;
  15249. return 0;
  15250. }
  15251. _ACEOF
  15252. if ac_fn_c_try_compile "$LINENO"; then :
  15253. have_gcc_sse2=yes
  15254. fi
  15255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15257. $as_echo "$have_gcc_sse2" >&6; }
  15258. CFLAGS="$save_CFLAGS"
  15259. if test x$have_gcc_sse2 = xyes; then
  15260. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15261. SUMMARY_math="${SUMMARY_math} sse2"
  15262. fi
  15263. fi
  15264. # Check whether --enable-sse3 was given.
  15265. if test "${enable_sse3+set}" = set; then :
  15266. enableval=$enable_sse3;
  15267. else
  15268. enable_sse3=$default_ssemath
  15269. fi
  15270. if test x$enable_sse3 = xyes; then
  15271. save_CFLAGS="$CFLAGS"
  15272. have_gcc_sse3=no
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15274. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15275. sse3_CFLAGS="-msse3"
  15276. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15278. /* end confdefs.h. */
  15279. #ifdef __MINGW32__
  15280. #include <_mingw.h>
  15281. #ifdef __MINGW64_VERSION_MAJOR
  15282. #include <intrin.h>
  15283. #else
  15284. #include <pmmintrin.h>
  15285. #endif
  15286. #else
  15287. #include <pmmintrin.h>
  15288. #endif
  15289. #ifndef __SSE2__
  15290. #error Assembler CPP flag not enabled
  15291. #endif
  15292. int
  15293. main ()
  15294. {
  15295. ;
  15296. return 0;
  15297. }
  15298. _ACEOF
  15299. if ac_fn_c_try_compile "$LINENO"; then :
  15300. have_gcc_sse3=yes
  15301. fi
  15302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15304. $as_echo "$have_gcc_sse3" >&6; }
  15305. CFLAGS="$save_CFLAGS"
  15306. if test x$have_gcc_sse3 = xyes; then
  15307. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15308. SUMMARY_math="${SUMMARY_math} sse3"
  15309. fi
  15310. fi
  15311. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15312. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15313. have_immintrin_h_hdr=yes
  15314. else
  15315. have_immintrin_h_hdr=no
  15316. fi
  15317. if test x$have_immintrin_h_hdr = xyes; then
  15318. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15319. fi
  15320. # Check whether --enable-altivec was given.
  15321. if test "${enable_altivec+set}" = set; then :
  15322. enableval=$enable_altivec;
  15323. else
  15324. enable_altivec=yes
  15325. fi
  15326. if test x$enable_altivec = xyes; then
  15327. save_CFLAGS="$CFLAGS"
  15328. have_gcc_altivec=no
  15329. have_altivec_h_hdr=no
  15330. altivec_CFLAGS="-maltivec"
  15331. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15333. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15335. /* end confdefs.h. */
  15336. #include <altivec.h>
  15337. vector unsigned int vzero() {
  15338. return vec_splat_u32(0);
  15339. }
  15340. int
  15341. main ()
  15342. {
  15343. ;
  15344. return 0;
  15345. }
  15346. _ACEOF
  15347. if ac_fn_c_try_compile "$LINENO"; then :
  15348. have_gcc_altivec=yes
  15349. have_altivec_h_hdr=yes
  15350. fi
  15351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15353. $as_echo "$have_gcc_altivec" >&6; }
  15354. if test x$have_gcc_altivec = xno; then
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15356. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15358. /* end confdefs.h. */
  15359. vector unsigned int vzero() {
  15360. return vec_splat_u32(0);
  15361. }
  15362. int
  15363. main ()
  15364. {
  15365. ;
  15366. return 0;
  15367. }
  15368. _ACEOF
  15369. if ac_fn_c_try_compile "$LINENO"; then :
  15370. have_gcc_altivec=yes
  15371. fi
  15372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15374. $as_echo "$have_gcc_altivec" >&6; }
  15375. fi
  15376. if test x$have_gcc_altivec = xno; then
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15378. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15379. altivec_CFLAGS="-faltivec"
  15380. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15382. /* end confdefs.h. */
  15383. #include <altivec.h>
  15384. vector unsigned int vzero() {
  15385. return vec_splat_u32(0);
  15386. }
  15387. int
  15388. main ()
  15389. {
  15390. ;
  15391. return 0;
  15392. }
  15393. _ACEOF
  15394. if ac_fn_c_try_compile "$LINENO"; then :
  15395. have_gcc_altivec=yes
  15396. have_altivec_h_hdr=yes
  15397. fi
  15398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15400. $as_echo "$have_gcc_altivec" >&6; }
  15401. fi
  15402. if test x$have_gcc_altivec = xno; then
  15403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15404. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15406. /* end confdefs.h. */
  15407. vector unsigned int vzero() {
  15408. return vec_splat_u32(0);
  15409. }
  15410. int
  15411. main ()
  15412. {
  15413. ;
  15414. return 0;
  15415. }
  15416. _ACEOF
  15417. if ac_fn_c_try_compile "$LINENO"; then :
  15418. have_gcc_altivec=yes
  15419. fi
  15420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15422. $as_echo "$have_gcc_altivec" >&6; }
  15423. fi
  15424. CFLAGS="$save_CFLAGS"
  15425. if test x$have_gcc_altivec = xyes; then
  15426. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15427. if test x$have_altivec_h_hdr = xyes; then
  15428. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15429. fi
  15430. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15431. SUMMARY_math="${SUMMARY_math} altivec"
  15432. fi
  15433. fi
  15434. fi
  15435. CheckOSS()
  15436. {
  15437. # Check whether --enable-oss was given.
  15438. if test "${enable_oss+set}" = set; then :
  15439. enableval=$enable_oss;
  15440. else
  15441. enable_oss=maybe
  15442. fi
  15443. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15444. # use sndio instead. So on there, we default to disabled. You can force
  15445. # it on if you really want, though.
  15446. if test x$enable_oss = xmaybe; then
  15447. enable_oss=yes
  15448. case "$host" in
  15449. *-*-openbsd*)
  15450. enable_oss=no;;
  15451. esac
  15452. fi
  15453. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15455. $as_echo_n "checking for OSS audio support... " >&6; }
  15456. have_oss=no
  15457. if test x$have_oss != xyes; then
  15458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15459. /* end confdefs.h. */
  15460. #include <sys/soundcard.h>
  15461. int
  15462. main ()
  15463. {
  15464. int arg = SNDCTL_DSP_SETFRAGMENT;
  15465. ;
  15466. return 0;
  15467. }
  15468. _ACEOF
  15469. if ac_fn_c_try_compile "$LINENO"; then :
  15470. have_oss=yes
  15471. fi
  15472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15473. fi
  15474. if test x$have_oss != xyes; then
  15475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15476. /* end confdefs.h. */
  15477. #include <soundcard.h>
  15478. int
  15479. main ()
  15480. {
  15481. int arg = SNDCTL_DSP_SETFRAGMENT;
  15482. ;
  15483. return 0;
  15484. }
  15485. _ACEOF
  15486. if ac_fn_c_try_compile "$LINENO"; then :
  15487. have_oss=yes
  15488. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15489. fi
  15490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15491. fi
  15492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15493. $as_echo "$have_oss" >&6; }
  15494. if test x$have_oss = xyes; then
  15495. SUMMARY_audio="${SUMMARY_audio} oss"
  15496. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15497. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15498. have_audio=yes
  15499. # We may need to link with ossaudio emulation library
  15500. case "$host" in
  15501. *-*-openbsd*|*-*-netbsd*)
  15502. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15503. esac
  15504. fi
  15505. fi
  15506. }
  15507. CheckALSA()
  15508. {
  15509. # Check whether --enable-alsa was given.
  15510. if test "${enable_alsa+set}" = set; then :
  15511. enableval=$enable_alsa;
  15512. else
  15513. enable_alsa=yes
  15514. fi
  15515. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15516. alsa_save_CFLAGS="$CFLAGS"
  15517. alsa_save_LDFLAGS="$LDFLAGS"
  15518. alsa_save_LIBS="$LIBS"
  15519. alsa_found=yes
  15520. # Check whether --with-alsa-prefix was given.
  15521. if test "${with_alsa_prefix+set}" = set; then :
  15522. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15523. else
  15524. alsa_prefix=""
  15525. fi
  15526. # Check whether --with-alsa-inc-prefix was given.
  15527. if test "${with_alsa_inc_prefix+set}" = set; then :
  15528. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15529. else
  15530. alsa_inc_prefix=""
  15531. fi
  15532. # Check whether --enable-alsatest was given.
  15533. if test "${enable_alsatest+set}" = set; then :
  15534. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15535. else
  15536. enable_alsatest=yes
  15537. fi
  15538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15539. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15540. if test "$alsa_inc_prefix" != "" ; then
  15541. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15542. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15543. fi
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15545. $as_echo "$ALSA_CFLAGS" >&6; }
  15546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15547. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15548. if test "$alsa_prefix" != "" ; then
  15549. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15550. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15551. fi
  15552. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15553. LIBS=`echo $LIBS | sed 's/-lm//'`
  15554. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15555. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15556. LIBS=`echo $LIBS | sed 's/ //'`
  15557. LIBS="$ALSA_LIBS $LIBS"
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15559. $as_echo "$ALSA_LIBS" >&6; }
  15560. min_alsa_version=1.0.11
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15562. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15563. no_alsa=""
  15564. alsa_min_major_version=`echo $min_alsa_version | \
  15565. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15566. alsa_min_minor_version=`echo $min_alsa_version | \
  15567. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15568. alsa_min_micro_version=`echo $min_alsa_version | \
  15569. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15570. ac_ext=c
  15571. ac_cpp='$CPP $CPPFLAGS'
  15572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15576. /* end confdefs.h. */
  15577. #include <alsa/asoundlib.h>
  15578. int
  15579. main ()
  15580. {
  15581. /* ensure backward compatibility */
  15582. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15583. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15584. #endif
  15585. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15586. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15587. #endif
  15588. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15589. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15590. #endif
  15591. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15592. exit(0);
  15593. # else
  15594. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15595. # error not present
  15596. # endif
  15597. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15598. exit(0);
  15599. # else
  15600. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15601. # error not present
  15602. # endif
  15603. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15604. # error not present
  15605. # endif
  15606. # endif
  15607. # endif
  15608. exit(0);
  15609. ;
  15610. return 0;
  15611. }
  15612. _ACEOF
  15613. if ac_fn_c_try_compile "$LINENO"; then :
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15615. $as_echo "found." >&6; }
  15616. else
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15618. $as_echo "not present." >&6; }
  15619. alsa_found=no
  15620. fi
  15621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15622. ac_ext=c
  15623. ac_cpp='$CPP $CPPFLAGS'
  15624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15627. if test "x$enable_alsatest" = "xyes"; then
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15629. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15630. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15631. $as_echo_n "(cached) " >&6
  15632. else
  15633. ac_check_lib_save_LIBS=$LIBS
  15634. LIBS="-lasound $LIBS"
  15635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15636. /* end confdefs.h. */
  15637. /* Override any GCC internal prototype to avoid an error.
  15638. Use char because int might match the return type of a GCC
  15639. builtin and then its argument prototype would still apply. */
  15640. #ifdef __cplusplus
  15641. extern "C"
  15642. #endif
  15643. char snd_ctl_open ();
  15644. int
  15645. main ()
  15646. {
  15647. return snd_ctl_open ();
  15648. ;
  15649. return 0;
  15650. }
  15651. _ACEOF
  15652. if ac_fn_c_try_link "$LINENO"; then :
  15653. ac_cv_lib_asound_snd_ctl_open=yes
  15654. else
  15655. ac_cv_lib_asound_snd_ctl_open=no
  15656. fi
  15657. rm -f core conftest.err conftest.$ac_objext \
  15658. conftest$ac_exeext conftest.$ac_ext
  15659. LIBS=$ac_check_lib_save_LIBS
  15660. fi
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15662. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15663. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15664. cat >>confdefs.h <<_ACEOF
  15665. #define HAVE_LIBASOUND 1
  15666. _ACEOF
  15667. LIBS="-lasound $LIBS"
  15668. else
  15669. alsa_found=no
  15670. fi
  15671. fi
  15672. if test "x$alsa_found" = "xyes" ; then
  15673. have_alsa=yes
  15674. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15675. LIBS=`echo $LIBS | sed 's/ //'`
  15676. LIBS="-lasound $LIBS"
  15677. fi
  15678. if test "x$alsa_found" = "xno" ; then
  15679. have_alsa=no
  15680. CFLAGS="$alsa_save_CFLAGS"
  15681. LDFLAGS="$alsa_save_LDFLAGS"
  15682. LIBS="$alsa_save_LIBS"
  15683. ALSA_CFLAGS=""
  15684. ALSA_LIBS=""
  15685. fi
  15686. # Restore all flags from before the ALSA detection runs
  15687. CFLAGS="$alsa_save_CFLAGS"
  15688. LDFLAGS="$alsa_save_LDFLAGS"
  15689. LIBS="$alsa_save_LIBS"
  15690. if test x$have_alsa = xyes; then
  15691. # Check whether --enable-alsa-shared was given.
  15692. if test "${enable_alsa_shared+set}" = set; then :
  15693. enableval=$enable_alsa_shared;
  15694. else
  15695. enable_alsa_shared=yes
  15696. fi
  15697. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15698. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15699. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15700. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15701. if test x$have_loadso != xyes && \
  15702. test x$enable_alsa_shared = xyes; then
  15703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15704. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15705. fi
  15706. if test x$have_loadso = xyes && \
  15707. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15708. echo "-- dynamic libasound -> $alsa_lib"
  15709. cat >>confdefs.h <<_ACEOF
  15710. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15711. _ACEOF
  15712. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15713. else
  15714. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15715. SUMMARY_audio="${SUMMARY_audio} alsa"
  15716. fi
  15717. have_audio=yes
  15718. fi
  15719. fi
  15720. }
  15721. CheckJACK()
  15722. {
  15723. # Check whether --enable-jack was given.
  15724. if test "${enable_jack+set}" = set; then :
  15725. enableval=$enable_jack;
  15726. else
  15727. enable_jack=yes
  15728. fi
  15729. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15730. pkg_failed=no
  15731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15732. $as_echo_n "checking for JACK... " >&6; }
  15733. if test -n "$JACK_CFLAGS"; then
  15734. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15735. elif test -n "$PKG_CONFIG"; then
  15736. if test -n "$PKG_CONFIG" && \
  15737. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15738. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15739. ac_status=$?
  15740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15741. test $ac_status = 0; }; then
  15742. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15743. else
  15744. pkg_failed=yes
  15745. fi
  15746. else
  15747. pkg_failed=untried
  15748. fi
  15749. if test -n "$JACK_LIBS"; then
  15750. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15751. elif test -n "$PKG_CONFIG"; then
  15752. if test -n "$PKG_CONFIG" && \
  15753. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15754. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15755. ac_status=$?
  15756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15757. test $ac_status = 0; }; then
  15758. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15759. else
  15760. pkg_failed=yes
  15761. fi
  15762. else
  15763. pkg_failed=untried
  15764. fi
  15765. if test $pkg_failed = yes; then
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15767. $as_echo "no" >&6; }
  15768. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15769. _pkg_short_errors_supported=yes
  15770. else
  15771. _pkg_short_errors_supported=no
  15772. fi
  15773. if test $_pkg_short_errors_supported = yes; then
  15774. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15775. else
  15776. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15777. fi
  15778. # Put the nasty error message in config.log where it belongs
  15779. echo "$JACK_PKG_ERRORS" >&5
  15780. audio_jack=no
  15781. elif test $pkg_failed = untried; then
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15783. $as_echo "no" >&6; }
  15784. audio_jack=no
  15785. else
  15786. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15787. JACK_LIBS=$pkg_cv_JACK_LIBS
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15789. $as_echo "yes" >&6; }
  15790. audio_jack=yes
  15791. fi
  15792. if test x$audio_jack = xyes; then
  15793. # Check whether --enable-jack-shared was given.
  15794. if test "${enable_jack_shared+set}" = set; then :
  15795. enableval=$enable_jack_shared;
  15796. else
  15797. enable_jack_shared=yes
  15798. fi
  15799. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15800. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15801. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15802. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15803. if test x$have_loadso != xyes && \
  15804. test x$enable_jack_shared = xyes; then
  15805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15806. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15807. fi
  15808. if test x$have_loadso = xyes && \
  15809. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15810. echo "-- dynamic libjack -> $jack_lib"
  15811. cat >>confdefs.h <<_ACEOF
  15812. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15813. _ACEOF
  15814. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15815. case "$host" in
  15816. # On Solaris, jack must be linked deferred explicitly
  15817. # to prevent undefined symbol failures.
  15818. *-*-solaris*)
  15819. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15820. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15821. esac
  15822. else
  15823. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15824. SUMMARY_audio="${SUMMARY_audio} jack"
  15825. fi
  15826. have_audio=yes
  15827. fi
  15828. fi
  15829. }
  15830. CheckESD()
  15831. {
  15832. # Check whether --enable-esd was given.
  15833. if test "${enable_esd+set}" = set; then :
  15834. enableval=$enable_esd;
  15835. else
  15836. enable_esd=yes
  15837. fi
  15838. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15839. # Check whether --with-esd-prefix was given.
  15840. if test "${with_esd_prefix+set}" = set; then :
  15841. withval=$with_esd_prefix; esd_prefix="$withval"
  15842. else
  15843. esd_prefix=""
  15844. fi
  15845. # Check whether --with-esd-exec-prefix was given.
  15846. if test "${with_esd_exec_prefix+set}" = set; then :
  15847. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15848. else
  15849. esd_exec_prefix=""
  15850. fi
  15851. # Check whether --enable-esdtest was given.
  15852. if test "${enable_esdtest+set}" = set; then :
  15853. enableval=$enable_esdtest;
  15854. else
  15855. enable_esdtest=yes
  15856. fi
  15857. if test x$esd_exec_prefix != x ; then
  15858. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15859. if test x${ESD_CONFIG+set} != xset ; then
  15860. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15861. fi
  15862. fi
  15863. if test x$esd_prefix != x ; then
  15864. esd_args="$esd_args --prefix=$esd_prefix"
  15865. if test x${ESD_CONFIG+set} != xset ; then
  15866. ESD_CONFIG=$esd_prefix/bin/esd-config
  15867. fi
  15868. fi
  15869. # Extract the first word of "esd-config", so it can be a program name with args.
  15870. set dummy esd-config; ac_word=$2
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15872. $as_echo_n "checking for $ac_word... " >&6; }
  15873. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15874. $as_echo_n "(cached) " >&6
  15875. else
  15876. case $ESD_CONFIG in
  15877. [\\/]* | ?:[\\/]*)
  15878. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15879. ;;
  15880. *)
  15881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15882. for as_dir in $PATH
  15883. do
  15884. IFS=$as_save_IFS
  15885. test -z "$as_dir" && as_dir=.
  15886. for ac_exec_ext in '' $ac_executable_extensions; do
  15887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15888. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15890. break 2
  15891. fi
  15892. done
  15893. done
  15894. IFS=$as_save_IFS
  15895. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15896. ;;
  15897. esac
  15898. fi
  15899. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15900. if test -n "$ESD_CONFIG"; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15902. $as_echo "$ESD_CONFIG" >&6; }
  15903. else
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15905. $as_echo "no" >&6; }
  15906. fi
  15907. min_esd_version=0.2.8
  15908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15909. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15910. no_esd=""
  15911. if test "$ESD_CONFIG" = "no" ; then
  15912. no_esd=yes
  15913. else
  15914. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15915. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15916. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15917. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15918. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15919. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15920. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15921. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15922. if test "x$enable_esdtest" = "xyes" ; then
  15923. ac_save_CFLAGS="$CFLAGS"
  15924. ac_save_LIBS="$LIBS"
  15925. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15926. LIBS="$LIBS $ESD_LIBS"
  15927. rm -f conf.esdtest
  15928. if test "$cross_compiling" = yes; then :
  15929. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15930. else
  15931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15932. /* end confdefs.h. */
  15933. #include <stdio.h>
  15934. #include <stdlib.h>
  15935. #include <string.h>
  15936. #include <esd.h>
  15937. char*
  15938. my_strdup (char *str)
  15939. {
  15940. char *new_str;
  15941. if (str)
  15942. {
  15943. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15944. strcpy (new_str, str);
  15945. }
  15946. else
  15947. new_str = NULL;
  15948. return new_str;
  15949. }
  15950. int main ()
  15951. {
  15952. int major, minor, micro;
  15953. char *tmp_version;
  15954. system ("touch conf.esdtest");
  15955. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15956. tmp_version = my_strdup("$min_esd_version");
  15957. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15958. printf("%s, bad version string\n", "$min_esd_version");
  15959. exit(1);
  15960. }
  15961. if (($esd_major_version > major) ||
  15962. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15963. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15964. {
  15965. return 0;
  15966. }
  15967. else
  15968. {
  15969. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15970. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15971. printf("*** best to upgrade to the required version.\n");
  15972. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15973. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15974. printf("*** config.cache before re-running configure\n");
  15975. return 1;
  15976. }
  15977. }
  15978. _ACEOF
  15979. if ac_fn_c_try_run "$LINENO"; then :
  15980. else
  15981. no_esd=yes
  15982. fi
  15983. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15984. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15985. fi
  15986. CFLAGS="$ac_save_CFLAGS"
  15987. LIBS="$ac_save_LIBS"
  15988. fi
  15989. fi
  15990. if test "x$no_esd" = x ; then
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15992. $as_echo "yes" >&6; }
  15993. have_esd=yes
  15994. else
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15996. $as_echo "no" >&6; }
  15997. if test "$ESD_CONFIG" = "no" ; then
  15998. echo "*** The esd-config script installed by ESD could not be found"
  15999. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16000. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16001. echo "*** full path to esd-config."
  16002. else
  16003. if test -f conf.esdtest ; then
  16004. :
  16005. else
  16006. echo "*** Could not run ESD test program, checking why..."
  16007. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16008. LIBS="$LIBS $ESD_LIBS"
  16009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16010. /* end confdefs.h. */
  16011. #include <stdio.h>
  16012. #include <esd.h>
  16013. int
  16014. main ()
  16015. {
  16016. return 0;
  16017. ;
  16018. return 0;
  16019. }
  16020. _ACEOF
  16021. if ac_fn_c_try_link "$LINENO"; then :
  16022. echo "*** The test program compiled, but did not run. This usually means"
  16023. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16024. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16025. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16026. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16027. echo "*** is required on your system"
  16028. echo "***"
  16029. echo "*** If you have an old version installed, it is best to remove it, although"
  16030. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16031. else
  16032. echo "*** The test program failed to compile or link. See the file config.log for the"
  16033. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16034. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16035. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16036. fi
  16037. rm -f core conftest.err conftest.$ac_objext \
  16038. conftest$ac_exeext conftest.$ac_ext
  16039. CFLAGS="$ac_save_CFLAGS"
  16040. LIBS="$ac_save_LIBS"
  16041. fi
  16042. fi
  16043. ESD_CFLAGS=""
  16044. ESD_LIBS=""
  16045. have_esd=no
  16046. fi
  16047. rm -f conf.esdtest
  16048. if test x$have_esd = xyes; then
  16049. # Check whether --enable-esd-shared was given.
  16050. if test "${enable_esd_shared+set}" = set; then :
  16051. enableval=$enable_esd_shared;
  16052. else
  16053. enable_esd_shared=yes
  16054. fi
  16055. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16056. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16057. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16058. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16059. if test x$have_loadso != xyes && \
  16060. test x$enable_esd_shared = xyes; then
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16062. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16063. fi
  16064. if test x$have_loadso = xyes && \
  16065. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16066. echo "-- dynamic libesd -> $esd_lib"
  16067. cat >>confdefs.h <<_ACEOF
  16068. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16069. _ACEOF
  16070. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16071. else
  16072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16073. SUMMARY_audio="${SUMMARY_audio} esd"
  16074. fi
  16075. have_audio=yes
  16076. fi
  16077. fi
  16078. }
  16079. CheckPulseAudio()
  16080. {
  16081. # Check whether --enable-pulseaudio was given.
  16082. if test "${enable_pulseaudio+set}" = set; then :
  16083. enableval=$enable_pulseaudio;
  16084. else
  16085. enable_pulseaudio=yes
  16086. fi
  16087. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16088. pkg_failed=no
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16090. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16091. if test -n "$PULSEAUDIO_CFLAGS"; then
  16092. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16093. elif test -n "$PKG_CONFIG"; then
  16094. if test -n "$PKG_CONFIG" && \
  16095. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16096. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16097. ac_status=$?
  16098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16099. test $ac_status = 0; }; then
  16100. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16101. else
  16102. pkg_failed=yes
  16103. fi
  16104. else
  16105. pkg_failed=untried
  16106. fi
  16107. if test -n "$PULSEAUDIO_LIBS"; then
  16108. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16109. elif test -n "$PKG_CONFIG"; then
  16110. if test -n "$PKG_CONFIG" && \
  16111. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16112. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16113. ac_status=$?
  16114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16115. test $ac_status = 0; }; then
  16116. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16117. else
  16118. pkg_failed=yes
  16119. fi
  16120. else
  16121. pkg_failed=untried
  16122. fi
  16123. if test $pkg_failed = yes; then
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16125. $as_echo "no" >&6; }
  16126. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16127. _pkg_short_errors_supported=yes
  16128. else
  16129. _pkg_short_errors_supported=no
  16130. fi
  16131. if test $_pkg_short_errors_supported = yes; then
  16132. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16133. else
  16134. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16135. fi
  16136. # Put the nasty error message in config.log where it belongs
  16137. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16138. audio_pulseaudio=no
  16139. elif test $pkg_failed = untried; then
  16140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16141. $as_echo "no" >&6; }
  16142. audio_pulseaudio=no
  16143. else
  16144. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16145. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16147. $as_echo "yes" >&6; }
  16148. audio_pulseaudio=yes
  16149. fi
  16150. if test x$audio_pulseaudio = xyes; then
  16151. # Check whether --enable-pulseaudio-shared was given.
  16152. if test "${enable_pulseaudio_shared+set}" = set; then :
  16153. enableval=$enable_pulseaudio_shared;
  16154. else
  16155. enable_pulseaudio_shared=yes
  16156. fi
  16157. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16158. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16159. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16160. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16161. if test x$have_loadso != xyes && \
  16162. test x$enable_pulseaudio_shared = xyes; then
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16164. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16165. fi
  16166. if test x$have_loadso = xyes && \
  16167. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16168. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16169. cat >>confdefs.h <<_ACEOF
  16170. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16171. _ACEOF
  16172. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16173. case "$host" in
  16174. # On Solaris, pulseaudio must be linked deferred explicitly
  16175. # to prevent undefined symbol failures.
  16176. *-*-solaris*)
  16177. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16179. esac
  16180. else
  16181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16182. SUMMARY_audio="${SUMMARY_audio} pulse"
  16183. fi
  16184. have_audio=yes
  16185. fi
  16186. fi
  16187. }
  16188. CheckARTSC()
  16189. {
  16190. # Check whether --enable-arts was given.
  16191. if test "${enable_arts+set}" = set; then :
  16192. enableval=$enable_arts;
  16193. else
  16194. enable_arts=yes
  16195. fi
  16196. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16197. # Extract the first word of "artsc-config", so it can be a program name with args.
  16198. set dummy artsc-config; ac_word=$2
  16199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16200. $as_echo_n "checking for $ac_word... " >&6; }
  16201. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16202. $as_echo_n "(cached) " >&6
  16203. else
  16204. case $ARTSCONFIG in
  16205. [\\/]* | ?:[\\/]*)
  16206. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16207. ;;
  16208. *)
  16209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16210. for as_dir in $PATH
  16211. do
  16212. IFS=$as_save_IFS
  16213. test -z "$as_dir" && as_dir=.
  16214. for ac_exec_ext in '' $ac_executable_extensions; do
  16215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16216. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16218. break 2
  16219. fi
  16220. done
  16221. done
  16222. IFS=$as_save_IFS
  16223. ;;
  16224. esac
  16225. fi
  16226. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16227. if test -n "$ARTSCONFIG"; then
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16229. $as_echo "$ARTSCONFIG" >&6; }
  16230. else
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16232. $as_echo "no" >&6; }
  16233. fi
  16234. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16235. : # arts isn't installed
  16236. else
  16237. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16238. ARTS_LIBS=`$ARTSCONFIG --libs`
  16239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16240. $as_echo_n "checking for aRts development environment... " >&6; }
  16241. audio_arts=no
  16242. save_CFLAGS="$CFLAGS"
  16243. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16245. /* end confdefs.h. */
  16246. #include <artsc.h>
  16247. int
  16248. main ()
  16249. {
  16250. arts_stream_t stream;
  16251. ;
  16252. return 0;
  16253. }
  16254. _ACEOF
  16255. if ac_fn_c_try_compile "$LINENO"; then :
  16256. audio_arts=yes
  16257. fi
  16258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16259. CFLAGS="$save_CFLAGS"
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16261. $as_echo "$audio_arts" >&6; }
  16262. if test x$audio_arts = xyes; then
  16263. # Check whether --enable-arts-shared was given.
  16264. if test "${enable_arts_shared+set}" = set; then :
  16265. enableval=$enable_arts_shared;
  16266. else
  16267. enable_arts_shared=yes
  16268. fi
  16269. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16270. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16271. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16272. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16273. if test x$have_loadso != xyes && \
  16274. test x$enable_arts_shared = xyes; then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16276. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16277. fi
  16278. if test x$have_loadso = xyes && \
  16279. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16280. echo "-- dynamic libartsc -> $arts_lib"
  16281. cat >>confdefs.h <<_ACEOF
  16282. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16283. _ACEOF
  16284. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16285. else
  16286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16287. SUMMARY_audio="${SUMMARY_audio} arts"
  16288. fi
  16289. have_audio=yes
  16290. fi
  16291. fi
  16292. fi
  16293. }
  16294. CheckNAS()
  16295. {
  16296. # Check whether --enable-nas was given.
  16297. if test "${enable_nas+set}" = set; then :
  16298. enableval=$enable_nas;
  16299. else
  16300. enable_nas=yes
  16301. fi
  16302. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16303. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16304. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16305. have_nas_hdr=yes
  16306. fi
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16308. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16309. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16310. $as_echo_n "(cached) " >&6
  16311. else
  16312. ac_check_lib_save_LIBS=$LIBS
  16313. LIBS="-laudio $LIBS"
  16314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16315. /* end confdefs.h. */
  16316. /* Override any GCC internal prototype to avoid an error.
  16317. Use char because int might match the return type of a GCC
  16318. builtin and then its argument prototype would still apply. */
  16319. #ifdef __cplusplus
  16320. extern "C"
  16321. #endif
  16322. char AuOpenServer ();
  16323. int
  16324. main ()
  16325. {
  16326. return AuOpenServer ();
  16327. ;
  16328. return 0;
  16329. }
  16330. _ACEOF
  16331. if ac_fn_c_try_link "$LINENO"; then :
  16332. ac_cv_lib_audio_AuOpenServer=yes
  16333. else
  16334. ac_cv_lib_audio_AuOpenServer=no
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext \
  16337. conftest$ac_exeext conftest.$ac_ext
  16338. LIBS=$ac_check_lib_save_LIBS
  16339. fi
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16341. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16342. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16343. have_nas_lib=yes
  16344. fi
  16345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16346. $as_echo_n "checking for NAS audio support... " >&6; }
  16347. have_nas=no
  16348. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16349. have_nas=yes
  16350. NAS_LIBS="-laudio"
  16351. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16352. have_nas=yes
  16353. NAS_CFLAGS="-I/usr/X11R6/include/"
  16354. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16355. fi
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16357. $as_echo "$have_nas" >&6; }
  16358. if test x$have_nas = xyes; then
  16359. # Check whether --enable-nas-shared was given.
  16360. if test "${enable_nas_shared+set}" = set; then :
  16361. enableval=$enable_nas_shared;
  16362. else
  16363. enable_nas_shared=yes
  16364. fi
  16365. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16366. if test x$have_loadso != xyes && \
  16367. test x$enable_nas_shared = xyes; then
  16368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16369. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16370. fi
  16371. if test x$have_loadso = xyes && \
  16372. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16373. echo "-- dynamic libaudio -> $nas_lib"
  16374. cat >>confdefs.h <<_ACEOF
  16375. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16376. _ACEOF
  16377. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16378. else
  16379. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16380. SUMMARY_audio="${SUMMARY_audio} nas"
  16381. fi
  16382. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16383. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16384. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16385. have_audio=yes
  16386. fi
  16387. fi
  16388. }
  16389. CheckSNDIO()
  16390. {
  16391. # Check whether --enable-sndio was given.
  16392. if test "${enable_sndio+set}" = set; then :
  16393. enableval=$enable_sndio;
  16394. else
  16395. enable_sndio=yes
  16396. fi
  16397. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16398. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16399. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16400. have_sndio_hdr=yes
  16401. fi
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16403. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16404. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16405. $as_echo_n "(cached) " >&6
  16406. else
  16407. ac_check_lib_save_LIBS=$LIBS
  16408. LIBS="-lsndio $LIBS"
  16409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16410. /* end confdefs.h. */
  16411. /* Override any GCC internal prototype to avoid an error.
  16412. Use char because int might match the return type of a GCC
  16413. builtin and then its argument prototype would still apply. */
  16414. #ifdef __cplusplus
  16415. extern "C"
  16416. #endif
  16417. char sio_open ();
  16418. int
  16419. main ()
  16420. {
  16421. return sio_open ();
  16422. ;
  16423. return 0;
  16424. }
  16425. _ACEOF
  16426. if ac_fn_c_try_link "$LINENO"; then :
  16427. ac_cv_lib_sndio_sio_open=yes
  16428. else
  16429. ac_cv_lib_sndio_sio_open=no
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext \
  16432. conftest$ac_exeext conftest.$ac_ext
  16433. LIBS=$ac_check_lib_save_LIBS
  16434. fi
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16436. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16437. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16438. have_sndio_lib=yes
  16439. fi
  16440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16441. $as_echo_n "checking for sndio audio support... " >&6; }
  16442. have_sndio=no
  16443. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16444. have_sndio=yes
  16445. SNDIO_LIBS="-lsndio"
  16446. fi
  16447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16448. $as_echo "$have_sndio" >&6; }
  16449. if test x$have_sndio = xyes; then
  16450. # Check whether --enable-sndio-shared was given.
  16451. if test "${enable_sndio_shared+set}" = set; then :
  16452. enableval=$enable_sndio_shared;
  16453. else
  16454. enable_sndio_shared=yes
  16455. fi
  16456. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16457. if test x$have_loadso != xyes && \
  16458. test x$enable_sndio_shared = xyes; then
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16460. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16461. fi
  16462. if test x$have_loadso = xyes && \
  16463. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16464. echo "-- dynamic libsndio -> $sndio_lib"
  16465. cat >>confdefs.h <<_ACEOF
  16466. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16467. _ACEOF
  16468. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16469. else
  16470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16471. SUMMARY_audio="${SUMMARY_audio} sndio"
  16472. fi
  16473. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16474. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16475. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16476. have_audio=yes
  16477. fi
  16478. fi
  16479. }
  16480. CheckFusionSound()
  16481. {
  16482. # Check whether --enable-fusionsound was given.
  16483. if test "${enable_fusionsound+set}" = set; then :
  16484. enableval=$enable_fusionsound;
  16485. else
  16486. enable_fusionsound=no
  16487. fi
  16488. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16489. pkg_failed=no
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16491. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16492. if test -n "$FUSIONSOUND_CFLAGS"; then
  16493. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16494. elif test -n "$PKG_CONFIG"; then
  16495. if test -n "$PKG_CONFIG" && \
  16496. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16497. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16498. ac_status=$?
  16499. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16500. test $ac_status = 0; }; then
  16501. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16502. else
  16503. pkg_failed=yes
  16504. fi
  16505. else
  16506. pkg_failed=untried
  16507. fi
  16508. if test -n "$FUSIONSOUND_LIBS"; then
  16509. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16510. elif test -n "$PKG_CONFIG"; then
  16511. if test -n "$PKG_CONFIG" && \
  16512. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16513. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16514. ac_status=$?
  16515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16516. test $ac_status = 0; }; then
  16517. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16518. else
  16519. pkg_failed=yes
  16520. fi
  16521. else
  16522. pkg_failed=untried
  16523. fi
  16524. if test $pkg_failed = yes; then
  16525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16526. $as_echo "no" >&6; }
  16527. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16528. _pkg_short_errors_supported=yes
  16529. else
  16530. _pkg_short_errors_supported=no
  16531. fi
  16532. if test $_pkg_short_errors_supported = yes; then
  16533. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16534. else
  16535. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16536. fi
  16537. # Put the nasty error message in config.log where it belongs
  16538. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16539. fusionsound=no
  16540. elif test $pkg_failed = untried; then
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16542. $as_echo "no" >&6; }
  16543. fusionsound=no
  16544. else
  16545. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16546. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16548. $as_echo "yes" >&6; }
  16549. fusionsound=yes
  16550. fi
  16551. if test x$fusionsound = xyes; then
  16552. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16553. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16554. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16555. # Check whether --enable-fusionsound-shared was given.
  16556. if test "${enable_fusionsound_shared+set}" = set; then :
  16557. enableval=$enable_fusionsound_shared;
  16558. else
  16559. enable_fusionsound_shared=yes
  16560. fi
  16561. fusionsound_shared=no
  16562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16563. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16564. if test x$have_loadso != xyes && \
  16565. test x$enable_fusionsound_shared = xyes; then
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16567. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16568. fi
  16569. if test x$have_loadso = xyes && \
  16570. test x$enable_fusionsound_shared = xyes; then
  16571. cat >>confdefs.h <<_ACEOF
  16572. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16573. _ACEOF
  16574. fusionsound_shared=yes
  16575. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16576. else
  16577. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16578. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16579. fi
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16581. $as_echo "$fusionsound_shared" >&6; }
  16582. have_audio=yes
  16583. fi
  16584. fi
  16585. }
  16586. CheckDiskAudio()
  16587. {
  16588. # Check whether --enable-diskaudio was given.
  16589. if test "${enable_diskaudio+set}" = set; then :
  16590. enableval=$enable_diskaudio;
  16591. else
  16592. enable_diskaudio=yes
  16593. fi
  16594. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16595. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16596. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16597. SUMMARY_audio="${SUMMARY_audio} disk"
  16598. fi
  16599. }
  16600. CheckDummyAudio()
  16601. {
  16602. # Check whether --enable-dummyaudio was given.
  16603. if test "${enable_dummyaudio+set}" = set; then :
  16604. enableval=$enable_dummyaudio;
  16605. else
  16606. enable_dummyaudio=yes
  16607. fi
  16608. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16609. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16610. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16611. SUMMARY_audio="${SUMMARY_audio} dummy"
  16612. fi
  16613. }
  16614. CheckLibSampleRate()
  16615. {
  16616. # Check whether --enable-libsamplerate was given.
  16617. if test "${enable_libsamplerate+set}" = set; then :
  16618. enableval=$enable_libsamplerate;
  16619. else
  16620. enable_libsamplerate=yes
  16621. fi
  16622. if test x$enable_libsamplerate = xyes; then
  16623. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16624. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16625. have_samplerate_h_hdr=yes
  16626. else
  16627. have_samplerate_h_hdr=no
  16628. fi
  16629. if test x$have_samplerate_h_hdr = xyes; then
  16630. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16631. # Check whether --enable-libsamplerate-shared was given.
  16632. if test "${enable_libsamplerate_shared+set}" = set; then :
  16633. enableval=$enable_libsamplerate_shared;
  16634. else
  16635. enable_libsamplerate_shared=yes
  16636. fi
  16637. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16638. if test x$have_loadso != xyes && \
  16639. test x$enable_libsamplerate_shared = xyes; then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16641. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16642. fi
  16643. if test x$have_loadso = xyes && \
  16644. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16645. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16646. cat >>confdefs.h <<_ACEOF
  16647. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16648. _ACEOF
  16649. else
  16650. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16651. fi
  16652. fi
  16653. fi
  16654. }
  16655. CheckARM()
  16656. {
  16657. # Check whether --enable-arm-simd was given.
  16658. if test "${enable_arm_simd+set}" = set; then :
  16659. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16660. else
  16661. enable_arm_simd=yes
  16662. fi
  16663. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16664. save_CFLAGS="$CFLAGS"
  16665. have_arm_simd=no
  16666. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16668. $as_echo_n "checking for ARM SIMD... " >&6; }
  16669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16670. /* end confdefs.h. */
  16671. .text
  16672. .arch armv6
  16673. .object_arch armv4
  16674. .arm
  16675. .altmacro
  16676. #ifndef __ARM_EABI__
  16677. #error EABI is required (to be sure that calling conventions are compatible)
  16678. #endif
  16679. pld [r0]
  16680. uqadd8 r0, r0, r0
  16681. _ACEOF
  16682. if ac_fn_c_try_compile "$LINENO"; then :
  16683. have_arm_simd=yes
  16684. fi
  16685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16687. $as_echo "$have_arm_simd" >&6; }
  16688. CFLAGS="$save_CFLAGS"
  16689. if test x$have_arm_simd = xyes; then
  16690. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16691. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16692. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16693. fi
  16694. fi
  16695. }
  16696. CheckNEON()
  16697. {
  16698. # Check whether --enable-arm-neon was given.
  16699. if test "${enable_arm_neon+set}" = set; then :
  16700. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16701. else
  16702. enable_arm_neon=yes
  16703. fi
  16704. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16705. save_CFLAGS="$CFLAGS"
  16706. have_arm_neon=no
  16707. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16709. $as_echo_n "checking for ARM NEON... " >&6; }
  16710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16711. /* end confdefs.h. */
  16712. .text
  16713. .fpu neon
  16714. .arch armv7a
  16715. .object_arch armv4
  16716. .eabi_attribute 10, 0
  16717. .arm
  16718. .altmacro
  16719. #ifndef __ARM_EABI__
  16720. #error EABI is required (to be sure that calling conventions are compatible)
  16721. #endif
  16722. pld [r0]
  16723. vmovn.u16 d0, q0
  16724. _ACEOF
  16725. if ac_fn_c_try_compile "$LINENO"; then :
  16726. have_arm_neon=yes
  16727. fi
  16728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16730. $as_echo "$have_arm_neon" >&6; }
  16731. CFLAGS="$save_CFLAGS"
  16732. if test x$have_arm_neon = xyes; then
  16733. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16734. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16735. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16736. fi
  16737. fi
  16738. }
  16739. CheckVisibilityHidden()
  16740. {
  16741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16742. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16743. have_gcc_fvisibility=no
  16744. visibility_CFLAGS="-fvisibility=hidden"
  16745. save_CFLAGS="$CFLAGS"
  16746. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16748. /* end confdefs.h. */
  16749. #if !defined(__GNUC__) || __GNUC__ < 4
  16750. #error SDL only uses visibility attributes in GCC 4 or newer
  16751. #endif
  16752. int
  16753. main ()
  16754. {
  16755. ;
  16756. return 0;
  16757. }
  16758. _ACEOF
  16759. if ac_fn_c_try_compile "$LINENO"; then :
  16760. have_gcc_fvisibility=yes
  16761. fi
  16762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16764. $as_echo "$have_gcc_fvisibility" >&6; }
  16765. CFLAGS="$save_CFLAGS"
  16766. if test x$have_gcc_fvisibility = xyes; then
  16767. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16768. fi
  16769. }
  16770. CheckNoStrictAliasing()
  16771. {
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16773. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16774. have_gcc_no_strict_aliasing=no
  16775. save_CFLAGS="$CFLAGS"
  16776. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16778. /* end confdefs.h. */
  16779. int x = 0;
  16780. int
  16781. main ()
  16782. {
  16783. ;
  16784. return 0;
  16785. }
  16786. _ACEOF
  16787. if ac_fn_c_try_compile "$LINENO"; then :
  16788. have_gcc_no_strict_aliasing=yes
  16789. fi
  16790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16792. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16793. CFLAGS="$save_CFLAGS"
  16794. if test x$have_gcc_no_strict_aliasing = xyes; then
  16795. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16796. fi
  16797. }
  16798. CheckStackBoundary()
  16799. {
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16801. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16802. have_gcc_preferred_stack_boundary=no
  16803. save_CFLAGS="$CFLAGS"
  16804. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16806. /* end confdefs.h. */
  16807. int x = 0;
  16808. int
  16809. main ()
  16810. {
  16811. ;
  16812. return 0;
  16813. }
  16814. _ACEOF
  16815. if ac_fn_c_try_compile "$LINENO"; then :
  16816. have_gcc_preferred_stack_boundary=yes
  16817. fi
  16818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16820. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16821. CFLAGS="$save_CFLAGS"
  16822. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16823. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16824. fi
  16825. }
  16826. CheckDeclarationAfterStatement()
  16827. {
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16829. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16830. have_gcc_declaration_after_statement=no
  16831. save_CFLAGS="$CFLAGS"
  16832. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16834. /* end confdefs.h. */
  16835. int x = 0;
  16836. int
  16837. main ()
  16838. {
  16839. ;
  16840. return 0;
  16841. }
  16842. _ACEOF
  16843. if ac_fn_c_try_compile "$LINENO"; then :
  16844. have_gcc_declaration_after_statement=yes
  16845. fi
  16846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16848. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16849. CFLAGS="$save_CFLAGS"
  16850. if test x$have_gcc_declaration_after_statement = xyes; then
  16851. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16852. fi
  16853. }
  16854. CheckWarnAll()
  16855. {
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16857. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16858. have_gcc_Wall=no
  16859. save_CFLAGS="$CFLAGS"
  16860. CFLAGS="$save_CFLAGS -Wall"
  16861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16862. /* end confdefs.h. */
  16863. int x = 0;
  16864. int
  16865. main ()
  16866. {
  16867. ;
  16868. return 0;
  16869. }
  16870. _ACEOF
  16871. if ac_fn_c_try_compile "$LINENO"; then :
  16872. have_gcc_Wall=yes
  16873. fi
  16874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16876. $as_echo "$have_gcc_Wall" >&6; }
  16877. CFLAGS="$save_CFLAGS"
  16878. if test x$have_gcc_Wall = xyes; then
  16879. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16881. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16882. need_gcc_Wno_multichar=no
  16883. case "$host" in
  16884. *-*-haiku*)
  16885. need_gcc_Wno_multichar=yes
  16886. ;;
  16887. esac
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16889. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16890. if test x$need_gcc_Wno_multichar = xyes; then
  16891. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16892. fi
  16893. fi
  16894. }
  16895. CheckWayland()
  16896. {
  16897. # Check whether --enable-video-wayland was given.
  16898. if test "${enable_video_wayland+set}" = set; then :
  16899. enableval=$enable_video_wayland;
  16900. else
  16901. enable_video_wayland=yes
  16902. fi
  16903. # Check whether --enable-video-wayland-qt-touch was given.
  16904. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16905. enableval=$enable_video_wayland_qt_touch;
  16906. else
  16907. enable_video_wayland_qt_touch=yes
  16908. fi
  16909. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16911. $as_echo_n "checking for Wayland support... " >&6; }
  16912. video_wayland=no
  16913. if test x$video_opengl_egl = xyes && \
  16914. test x$video_opengles_v2 = xyes; then
  16915. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16916. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16917. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16918. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16919. video_wayland=yes
  16920. fi
  16921. fi
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16923. $as_echo "$video_wayland" >&6; }
  16924. if test x$video_wayland = xyes; then
  16925. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16926. if test x$enable_video_wayland_qt_touch = xyes; then
  16927. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16928. fi
  16929. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16930. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16931. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16932. # Check whether --enable-wayland-shared was given.
  16933. if test "${enable_wayland_shared+set}" = set; then :
  16934. enableval=$enable_wayland_shared;
  16935. else
  16936. enable_wayland_shared=maybe
  16937. fi
  16938. case "$host" in
  16939. *)
  16940. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16941. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16942. if test x$wayland_egl_lib = x; then
  16943. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16944. fi
  16945. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16946. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16947. ;;
  16948. esac
  16949. if test x$enable_wayland_shared = xmaybe; then
  16950. enable_wayland_shared=yes
  16951. fi
  16952. if test x$have_loadso != xyes && \
  16953. test x$enable_wayland_shared = xyes; then
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16955. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16956. enable_wayland_shared=no
  16957. fi
  16958. if test x$have_loadso = xyes && \
  16959. test x$enable_wayland_shared = xyes && \
  16960. test x$wayland_client_lib != x && \
  16961. test x$wayland_egl_lib != x && \
  16962. test x$wayland_cursor_lib != x && \
  16963. test x$xkbcommon_lib != x; then
  16964. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16965. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16966. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16967. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16968. cat >>confdefs.h <<_ACEOF
  16969. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16970. _ACEOF
  16971. cat >>confdefs.h <<_ACEOF
  16972. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16973. _ACEOF
  16974. cat >>confdefs.h <<_ACEOF
  16975. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16976. _ACEOF
  16977. cat >>confdefs.h <<_ACEOF
  16978. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16979. _ACEOF
  16980. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16981. else
  16982. enable_wayland_shared=no
  16983. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16984. SUMMARY_video="${SUMMARY_video} wayland"
  16985. fi
  16986. have_video=yes
  16987. fi
  16988. fi
  16989. }
  16990. CheckNativeClient()
  16991. {
  16992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16993. /* end confdefs.h. */
  16994. #if !defined(__native_client__)
  16995. #error "NO NACL"
  16996. #endif
  16997. int
  16998. main ()
  16999. {
  17000. ;
  17001. return 0;
  17002. }
  17003. _ACEOF
  17004. if ac_fn_c_try_compile "$LINENO"; then :
  17005. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17006. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17007. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17008. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17009. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17010. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17011. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17012. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17013. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17014. SUMMARY_audio="${SUMMARY_audio} nacl"
  17015. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17016. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17017. fi
  17018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17019. }
  17020. CheckRPI()
  17021. {
  17022. # Check whether --enable-video-rpi was given.
  17023. if test "${enable_video_rpi+set}" = set; then :
  17024. enableval=$enable_video_rpi;
  17025. else
  17026. enable_video_rpi=yes
  17027. fi
  17028. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17029. pkg_failed=no
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17031. $as_echo_n "checking for RPI... " >&6; }
  17032. if test -n "$RPI_CFLAGS"; then
  17033. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17034. elif test -n "$PKG_CONFIG"; then
  17035. if test -n "$PKG_CONFIG" && \
  17036. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17037. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17038. ac_status=$?
  17039. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17040. test $ac_status = 0; }; then
  17041. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17042. else
  17043. pkg_failed=yes
  17044. fi
  17045. else
  17046. pkg_failed=untried
  17047. fi
  17048. if test -n "$RPI_LIBS"; then
  17049. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17050. elif test -n "$PKG_CONFIG"; then
  17051. if test -n "$PKG_CONFIG" && \
  17052. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17053. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17054. ac_status=$?
  17055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17056. test $ac_status = 0; }; then
  17057. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17058. else
  17059. pkg_failed=yes
  17060. fi
  17061. else
  17062. pkg_failed=untried
  17063. fi
  17064. if test $pkg_failed = yes; then
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17066. $as_echo "no" >&6; }
  17067. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17068. _pkg_short_errors_supported=yes
  17069. else
  17070. _pkg_short_errors_supported=no
  17071. fi
  17072. if test $_pkg_short_errors_supported = yes; then
  17073. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17074. else
  17075. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17076. fi
  17077. # Put the nasty error message in config.log where it belongs
  17078. echo "$RPI_PKG_ERRORS" >&5
  17079. video_rpi=no
  17080. elif test $pkg_failed = untried; then
  17081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17082. $as_echo "no" >&6; }
  17083. video_rpi=no
  17084. else
  17085. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17086. RPI_LIBS=$pkg_cv_RPI_LIBS
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17088. $as_echo "yes" >&6; }
  17089. video_rpi=yes
  17090. fi
  17091. if test x$video_rpi = xno; then
  17092. if test x$ARCH = xnetbsd; then
  17093. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17094. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17095. else
  17096. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17097. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17098. fi
  17099. fi
  17100. # Save the original compiler flags and libraries
  17101. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17102. # Add the Raspberry Pi compiler flags and libraries
  17103. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17105. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17106. have_video_rpi=no
  17107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17108. /* end confdefs.h. */
  17109. #include <bcm_host.h>
  17110. int
  17111. main ()
  17112. {
  17113. bcm_host_init();
  17114. ;
  17115. return 0;
  17116. }
  17117. _ACEOF
  17118. if ac_fn_c_try_link "$LINENO"; then :
  17119. have_video_rpi=yes
  17120. fi
  17121. rm -f core conftest.err conftest.$ac_objext \
  17122. conftest$ac_exeext conftest.$ac_ext
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17124. $as_echo "$have_video_rpi" >&6; }
  17125. # Restore the compiler flags and libraries
  17126. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17127. if test x$have_video_rpi = xyes; then
  17128. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17129. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17130. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17131. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17132. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17133. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17134. SUMMARY_video="${SUMMARY_video} rpi"
  17135. fi
  17136. fi
  17137. }
  17138. CheckX11()
  17139. {
  17140. # Check whether --enable-video-x11 was given.
  17141. if test "${enable_video_x11+set}" = set; then :
  17142. enableval=$enable_video_x11;
  17143. else
  17144. enable_video_x11=yes
  17145. fi
  17146. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17147. case "$host" in
  17148. *-*-darwin*)
  17149. # This isn't necessary for X11, but fixes GLX detection
  17150. if test "x$x_includes" = xNONE && \
  17151. test "x$x_libraries" = xNONE && \
  17152. test -d /opt/X11/include && \
  17153. test -d /opt/X11/lib; then
  17154. x_includes="/opt/X11/include"
  17155. x_libraries="/opt/X11/lib"
  17156. fi
  17157. ;;
  17158. esac
  17159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17160. $as_echo_n "checking for X... " >&6; }
  17161. # Check whether --with-x was given.
  17162. if test "${with_x+set}" = set; then :
  17163. withval=$with_x;
  17164. fi
  17165. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17166. if test "x$with_x" = xno; then
  17167. # The user explicitly disabled X.
  17168. have_x=disabled
  17169. else
  17170. case $x_includes,$x_libraries in #(
  17171. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17172. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17173. $as_echo_n "(cached) " >&6
  17174. else
  17175. # One or both of the vars are not set, and there is no cached value.
  17176. ac_x_includes=no ac_x_libraries=no
  17177. rm -f -r conftest.dir
  17178. if mkdir conftest.dir; then
  17179. cd conftest.dir
  17180. cat >Imakefile <<'_ACEOF'
  17181. incroot:
  17182. @echo incroot='${INCROOT}'
  17183. usrlibdir:
  17184. @echo usrlibdir='${USRLIBDIR}'
  17185. libdir:
  17186. @echo libdir='${LIBDIR}'
  17187. _ACEOF
  17188. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17189. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17190. for ac_var in incroot usrlibdir libdir; do
  17191. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17192. done
  17193. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17194. for ac_extension in a so sl dylib la dll; do
  17195. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17196. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17197. ac_im_usrlibdir=$ac_im_libdir; break
  17198. fi
  17199. done
  17200. # Screen out bogus values from the imake configuration. They are
  17201. # bogus both because they are the default anyway, and because
  17202. # using them would break gcc on systems where it needs fixed includes.
  17203. case $ac_im_incroot in
  17204. /usr/include) ac_x_includes= ;;
  17205. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17206. esac
  17207. case $ac_im_usrlibdir in
  17208. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17209. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17210. esac
  17211. fi
  17212. cd ..
  17213. rm -f -r conftest.dir
  17214. fi
  17215. # Standard set of common directories for X headers.
  17216. # Check X11 before X11Rn because it is often a symlink to the current release.
  17217. ac_x_header_dirs='
  17218. /usr/X11/include
  17219. /usr/X11R7/include
  17220. /usr/X11R6/include
  17221. /usr/X11R5/include
  17222. /usr/X11R4/include
  17223. /usr/include/X11
  17224. /usr/include/X11R7
  17225. /usr/include/X11R6
  17226. /usr/include/X11R5
  17227. /usr/include/X11R4
  17228. /usr/local/X11/include
  17229. /usr/local/X11R7/include
  17230. /usr/local/X11R6/include
  17231. /usr/local/X11R5/include
  17232. /usr/local/X11R4/include
  17233. /usr/local/include/X11
  17234. /usr/local/include/X11R7
  17235. /usr/local/include/X11R6
  17236. /usr/local/include/X11R5
  17237. /usr/local/include/X11R4
  17238. /usr/X386/include
  17239. /usr/x386/include
  17240. /usr/XFree86/include/X11
  17241. /usr/include
  17242. /usr/local/include
  17243. /usr/unsupported/include
  17244. /usr/athena/include
  17245. /usr/local/x11r5/include
  17246. /usr/lpp/Xamples/include
  17247. /usr/openwin/include
  17248. /usr/openwin/share/include'
  17249. if test "$ac_x_includes" = no; then
  17250. # Guess where to find include files, by looking for Xlib.h.
  17251. # First, try using that file with no special directory specified.
  17252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17253. /* end confdefs.h. */
  17254. #include <X11/Xlib.h>
  17255. _ACEOF
  17256. if ac_fn_c_try_cpp "$LINENO"; then :
  17257. # We can compile using X headers with no special include directory.
  17258. ac_x_includes=
  17259. else
  17260. for ac_dir in $ac_x_header_dirs; do
  17261. if test -r "$ac_dir/X11/Xlib.h"; then
  17262. ac_x_includes=$ac_dir
  17263. break
  17264. fi
  17265. done
  17266. fi
  17267. rm -f conftest.err conftest.i conftest.$ac_ext
  17268. fi # $ac_x_includes = no
  17269. if test "$ac_x_libraries" = no; then
  17270. # Check for the libraries.
  17271. # See if we find them without any special options.
  17272. # Don't add to $LIBS permanently.
  17273. ac_save_LIBS=$LIBS
  17274. LIBS="-lX11 $LIBS"
  17275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17276. /* end confdefs.h. */
  17277. #include <X11/Xlib.h>
  17278. int
  17279. main ()
  17280. {
  17281. XrmInitialize ()
  17282. ;
  17283. return 0;
  17284. }
  17285. _ACEOF
  17286. if ac_fn_c_try_link "$LINENO"; then :
  17287. LIBS=$ac_save_LIBS
  17288. # We can link X programs with no special library path.
  17289. ac_x_libraries=
  17290. else
  17291. LIBS=$ac_save_LIBS
  17292. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17293. do
  17294. # Don't even attempt the hair of trying to link an X program!
  17295. for ac_extension in a so sl dylib la dll; do
  17296. if test -r "$ac_dir/libX11.$ac_extension"; then
  17297. ac_x_libraries=$ac_dir
  17298. break 2
  17299. fi
  17300. done
  17301. done
  17302. fi
  17303. rm -f core conftest.err conftest.$ac_objext \
  17304. conftest$ac_exeext conftest.$ac_ext
  17305. fi # $ac_x_libraries = no
  17306. case $ac_x_includes,$ac_x_libraries in #(
  17307. no,* | *,no | *\'*)
  17308. # Didn't find X, or a directory has "'" in its name.
  17309. ac_cv_have_x="have_x=no";; #(
  17310. *)
  17311. # Record where we found X for the cache.
  17312. ac_cv_have_x="have_x=yes\
  17313. ac_x_includes='$ac_x_includes'\
  17314. ac_x_libraries='$ac_x_libraries'"
  17315. esac
  17316. fi
  17317. ;; #(
  17318. *) have_x=yes;;
  17319. esac
  17320. eval "$ac_cv_have_x"
  17321. fi # $with_x != no
  17322. if test "$have_x" != yes; then
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17324. $as_echo "$have_x" >&6; }
  17325. no_x=yes
  17326. else
  17327. # If each of the values was on the command line, it overrides each guess.
  17328. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17329. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17330. # Update the cache value to reflect the command line values.
  17331. ac_cv_have_x="have_x=yes\
  17332. ac_x_includes='$x_includes'\
  17333. ac_x_libraries='$x_libraries'"
  17334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17335. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17336. fi
  17337. if test "$no_x" = yes; then
  17338. # Not all programs may use this symbol, but it does not hurt to define it.
  17339. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17340. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17341. else
  17342. if test -n "$x_includes"; then
  17343. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17344. fi
  17345. # It would also be nice to do this for all -L options, not just this one.
  17346. if test -n "$x_libraries"; then
  17347. X_LIBS="$X_LIBS -L$x_libraries"
  17348. # For Solaris; some versions of Sun CC require a space after -R and
  17349. # others require no space. Words are not sufficient . . . .
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17351. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17352. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17353. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17354. ac_c_werror_flag=yes
  17355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17356. /* end confdefs.h. */
  17357. int
  17358. main ()
  17359. {
  17360. ;
  17361. return 0;
  17362. }
  17363. _ACEOF
  17364. if ac_fn_c_try_link "$LINENO"; then :
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17366. $as_echo "no" >&6; }
  17367. X_LIBS="$X_LIBS -R$x_libraries"
  17368. else
  17369. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17371. /* end confdefs.h. */
  17372. int
  17373. main ()
  17374. {
  17375. ;
  17376. return 0;
  17377. }
  17378. _ACEOF
  17379. if ac_fn_c_try_link "$LINENO"; then :
  17380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17381. $as_echo "yes" >&6; }
  17382. X_LIBS="$X_LIBS -R $x_libraries"
  17383. else
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17385. $as_echo "neither works" >&6; }
  17386. fi
  17387. rm -f core conftest.err conftest.$ac_objext \
  17388. conftest$ac_exeext conftest.$ac_ext
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext \
  17391. conftest$ac_exeext conftest.$ac_ext
  17392. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17393. LIBS=$ac_xsave_LIBS
  17394. fi
  17395. # Check for system-dependent libraries X programs must link with.
  17396. # Do this before checking for the system-independent R6 libraries
  17397. # (-lICE), since we may need -lsocket or whatever for X linking.
  17398. if test "$ISC" = yes; then
  17399. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17400. else
  17401. # Martyn Johnson says this is needed for Ultrix, if the X
  17402. # libraries were built with DECnet support. And Karl Berry says
  17403. # the Alpha needs dnet_stub (dnet does not exist).
  17404. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17406. /* end confdefs.h. */
  17407. /* Override any GCC internal prototype to avoid an error.
  17408. Use char because int might match the return type of a GCC
  17409. builtin and then its argument prototype would still apply. */
  17410. #ifdef __cplusplus
  17411. extern "C"
  17412. #endif
  17413. char XOpenDisplay ();
  17414. int
  17415. main ()
  17416. {
  17417. return XOpenDisplay ();
  17418. ;
  17419. return 0;
  17420. }
  17421. _ACEOF
  17422. if ac_fn_c_try_link "$LINENO"; then :
  17423. else
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17425. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17426. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17427. $as_echo_n "(cached) " >&6
  17428. else
  17429. ac_check_lib_save_LIBS=$LIBS
  17430. LIBS="-ldnet $LIBS"
  17431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17432. /* end confdefs.h. */
  17433. /* Override any GCC internal prototype to avoid an error.
  17434. Use char because int might match the return type of a GCC
  17435. builtin and then its argument prototype would still apply. */
  17436. #ifdef __cplusplus
  17437. extern "C"
  17438. #endif
  17439. char dnet_ntoa ();
  17440. int
  17441. main ()
  17442. {
  17443. return dnet_ntoa ();
  17444. ;
  17445. return 0;
  17446. }
  17447. _ACEOF
  17448. if ac_fn_c_try_link "$LINENO"; then :
  17449. ac_cv_lib_dnet_dnet_ntoa=yes
  17450. else
  17451. ac_cv_lib_dnet_dnet_ntoa=no
  17452. fi
  17453. rm -f core conftest.err conftest.$ac_objext \
  17454. conftest$ac_exeext conftest.$ac_ext
  17455. LIBS=$ac_check_lib_save_LIBS
  17456. fi
  17457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17458. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17459. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17460. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17461. fi
  17462. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17464. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17465. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17466. $as_echo_n "(cached) " >&6
  17467. else
  17468. ac_check_lib_save_LIBS=$LIBS
  17469. LIBS="-ldnet_stub $LIBS"
  17470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17471. /* end confdefs.h. */
  17472. /* Override any GCC internal prototype to avoid an error.
  17473. Use char because int might match the return type of a GCC
  17474. builtin and then its argument prototype would still apply. */
  17475. #ifdef __cplusplus
  17476. extern "C"
  17477. #endif
  17478. char dnet_ntoa ();
  17479. int
  17480. main ()
  17481. {
  17482. return dnet_ntoa ();
  17483. ;
  17484. return 0;
  17485. }
  17486. _ACEOF
  17487. if ac_fn_c_try_link "$LINENO"; then :
  17488. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17489. else
  17490. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17491. fi
  17492. rm -f core conftest.err conftest.$ac_objext \
  17493. conftest$ac_exeext conftest.$ac_ext
  17494. LIBS=$ac_check_lib_save_LIBS
  17495. fi
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17497. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17498. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17499. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17500. fi
  17501. fi
  17502. fi
  17503. rm -f core conftest.err conftest.$ac_objext \
  17504. conftest$ac_exeext conftest.$ac_ext
  17505. LIBS="$ac_xsave_LIBS"
  17506. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17507. # to get the SysV transport functions.
  17508. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17509. # needs -lnsl.
  17510. # The nsl library prevents programs from opening the X display
  17511. # on Irix 5.2, according to T.E. Dickey.
  17512. # The functions gethostbyname, getservbyname, and inet_addr are
  17513. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17514. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17515. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17516. fi
  17517. if test $ac_cv_func_gethostbyname = no; then
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17519. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17520. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17521. $as_echo_n "(cached) " >&6
  17522. else
  17523. ac_check_lib_save_LIBS=$LIBS
  17524. LIBS="-lnsl $LIBS"
  17525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17526. /* end confdefs.h. */
  17527. /* Override any GCC internal prototype to avoid an error.
  17528. Use char because int might match the return type of a GCC
  17529. builtin and then its argument prototype would still apply. */
  17530. #ifdef __cplusplus
  17531. extern "C"
  17532. #endif
  17533. char gethostbyname ();
  17534. int
  17535. main ()
  17536. {
  17537. return gethostbyname ();
  17538. ;
  17539. return 0;
  17540. }
  17541. _ACEOF
  17542. if ac_fn_c_try_link "$LINENO"; then :
  17543. ac_cv_lib_nsl_gethostbyname=yes
  17544. else
  17545. ac_cv_lib_nsl_gethostbyname=no
  17546. fi
  17547. rm -f core conftest.err conftest.$ac_objext \
  17548. conftest$ac_exeext conftest.$ac_ext
  17549. LIBS=$ac_check_lib_save_LIBS
  17550. fi
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17552. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17553. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17554. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17555. fi
  17556. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17558. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17559. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17560. $as_echo_n "(cached) " >&6
  17561. else
  17562. ac_check_lib_save_LIBS=$LIBS
  17563. LIBS="-lbsd $LIBS"
  17564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17565. /* end confdefs.h. */
  17566. /* Override any GCC internal prototype to avoid an error.
  17567. Use char because int might match the return type of a GCC
  17568. builtin and then its argument prototype would still apply. */
  17569. #ifdef __cplusplus
  17570. extern "C"
  17571. #endif
  17572. char gethostbyname ();
  17573. int
  17574. main ()
  17575. {
  17576. return gethostbyname ();
  17577. ;
  17578. return 0;
  17579. }
  17580. _ACEOF
  17581. if ac_fn_c_try_link "$LINENO"; then :
  17582. ac_cv_lib_bsd_gethostbyname=yes
  17583. else
  17584. ac_cv_lib_bsd_gethostbyname=no
  17585. fi
  17586. rm -f core conftest.err conftest.$ac_objext \
  17587. conftest$ac_exeext conftest.$ac_ext
  17588. LIBS=$ac_check_lib_save_LIBS
  17589. fi
  17590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17591. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17592. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17593. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17594. fi
  17595. fi
  17596. fi
  17597. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17598. # socket/setsockopt and other routines are undefined under SCO ODT
  17599. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17600. # on later versions), says Simon Leinen: it contains gethostby*
  17601. # variants that don't use the name server (or something). -lsocket
  17602. # must be given before -lnsl if both are needed. We assume that
  17603. # if connect needs -lnsl, so does gethostbyname.
  17604. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17605. if test "x$ac_cv_func_connect" = xyes; then :
  17606. fi
  17607. if test $ac_cv_func_connect = no; then
  17608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17609. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17610. if ${ac_cv_lib_socket_connect+:} false; then :
  17611. $as_echo_n "(cached) " >&6
  17612. else
  17613. ac_check_lib_save_LIBS=$LIBS
  17614. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17616. /* end confdefs.h. */
  17617. /* Override any GCC internal prototype to avoid an error.
  17618. Use char because int might match the return type of a GCC
  17619. builtin and then its argument prototype would still apply. */
  17620. #ifdef __cplusplus
  17621. extern "C"
  17622. #endif
  17623. char connect ();
  17624. int
  17625. main ()
  17626. {
  17627. return connect ();
  17628. ;
  17629. return 0;
  17630. }
  17631. _ACEOF
  17632. if ac_fn_c_try_link "$LINENO"; then :
  17633. ac_cv_lib_socket_connect=yes
  17634. else
  17635. ac_cv_lib_socket_connect=no
  17636. fi
  17637. rm -f core conftest.err conftest.$ac_objext \
  17638. conftest$ac_exeext conftest.$ac_ext
  17639. LIBS=$ac_check_lib_save_LIBS
  17640. fi
  17641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17642. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17643. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17644. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17645. fi
  17646. fi
  17647. # Guillermo Gomez says -lposix is necessary on A/UX.
  17648. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17649. if test "x$ac_cv_func_remove" = xyes; then :
  17650. fi
  17651. if test $ac_cv_func_remove = no; then
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17653. $as_echo_n "checking for remove in -lposix... " >&6; }
  17654. if ${ac_cv_lib_posix_remove+:} false; then :
  17655. $as_echo_n "(cached) " >&6
  17656. else
  17657. ac_check_lib_save_LIBS=$LIBS
  17658. LIBS="-lposix $LIBS"
  17659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17660. /* end confdefs.h. */
  17661. /* Override any GCC internal prototype to avoid an error.
  17662. Use char because int might match the return type of a GCC
  17663. builtin and then its argument prototype would still apply. */
  17664. #ifdef __cplusplus
  17665. extern "C"
  17666. #endif
  17667. char remove ();
  17668. int
  17669. main ()
  17670. {
  17671. return remove ();
  17672. ;
  17673. return 0;
  17674. }
  17675. _ACEOF
  17676. if ac_fn_c_try_link "$LINENO"; then :
  17677. ac_cv_lib_posix_remove=yes
  17678. else
  17679. ac_cv_lib_posix_remove=no
  17680. fi
  17681. rm -f core conftest.err conftest.$ac_objext \
  17682. conftest$ac_exeext conftest.$ac_ext
  17683. LIBS=$ac_check_lib_save_LIBS
  17684. fi
  17685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17686. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17687. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17688. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17689. fi
  17690. fi
  17691. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17692. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17693. if test "x$ac_cv_func_shmat" = xyes; then :
  17694. fi
  17695. if test $ac_cv_func_shmat = no; then
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17697. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17698. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17699. $as_echo_n "(cached) " >&6
  17700. else
  17701. ac_check_lib_save_LIBS=$LIBS
  17702. LIBS="-lipc $LIBS"
  17703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17704. /* end confdefs.h. */
  17705. /* Override any GCC internal prototype to avoid an error.
  17706. Use char because int might match the return type of a GCC
  17707. builtin and then its argument prototype would still apply. */
  17708. #ifdef __cplusplus
  17709. extern "C"
  17710. #endif
  17711. char shmat ();
  17712. int
  17713. main ()
  17714. {
  17715. return shmat ();
  17716. ;
  17717. return 0;
  17718. }
  17719. _ACEOF
  17720. if ac_fn_c_try_link "$LINENO"; then :
  17721. ac_cv_lib_ipc_shmat=yes
  17722. else
  17723. ac_cv_lib_ipc_shmat=no
  17724. fi
  17725. rm -f core conftest.err conftest.$ac_objext \
  17726. conftest$ac_exeext conftest.$ac_ext
  17727. LIBS=$ac_check_lib_save_LIBS
  17728. fi
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17730. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17731. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17732. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17733. fi
  17734. fi
  17735. fi
  17736. # Check for libraries that X11R6 Xt/Xaw programs need.
  17737. ac_save_LDFLAGS=$LDFLAGS
  17738. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17739. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17740. # check for ICE first), but we must link in the order -lSM -lICE or
  17741. # we get undefined symbols. So assume we have SM if we have ICE.
  17742. # These have to be linked with before -lX11, unlike the other
  17743. # libraries we check for below, so use a different variable.
  17744. # John Interrante, Karl Berry
  17745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17746. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17747. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17748. $as_echo_n "(cached) " >&6
  17749. else
  17750. ac_check_lib_save_LIBS=$LIBS
  17751. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17753. /* end confdefs.h. */
  17754. /* Override any GCC internal prototype to avoid an error.
  17755. Use char because int might match the return type of a GCC
  17756. builtin and then its argument prototype would still apply. */
  17757. #ifdef __cplusplus
  17758. extern "C"
  17759. #endif
  17760. char IceConnectionNumber ();
  17761. int
  17762. main ()
  17763. {
  17764. return IceConnectionNumber ();
  17765. ;
  17766. return 0;
  17767. }
  17768. _ACEOF
  17769. if ac_fn_c_try_link "$LINENO"; then :
  17770. ac_cv_lib_ICE_IceConnectionNumber=yes
  17771. else
  17772. ac_cv_lib_ICE_IceConnectionNumber=no
  17773. fi
  17774. rm -f core conftest.err conftest.$ac_objext \
  17775. conftest$ac_exeext conftest.$ac_ext
  17776. LIBS=$ac_check_lib_save_LIBS
  17777. fi
  17778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17779. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17780. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17781. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17782. fi
  17783. LDFLAGS=$ac_save_LDFLAGS
  17784. fi
  17785. if test x$have_x = xyes; then
  17786. # Check whether --enable-x11-shared was given.
  17787. if test "${enable_x11_shared+set}" = set; then :
  17788. enableval=$enable_x11_shared;
  17789. else
  17790. enable_x11_shared=maybe
  17791. fi
  17792. case "$host" in
  17793. *-*-darwin*)
  17794. # Apple now puts this in /opt/X11
  17795. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17796. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17797. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17798. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17799. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17800. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17801. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17802. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17803. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17804. ;;
  17805. *-*-openbsd*)
  17806. x11_lib='libX11.so'
  17807. x11ext_lib='libXext.so'
  17808. xcursor_lib='libXcursor.so'
  17809. xinerama_lib='libXinerama.so'
  17810. xinput_lib='libXi.so'
  17811. xrandr_lib='libXrandr.so'
  17812. xrender_lib='libXrender.so'
  17813. xss_lib='libXss.so'
  17814. xvidmode_lib='libXxf86vm.so'
  17815. ;;
  17816. *)
  17817. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17818. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17819. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17820. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17821. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17822. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17823. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17824. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17825. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17826. ;;
  17827. esac
  17828. if test x$ac_cv_func_shmat != xyes; then
  17829. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17830. fi
  17831. CFLAGS="$CFLAGS $X_CFLAGS"
  17832. LDFLAGS="$LDFLAGS $X_LIBS"
  17833. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17834. #include <X11/Xproto.h>
  17835. "
  17836. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17837. have_xext_h_hdr=yes
  17838. else
  17839. have_xext_h_hdr=no
  17840. fi
  17841. if test x$have_xext_h_hdr != xyes; then
  17842. as_fn_error $? "
  17843. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17844. " "$LINENO" 5
  17845. fi
  17846. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17847. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17848. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17849. # Needed so SDL applications can include SDL_syswm.h
  17850. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17851. if test x$enable_x11_shared = xmaybe; then
  17852. enable_x11_shared=yes
  17853. fi
  17854. if test x$have_loadso != xyes && \
  17855. test x$enable_x11_shared = xyes; then
  17856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17857. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17858. enable_x11_shared=no
  17859. fi
  17860. if test x$have_loadso = xyes && \
  17861. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17862. echo "-- dynamic libX11 -> $x11_lib"
  17863. echo "-- dynamic libX11ext -> $x11ext_lib"
  17864. cat >>confdefs.h <<_ACEOF
  17865. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17866. _ACEOF
  17867. cat >>confdefs.h <<_ACEOF
  17868. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17869. _ACEOF
  17870. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17871. else
  17872. enable_x11_shared=no
  17873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17874. SUMMARY_video="${SUMMARY_video} x11"
  17875. fi
  17876. have_video=yes
  17877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17878. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17879. have_const_param_XextAddDisplay=no
  17880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17881. /* end confdefs.h. */
  17882. #include <X11/Xlib.h>
  17883. #include <X11/Xproto.h>
  17884. #include <X11/extensions/Xext.h>
  17885. #include <X11/extensions/extutil.h>
  17886. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17887. int
  17888. main ()
  17889. {
  17890. ;
  17891. return 0;
  17892. }
  17893. _ACEOF
  17894. if ac_fn_c_try_compile "$LINENO"; then :
  17895. have_const_param_XextAddDisplay=yes
  17896. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17897. fi
  17898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17900. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17902. $as_echo_n "checking for XGenericEvent... " >&6; }
  17903. have_XGenericEvent=no
  17904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17905. /* end confdefs.h. */
  17906. #include <X11/Xlib.h>
  17907. int
  17908. main ()
  17909. {
  17910. Display *display;
  17911. XEvent event;
  17912. XGenericEventCookie *cookie = &event.xcookie;
  17913. XNextEvent(display, &event);
  17914. XGetEventData(display, cookie);
  17915. XFreeEventData(display, cookie);
  17916. ;
  17917. return 0;
  17918. }
  17919. _ACEOF
  17920. if ac_fn_c_try_compile "$LINENO"; then :
  17921. have_XGenericEvent=yes
  17922. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17923. fi
  17924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17926. $as_echo "$have_XGenericEvent" >&6; }
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17928. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17929. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17930. $as_echo_n "(cached) " >&6
  17931. else
  17932. ac_check_lib_save_LIBS=$LIBS
  17933. LIBS="-lX11 $LIBS"
  17934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17935. /* end confdefs.h. */
  17936. /* Override any GCC internal prototype to avoid an error.
  17937. Use char because int might match the return type of a GCC
  17938. builtin and then its argument prototype would still apply. */
  17939. #ifdef __cplusplus
  17940. extern "C"
  17941. #endif
  17942. char XkbKeycodeToKeysym ();
  17943. int
  17944. main ()
  17945. {
  17946. return XkbKeycodeToKeysym ();
  17947. ;
  17948. return 0;
  17949. }
  17950. _ACEOF
  17951. if ac_fn_c_try_link "$LINENO"; then :
  17952. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17953. else
  17954. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17955. fi
  17956. rm -f core conftest.err conftest.$ac_objext \
  17957. conftest$ac_exeext conftest.$ac_ext
  17958. LIBS=$ac_check_lib_save_LIBS
  17959. fi
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17961. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17962. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17963. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17964. fi
  17965. # Check whether --enable-video-x11-xcursor was given.
  17966. if test "${enable_video_x11_xcursor+set}" = set; then :
  17967. enableval=$enable_video_x11_xcursor;
  17968. else
  17969. enable_video_x11_xcursor=yes
  17970. fi
  17971. if test x$enable_video_x11_xcursor = xyes; then
  17972. definitely_enable_video_x11_xcursor=no
  17973. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17974. "
  17975. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17976. have_xcursor_h_hdr=yes
  17977. else
  17978. have_xcursor_h_hdr=no
  17979. fi
  17980. if test x$have_xcursor_h_hdr = xyes; then
  17981. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17982. echo "-- dynamic libXcursor -> $xcursor_lib"
  17983. cat >>confdefs.h <<_ACEOF
  17984. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17985. _ACEOF
  17986. definitely_enable_video_x11_xcursor=yes
  17987. else
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17989. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17990. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17991. $as_echo_n "(cached) " >&6
  17992. else
  17993. ac_check_lib_save_LIBS=$LIBS
  17994. LIBS="-lXcursor $LIBS"
  17995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17996. /* end confdefs.h. */
  17997. /* Override any GCC internal prototype to avoid an error.
  17998. Use char because int might match the return type of a GCC
  17999. builtin and then its argument prototype would still apply. */
  18000. #ifdef __cplusplus
  18001. extern "C"
  18002. #endif
  18003. char XcursorImageCreate ();
  18004. int
  18005. main ()
  18006. {
  18007. return XcursorImageCreate ();
  18008. ;
  18009. return 0;
  18010. }
  18011. _ACEOF
  18012. if ac_fn_c_try_link "$LINENO"; then :
  18013. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18014. else
  18015. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18016. fi
  18017. rm -f core conftest.err conftest.$ac_objext \
  18018. conftest$ac_exeext conftest.$ac_ext
  18019. LIBS=$ac_check_lib_save_LIBS
  18020. fi
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18022. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18023. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18024. have_xcursor_lib=yes
  18025. fi
  18026. if test x$have_xcursor_lib = xyes ; then
  18027. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18028. definitely_enable_video_x11_xcursor=yes
  18029. fi
  18030. fi
  18031. fi
  18032. fi
  18033. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18034. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18035. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18036. fi
  18037. # Check whether --enable-video-x11-xdbe was given.
  18038. if test "${enable_video_x11_xdbe+set}" = set; then :
  18039. enableval=$enable_video_x11_xdbe;
  18040. else
  18041. enable_video_x11_xdbe=yes
  18042. fi
  18043. if test x$enable_video_x11_xdbe = xyes; then
  18044. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18045. "
  18046. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18047. have_dbe_h_hdr=yes
  18048. else
  18049. have_dbe_h_hdr=no
  18050. fi
  18051. if test x$have_dbe_h_hdr = xyes; then
  18052. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18053. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18054. fi
  18055. fi
  18056. # Check whether --enable-video-x11-xinerama was given.
  18057. if test "${enable_video_x11_xinerama+set}" = set; then :
  18058. enableval=$enable_video_x11_xinerama;
  18059. else
  18060. enable_video_x11_xinerama=yes
  18061. fi
  18062. if test x$enable_video_x11_xinerama = xyes; then
  18063. definitely_enable_video_x11_xinerama=no
  18064. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18065. "
  18066. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18067. have_xinerama_h_hdr=yes
  18068. else
  18069. have_xinerama_h_hdr=no
  18070. fi
  18071. if test x$have_xinerama_h_hdr = xyes; then
  18072. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18073. echo "-- dynamic libXinerama -> $xinerama_lib"
  18074. cat >>confdefs.h <<_ACEOF
  18075. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18076. _ACEOF
  18077. definitely_enable_video_x11_xinerama=yes
  18078. else
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18080. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18081. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18082. $as_echo_n "(cached) " >&6
  18083. else
  18084. ac_check_lib_save_LIBS=$LIBS
  18085. LIBS="-lXinerama $LIBS"
  18086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18087. /* end confdefs.h. */
  18088. /* Override any GCC internal prototype to avoid an error.
  18089. Use char because int might match the return type of a GCC
  18090. builtin and then its argument prototype would still apply. */
  18091. #ifdef __cplusplus
  18092. extern "C"
  18093. #endif
  18094. char XineramaQueryExtension ();
  18095. int
  18096. main ()
  18097. {
  18098. return XineramaQueryExtension ();
  18099. ;
  18100. return 0;
  18101. }
  18102. _ACEOF
  18103. if ac_fn_c_try_link "$LINENO"; then :
  18104. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18105. else
  18106. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18107. fi
  18108. rm -f core conftest.err conftest.$ac_objext \
  18109. conftest$ac_exeext conftest.$ac_ext
  18110. LIBS=$ac_check_lib_save_LIBS
  18111. fi
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18113. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18114. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18115. have_xinerama_lib=yes
  18116. fi
  18117. if test x$have_xinerama_lib = xyes ; then
  18118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18119. definitely_enable_video_x11_xinerama=yes
  18120. fi
  18121. fi
  18122. fi
  18123. fi
  18124. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18125. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18126. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18127. fi
  18128. # Check whether --enable-video-x11-xinput was given.
  18129. if test "${enable_video_x11_xinput+set}" = set; then :
  18130. enableval=$enable_video_x11_xinput;
  18131. else
  18132. enable_video_x11_xinput=yes
  18133. fi
  18134. if test x$enable_video_x11_xinput = xyes; then
  18135. definitely_enable_video_x11_xinput=no
  18136. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18137. "
  18138. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18139. have_xinput_h_hdr=yes
  18140. else
  18141. have_xinput_h_hdr=no
  18142. fi
  18143. if test x$have_xinput_h_hdr = xyes; then
  18144. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18145. echo "-- dynamic libXi -> $xinput_lib"
  18146. cat >>confdefs.h <<_ACEOF
  18147. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18148. _ACEOF
  18149. definitely_enable_video_x11_xinput=yes
  18150. else
  18151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18152. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18153. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18154. $as_echo_n "(cached) " >&6
  18155. else
  18156. ac_check_lib_save_LIBS=$LIBS
  18157. LIBS="-lXi $LIBS"
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. /* Override any GCC internal prototype to avoid an error.
  18161. Use char because int might match the return type of a GCC
  18162. builtin and then its argument prototype would still apply. */
  18163. #ifdef __cplusplus
  18164. extern "C"
  18165. #endif
  18166. char XOpenDevice ();
  18167. int
  18168. main ()
  18169. {
  18170. return XOpenDevice ();
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_link "$LINENO"; then :
  18176. ac_cv_lib_Xi_XOpenDevice=yes
  18177. else
  18178. ac_cv_lib_Xi_XOpenDevice=no
  18179. fi
  18180. rm -f core conftest.err conftest.$ac_objext \
  18181. conftest$ac_exeext conftest.$ac_ext
  18182. LIBS=$ac_check_lib_save_LIBS
  18183. fi
  18184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18185. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18186. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18187. have_xinput_lib=yes
  18188. fi
  18189. if test x$have_xinput_lib = xyes ; then
  18190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18191. definitely_enable_video_x11_xinput=yes
  18192. fi
  18193. fi
  18194. fi
  18195. fi
  18196. if test x$definitely_enable_video_x11_xinput = xyes; then
  18197. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18198. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18200. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18201. have_xinput2_multitouch=no
  18202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18203. /* end confdefs.h. */
  18204. #include <X11/Xlib.h>
  18205. #include <X11/Xproto.h>
  18206. #include <X11/extensions/XInput2.h>
  18207. int
  18208. main ()
  18209. {
  18210. int event_type = XI_TouchBegin;
  18211. XITouchClassInfo *t;
  18212. ;
  18213. return 0;
  18214. }
  18215. _ACEOF
  18216. if ac_fn_c_try_compile "$LINENO"; then :
  18217. have_xinput2_multitouch=yes
  18218. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18219. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18220. fi
  18221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18223. $as_echo "$have_xinput2_multitouch" >&6; }
  18224. fi
  18225. # Check whether --enable-video-x11-xrandr was given.
  18226. if test "${enable_video_x11_xrandr+set}" = set; then :
  18227. enableval=$enable_video_x11_xrandr;
  18228. else
  18229. enable_video_x11_xrandr=yes
  18230. fi
  18231. if test x$enable_video_x11_xrandr = xyes; then
  18232. definitely_enable_video_x11_xrandr=no
  18233. have_xrandr_h_hdr=no
  18234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18235. /* end confdefs.h. */
  18236. #include <X11/Xlib.h>
  18237. #include <X11/extensions/Xrandr.h>
  18238. int
  18239. main ()
  18240. {
  18241. XRRScreenResources *res = NULL;
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. if ac_fn_c_try_compile "$LINENO"; then :
  18247. have_xrandr_h_hdr=yes
  18248. fi
  18249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18250. if test x$have_xrandr_h_hdr = xyes; then
  18251. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18252. echo "-- dynamic libXrandr -> $xrandr_lib"
  18253. cat >>confdefs.h <<_ACEOF
  18254. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18255. _ACEOF
  18256. definitely_enable_video_x11_xrandr=yes
  18257. else
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18259. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18260. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18261. $as_echo_n "(cached) " >&6
  18262. else
  18263. ac_check_lib_save_LIBS=$LIBS
  18264. LIBS="-lXrandr $LIBS"
  18265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18266. /* end confdefs.h. */
  18267. /* Override any GCC internal prototype to avoid an error.
  18268. Use char because int might match the return type of a GCC
  18269. builtin and then its argument prototype would still apply. */
  18270. #ifdef __cplusplus
  18271. extern "C"
  18272. #endif
  18273. char XRRQueryExtension ();
  18274. int
  18275. main ()
  18276. {
  18277. return XRRQueryExtension ();
  18278. ;
  18279. return 0;
  18280. }
  18281. _ACEOF
  18282. if ac_fn_c_try_link "$LINENO"; then :
  18283. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18284. else
  18285. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext \
  18288. conftest$ac_exeext conftest.$ac_ext
  18289. LIBS=$ac_check_lib_save_LIBS
  18290. fi
  18291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18292. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18293. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18294. have_xrandr_lib=yes
  18295. fi
  18296. if test x$have_xrandr_lib = xyes ; then
  18297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18298. definitely_enable_video_x11_xrandr=yes
  18299. fi
  18300. fi
  18301. fi
  18302. fi
  18303. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18304. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18305. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18306. fi
  18307. # Check whether --enable-video-x11-scrnsaver was given.
  18308. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18309. enableval=$enable_video_x11_scrnsaver;
  18310. else
  18311. enable_video_x11_scrnsaver=yes
  18312. fi
  18313. if test x$enable_video_x11_scrnsaver = xyes; then
  18314. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18315. "
  18316. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18317. have_scrnsaver_h_hdr=yes
  18318. else
  18319. have_scrnsaver_h_hdr=no
  18320. fi
  18321. if test x$have_scrnsaver_h_hdr = xyes; then
  18322. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18323. echo "-- dynamic libXss -> $xss_lib"
  18324. cat >>confdefs.h <<_ACEOF
  18325. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18326. _ACEOF
  18327. definitely_enable_video_x11_scrnsaver=yes
  18328. else
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18330. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18331. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18332. $as_echo_n "(cached) " >&6
  18333. else
  18334. ac_check_lib_save_LIBS=$LIBS
  18335. LIBS="-lXss $LIBS"
  18336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18337. /* end confdefs.h. */
  18338. /* Override any GCC internal prototype to avoid an error.
  18339. Use char because int might match the return type of a GCC
  18340. builtin and then its argument prototype would still apply. */
  18341. #ifdef __cplusplus
  18342. extern "C"
  18343. #endif
  18344. char XScreenSaverSuspend ();
  18345. int
  18346. main ()
  18347. {
  18348. return XScreenSaverSuspend ();
  18349. ;
  18350. return 0;
  18351. }
  18352. _ACEOF
  18353. if ac_fn_c_try_link "$LINENO"; then :
  18354. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18355. else
  18356. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18357. fi
  18358. rm -f core conftest.err conftest.$ac_objext \
  18359. conftest$ac_exeext conftest.$ac_ext
  18360. LIBS=$ac_check_lib_save_LIBS
  18361. fi
  18362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18363. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18364. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18365. have_xss_lib=yes
  18366. fi
  18367. if test x$have_xss_lib = xyes ; then
  18368. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18369. definitely_enable_video_x11_scrnsaver=yes
  18370. fi
  18371. fi
  18372. fi
  18373. fi
  18374. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18375. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18376. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18377. fi
  18378. # Check whether --enable-video-x11-xshape was given.
  18379. if test "${enable_video_x11_xshape+set}" = set; then :
  18380. enableval=$enable_video_x11_xshape;
  18381. else
  18382. enable_video_x11_xshape=yes
  18383. fi
  18384. if test x$enable_video_x11_xshape = xyes; then
  18385. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18386. "
  18387. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18388. have_shape_h_hdr=yes
  18389. else
  18390. have_shape_h_hdr=no
  18391. fi
  18392. if test x$have_shape_h_hdr = xyes; then
  18393. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18394. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18395. fi
  18396. fi
  18397. # Check whether --enable-video-x11-vm was given.
  18398. if test "${enable_video_x11_vm+set}" = set; then :
  18399. enableval=$enable_video_x11_vm;
  18400. else
  18401. enable_video_x11_vm=yes
  18402. fi
  18403. if test x$enable_video_x11_vm = xyes; then
  18404. definitely_enable_video_x11_vm=no
  18405. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18406. "
  18407. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18408. have_vm_h_hdr=yes
  18409. else
  18410. have_vm_h_hdr=no
  18411. fi
  18412. if test x$have_vm_h_hdr = xyes; then
  18413. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18414. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18415. cat >>confdefs.h <<_ACEOF
  18416. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18417. _ACEOF
  18418. definitely_enable_video_x11_vm=yes
  18419. else
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18421. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18422. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18423. $as_echo_n "(cached) " >&6
  18424. else
  18425. ac_check_lib_save_LIBS=$LIBS
  18426. LIBS="-lXxf86vm $LIBS"
  18427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18428. /* end confdefs.h. */
  18429. /* Override any GCC internal prototype to avoid an error.
  18430. Use char because int might match the return type of a GCC
  18431. builtin and then its argument prototype would still apply. */
  18432. #ifdef __cplusplus
  18433. extern "C"
  18434. #endif
  18435. char XF86VidModeQueryVersion ();
  18436. int
  18437. main ()
  18438. {
  18439. return XF86VidModeQueryVersion ();
  18440. ;
  18441. return 0;
  18442. }
  18443. _ACEOF
  18444. if ac_fn_c_try_link "$LINENO"; then :
  18445. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18446. else
  18447. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18448. fi
  18449. rm -f core conftest.err conftest.$ac_objext \
  18450. conftest$ac_exeext conftest.$ac_ext
  18451. LIBS=$ac_check_lib_save_LIBS
  18452. fi
  18453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18454. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18455. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18456. have_vm_lib=yes
  18457. fi
  18458. if test x$have_vm_lib = xyes ; then
  18459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18460. definitely_enable_video_x11_vm=yes
  18461. fi
  18462. fi
  18463. fi
  18464. fi
  18465. if test x$definitely_enable_video_x11_vm = xyes; then
  18466. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18467. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18468. fi
  18469. fi
  18470. fi
  18471. }
  18472. CheckVivanteVideo()
  18473. {
  18474. # Check whether --enable-video-vivante was given.
  18475. if test "${enable_video_vivante+set}" = set; then :
  18476. enableval=$enable_video_vivante;
  18477. else
  18478. enable_video_vivante=yes
  18479. fi
  18480. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18482. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18483. have_vivante_vdk=no
  18484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18485. /* end confdefs.h. */
  18486. #define LINUX
  18487. #define EGL_API_FB
  18488. #include <gc_vdk.h>
  18489. int
  18490. main ()
  18491. {
  18492. ;
  18493. return 0;
  18494. }
  18495. _ACEOF
  18496. if ac_fn_c_try_compile "$LINENO"; then :
  18497. have_vivante_vdk=yes
  18498. fi
  18499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18501. $as_echo "$have_vivante_vdk" >&6; }
  18502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18503. $as_echo_n "checking for Vivante FB API... " >&6; }
  18504. have_vivante_egl=no
  18505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18506. /* end confdefs.h. */
  18507. #define LINUX
  18508. #define EGL_API_FB
  18509. #include <EGL/eglvivante.h>
  18510. int
  18511. main ()
  18512. {
  18513. ;
  18514. return 0;
  18515. }
  18516. _ACEOF
  18517. if ac_fn_c_try_compile "$LINENO"; then :
  18518. have_vivante_egl=yes
  18519. fi
  18520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18522. $as_echo "$have_vivante_egl" >&6; }
  18523. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18524. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18525. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18526. if test x$have_vivante_vdk = xyes; then
  18527. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18528. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18529. fi
  18530. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18531. SUMMARY_video="${SUMMARY_video} vivante"
  18532. have_video=yes
  18533. fi
  18534. fi
  18535. }
  18536. CheckHaikuVideo()
  18537. {
  18538. if test x$enable_video = xyes; then
  18539. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18540. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18541. have_video=yes
  18542. SUMMARY_video="${SUMMARY_video} haiku"
  18543. fi
  18544. }
  18545. CheckCOCOA()
  18546. {
  18547. # Check whether --enable-video-cocoa was given.
  18548. if test "${enable_video_cocoa+set}" = set; then :
  18549. enableval=$enable_video_cocoa;
  18550. else
  18551. enable_video_cocoa=yes
  18552. fi
  18553. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18554. save_CFLAGS="$CFLAGS"
  18555. CFLAGS="$CFLAGS -x objective-c"
  18556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18557. $as_echo_n "checking for Cocoa framework... " >&6; }
  18558. have_cocoa=no
  18559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. /* end confdefs.h. */
  18561. #import <Cocoa/Cocoa.h>
  18562. int
  18563. main ()
  18564. {
  18565. ;
  18566. return 0;
  18567. }
  18568. _ACEOF
  18569. if ac_fn_c_try_compile "$LINENO"; then :
  18570. have_cocoa=yes
  18571. fi
  18572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18574. $as_echo "$have_cocoa" >&6; }
  18575. CFLAGS="$save_CFLAGS"
  18576. if test x$have_cocoa = xyes; then
  18577. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18578. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18579. SUMMARY_video="${SUMMARY_video} cocoa"
  18580. have_video=yes
  18581. fi
  18582. fi
  18583. }
  18584. CheckMETAL()
  18585. {
  18586. # Check whether --enable-video-metal was given.
  18587. if test "${enable_video_metal+set}" = set; then :
  18588. enableval=$enable_video_metal;
  18589. else
  18590. enable_video_metal=yes
  18591. fi
  18592. # Check whether --enable-render-metal was given.
  18593. if test "${enable_render_metal+set}" = set; then :
  18594. enableval=$enable_render_metal;
  18595. else
  18596. enable_render_metal=yes
  18597. fi
  18598. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18599. save_CFLAGS="$CFLAGS"
  18600. CFLAGS="$CFLAGS -x objective-c"
  18601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18602. $as_echo_n "checking for Metal framework... " >&6; }
  18603. have_metal=no
  18604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18605. /* end confdefs.h. */
  18606. #import <Cocoa/Cocoa.h>
  18607. #import <Metal/Metal.h>
  18608. #import <QuartzCore/CAMetalLayer.h>
  18609. #if !TARGET_CPU_X86_64
  18610. #error Metal doesn't work on this configuration
  18611. #endif
  18612. int
  18613. main ()
  18614. {
  18615. ;
  18616. return 0;
  18617. }
  18618. _ACEOF
  18619. if ac_fn_c_try_compile "$LINENO"; then :
  18620. have_metal=yes
  18621. fi
  18622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18623. CFLAGS="$save_CFLAGS"
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18625. $as_echo "$have_metal" >&6; }
  18626. if test x$have_metal = xyes; then
  18627. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18628. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18629. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18630. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18631. fi
  18632. SUMMARY_video="${SUMMARY_video} metal"
  18633. else
  18634. enable_video_metal=no
  18635. enable_render_metal=no
  18636. fi
  18637. fi
  18638. }
  18639. CheckDirectFB()
  18640. {
  18641. # Check whether --enable-video-directfb was given.
  18642. if test "${enable_video_directfb+set}" = set; then :
  18643. enableval=$enable_video_directfb;
  18644. else
  18645. enable_video_directfb=no
  18646. fi
  18647. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18648. pkg_failed=no
  18649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18650. $as_echo_n "checking for DIRECTFB... " >&6; }
  18651. if test -n "$DIRECTFB_CFLAGS"; then
  18652. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18653. elif test -n "$PKG_CONFIG"; then
  18654. if test -n "$PKG_CONFIG" && \
  18655. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18656. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18657. ac_status=$?
  18658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18659. test $ac_status = 0; }; then
  18660. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18661. else
  18662. pkg_failed=yes
  18663. fi
  18664. else
  18665. pkg_failed=untried
  18666. fi
  18667. if test -n "$DIRECTFB_LIBS"; then
  18668. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18669. elif test -n "$PKG_CONFIG"; then
  18670. if test -n "$PKG_CONFIG" && \
  18671. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18672. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18673. ac_status=$?
  18674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18675. test $ac_status = 0; }; then
  18676. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18677. else
  18678. pkg_failed=yes
  18679. fi
  18680. else
  18681. pkg_failed=untried
  18682. fi
  18683. if test $pkg_failed = yes; then
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18685. $as_echo "no" >&6; }
  18686. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18687. _pkg_short_errors_supported=yes
  18688. else
  18689. _pkg_short_errors_supported=no
  18690. fi
  18691. if test $_pkg_short_errors_supported = yes; then
  18692. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18693. else
  18694. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18695. fi
  18696. # Put the nasty error message in config.log where it belongs
  18697. echo "$DIRECTFB_PKG_ERRORS" >&5
  18698. video_directfb=no
  18699. elif test $pkg_failed = untried; then
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18701. $as_echo "no" >&6; }
  18702. video_directfb=no
  18703. else
  18704. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18705. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18707. $as_echo "yes" >&6; }
  18708. video_directfb=yes
  18709. fi
  18710. if test x$video_directfb = xyes; then
  18711. # SuSE 11.1 installs directfb-config without directfb-devel
  18712. save_CPPFLAGS="$CPPFLAGS"
  18713. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18714. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18715. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18716. have_directfb_hdr=yes
  18717. else
  18718. have_directfb_hdr=no
  18719. fi
  18720. CPPFLAGS="$save_CPPFLAGS"
  18721. video_directfb=$have_directfb_hdr
  18722. fi
  18723. if test x$video_directfb = xyes; then
  18724. # Check whether --enable-directfb-shared was given.
  18725. if test "${enable_directfb_shared+set}" = set; then :
  18726. enableval=$enable_directfb_shared;
  18727. else
  18728. enable_directfb_shared=yes
  18729. fi
  18730. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18731. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18732. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18733. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18735. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18736. directfb_shared=no
  18737. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18738. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18740. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18741. if test x$have_loadso != xyes && \
  18742. test x$enable_directfb_shared = xyes; then
  18743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18744. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18745. fi
  18746. if test x$have_loadso = xyes && \
  18747. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18748. directfb_shared=yes
  18749. echo "-- $directfb_lib_spec -> $directfb_lib"
  18750. cat >>confdefs.h <<_ACEOF
  18751. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18752. _ACEOF
  18753. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18754. else
  18755. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18756. SUMMARY_video="${SUMMARY_video} directfb"
  18757. fi
  18758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18759. $as_echo "$directfb_shared" >&6; }
  18760. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18761. have_video=yes
  18762. fi
  18763. fi
  18764. }
  18765. CheckKMSDRM()
  18766. {
  18767. # Check whether --enable-video-kmsdrm was given.
  18768. if test "${enable_video_kmsdrm+set}" = set; then :
  18769. enableval=$enable_video_kmsdrm;
  18770. else
  18771. enable_video_kmsdrm=no
  18772. fi
  18773. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18774. video_kmsdrm=no
  18775. pkg_failed=no
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18777. $as_echo_n "checking for LIBDRM... " >&6; }
  18778. if test -n "$LIBDRM_CFLAGS"; then
  18779. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18780. elif test -n "$PKG_CONFIG"; then
  18781. if test -n "$PKG_CONFIG" && \
  18782. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18783. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18784. ac_status=$?
  18785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18786. test $ac_status = 0; }; then
  18787. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18788. else
  18789. pkg_failed=yes
  18790. fi
  18791. else
  18792. pkg_failed=untried
  18793. fi
  18794. if test -n "$LIBDRM_LIBS"; then
  18795. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18796. elif test -n "$PKG_CONFIG"; then
  18797. if test -n "$PKG_CONFIG" && \
  18798. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18799. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18800. ac_status=$?
  18801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18802. test $ac_status = 0; }; then
  18803. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18804. else
  18805. pkg_failed=yes
  18806. fi
  18807. else
  18808. pkg_failed=untried
  18809. fi
  18810. if test $pkg_failed = yes; then
  18811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18812. $as_echo "no" >&6; }
  18813. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18814. _pkg_short_errors_supported=yes
  18815. else
  18816. _pkg_short_errors_supported=no
  18817. fi
  18818. if test $_pkg_short_errors_supported = yes; then
  18819. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18820. else
  18821. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18822. fi
  18823. # Put the nasty error message in config.log where it belongs
  18824. echo "$LIBDRM_PKG_ERRORS" >&5
  18825. libdrm_avail=no
  18826. elif test $pkg_failed = untried; then
  18827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18828. $as_echo "no" >&6; }
  18829. libdrm_avail=no
  18830. else
  18831. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18832. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18834. $as_echo "yes" >&6; }
  18835. libdrm_avail=yes
  18836. fi
  18837. pkg_failed=no
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18839. $as_echo_n "checking for LIBGBM... " >&6; }
  18840. if test -n "$LIBGBM_CFLAGS"; then
  18841. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18842. elif test -n "$PKG_CONFIG"; then
  18843. if test -n "$PKG_CONFIG" && \
  18844. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18845. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18846. ac_status=$?
  18847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18848. test $ac_status = 0; }; then
  18849. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18850. else
  18851. pkg_failed=yes
  18852. fi
  18853. else
  18854. pkg_failed=untried
  18855. fi
  18856. if test -n "$LIBGBM_LIBS"; then
  18857. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18858. elif test -n "$PKG_CONFIG"; then
  18859. if test -n "$PKG_CONFIG" && \
  18860. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18861. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18862. ac_status=$?
  18863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18864. test $ac_status = 0; }; then
  18865. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18866. else
  18867. pkg_failed=yes
  18868. fi
  18869. else
  18870. pkg_failed=untried
  18871. fi
  18872. if test $pkg_failed = yes; then
  18873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18874. $as_echo "no" >&6; }
  18875. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18876. _pkg_short_errors_supported=yes
  18877. else
  18878. _pkg_short_errors_supported=no
  18879. fi
  18880. if test $_pkg_short_errors_supported = yes; then
  18881. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18882. else
  18883. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18884. fi
  18885. # Put the nasty error message in config.log where it belongs
  18886. echo "$LIBGBM_PKG_ERRORS" >&5
  18887. libgbm_avail=no
  18888. elif test $pkg_failed = untried; then
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18890. $as_echo "no" >&6; }
  18891. libgbm_avail=no
  18892. else
  18893. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18894. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18896. $as_echo "yes" >&6; }
  18897. libgbm_avail=yes
  18898. fi
  18899. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18900. video_kmsdrm=yes
  18901. fi
  18902. if test x$video_kmsdrm = xyes; then
  18903. # Check whether --enable-kmsdrm-shared was given.
  18904. if test "${enable_kmsdrm_shared+set}" = set; then :
  18905. enableval=$enable_kmsdrm_shared;
  18906. else
  18907. enable_kmsdrm_shared=yes
  18908. fi
  18909. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18910. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18911. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18913. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18914. kmsdrm_shared=no
  18915. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18916. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18917. if test x$have_loadso != xyes && \
  18918. test x$enable_kmsdrm_shared = xyes; then
  18919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18920. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18921. fi
  18922. if test x$have_loadso = xyes && \
  18923. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18924. kmsdrm_shared=yes
  18925. cat >>confdefs.h <<_ACEOF
  18926. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18927. _ACEOF
  18928. cat >>confdefs.h <<_ACEOF
  18929. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18930. _ACEOF
  18931. cat >>confdefs.h <<_ACEOF
  18932. #define HAVE_KMSDRM_SHARED "TRUE"
  18933. _ACEOF
  18934. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18935. else
  18936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18937. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18938. fi
  18939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18940. $as_echo "$kmsdrm_shared" >&6; }
  18941. have_video=yes
  18942. fi
  18943. fi
  18944. }
  18945. CheckDummyVideo()
  18946. {
  18947. # Check whether --enable-video-dummy was given.
  18948. if test "${enable_video_dummy+set}" = set; then :
  18949. enableval=$enable_video_dummy;
  18950. else
  18951. enable_video_dummy=yes
  18952. fi
  18953. if test x$enable_video_dummy = xyes; then
  18954. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18955. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18956. have_video=yes
  18957. SUMMARY_video="${SUMMARY_video} dummy"
  18958. fi
  18959. }
  18960. CheckQNXVideo()
  18961. {
  18962. if test x$enable_video = xyes; then
  18963. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18964. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18965. have_video=yes
  18966. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18967. SUMMARY_video="${SUMMARY_video} qnx"
  18968. fi
  18969. }
  18970. CheckQNXAudio()
  18971. {
  18972. if test x$enable_audio = xyes; then
  18973. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18974. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18975. have_audio=yes
  18976. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18977. SUMMARY_audio="${SUMMARY_audio} qsa"
  18978. fi
  18979. }
  18980. # Check whether --enable-video-opengl was given.
  18981. if test "${enable_video_opengl+set}" = set; then :
  18982. enableval=$enable_video_opengl;
  18983. else
  18984. enable_video_opengl=yes
  18985. fi
  18986. CheckOpenGLX11()
  18987. {
  18988. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18990. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18991. video_opengl=no
  18992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h. */
  18994. #include <GL/gl.h>
  18995. #include <GL/glx.h>
  18996. int
  18997. main ()
  18998. {
  18999. ;
  19000. return 0;
  19001. }
  19002. _ACEOF
  19003. if ac_fn_c_try_compile "$LINENO"; then :
  19004. video_opengl=yes
  19005. fi
  19006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19008. $as_echo "$video_opengl" >&6; }
  19009. if test x$video_opengl = xyes; then
  19010. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19011. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19012. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19013. SUMMARY_video="${SUMMARY_video} opengl"
  19014. fi
  19015. fi
  19016. }
  19017. # Check whether --enable-video-opengles was given.
  19018. if test "${enable_video_opengles+set}" = set; then :
  19019. enableval=$enable_video_opengles;
  19020. else
  19021. enable_video_opengles=yes
  19022. fi
  19023. # Check whether --enable-video-opengles1 was given.
  19024. if test "${enable_video_opengles1+set}" = set; then :
  19025. enableval=$enable_video_opengles1;
  19026. else
  19027. enable_video_opengles1=yes
  19028. fi
  19029. # Check whether --enable-video-opengles2 was given.
  19030. if test "${enable_video_opengles2+set}" = set; then :
  19031. enableval=$enable_video_opengles2;
  19032. else
  19033. enable_video_opengles2=yes
  19034. fi
  19035. CheckOpenGLESX11()
  19036. {
  19037. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19039. $as_echo_n "checking for EGL support... " >&6; }
  19040. video_opengl_egl=no
  19041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19042. /* end confdefs.h. */
  19043. #define LINUX
  19044. #define EGL_API_FB
  19045. #define MESA_EGL_NO_X11_HEADERS
  19046. #include <EGL/egl.h>
  19047. #include <EGL/eglext.h>
  19048. int
  19049. main ()
  19050. {
  19051. ;
  19052. return 0;
  19053. }
  19054. _ACEOF
  19055. if ac_fn_c_try_compile "$LINENO"; then :
  19056. video_opengl_egl=yes
  19057. fi
  19058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19060. $as_echo "$video_opengl_egl" >&6; }
  19061. if test x$video_opengl_egl = xyes; then
  19062. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19063. fi
  19064. if test x$enable_video_opengles1 = xyes; then
  19065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19066. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19067. video_opengles_v1=no
  19068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19069. /* end confdefs.h. */
  19070. #include <GLES/gl.h>
  19071. #include <GLES/glext.h>
  19072. int
  19073. main ()
  19074. {
  19075. ;
  19076. return 0;
  19077. }
  19078. _ACEOF
  19079. if ac_fn_c_try_compile "$LINENO"; then :
  19080. video_opengles_v1=yes
  19081. fi
  19082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19084. $as_echo "$video_opengles_v1" >&6; }
  19085. if test x$video_opengles_v1 = xyes; then
  19086. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19087. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19088. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19089. fi
  19090. fi
  19091. if test x$enable_video_opengles2 = xyes; then
  19092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19093. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19094. video_opengles_v2=no
  19095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19096. /* end confdefs.h. */
  19097. #include <GLES2/gl2.h>
  19098. #include <GLES2/gl2ext.h>
  19099. int
  19100. main ()
  19101. {
  19102. ;
  19103. return 0;
  19104. }
  19105. _ACEOF
  19106. if ac_fn_c_try_compile "$LINENO"; then :
  19107. video_opengles_v2=yes
  19108. fi
  19109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19111. $as_echo "$video_opengles_v2" >&6; }
  19112. if test x$video_opengles_v2 = xyes; then
  19113. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19114. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19115. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19116. fi
  19117. fi
  19118. fi
  19119. }
  19120. CheckWINDOWSGL()
  19121. {
  19122. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19123. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19124. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19125. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19126. SUMMARY_video="${SUMMARY_video} opengl"
  19127. fi
  19128. }
  19129. CheckWINDOWSGLES()
  19130. {
  19131. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19133. $as_echo_n "checking for EGL support... " >&6; }
  19134. video_opengl_egl=no
  19135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19136. /* end confdefs.h. */
  19137. #include <EGL/egl.h>
  19138. int
  19139. main ()
  19140. {
  19141. ;
  19142. return 0;
  19143. }
  19144. _ACEOF
  19145. if ac_fn_c_try_compile "$LINENO"; then :
  19146. video_opengl_egl=yes
  19147. fi
  19148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19150. $as_echo "$video_opengl_egl" >&6; }
  19151. if test x$video_opengl_egl = xyes; then
  19152. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19153. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19154. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19155. fi
  19156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19157. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19158. video_opengles_v2=no
  19159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19160. /* end confdefs.h. */
  19161. #include <GLES2/gl2.h>
  19162. #include <GLES2/gl2ext.h>
  19163. int
  19164. main ()
  19165. {
  19166. ;
  19167. return 0;
  19168. }
  19169. _ACEOF
  19170. if ac_fn_c_try_compile "$LINENO"; then :
  19171. video_opengles_v2=yes
  19172. fi
  19173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19175. $as_echo "$video_opengles_v2" >&6; }
  19176. if test x$video_opengles_v2 = xyes; then
  19177. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19178. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19179. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19180. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19181. fi
  19182. fi
  19183. }
  19184. CheckHaikuGL()
  19185. {
  19186. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19187. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19188. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19189. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19191. SUMMARY_video="${SUMMARY_video} opengl"
  19192. fi
  19193. }
  19194. CheckMacGL()
  19195. {
  19196. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19197. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19198. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19199. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19200. SUMMARY_video="${SUMMARY_video} opengl"
  19201. fi
  19202. }
  19203. CheckMacGLES()
  19204. {
  19205. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19206. video_opengl_egl=yes
  19207. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19208. video_opengles_v2=yes
  19209. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19210. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19211. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19212. fi
  19213. }
  19214. CheckEmscriptenGLES()
  19215. {
  19216. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19218. $as_echo_n "checking for EGL support... " >&6; }
  19219. video_opengl_egl=no
  19220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19221. /* end confdefs.h. */
  19222. #include <EGL/egl.h>
  19223. int
  19224. main ()
  19225. {
  19226. ;
  19227. return 0;
  19228. }
  19229. _ACEOF
  19230. if ac_fn_c_try_compile "$LINENO"; then :
  19231. video_opengl_egl=yes
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19235. $as_echo "$video_opengl_egl" >&6; }
  19236. if test x$video_opengl_egl = xyes; then
  19237. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19238. fi
  19239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19240. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19241. video_opengles_v2=no
  19242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19243. /* end confdefs.h. */
  19244. #include <GLES2/gl2.h>
  19245. #include <GLES2/gl2ext.h>
  19246. int
  19247. main ()
  19248. {
  19249. ;
  19250. return 0;
  19251. }
  19252. _ACEOF
  19253. if ac_fn_c_try_compile "$LINENO"; then :
  19254. video_opengles_v2=yes
  19255. fi
  19256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19258. $as_echo "$video_opengles_v2" >&6; }
  19259. if test x$video_opengles_v2 = xyes; then
  19260. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19261. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19262. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19263. fi
  19264. fi
  19265. }
  19266. # Check whether --enable-video-vulkan was given.
  19267. if test "${enable_video_vulkan+set}" = set; then :
  19268. enableval=$enable_video_vulkan;
  19269. else
  19270. enable_video_vulkan=yes
  19271. fi
  19272. CheckVulkan()
  19273. {
  19274. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19275. case "$host" in
  19276. *-*-android*)
  19277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19278. /* end confdefs.h. */
  19279. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19280. #error Vulkan doesn't work on this configuration
  19281. #endif
  19282. int
  19283. main ()
  19284. {
  19285. ;
  19286. return 0;
  19287. }
  19288. _ACEOF
  19289. if ac_fn_c_try_compile "$LINENO"; then :
  19290. else
  19291. enable_video_vulkan=no
  19292. fi
  19293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19294. ;;
  19295. *-*-darwin*)
  19296. save_CFLAGS="$CFLAGS"
  19297. CFLAGS="$CFLAGS -x objective-c"
  19298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19299. /* end confdefs.h. */
  19300. #include <Cocoa/Cocoa.h>
  19301. #include <Metal/Metal.h>
  19302. #include <QuartzCore/CAMetalLayer.h>
  19303. #if !TARGET_CPU_X86_64
  19304. #error Vulkan doesn't work on this configuration
  19305. #endif
  19306. int
  19307. main ()
  19308. {
  19309. ;
  19310. return 0;
  19311. }
  19312. _ACEOF
  19313. if ac_fn_c_try_compile "$LINENO"; then :
  19314. else
  19315. enable_video_vulkan=no
  19316. fi
  19317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19318. CFLAGS="$save_CFLAGS"
  19319. ;;
  19320. *)
  19321. ;;
  19322. esac
  19323. if test x$enable_video_vulkan = xno; then
  19324. # For reasons I am totally unable to see, I get an undefined macro error if
  19325. # I put this in the AC_TRY_COMPILE.
  19326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19327. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19328. fi
  19329. fi
  19330. if test x$enable_video_vulkan = xyes; then
  19331. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19332. SUMMARY_video="${SUMMARY_video} vulkan"
  19333. fi
  19334. }
  19335. CheckInputEvents()
  19336. {
  19337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19338. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19339. use_input_events=no
  19340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19341. /* end confdefs.h. */
  19342. #include <linux/input.h>
  19343. int
  19344. main ()
  19345. {
  19346. #ifndef EVIOCGNAME
  19347. #error EVIOCGNAME() ioctl not available
  19348. #endif
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. if ac_fn_c_try_compile "$LINENO"; then :
  19354. use_input_events=yes
  19355. fi
  19356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19358. $as_echo "$use_input_events" >&6; }
  19359. if test x$use_input_events = xyes; then
  19360. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19361. SUMMARY_input="${SUMMARY_input} linuxev"
  19362. fi
  19363. }
  19364. CheckInputKD()
  19365. {
  19366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19367. $as_echo_n "checking for Linux kd.h... " >&6; }
  19368. use_input_kd=no
  19369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19370. /* end confdefs.h. */
  19371. #include <linux/kd.h>
  19372. #include <linux/keyboard.h>
  19373. int
  19374. main ()
  19375. {
  19376. struct kbentry kbe;
  19377. kbe.kb_table = KG_CTRL;
  19378. ioctl(0, KDGKBENT, &kbe);
  19379. ;
  19380. return 0;
  19381. }
  19382. _ACEOF
  19383. if ac_fn_c_try_compile "$LINENO"; then :
  19384. use_input_kd=yes
  19385. fi
  19386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19388. $as_echo "$use_input_kd" >&6; }
  19389. if test x$use_input_kd = xyes; then
  19390. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19391. SUMMARY_input="${SUMMARY_input} linuxkd"
  19392. fi
  19393. }
  19394. CheckLibUDev()
  19395. {
  19396. # Check whether --enable-libudev was given.
  19397. if test "${enable_libudev+set}" = set; then :
  19398. enableval=$enable_libudev;
  19399. else
  19400. enable_libudev=yes
  19401. fi
  19402. if test x$enable_libudev = xyes; then
  19403. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19404. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19405. have_libudev_h_hdr=yes
  19406. else
  19407. have_libudev_h_hdr=no
  19408. fi
  19409. if test x$have_libudev_h_hdr = xyes; then
  19410. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19411. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19412. if test x$udev_lib != x; then
  19413. echo "-- dynamic udev -> $udev_lib"
  19414. cat >>confdefs.h <<_ACEOF
  19415. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19416. _ACEOF
  19417. fi
  19418. fi
  19419. fi
  19420. }
  19421. CheckDBus()
  19422. {
  19423. # Check whether --enable-dbus was given.
  19424. if test "${enable_dbus+set}" = set; then :
  19425. enableval=$enable_dbus;
  19426. else
  19427. enable_dbus=yes
  19428. fi
  19429. if test x$enable_dbus = xyes; then
  19430. pkg_failed=no
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19432. $as_echo_n "checking for DBUS... " >&6; }
  19433. if test -n "$DBUS_CFLAGS"; then
  19434. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19435. elif test -n "$PKG_CONFIG"; then
  19436. if test -n "$PKG_CONFIG" && \
  19437. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19438. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19439. ac_status=$?
  19440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19441. test $ac_status = 0; }; then
  19442. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19443. else
  19444. pkg_failed=yes
  19445. fi
  19446. else
  19447. pkg_failed=untried
  19448. fi
  19449. if test -n "$DBUS_LIBS"; then
  19450. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19451. elif test -n "$PKG_CONFIG"; then
  19452. if test -n "$PKG_CONFIG" && \
  19453. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19454. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19455. ac_status=$?
  19456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19457. test $ac_status = 0; }; then
  19458. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19459. else
  19460. pkg_failed=yes
  19461. fi
  19462. else
  19463. pkg_failed=untried
  19464. fi
  19465. if test $pkg_failed = yes; then
  19466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19467. $as_echo "no" >&6; }
  19468. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19469. _pkg_short_errors_supported=yes
  19470. else
  19471. _pkg_short_errors_supported=no
  19472. fi
  19473. if test $_pkg_short_errors_supported = yes; then
  19474. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19475. else
  19476. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19477. fi
  19478. # Put the nasty error message in config.log where it belongs
  19479. echo "$DBUS_PKG_ERRORS" >&5
  19480. have_dbus=no
  19481. elif test $pkg_failed = untried; then
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19483. $as_echo "no" >&6; }
  19484. have_dbus=no
  19485. else
  19486. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19487. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19489. $as_echo "yes" >&6; }
  19490. have_dbus=yes
  19491. fi
  19492. save_CFLAGS="$CFLAGS"
  19493. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19494. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19495. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19496. have_dbus_dbus_h_hdr=yes
  19497. else
  19498. have_dbus_dbus_h_hdr=no
  19499. fi
  19500. CFLAGS="$save_CFLAGS"
  19501. if test x$have_dbus_dbus_h_hdr = xyes; then
  19502. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19503. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19504. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19505. fi
  19506. fi
  19507. }
  19508. CheckIME()
  19509. {
  19510. # Check whether --enable-ime was given.
  19511. if test "${enable_ime+set}" = set; then :
  19512. enableval=$enable_ime;
  19513. else
  19514. enable_ime=yes
  19515. fi
  19516. if test x$enable_ime = xyes; then
  19517. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19518. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19519. fi
  19520. }
  19521. CheckIBus()
  19522. {
  19523. # Check whether --enable-ibus was given.
  19524. if test "${enable_ibus+set}" = set; then :
  19525. enableval=$enable_ibus;
  19526. else
  19527. enable_ibus=yes
  19528. fi
  19529. if test x$enable_ibus = xyes; then
  19530. pkg_failed=no
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19532. $as_echo_n "checking for IBUS... " >&6; }
  19533. if test -n "$IBUS_CFLAGS"; then
  19534. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19535. elif test -n "$PKG_CONFIG"; then
  19536. if test -n "$PKG_CONFIG" && \
  19537. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19538. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19539. ac_status=$?
  19540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19541. test $ac_status = 0; }; then
  19542. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19543. else
  19544. pkg_failed=yes
  19545. fi
  19546. else
  19547. pkg_failed=untried
  19548. fi
  19549. if test -n "$IBUS_LIBS"; then
  19550. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19551. elif test -n "$PKG_CONFIG"; then
  19552. if test -n "$PKG_CONFIG" && \
  19553. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19554. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19555. ac_status=$?
  19556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19557. test $ac_status = 0; }; then
  19558. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19559. else
  19560. pkg_failed=yes
  19561. fi
  19562. else
  19563. pkg_failed=untried
  19564. fi
  19565. if test $pkg_failed = yes; then
  19566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19567. $as_echo "no" >&6; }
  19568. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19569. _pkg_short_errors_supported=yes
  19570. else
  19571. _pkg_short_errors_supported=no
  19572. fi
  19573. if test $_pkg_short_errors_supported = yes; then
  19574. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19575. else
  19576. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19577. fi
  19578. # Put the nasty error message in config.log where it belongs
  19579. echo "$IBUS_PKG_ERRORS" >&5
  19580. have_ibus=no
  19581. elif test $pkg_failed = untried; then
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19583. $as_echo "no" >&6; }
  19584. have_ibus=no
  19585. else
  19586. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19587. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19589. $as_echo "yes" >&6; }
  19590. have_ibus=yes
  19591. fi
  19592. save_CFLAGS="$CFLAGS"
  19593. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19594. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19595. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19596. have_ibus_ibus_h_hdr=yes
  19597. else
  19598. have_ibus_ibus_h_hdr=no
  19599. fi
  19600. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19601. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19602. have_inotify_inotify_h_hdr=yes
  19603. else
  19604. have_inotify_inotify_h_hdr=no
  19605. fi
  19606. CFLAGS="$save_CFLAGS"
  19607. if test x$have_ibus_ibus_h_hdr = xyes; then
  19608. if test x$enable_ime != xyes; then
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19610. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19611. have_ibus_ibus_h_hdr=no
  19612. elif test x$enable_dbus != xyes; then
  19613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19614. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19615. have_ibus_ibus_h_hdr=no
  19616. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19618. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19619. have_ibus_ibus_h_hdr=no
  19620. else
  19621. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19622. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19623. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19624. fi
  19625. fi
  19626. fi
  19627. }
  19628. CheckFcitx()
  19629. {
  19630. # Check whether --enable-fcitx was given.
  19631. if test "${enable_fcitx+set}" = set; then :
  19632. enableval=$enable_fcitx;
  19633. else
  19634. enable_fcitx=yes
  19635. fi
  19636. if test x$enable_fcitx = xyes; then
  19637. pkg_failed=no
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19639. $as_echo_n "checking for FCITX... " >&6; }
  19640. if test -n "$FCITX_CFLAGS"; then
  19641. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19642. elif test -n "$PKG_CONFIG"; then
  19643. if test -n "$PKG_CONFIG" && \
  19644. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19645. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19646. ac_status=$?
  19647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19648. test $ac_status = 0; }; then
  19649. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19650. else
  19651. pkg_failed=yes
  19652. fi
  19653. else
  19654. pkg_failed=untried
  19655. fi
  19656. if test -n "$FCITX_LIBS"; then
  19657. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19658. elif test -n "$PKG_CONFIG"; then
  19659. if test -n "$PKG_CONFIG" && \
  19660. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19661. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19662. ac_status=$?
  19663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19664. test $ac_status = 0; }; then
  19665. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19666. else
  19667. pkg_failed=yes
  19668. fi
  19669. else
  19670. pkg_failed=untried
  19671. fi
  19672. if test $pkg_failed = yes; then
  19673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19674. $as_echo "no" >&6; }
  19675. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19676. _pkg_short_errors_supported=yes
  19677. else
  19678. _pkg_short_errors_supported=no
  19679. fi
  19680. if test $_pkg_short_errors_supported = yes; then
  19681. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19682. else
  19683. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19684. fi
  19685. # Put the nasty error message in config.log where it belongs
  19686. echo "$FCITX_PKG_ERRORS" >&5
  19687. have_fcitx=no
  19688. elif test $pkg_failed = untried; then
  19689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19690. $as_echo "no" >&6; }
  19691. have_fcitx=no
  19692. else
  19693. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19694. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19696. $as_echo "yes" >&6; }
  19697. have_fcitx=yes
  19698. fi
  19699. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19700. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19701. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19702. have_fcitx_frontend_h_hdr=yes
  19703. else
  19704. have_fcitx_frontend_h_hdr=no
  19705. fi
  19706. CFLAGS="$save_CFLAGS"
  19707. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19708. if test x$enable_ime != xyes; then
  19709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19710. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19711. have_fcitx_frontend_h_hdr=no
  19712. elif test x$enable_dbus != xyes; then
  19713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19714. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19715. have_fcitx_frontend_h_hdr=no
  19716. else
  19717. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19718. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19719. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19720. fi
  19721. fi
  19722. fi
  19723. }
  19724. CheckTslib()
  19725. {
  19726. # Check whether --enable-input-tslib was given.
  19727. if test "${enable_input_tslib+set}" = set; then :
  19728. enableval=$enable_input_tslib;
  19729. else
  19730. enable_input_tslib=yes
  19731. fi
  19732. if test x$enable_input_tslib = xyes; then
  19733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19734. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19735. enable_input_tslib=no
  19736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19737. /* end confdefs.h. */
  19738. #include "tslib.h"
  19739. int
  19740. main ()
  19741. {
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_compile "$LINENO"; then :
  19747. enable_input_tslib=yes
  19748. fi
  19749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19751. $as_echo "$enable_input_tslib" >&6; }
  19752. if test x$enable_input_tslib = xyes; then
  19753. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19754. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19755. SUMMARY_input="${SUMMARY_input} ts"
  19756. fi
  19757. fi
  19758. }
  19759. CheckPTHREAD()
  19760. {
  19761. # Check whether --enable-pthreads was given.
  19762. if test "${enable_pthreads+set}" = set; then :
  19763. enableval=$enable_pthreads;
  19764. else
  19765. enable_pthreads=yes
  19766. fi
  19767. # Check whether --enable-pthread-sem was given.
  19768. if test "${enable_pthread_sem+set}" = set; then :
  19769. enableval=$enable_pthread_sem;
  19770. else
  19771. enable_pthread_sem=yes
  19772. fi
  19773. case "$host" in
  19774. *-*-android*)
  19775. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19776. pthread_lib=""
  19777. ;;
  19778. *-*-linux*|*-*-uclinux*)
  19779. pthread_cflags="-D_REENTRANT"
  19780. pthread_lib="-lpthread"
  19781. ;;
  19782. *-*-bsdi*)
  19783. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19784. pthread_lib=""
  19785. ;;
  19786. *-*-darwin*)
  19787. pthread_cflags="-D_THREAD_SAFE"
  19788. # causes Carbon.p complaints?
  19789. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19790. ;;
  19791. *-*-freebsd*|*-*-dragonfly*)
  19792. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19793. pthread_lib="-pthread"
  19794. ;;
  19795. *-*-netbsd*)
  19796. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19797. pthread_lib="-lpthread"
  19798. ;;
  19799. *-*-openbsd*)
  19800. pthread_cflags="-D_REENTRANT"
  19801. pthread_lib="-pthread"
  19802. ;;
  19803. *-*-solaris2.9)
  19804. # From Solaris 9+, posix4's preferred name is rt.
  19805. pthread_cflags="-D_REENTRANT"
  19806. pthread_lib="-lpthread -lrt"
  19807. ;;
  19808. *-*-solaris2.10)
  19809. # Solaris 10+ merged pthread into libc.
  19810. pthread_cflags="-D_REENTRANT"
  19811. pthread_lib="-lrt"
  19812. ;;
  19813. *-*-solaris*)
  19814. # Solaris 11+ merged rt into libc.
  19815. pthread_cflags="-D_REENTRANT"
  19816. pthread_lib=""
  19817. ;;
  19818. *-*-sysv5*)
  19819. pthread_cflags="-D_REENTRANT -Kthread"
  19820. pthread_lib=""
  19821. ;;
  19822. *-*-aix*)
  19823. pthread_cflags="-D_REENTRANT -mthreads"
  19824. pthread_lib="-lpthread"
  19825. ;;
  19826. *-*-hpux11*)
  19827. pthread_cflags="-D_REENTRANT"
  19828. pthread_lib="-L/usr/lib -lpthread"
  19829. ;;
  19830. *-*-haiku*)
  19831. pthread_cflags="-D_REENTRANT"
  19832. pthread_lib=""
  19833. ;;
  19834. *-*-nto*)
  19835. pthread_cflags="-D_REENTRANT"
  19836. pthread_lib=""
  19837. ;;
  19838. *)
  19839. pthread_cflags="-D_REENTRANT"
  19840. pthread_lib="-lpthread"
  19841. ;;
  19842. esac
  19843. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19844. # Save the original compiler flags and libraries
  19845. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19846. # Add the pthread compiler flags and libraries
  19847. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19848. # Check to see if we have pthread support on this system
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19850. $as_echo_n "checking for pthreads... " >&6; }
  19851. use_pthreads=no
  19852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19853. /* end confdefs.h. */
  19854. #include <pthread.h>
  19855. int
  19856. main ()
  19857. {
  19858. pthread_attr_t type;
  19859. pthread_attr_init(&type);
  19860. ;
  19861. return 0;
  19862. }
  19863. _ACEOF
  19864. if ac_fn_c_try_link "$LINENO"; then :
  19865. use_pthreads=yes
  19866. fi
  19867. rm -f core conftest.err conftest.$ac_objext \
  19868. conftest$ac_exeext conftest.$ac_ext
  19869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19870. $as_echo "$use_pthreads" >&6; }
  19871. # Restore the compiler flags and libraries
  19872. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19873. # Do futher testing if we have pthread support...
  19874. if test x$use_pthreads = xyes; then
  19875. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19876. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19877. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19878. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19879. # Save the original compiler flags and libraries
  19880. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19881. # Add the pthread compiler flags and libraries
  19882. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19883. # Check to see if recursive mutexes are available
  19884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19885. $as_echo_n "checking for recursive mutexes... " >&6; }
  19886. has_recursive_mutexes=no
  19887. if test x$has_recursive_mutexes = xno; then
  19888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19889. /* end confdefs.h. */
  19890. #define _GNU_SOURCE 1
  19891. #include <pthread.h>
  19892. int
  19893. main ()
  19894. {
  19895. pthread_mutexattr_t attr;
  19896. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19897. ;
  19898. return 0;
  19899. }
  19900. _ACEOF
  19901. if ac_fn_c_try_link "$LINENO"; then :
  19902. has_recursive_mutexes=yes
  19903. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext \
  19906. conftest$ac_exeext conftest.$ac_ext
  19907. fi
  19908. if test x$has_recursive_mutexes = xno; then
  19909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19910. /* end confdefs.h. */
  19911. #define _GNU_SOURCE 1
  19912. #include <pthread.h>
  19913. int
  19914. main ()
  19915. {
  19916. pthread_mutexattr_t attr;
  19917. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19918. ;
  19919. return 0;
  19920. }
  19921. _ACEOF
  19922. if ac_fn_c_try_link "$LINENO"; then :
  19923. has_recursive_mutexes=yes
  19924. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19925. fi
  19926. rm -f core conftest.err conftest.$ac_objext \
  19927. conftest$ac_exeext conftest.$ac_ext
  19928. fi
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19930. $as_echo "$has_recursive_mutexes" >&6; }
  19931. # Check to see if pthread semaphore support is missing
  19932. if test x$enable_pthread_sem = xyes; then
  19933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19934. $as_echo_n "checking for pthread semaphores... " >&6; }
  19935. have_pthread_sem=no
  19936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19937. /* end confdefs.h. */
  19938. #include <pthread.h>
  19939. #include <semaphore.h>
  19940. int
  19941. main ()
  19942. {
  19943. ;
  19944. return 0;
  19945. }
  19946. _ACEOF
  19947. if ac_fn_c_try_compile "$LINENO"; then :
  19948. have_pthread_sem=yes
  19949. fi
  19950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19952. $as_echo "$have_pthread_sem" >&6; }
  19953. fi
  19954. if test x$have_pthread_sem = xyes; then
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19956. $as_echo_n "checking for sem_timedwait... " >&6; }
  19957. have_sem_timedwait=no
  19958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19959. /* end confdefs.h. */
  19960. #include <pthread.h>
  19961. #include <semaphore.h>
  19962. int
  19963. main ()
  19964. {
  19965. sem_timedwait(NULL, NULL);
  19966. ;
  19967. return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_link "$LINENO"; then :
  19971. have_sem_timedwait=yes
  19972. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19973. fi
  19974. rm -f core conftest.err conftest.$ac_objext \
  19975. conftest$ac_exeext conftest.$ac_ext
  19976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19977. $as_echo "$have_sem_timedwait" >&6; }
  19978. fi
  19979. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19980. "
  19981. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19982. have_pthread_np_h=yes
  19983. else
  19984. have_pthread_np_h=no
  19985. fi
  19986. if test x$have_pthread_np_h = xyes; then
  19987. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19988. fi
  19989. # Check to see if pthread naming is available
  19990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19991. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19993. /* end confdefs.h. */
  19994. /* Override any GCC internal prototype to avoid an error.
  19995. Use char because int might match the return type of a GCC
  19996. builtin and then its argument prototype would still apply. */
  19997. #ifdef __cplusplus
  19998. extern "C"
  19999. #endif
  20000. char pthread_setname_np ();
  20001. int
  20002. main ()
  20003. {
  20004. return pthread_setname_np ();
  20005. ;
  20006. return 0;
  20007. }
  20008. _ACEOF
  20009. if ac_fn_c_try_link "$LINENO"; then :
  20010. has_pthread_setname_np=yes
  20011. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20012. else
  20013. has_pthread_setname_np=no
  20014. fi
  20015. rm -f core conftest.err conftest.$ac_objext \
  20016. conftest$ac_exeext conftest.$ac_ext
  20017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20018. $as_echo "$has_pthread_setname_np" >&6; }
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20020. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20022. /* end confdefs.h. */
  20023. /* Override any GCC internal prototype to avoid an error.
  20024. Use char because int might match the return type of a GCC
  20025. builtin and then its argument prototype would still apply. */
  20026. #ifdef __cplusplus
  20027. extern "C"
  20028. #endif
  20029. char pthread_set_name_np ();
  20030. int
  20031. main ()
  20032. {
  20033. return pthread_set_name_np ();
  20034. ;
  20035. return 0;
  20036. }
  20037. _ACEOF
  20038. if ac_fn_c_try_link "$LINENO"; then :
  20039. has_pthread_set_name_np=yes
  20040. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20041. else
  20042. has_pthread_set_name_np=no
  20043. fi
  20044. rm -f core conftest.err conftest.$ac_objext \
  20045. conftest$ac_exeext conftest.$ac_ext
  20046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20047. $as_echo "$has_pthread_set_name_np" >&6; }
  20048. # Restore the compiler flags and libraries
  20049. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20050. # Basic thread creation functions
  20051. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20052. # Semaphores
  20053. # We can fake these with mutexes and condition variables if necessary
  20054. if test x$have_pthread_sem = xyes; then
  20055. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20056. else
  20057. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20058. fi
  20059. # Mutexes
  20060. # We can fake these with semaphores if necessary
  20061. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20062. # Condition variables
  20063. # We can fake these with semaphores and mutexes if necessary
  20064. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20065. # Thread local storage
  20066. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20067. have_threads=yes
  20068. fi
  20069. fi
  20070. }
  20071. CheckWINDOWS()
  20072. {
  20073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20074. $as_echo_n "checking Windows compiler... " >&6; }
  20075. have_win32_gcc=no
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. #include <windows.h>
  20079. int
  20080. main ()
  20081. {
  20082. ;
  20083. return 0;
  20084. }
  20085. _ACEOF
  20086. if ac_fn_c_try_compile "$LINENO"; then :
  20087. have_win32_gcc=yes
  20088. fi
  20089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20091. $as_echo "$have_win32_gcc" >&6; }
  20092. if test x$have_win32_gcc != xyes; then
  20093. as_fn_error $? "
  20094. *** Your compiler ($CC) does not produce Windows executables!
  20095. " "$LINENO" 5
  20096. fi
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20098. $as_echo_n "checking Windows CE... " >&6; }
  20099. have_wince=no
  20100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20101. /* end confdefs.h. */
  20102. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20103. #error This is not Windows CE
  20104. #endif
  20105. int
  20106. main ()
  20107. {
  20108. ;
  20109. return 0;
  20110. }
  20111. _ACEOF
  20112. if ac_fn_c_try_compile "$LINENO"; then :
  20113. have_wince=yes
  20114. as_fn_error $? "
  20115. *** Sorry, Windows CE is no longer supported.
  20116. " "$LINENO" 5
  20117. fi
  20118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20120. $as_echo "$have_wince" >&6; }
  20121. # This fixes Windows stack alignment with newer GCC
  20122. CheckStackBoundary
  20123. }
  20124. CheckDIRECTX()
  20125. {
  20126. # Check whether --enable-directx was given.
  20127. if test "${enable_directx+set}" = set; then :
  20128. enableval=$enable_directx;
  20129. else
  20130. enable_directx=yes
  20131. fi
  20132. if test x$enable_directx = xyes; then
  20133. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20134. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20135. have_d3d=yes
  20136. fi
  20137. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20138. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20139. have_d3d11=yes
  20140. fi
  20141. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20142. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20143. have_ddraw=yes
  20144. fi
  20145. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20146. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20147. have_dsound=yes
  20148. fi
  20149. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20150. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20151. have_dinput=yes
  20152. fi
  20153. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20154. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20155. have_dxgi=yes
  20156. fi
  20157. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20158. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20159. have_xinput=yes
  20160. fi
  20161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20162. /* end confdefs.h. */
  20163. #include <windows.h>
  20164. #include <xinput.h>
  20165. XINPUT_GAMEPAD_EX x1;
  20166. int
  20167. main ()
  20168. {
  20169. ;
  20170. return 0;
  20171. }
  20172. _ACEOF
  20173. if ac_fn_c_try_compile "$LINENO"; then :
  20174. have_xinput_gamepadex=yes
  20175. fi
  20176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20178. /* end confdefs.h. */
  20179. #include <windows.h>
  20180. #include <xinput.h>
  20181. XINPUT_STATE_EX s1;
  20182. int
  20183. main ()
  20184. {
  20185. ;
  20186. return 0;
  20187. }
  20188. _ACEOF
  20189. if ac_fn_c_try_compile "$LINENO"; then :
  20190. have_xinput_stateex=yes
  20191. fi
  20192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20193. if test x$have_ddraw = xyes; then
  20194. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20195. fi
  20196. if test x$have_dinput = xyes; then
  20197. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20198. fi
  20199. if test x$have_dsound = xyes; then
  20200. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20201. fi
  20202. if test x$have_dxgi = xyes; then
  20203. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20204. fi
  20205. if test x$have_xinput = xyes; then
  20206. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20207. fi
  20208. if test x$have_xinput_gamepadex = xyes; then
  20209. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20210. fi
  20211. if test x$have_xinput_stateex = xyes; then
  20212. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20213. fi
  20214. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20215. # FIXME: ...so force it off for now.
  20216. case "$host" in
  20217. *-*-cygwin*)
  20218. have_dinput=false
  20219. ;;
  20220. esac
  20221. fi
  20222. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20223. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20224. have_wasapi=yes
  20225. fi
  20226. if test x$have_wasapi = xyes; then
  20227. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20228. fi
  20229. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20230. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20231. else
  20232. have_wasapi=no
  20233. fi
  20234. if test x$have_wasapi = xyes; then
  20235. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20236. fi
  20237. # Check whether --enable-wasapi was given.
  20238. if test "${enable_wasapi+set}" = set; then :
  20239. enableval=$enable_wasapi;
  20240. else
  20241. enable_wasapi=yes
  20242. fi
  20243. }
  20244. CheckDLOPEN()
  20245. {
  20246. # Check whether --enable-sdl-dlopen was given.
  20247. if test "${enable_sdl_dlopen+set}" = set; then :
  20248. enableval=$enable_sdl_dlopen;
  20249. else
  20250. enable_sdl_dlopen=yes
  20251. fi
  20252. if test x$enable_sdl_dlopen = xyes; then
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20254. $as_echo_n "checking for dlopen... " >&6; }
  20255. have_dlopen=no
  20256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20257. /* end confdefs.h. */
  20258. #include <dlfcn.h>
  20259. int
  20260. main ()
  20261. {
  20262. void *handle = dlopen("", RTLD_NOW);
  20263. const char *loaderror = (char *) dlerror();
  20264. ;
  20265. return 0;
  20266. }
  20267. _ACEOF
  20268. if ac_fn_c_try_compile "$LINENO"; then :
  20269. have_dlopen=yes
  20270. fi
  20271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20273. $as_echo "$have_dlopen" >&6; }
  20274. if test x$have_dlopen = xyes; then
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20276. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20277. if ${ac_cv_lib_c_dlopen+:} false; then :
  20278. $as_echo_n "(cached) " >&6
  20279. else
  20280. ac_check_lib_save_LIBS=$LIBS
  20281. LIBS="-lc $LIBS"
  20282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20283. /* end confdefs.h. */
  20284. /* Override any GCC internal prototype to avoid an error.
  20285. Use char because int might match the return type of a GCC
  20286. builtin and then its argument prototype would still apply. */
  20287. #ifdef __cplusplus
  20288. extern "C"
  20289. #endif
  20290. char dlopen ();
  20291. int
  20292. main ()
  20293. {
  20294. return dlopen ();
  20295. ;
  20296. return 0;
  20297. }
  20298. _ACEOF
  20299. if ac_fn_c_try_link "$LINENO"; then :
  20300. ac_cv_lib_c_dlopen=yes
  20301. else
  20302. ac_cv_lib_c_dlopen=no
  20303. fi
  20304. rm -f core conftest.err conftest.$ac_objext \
  20305. conftest$ac_exeext conftest.$ac_ext
  20306. LIBS=$ac_check_lib_save_LIBS
  20307. fi
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20309. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20310. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20312. else
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20314. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20315. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20316. $as_echo_n "(cached) " >&6
  20317. else
  20318. ac_check_lib_save_LIBS=$LIBS
  20319. LIBS="-ldl $LIBS"
  20320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20321. /* end confdefs.h. */
  20322. /* Override any GCC internal prototype to avoid an error.
  20323. Use char because int might match the return type of a GCC
  20324. builtin and then its argument prototype would still apply. */
  20325. #ifdef __cplusplus
  20326. extern "C"
  20327. #endif
  20328. char dlopen ();
  20329. int
  20330. main ()
  20331. {
  20332. return dlopen ();
  20333. ;
  20334. return 0;
  20335. }
  20336. _ACEOF
  20337. if ac_fn_c_try_link "$LINENO"; then :
  20338. ac_cv_lib_dl_dlopen=yes
  20339. else
  20340. ac_cv_lib_dl_dlopen=no
  20341. fi
  20342. rm -f core conftest.err conftest.$ac_objext \
  20343. conftest$ac_exeext conftest.$ac_ext
  20344. LIBS=$ac_check_lib_save_LIBS
  20345. fi
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20347. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20348. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20350. else
  20351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20352. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20353. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20354. $as_echo_n "(cached) " >&6
  20355. else
  20356. ac_check_lib_save_LIBS=$LIBS
  20357. LIBS="-lltdl $LIBS"
  20358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20359. /* end confdefs.h. */
  20360. /* Override any GCC internal prototype to avoid an error.
  20361. Use char because int might match the return type of a GCC
  20362. builtin and then its argument prototype would still apply. */
  20363. #ifdef __cplusplus
  20364. extern "C"
  20365. #endif
  20366. char dlopen ();
  20367. int
  20368. main ()
  20369. {
  20370. return dlopen ();
  20371. ;
  20372. return 0;
  20373. }
  20374. _ACEOF
  20375. if ac_fn_c_try_link "$LINENO"; then :
  20376. ac_cv_lib_ltdl_dlopen=yes
  20377. else
  20378. ac_cv_lib_ltdl_dlopen=no
  20379. fi
  20380. rm -f core conftest.err conftest.$ac_objext \
  20381. conftest$ac_exeext conftest.$ac_ext
  20382. LIBS=$ac_check_lib_save_LIBS
  20383. fi
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20385. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20386. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20388. fi
  20389. fi
  20390. fi
  20391. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20392. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20393. have_loadso=yes
  20394. fi
  20395. fi
  20396. }
  20397. CheckUSBHID()
  20398. {
  20399. case "$host" in
  20400. *-*-*bsd*)
  20401. if test x$enable_joystick = xyes; then
  20402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20403. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20404. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20405. $as_echo_n "(cached) " >&6
  20406. else
  20407. ac_check_lib_save_LIBS=$LIBS
  20408. LIBS="-lusbhid $LIBS"
  20409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20410. /* end confdefs.h. */
  20411. /* Override any GCC internal prototype to avoid an error.
  20412. Use char because int might match the return type of a GCC
  20413. builtin and then its argument prototype would still apply. */
  20414. #ifdef __cplusplus
  20415. extern "C"
  20416. #endif
  20417. char hid_init ();
  20418. int
  20419. main ()
  20420. {
  20421. return hid_init ();
  20422. ;
  20423. return 0;
  20424. }
  20425. _ACEOF
  20426. if ac_fn_c_try_link "$LINENO"; then :
  20427. ac_cv_lib_usbhid_hid_init=yes
  20428. else
  20429. ac_cv_lib_usbhid_hid_init=no
  20430. fi
  20431. rm -f core conftest.err conftest.$ac_objext \
  20432. conftest$ac_exeext conftest.$ac_ext
  20433. LIBS=$ac_check_lib_save_LIBS
  20434. fi
  20435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20436. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20437. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20438. have_libusbhid=yes
  20439. fi
  20440. if test x$have_libusbhid = xyes; then
  20441. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20442. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20443. USB_CFLAGS="-DHAVE_USBHID_H"
  20444. fi
  20445. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20446. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20447. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20448. fi
  20449. USB_LIBS="$USB_LIBS -lusbhid"
  20450. else
  20451. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20452. if test "x$ac_cv_header_usb_h" = xyes; then :
  20453. USB_CFLAGS="-DHAVE_USB_H"
  20454. fi
  20455. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20456. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20457. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20458. fi
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20460. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20461. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20462. $as_echo_n "(cached) " >&6
  20463. else
  20464. ac_check_lib_save_LIBS=$LIBS
  20465. LIBS="-lusb $LIBS"
  20466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20467. /* end confdefs.h. */
  20468. /* Override any GCC internal prototype to avoid an error.
  20469. Use char because int might match the return type of a GCC
  20470. builtin and then its argument prototype would still apply. */
  20471. #ifdef __cplusplus
  20472. extern "C"
  20473. #endif
  20474. char hid_init ();
  20475. int
  20476. main ()
  20477. {
  20478. return hid_init ();
  20479. ;
  20480. return 0;
  20481. }
  20482. _ACEOF
  20483. if ac_fn_c_try_link "$LINENO"; then :
  20484. ac_cv_lib_usb_hid_init=yes
  20485. else
  20486. ac_cv_lib_usb_hid_init=no
  20487. fi
  20488. rm -f core conftest.err conftest.$ac_objext \
  20489. conftest$ac_exeext conftest.$ac_ext
  20490. LIBS=$ac_check_lib_save_LIBS
  20491. fi
  20492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20493. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20494. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20495. USB_LIBS="$USB_LIBS -lusb"
  20496. fi
  20497. fi
  20498. save_CFLAGS="$CFLAGS"
  20499. CFLAGS="$CFLAGS $USB_CFLAGS"
  20500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20501. $as_echo_n "checking for usbhid... " >&6; }
  20502. have_usbhid=no
  20503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20504. /* end confdefs.h. */
  20505. #include <sys/types.h>
  20506. #if defined(HAVE_USB_H)
  20507. #include <usb.h>
  20508. #endif
  20509. #ifdef __DragonFly__
  20510. # include <bus/usb/usb.h>
  20511. # include <bus/usb/usbhid.h>
  20512. #else
  20513. # include <dev/usb/usb.h>
  20514. # include <dev/usb/usbhid.h>
  20515. #endif
  20516. #if defined(HAVE_USBHID_H)
  20517. #include <usbhid.h>
  20518. #elif defined(HAVE_LIBUSB_H)
  20519. #include <libusb.h>
  20520. #elif defined(HAVE_LIBUSBHID_H)
  20521. #include <libusbhid.h>
  20522. #endif
  20523. int
  20524. main ()
  20525. {
  20526. struct report_desc *repdesc;
  20527. struct usb_ctl_report *repbuf;
  20528. hid_kind_t hidkind;
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. if ac_fn_c_try_compile "$LINENO"; then :
  20534. have_usbhid=yes
  20535. fi
  20536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20538. $as_echo "$have_usbhid" >&6; }
  20539. if test x$have_usbhid = xyes; then
  20540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20541. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20542. have_usbhid_ucr_data=no
  20543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20544. /* end confdefs.h. */
  20545. #include <sys/types.h>
  20546. #if defined(HAVE_USB_H)
  20547. #include <usb.h>
  20548. #endif
  20549. #ifdef __DragonFly__
  20550. # include <bus/usb/usb.h>
  20551. # include <bus/usb/usbhid.h>
  20552. #else
  20553. # include <dev/usb/usb.h>
  20554. # include <dev/usb/usbhid.h>
  20555. #endif
  20556. #if defined(HAVE_USBHID_H)
  20557. #include <usbhid.h>
  20558. #elif defined(HAVE_LIBUSB_H)
  20559. #include <libusb.h>
  20560. #elif defined(HAVE_LIBUSBHID_H)
  20561. #include <libusbhid.h>
  20562. #endif
  20563. int
  20564. main ()
  20565. {
  20566. struct usb_ctl_report buf;
  20567. if (buf.ucr_data) { }
  20568. ;
  20569. return 0;
  20570. }
  20571. _ACEOF
  20572. if ac_fn_c_try_compile "$LINENO"; then :
  20573. have_usbhid_ucr_data=yes
  20574. fi
  20575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20576. if test x$have_usbhid_ucr_data = xyes; then
  20577. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20578. fi
  20579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20580. $as_echo "$have_usbhid_ucr_data" >&6; }
  20581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20582. $as_echo_n "checking for new usbhid API... " >&6; }
  20583. have_usbhid_new=no
  20584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20585. /* end confdefs.h. */
  20586. #include <sys/types.h>
  20587. #if defined(HAVE_USB_H)
  20588. #include <usb.h>
  20589. #endif
  20590. #ifdef __DragonFly__
  20591. #include <bus/usb/usb.h>
  20592. #include <bus/usb/usbhid.h>
  20593. #else
  20594. #include <dev/usb/usb.h>
  20595. #include <dev/usb/usbhid.h>
  20596. #endif
  20597. #if defined(HAVE_USBHID_H)
  20598. #include <usbhid.h>
  20599. #elif defined(HAVE_LIBUSB_H)
  20600. #include <libusb.h>
  20601. #elif defined(HAVE_LIBUSBHID_H)
  20602. #include <libusbhid.h>
  20603. #endif
  20604. int
  20605. main ()
  20606. {
  20607. report_desc_t d;
  20608. hid_start_parse(d, 1, 1);
  20609. ;
  20610. return 0;
  20611. }
  20612. _ACEOF
  20613. if ac_fn_c_try_compile "$LINENO"; then :
  20614. have_usbhid_new=yes
  20615. fi
  20616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20617. if test x$have_usbhid_new = xyes; then
  20618. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20619. fi
  20620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20621. $as_echo "$have_usbhid_new" >&6; }
  20622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20623. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20624. have_machine_joystick=no
  20625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20626. /* end confdefs.h. */
  20627. #include <machine/joystick.h>
  20628. int
  20629. main ()
  20630. {
  20631. struct joystick t;
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. if ac_fn_c_try_compile "$LINENO"; then :
  20637. have_machine_joystick=yes
  20638. fi
  20639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20640. if test x$have_machine_joystick = xyes; then
  20641. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20642. fi
  20643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20644. $as_echo "$have_machine_joystick" >&6; }
  20645. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20646. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20647. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20648. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20649. have_joystick=yes
  20650. fi
  20651. CFLAGS="$save_CFLAGS"
  20652. fi
  20653. ;;
  20654. esac
  20655. }
  20656. CheckHIDAPI()
  20657. {
  20658. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20659. # so we'll just use libusb when it's available.
  20660. case "$host" in
  20661. # libusb does not support iOS
  20662. arm*-apple-darwin* | *-ios-* )
  20663. skiplibusb=yes
  20664. ;;
  20665. # On the other hand, *BSD specifically uses libusb only
  20666. *-*-*bsd* )
  20667. onlylibusb=yes
  20668. ;;
  20669. esac
  20670. # Check whether --enable-hidapi was given.
  20671. if test "${enable_hidapi+set}" = set; then :
  20672. enableval=$enable_hidapi;
  20673. else
  20674. enable_hidapi=no
  20675. fi
  20676. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20677. if test x$skiplibusb = xyes; then
  20678. hidapi_support=yes
  20679. else
  20680. pkg_failed=no
  20681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20682. $as_echo_n "checking for LIBUSB... " >&6; }
  20683. if test -n "$LIBUSB_CFLAGS"; then
  20684. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20685. elif test -n "$PKG_CONFIG"; then
  20686. if test -n "$PKG_CONFIG" && \
  20687. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20688. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20689. ac_status=$?
  20690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20691. test $ac_status = 0; }; then
  20692. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20693. else
  20694. pkg_failed=yes
  20695. fi
  20696. else
  20697. pkg_failed=untried
  20698. fi
  20699. if test -n "$LIBUSB_LIBS"; then
  20700. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20701. elif test -n "$PKG_CONFIG"; then
  20702. if test -n "$PKG_CONFIG" && \
  20703. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20704. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20705. ac_status=$?
  20706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20707. test $ac_status = 0; }; then
  20708. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20709. else
  20710. pkg_failed=yes
  20711. fi
  20712. else
  20713. pkg_failed=untried
  20714. fi
  20715. if test $pkg_failed = yes; then
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20717. $as_echo "no" >&6; }
  20718. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20719. _pkg_short_errors_supported=yes
  20720. else
  20721. _pkg_short_errors_supported=no
  20722. fi
  20723. if test $_pkg_short_errors_supported = yes; then
  20724. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20725. else
  20726. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20727. fi
  20728. # Put the nasty error message in config.log where it belongs
  20729. echo "$LIBUSB_PKG_ERRORS" >&5
  20730. have_libusb=no
  20731. elif test $pkg_failed = untried; then
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20733. $as_echo "no" >&6; }
  20734. have_libusb=no
  20735. else
  20736. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20737. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20739. $as_echo "yes" >&6; }
  20740. have_libusb=yes
  20741. fi
  20742. save_CFLAGS="$CFLAGS"
  20743. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20744. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20745. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20746. have_libusb_h=yes
  20747. fi
  20748. CFLAGS="$save_CFLAGS"
  20749. if test x$have_libusb_h = xyes; then
  20750. hidapi_support=yes
  20751. elif test x$onlylibusb = xyes; then
  20752. hidapi_support=no
  20753. else
  20754. hidapi_support=yes
  20755. fi
  20756. fi
  20757. if test x$hidapi_support = xyes; then
  20758. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20759. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20760. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20761. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20762. if test x$have_libusb_h = xyes; then
  20763. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20764. if test x$onlylibusb = xyes; then
  20765. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20767. else
  20768. if test x$have_loadso != xyes; then
  20769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20770. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20771. fi
  20772. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20773. libusb_lib=""
  20774. case "$host" in
  20775. *-*-darwin* )
  20776. libusb_lib="libusb-1.0.0.dylib"
  20777. ;;
  20778. *-*-cygwin* | *-*-mingw32* )
  20779. libusb_lib="libusb-1.0.dll"
  20780. ;;
  20781. esac
  20782. if test x$libusb_lib = x; then
  20783. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20784. fi
  20785. cat >>confdefs.h <<_ACEOF
  20786. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20787. _ACEOF
  20788. fi
  20789. fi
  20790. fi
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20792. $as_echo_n "checking for hidapi support... " >&6; }
  20793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20794. $as_echo "$hidapi_support" >&6; }
  20795. fi
  20796. }
  20797. CheckClockGettime()
  20798. {
  20799. # Check whether --enable-clock_gettime was given.
  20800. if test "${enable_clock_gettime+set}" = set; then :
  20801. enableval=$enable_clock_gettime;
  20802. else
  20803. enable_clock_gettime=yes
  20804. fi
  20805. if test x$enable_clock_gettime = xyes; then
  20806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20807. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20808. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20809. $as_echo_n "(cached) " >&6
  20810. else
  20811. ac_check_lib_save_LIBS=$LIBS
  20812. LIBS="-lrt $LIBS"
  20813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20814. /* end confdefs.h. */
  20815. /* Override any GCC internal prototype to avoid an error.
  20816. Use char because int might match the return type of a GCC
  20817. builtin and then its argument prototype would still apply. */
  20818. #ifdef __cplusplus
  20819. extern "C"
  20820. #endif
  20821. char clock_gettime ();
  20822. int
  20823. main ()
  20824. {
  20825. return clock_gettime ();
  20826. ;
  20827. return 0;
  20828. }
  20829. _ACEOF
  20830. if ac_fn_c_try_link "$LINENO"; then :
  20831. ac_cv_lib_rt_clock_gettime=yes
  20832. else
  20833. ac_cv_lib_rt_clock_gettime=no
  20834. fi
  20835. rm -f core conftest.err conftest.$ac_objext \
  20836. conftest$ac_exeext conftest.$ac_ext
  20837. LIBS=$ac_check_lib_save_LIBS
  20838. fi
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20840. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20841. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20842. have_clock_gettime=yes
  20843. fi
  20844. if test x$have_clock_gettime = xyes; then
  20845. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20846. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20847. else
  20848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20849. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20850. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20851. $as_echo_n "(cached) " >&6
  20852. else
  20853. ac_check_lib_save_LIBS=$LIBS
  20854. LIBS="-lc $LIBS"
  20855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20856. /* end confdefs.h. */
  20857. /* Override any GCC internal prototype to avoid an error.
  20858. Use char because int might match the return type of a GCC
  20859. builtin and then its argument prototype would still apply. */
  20860. #ifdef __cplusplus
  20861. extern "C"
  20862. #endif
  20863. char clock_gettime ();
  20864. int
  20865. main ()
  20866. {
  20867. return clock_gettime ();
  20868. ;
  20869. return 0;
  20870. }
  20871. _ACEOF
  20872. if ac_fn_c_try_link "$LINENO"; then :
  20873. ac_cv_lib_c_clock_gettime=yes
  20874. else
  20875. ac_cv_lib_c_clock_gettime=no
  20876. fi
  20877. rm -f core conftest.err conftest.$ac_objext \
  20878. conftest$ac_exeext conftest.$ac_ext
  20879. LIBS=$ac_check_lib_save_LIBS
  20880. fi
  20881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20882. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20883. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20884. have_clock_gettime=yes
  20885. fi
  20886. if test x$have_clock_gettime = xyes; then
  20887. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20888. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20889. fi
  20890. fi
  20891. fi
  20892. }
  20893. CheckLinuxVersion()
  20894. {
  20895. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20896. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20897. have_linux_version_h=yes
  20898. fi
  20899. if test x$have_linux_version_h = xyes; then
  20900. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20901. fi
  20902. }
  20903. CheckRPATH()
  20904. {
  20905. # Check whether --enable-rpath was given.
  20906. if test "${enable_rpath+set}" = set; then :
  20907. enableval=$enable_rpath;
  20908. else
  20909. enable_rpath=yes
  20910. fi
  20911. }
  20912. CheckEventSignals()
  20913. {
  20914. # Check whether --enable-backgrounding-signal was given.
  20915. if test "${enable_backgrounding_signal+set}" = set; then :
  20916. enableval=$enable_backgrounding_signal;
  20917. else
  20918. enable_backgrounding_signal=no
  20919. fi
  20920. if test x$enable_backgrounding_signal != xno; then
  20921. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20922. fi
  20923. # Check whether --enable-foregrounding-signal was given.
  20924. if test "${enable_foregrounding_signal+set}" = set; then :
  20925. enableval=$enable_foregrounding_signal;
  20926. else
  20927. enable_foregrounding_signal=no
  20928. fi
  20929. if test x$enable_foregrounding_signal != xno; then
  20930. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20931. fi
  20932. }
  20933. CheckWarnAll
  20934. CheckNoStrictAliasing
  20935. CheckEventSignals
  20936. case "$host" in
  20937. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20938. case "$host" in
  20939. *-*-android*)
  20940. # Android
  20941. ARCH=android
  20942. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20943. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20944. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20945. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20946. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20947. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20948. if test x$enable_video = xyes; then
  20949. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20950. # FIXME: confdefs? Not AC_DEFINE?
  20951. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20952. SUMMARY_video="${SUMMARY_video} android"
  20953. fi
  20954. ;;
  20955. *-*-linux*) ARCH=linux ;;
  20956. *-*-uclinux*) ARCH=linux ;;
  20957. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20958. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20959. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20960. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20961. *-*-bsdi*) ARCH=bsdi ;;
  20962. *-*-freebsd*) ARCH=freebsd ;;
  20963. *-*-dragonfly*) ARCH=freebsd ;;
  20964. *-*-netbsd*) ARCH=netbsd ;;
  20965. *-*-openbsd*) ARCH=openbsd ;;
  20966. *-*-sysv5*) ARCH=sysv5 ;;
  20967. *-*-solaris*) ARCH=solaris ;;
  20968. *-*-hpux*) ARCH=hpux ;;
  20969. *-*-aix*) ARCH=aix ;;
  20970. *-*-minix*) ARCH=minix ;;
  20971. *-*-nto*) ARCH=nto
  20972. CheckQNXVideo
  20973. ;;
  20974. esac
  20975. CheckVisibilityHidden
  20976. CheckDeclarationAfterStatement
  20977. CheckDummyVideo
  20978. CheckDiskAudio
  20979. CheckDummyAudio
  20980. CheckDLOPEN
  20981. CheckARM
  20982. CheckNEON
  20983. CheckOSS
  20984. CheckALSA
  20985. CheckPulseAudio
  20986. CheckJACK
  20987. CheckARTSC
  20988. CheckESD
  20989. CheckNAS
  20990. CheckSNDIO
  20991. CheckFusionSound
  20992. CheckLibSampleRate
  20993. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20994. CheckRPI
  20995. CheckX11
  20996. CheckDirectFB
  20997. CheckKMSDRM
  20998. CheckOpenGLX11
  20999. CheckOpenGLESX11
  21000. CheckVulkan
  21001. CheckWayland
  21002. CheckInputEvents
  21003. CheckLibUDev
  21004. CheckDBus
  21005. CheckIME
  21006. CheckIBus
  21007. CheckFcitx
  21008. case $ARCH in
  21009. linux)
  21010. CheckInputKD
  21011. ;;
  21012. esac
  21013. CheckTslib
  21014. CheckUSBHID
  21015. CheckHIDAPI
  21016. CheckPTHREAD
  21017. CheckClockGettime
  21018. CheckLinuxVersion
  21019. CheckRPATH
  21020. CheckVivanteVideo
  21021. # Set up files for the audio library
  21022. if test x$enable_audio = xyes; then
  21023. case $ARCH in
  21024. sysv5|solaris|hpux)
  21025. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21026. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21027. SUMMARY_audio="${SUMMARY_audio} sun"
  21028. have_audio=yes
  21029. ;;
  21030. netbsd) # Don't use this on OpenBSD, it's busted.
  21031. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21032. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21033. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21034. have_audio=yes
  21035. ;;
  21036. aix)
  21037. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21038. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21039. SUMMARY_audio="${SUMMARY_audio} paudio"
  21040. have_audio=yes
  21041. ;;
  21042. android)
  21043. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21044. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21045. SUMMARY_audio="${SUMMARY_audio} android"
  21046. have_audio=yes
  21047. ;;
  21048. nto)
  21049. CheckQNXAudio
  21050. ;;
  21051. esac
  21052. fi
  21053. # Set up files for the joystick library
  21054. if test x$enable_joystick = xyes; then
  21055. case $ARCH in
  21056. linux)
  21057. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21058. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21059. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21060. have_joystick=yes
  21061. ;;
  21062. android)
  21063. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21064. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21065. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21066. have_joystick=yes
  21067. ;;
  21068. esac
  21069. fi
  21070. # Set up files for the haptic library
  21071. if test x$enable_haptic = xyes; then
  21072. case $ARCH in
  21073. linux)
  21074. if test x$use_input_events = xyes; then
  21075. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21076. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21077. have_haptic=yes
  21078. fi
  21079. ;;
  21080. android)
  21081. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21082. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21083. have_haptic=yes
  21084. ;;
  21085. esac
  21086. fi
  21087. # Set up files for the sensor library
  21088. if test x$enable_sensor = xyes; then
  21089. case $ARCH in
  21090. android)
  21091. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21092. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21093. have_sensor=yes
  21094. ;;
  21095. esac
  21096. fi
  21097. # Set up files for the power library
  21098. if test x$enable_power = xyes; then
  21099. case $ARCH in
  21100. linux)
  21101. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21102. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21103. have_power=yes
  21104. ;;
  21105. android)
  21106. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21107. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21108. have_power=yes
  21109. ;;
  21110. esac
  21111. fi
  21112. # Set up files for the filesystem library
  21113. if test x$enable_filesystem = xyes; then
  21114. case $ARCH in
  21115. android)
  21116. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21117. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21118. have_filesystem=yes
  21119. ;;
  21120. *)
  21121. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21122. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21123. have_filesystem=yes
  21124. ;;
  21125. esac
  21126. fi
  21127. # Set up files for the timer library
  21128. if test x$enable_timers = xyes; then
  21129. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21130. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21131. have_timers=yes
  21132. fi
  21133. # Set up files for udev hotplugging support
  21134. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21135. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21136. fi
  21137. # Set up files for evdev input
  21138. if test x$use_input_events = xyes; then
  21139. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21140. fi
  21141. # Set up other core UNIX files
  21142. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21143. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21144. ;;
  21145. *-*-cygwin* | *-*-mingw32*)
  21146. ARCH=win32
  21147. if test "$build" != "$host"; then # cross-compiling
  21148. # Default cross-compile location
  21149. ac_default_prefix=/usr/local/cross-tools/$host
  21150. else
  21151. # Look for the location of the tools and install there
  21152. if test "$BUILD_PREFIX" != ""; then
  21153. ac_default_prefix=$BUILD_PREFIX
  21154. fi
  21155. fi
  21156. CheckDeclarationAfterStatement
  21157. CheckDummyVideo
  21158. CheckDiskAudio
  21159. CheckDummyAudio
  21160. CheckWINDOWS
  21161. CheckWINDOWSGL
  21162. CheckWINDOWSGLES
  21163. CheckVulkan
  21164. CheckDIRECTX
  21165. CheckHIDAPI
  21166. # Set up the core platform files
  21167. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21168. # Set up files for the video library
  21169. if test x$enable_video = xyes; then
  21170. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21171. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21172. have_video=yes
  21173. # Check whether --enable-render-d3d was given.
  21174. if test "${enable_render_d3d+set}" = set; then :
  21175. enableval=$enable_render_d3d;
  21176. else
  21177. enable_render_d3d=yes
  21178. fi
  21179. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21180. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21181. SUMMARY_video="${SUMMARY_video} d3d9"
  21182. fi
  21183. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21184. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21185. SUMMARY_video="${SUMMARY_video} d3d11"
  21186. fi
  21187. fi
  21188. # Set up files for the audio library
  21189. if test x$enable_audio = xyes; then
  21190. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21191. SUMMARY_audio="${SUMMARY_audio} winmm"
  21192. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21193. if test x$have_dsound = xyes; then
  21194. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21195. SUMMARY_audio="${SUMMARY_audio} directsound"
  21196. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21197. fi
  21198. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21199. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21200. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21201. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21202. fi
  21203. have_audio=yes
  21204. fi
  21205. # Set up files for the joystick library
  21206. if test x$enable_joystick = xyes; then
  21207. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21208. if test x$have_xinput = xyes; then
  21209. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21210. fi
  21211. if test x$have_dinput = xyes; then
  21212. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21214. fi
  21215. else
  21216. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21217. fi
  21218. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21219. have_joystick=yes
  21220. fi
  21221. if test x$enable_haptic = xyes; then
  21222. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21223. if test x$have_xinput = xyes; then
  21224. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21225. fi
  21226. if test x$have_dinput = xyes; then
  21227. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21228. fi
  21229. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21230. have_haptic=yes
  21231. fi
  21232. fi
  21233. if test x$enable_power = xyes; then
  21234. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21235. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21236. have_power=yes
  21237. fi
  21238. if test x$enable_filesystem = xyes; then
  21239. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21240. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21241. have_filesystem=yes
  21242. fi
  21243. # Set up files for the thread library
  21244. if test x$enable_threads = xyes; then
  21245. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21246. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21247. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21248. have_threads=yes
  21249. fi
  21250. # Set up files for the timer library
  21251. if test x$enable_timers = xyes; then
  21252. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21253. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21254. have_timers=yes
  21255. fi
  21256. # Set up files for the shared object loading library
  21257. if test x$enable_loadso = xyes; then
  21258. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21259. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21260. have_loadso=yes
  21261. fi
  21262. # Set up the system libraries we need
  21263. if test -f /lib/w32api/libuuid.a; then
  21264. LIBUUID=/lib/w32api/libuuid.a
  21265. else
  21266. LIBUUID=-luuid
  21267. fi
  21268. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21269. # The Windows platform requires special setup
  21270. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21271. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21272. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21273. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21274. # Check to see if this is a mingw or cygwin build
  21275. have_mingw32=
  21276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21277. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21278. if ${ac_cv_lib_mingw32_main+:} false; then :
  21279. $as_echo_n "(cached) " >&6
  21280. else
  21281. ac_check_lib_save_LIBS=$LIBS
  21282. LIBS="-lmingw32 $LIBS"
  21283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21284. /* end confdefs.h. */
  21285. int
  21286. main ()
  21287. {
  21288. return main ();
  21289. ;
  21290. return 0;
  21291. }
  21292. _ACEOF
  21293. if ac_fn_c_try_link "$LINENO"; then :
  21294. ac_cv_lib_mingw32_main=yes
  21295. else
  21296. ac_cv_lib_mingw32_main=no
  21297. fi
  21298. rm -f core conftest.err conftest.$ac_objext \
  21299. conftest$ac_exeext conftest.$ac_ext
  21300. LIBS=$ac_check_lib_save_LIBS
  21301. fi
  21302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21303. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21304. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21305. have_mingw32=yes
  21306. fi
  21307. if test x$have_mingw32 = xyes; then
  21308. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21309. else
  21310. SDL_LIBS="-lcygwin $SDL_LIBS"
  21311. fi
  21312. ;;
  21313. *-*-beos*)
  21314. as_fn_error $? "
  21315. *** BeOS support has been removed as of SDL 2.0.2.
  21316. " "$LINENO" 5
  21317. ;;
  21318. *-*-haiku*)
  21319. ARCH=haiku
  21320. ac_default_prefix=/boot/system
  21321. CheckDummyVideo
  21322. CheckDiskAudio
  21323. CheckDummyAudio
  21324. CheckDLOPEN
  21325. CheckHaikuVideo
  21326. CheckHaikuGL
  21327. CheckPTHREAD
  21328. # Set up files for the audio library
  21329. if test x$enable_audio = xyes; then
  21330. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21331. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21332. SUMMARY_audio="${SUMMARY_audio} haiku"
  21333. have_audio=yes
  21334. fi
  21335. # Set up files for the joystick library
  21336. if test x$enable_joystick = xyes; then
  21337. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21338. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21339. have_joystick=yes
  21340. fi
  21341. # Set up files for the timer library
  21342. if test x$enable_timers = xyes; then
  21343. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21344. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21345. have_timers=yes
  21346. fi
  21347. # Set up files for the system power library
  21348. if test x$enable_power = xyes; then
  21349. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21350. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21351. have_power=yes
  21352. fi
  21353. # Set up files for the system filesystem library
  21354. if test x$enable_filesystem = xyes; then
  21355. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21356. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21357. have_filesystem=yes
  21358. fi
  21359. # The Haiku platform requires special setup.
  21360. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21361. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21362. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21363. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21364. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21366. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21367. if eval \${$as_ac_File+:} false; then :
  21368. $as_echo_n "(cached) " >&6
  21369. else
  21370. test "$cross_compiling" = yes &&
  21371. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21372. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21373. eval "$as_ac_File=yes"
  21374. else
  21375. eval "$as_ac_File=no"
  21376. fi
  21377. fi
  21378. eval ac_res=\$$as_ac_File
  21379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21380. $as_echo "$ac_res" >&6; }
  21381. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21382. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21383. else
  21384. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21385. fi
  21386. ;;
  21387. arm*-apple-darwin*|*-ios-*)
  21388. ARCH=ios
  21389. CheckVisibilityHidden
  21390. CheckDeclarationAfterStatement
  21391. CheckDummyVideo
  21392. CheckDiskAudio
  21393. CheckDummyAudio
  21394. CheckDLOPEN
  21395. CheckMETAL
  21396. CheckVulkan
  21397. CheckPTHREAD
  21398. # Set up files for the audio library
  21399. if test x$enable_audio = xyes; then
  21400. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21401. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21402. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21403. have_audio=yes
  21404. fi
  21405. # Set up files for the joystick library
  21406. if test x$enable_joystick = xyes; then
  21407. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21408. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21409. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21410. have_joystick=yes
  21411. fi
  21412. # Set up files for the haptic library
  21413. #if test x$enable_haptic = xyes; then
  21414. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21415. # have_haptic=yes
  21416. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21417. #fi
  21418. # Set up files for the sensor library
  21419. if test x$enable_sensor = xyes; then
  21420. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21421. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21422. have_sensor=yes
  21423. fi
  21424. # Set up files for the power library
  21425. if test x$enable_power = xyes; then
  21426. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21427. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21428. have_power=yes
  21429. fi
  21430. # Set up files for the filesystem library
  21431. if test x$enable_filesystem = xyes; then
  21432. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21433. have_filesystem=yes
  21434. fi
  21435. # Set up additional files for the file library
  21436. if test x$enable_file = xyes; then
  21437. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21438. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21439. fi
  21440. # Set up files for the timer library
  21441. if test x$enable_timers = xyes; then
  21442. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21443. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21444. have_timers=yes
  21445. fi
  21446. # Set up other core UNIX files
  21447. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21448. # The iOS platform requires special setup.
  21449. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21450. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21451. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21452. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21453. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21454. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21456. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21457. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21459. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21460. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21462. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21463. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21465. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21466. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21467. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21468. fi
  21469. ;;
  21470. *-*-darwin* )
  21471. # This could be either full "Mac OS X", or plain "Darwin" which is
  21472. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21473. # Next line is broken, and a few files below require Mac OS X (full)
  21474. ARCH=macosx
  21475. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21476. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21477. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21478. CheckVisibilityHidden
  21479. CheckDeclarationAfterStatement
  21480. CheckDummyVideo
  21481. CheckDiskAudio
  21482. CheckDummyAudio
  21483. CheckDLOPEN
  21484. CheckCOCOA
  21485. CheckMETAL
  21486. CheckX11
  21487. CheckMacGL
  21488. CheckMacGLES
  21489. CheckOpenGLX11
  21490. CheckVulkan
  21491. CheckPTHREAD
  21492. CheckHIDAPI
  21493. # Set up files for the audio library
  21494. if test x$enable_audio = xyes; then
  21495. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21496. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21497. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21498. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21499. have_audio=yes
  21500. fi
  21501. # Set up files for the joystick library
  21502. if test x$enable_joystick = xyes; then
  21503. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21504. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21505. have_joystick=yes
  21506. fi
  21507. # Set up files for the haptic library
  21508. if test x$enable_haptic = xyes; then
  21509. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21510. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21511. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21512. have_haptic=yes
  21513. fi
  21514. # Set up files for the power library
  21515. if test x$enable_power = xyes; then
  21516. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21517. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21518. have_power=yes
  21519. fi
  21520. # Set up files for the filesystem library
  21521. if test x$enable_filesystem = xyes; then
  21522. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21523. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21524. have_filesystem=yes
  21525. fi
  21526. # Set up files for the timer library
  21527. if test x$enable_timers = xyes; then
  21528. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21529. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21530. have_timers=yes
  21531. fi
  21532. # Set up additional files for the file library
  21533. if test x$enable_file = xyes; then
  21534. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21535. fi
  21536. # Set up other core UNIX files
  21537. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21538. # The Mac OS X platform requires special setup.
  21539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21541. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21542. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21543. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21544. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21546. fi
  21547. ;;
  21548. *-nacl|*-pnacl)
  21549. ARCH=nacl
  21550. CheckNativeClient
  21551. CheckDummyAudio
  21552. CheckDummyVideo
  21553. CheckInputEvents
  21554. CheckPTHREAD
  21555. # Set up files for the timer library
  21556. if test x$enable_timers = xyes; then
  21557. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21558. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21559. have_timers=yes
  21560. fi
  21561. if test x$enable_filesystem = xyes; then
  21562. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21563. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21564. have_filesystem=yes
  21565. fi
  21566. ;;
  21567. *-*-emscripten* )
  21568. if test x$enable_video = xyes; then
  21569. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21570. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21571. have_video=yes
  21572. SUMMARY_video="${SUMMARY_video} emscripten"
  21573. fi
  21574. if test x$enable_audio = xyes; then
  21575. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21576. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21577. have_audio=yes
  21578. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21579. fi
  21580. CheckVisibilityHidden
  21581. CheckDeclarationAfterStatement
  21582. CheckDummyVideo
  21583. CheckDiskAudio
  21584. CheckDummyAudio
  21585. CheckDLOPEN
  21586. CheckClockGettime
  21587. CheckEmscriptenGLES
  21588. # Set up files for the power library
  21589. if test x$enable_power = xyes; then
  21590. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21591. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21592. have_power=yes
  21593. fi
  21594. # Set up files for the power library
  21595. if test x$enable_joystick = xyes; then
  21596. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21597. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21598. have_joystick=yes
  21599. fi
  21600. # Set up files for the filesystem library
  21601. if test x$enable_filesystem = xyes; then
  21602. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21603. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21604. have_filesystem=yes
  21605. fi
  21606. # Set up files for the timer library
  21607. if test x$enable_timers = xyes; then
  21608. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21609. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21610. have_timers=yes
  21611. fi
  21612. ;;
  21613. *-*-riscos*)
  21614. ARCH=riscos
  21615. CheckVisibilityHidden
  21616. CheckDeclarationAfterStatement
  21617. CheckDummyVideo
  21618. CheckDiskAudio
  21619. CheckDummyAudio
  21620. CheckDLOPEN
  21621. CheckOSS
  21622. CheckPTHREAD
  21623. CheckClockGettime
  21624. # Set up files for the timer library
  21625. if test x$enable_timers = xyes; then
  21626. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21627. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21628. have_timers=yes
  21629. fi
  21630. ;;
  21631. *)
  21632. as_fn_error $? "
  21633. *** Unsupported host: Please add to configure.ac
  21634. " "$LINENO" 5
  21635. ;;
  21636. esac
  21637. # Check whether to install sdl2-config
  21638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21639. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21640. # Check whether --enable-sdl2-config was given.
  21641. if test "${enable_sdl2_config+set}" = set; then :
  21642. enableval=$enable_sdl2_config; case "${enableval}" in
  21643. yes) enable_sdl2_config="TRUE" ;;
  21644. no) enable_sdl2_config="FALSE" ;;
  21645. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21646. esac
  21647. else
  21648. enable_sdl2_config="TRUE"
  21649. fi
  21650. if test "$enable_sdl2_config" = "TRUE"; then
  21651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21652. $as_echo "yes" >&6; }
  21653. else
  21654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21655. $as_echo "no" >&6; }
  21656. fi
  21657. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21658. # Verify that we have all the platform specific files we need
  21659. if test x$have_joystick != xyes; then
  21660. if test x$enable_joystick = xyes; then
  21661. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21662. fi
  21663. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21664. fi
  21665. if test x$have_haptic != xyes; then
  21666. if test x$enable_haptic = xyes; then
  21667. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21668. fi
  21669. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21670. fi
  21671. if test x$have_sensor != xyes; then
  21672. if test x$enable_sensor = xyes; then
  21673. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21674. fi
  21675. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21676. fi
  21677. if test x$have_threads != xyes; then
  21678. if test x$enable_threads = xyes; then
  21679. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21680. fi
  21681. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21682. fi
  21683. if test x$have_timers != xyes; then
  21684. if test x$enable_timers = xyes; then
  21685. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21686. fi
  21687. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21688. fi
  21689. if test x$have_filesystem != xyes; then
  21690. if test x$enable_filesystem = xyes; then
  21691. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21692. fi
  21693. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21694. fi
  21695. if test x$have_loadso != xyes; then
  21696. if test x$enable_loadso = xyes; then
  21697. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21698. fi
  21699. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21700. fi
  21701. if test x$SDLMAIN_SOURCES = x; then
  21702. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21703. fi
  21704. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21705. if test x$video_wayland = xyes; then
  21706. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21707. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21708. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21709. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21710. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21711. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21712. echo ;\
  21713. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21714. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21715. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21716. echo ;\
  21717. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21718. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21719. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21720. echo ;\
  21721. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21722. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21723. done ;\
  21724. echo ;\
  21725. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21726. fi
  21727. OBJECTS=`echo $SOURCES`
  21728. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21729. for EXT in asm cc m c S; do
  21730. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21731. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21732. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21733. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21734. done
  21735. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21736. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21737. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21738. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21739. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21740. \\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
  21741. \\$(WINDRES) \\$< \\$@,g"`
  21742. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21743. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21744. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21745. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21746. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21747. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21748. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21749. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21750. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21751. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21752. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21753. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21754. # Set runtime shared library paths as needed
  21755. if test "x$enable_rpath" = "xyes"; then
  21756. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21757. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21759. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21760. have_enable_new_dtags=no
  21761. save_LDFLAGS="$LDFLAGS"
  21762. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21764. /* end confdefs.h. */
  21765. int
  21766. main ()
  21767. {
  21768. ;
  21769. return 0;
  21770. }
  21771. _ACEOF
  21772. if ac_fn_c_try_link "$LINENO"; then :
  21773. have_enable_new_dtags=yes
  21774. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21775. fi
  21776. rm -f core conftest.err conftest.$ac_objext \
  21777. conftest$ac_exeext conftest.$ac_ext
  21778. LDFLAGS="$save_LDFLAGS"
  21779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21780. $as_echo "$have_enable_new_dtags" >&6; }
  21781. fi
  21782. if test $ARCH = solaris; then
  21783. SDL_RLD_FLAGS="-R\${libdir}"
  21784. fi
  21785. else
  21786. SDL_RLD_FLAGS=""
  21787. fi
  21788. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21789. if test x$enable_shared = xyes; then
  21790. ENABLE_SHARED_TRUE=
  21791. ENABLE_SHARED_FALSE="#"
  21792. else
  21793. ENABLE_SHARED_TRUE="#"
  21794. ENABLE_SHARED_FALSE=
  21795. fi
  21796. if test x$enable_static = xyes; then
  21797. ENABLE_STATIC_TRUE=
  21798. ENABLE_STATIC_FALSE="#"
  21799. else
  21800. ENABLE_STATIC_TRUE="#"
  21801. ENABLE_STATIC_FALSE=
  21802. fi
  21803. cat >Makefile.rules <<__EOF__
  21804. # Build rules for objects
  21805. -include \$(OBJECTS:.lo=.d)
  21806. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21807. $srcdir/src/SDL.c: update-revision
  21808. $DEPENDS
  21809. $VERSION_DEPENDS
  21810. $SDLMAIN_DEPENDS
  21811. $SDLTEST_DEPENDS
  21812. $WAYLAND_PROTOCOLS_DEPENDS
  21813. __EOF__
  21814. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21815. ac_config_commands="$ac_config_commands sdl2_config"
  21816. SUMMARY="SDL2 Configure Summary:\n"
  21817. if test x$enable_shared = xyes; then
  21818. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21819. fi
  21820. if test x$enable_static = xyes; then
  21821. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21822. fi
  21823. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21824. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21825. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21826. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21827. if test x$have_x = xyes; then
  21828. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21829. fi
  21830. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21831. if test x$have_samplerate_h_hdr = xyes; then
  21832. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21833. else
  21834. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21835. fi
  21836. if test x$have_libudev_h_hdr = xyes; then
  21837. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21838. else
  21839. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21840. fi
  21841. if test x$have_dbus_dbus_h_hdr = xyes; then
  21842. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21843. else
  21844. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21845. fi
  21846. if test x$enable_ime = xyes; then
  21847. SUMMARY="${SUMMARY}Using ime : YES\n"
  21848. else
  21849. SUMMARY="${SUMMARY}Using ime : NO\n"
  21850. fi
  21851. if test x$have_ibus_ibus_h_hdr = xyes; then
  21852. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21853. else
  21854. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21855. fi
  21856. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21857. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21858. else
  21859. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21860. fi
  21861. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21862. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21863. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21864. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21865. SUMMARY="${SUMMARY}configure script with:\n"
  21866. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21867. fi
  21868. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21869. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21870. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21871. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21872. SUMMARY="${SUMMARY}configure script with:\n"
  21873. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21874. fi
  21875. ac_config_commands="$ac_config_commands summary"
  21876. cat >confcache <<\_ACEOF
  21877. # This file is a shell script that caches the results of configure
  21878. # tests run on this system so they can be shared between configure
  21879. # scripts and configure runs, see configure's option --config-cache.
  21880. # It is not useful on other systems. If it contains results you don't
  21881. # want to keep, you may remove or edit it.
  21882. #
  21883. # config.status only pays attention to the cache file if you give it
  21884. # the --recheck option to rerun configure.
  21885. #
  21886. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21887. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21888. # following values.
  21889. _ACEOF
  21890. # The following way of writing the cache mishandles newlines in values,
  21891. # but we know of no workaround that is simple, portable, and efficient.
  21892. # So, we kill variables containing newlines.
  21893. # Ultrix sh set writes to stderr and can't be redirected directly,
  21894. # and sets the high bit in the cache file unless we assign to the vars.
  21895. (
  21896. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21897. eval ac_val=\$$ac_var
  21898. case $ac_val in #(
  21899. *${as_nl}*)
  21900. case $ac_var in #(
  21901. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21902. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21903. esac
  21904. case $ac_var in #(
  21905. _ | IFS | as_nl) ;; #(
  21906. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21907. *) { eval $ac_var=; unset $ac_var;} ;;
  21908. esac ;;
  21909. esac
  21910. done
  21911. (set) 2>&1 |
  21912. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21913. *${as_nl}ac_space=\ *)
  21914. # `set' does not quote correctly, so add quotes: double-quote
  21915. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21916. sed -n \
  21917. "s/'/'\\\\''/g;
  21918. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21919. ;; #(
  21920. *)
  21921. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21922. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21923. ;;
  21924. esac |
  21925. sort
  21926. ) |
  21927. sed '
  21928. /^ac_cv_env_/b end
  21929. t clear
  21930. :clear
  21931. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21932. t end
  21933. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21934. :end' >>confcache
  21935. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21936. if test -w "$cache_file"; then
  21937. if test "x$cache_file" != "x/dev/null"; then
  21938. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21939. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21940. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21941. cat confcache >"$cache_file"
  21942. else
  21943. case $cache_file in #(
  21944. */* | ?:*)
  21945. mv -f confcache "$cache_file"$$ &&
  21946. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21947. *)
  21948. mv -f confcache "$cache_file" ;;
  21949. esac
  21950. fi
  21951. fi
  21952. else
  21953. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21954. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21955. fi
  21956. fi
  21957. rm -f confcache
  21958. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21959. # Let make expand exec_prefix.
  21960. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21961. DEFS=-DHAVE_CONFIG_H
  21962. ac_libobjs=
  21963. ac_ltlibobjs=
  21964. U=
  21965. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21966. # 1. Remove the extension, and $U if already installed.
  21967. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21968. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21969. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21970. # will be set to the directory where LIBOBJS objects are built.
  21971. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21972. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21973. done
  21974. LIBOBJS=$ac_libobjs
  21975. LTLIBOBJS=$ac_ltlibobjs
  21976. : "${CONFIG_STATUS=./config.status}"
  21977. ac_write_fail=0
  21978. ac_clean_files_save=$ac_clean_files
  21979. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21980. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21981. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21982. as_write_fail=0
  21983. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21984. #! $SHELL
  21985. # Generated by $as_me.
  21986. # Run this file to recreate the current configuration.
  21987. # Compiler output produced by configure, useful for debugging
  21988. # configure, is in config.log if it exists.
  21989. debug=false
  21990. ac_cs_recheck=false
  21991. ac_cs_silent=false
  21992. SHELL=\${CONFIG_SHELL-$SHELL}
  21993. export SHELL
  21994. _ASEOF
  21995. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21996. ## -------------------- ##
  21997. ## M4sh Initialization. ##
  21998. ## -------------------- ##
  21999. # Be more Bourne compatible
  22000. DUALCASE=1; export DUALCASE # for MKS sh
  22001. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22002. emulate sh
  22003. NULLCMD=:
  22004. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22005. # is contrary to our usage. Disable this feature.
  22006. alias -g '${1+"$@"}'='"$@"'
  22007. setopt NO_GLOB_SUBST
  22008. else
  22009. case `(set -o) 2>/dev/null` in #(
  22010. *posix*) :
  22011. set -o posix ;; #(
  22012. *) :
  22013. ;;
  22014. esac
  22015. fi
  22016. as_nl='
  22017. '
  22018. export as_nl
  22019. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22020. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22021. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22022. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22023. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22024. # but without wasting forks for bash or zsh.
  22025. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22026. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22027. as_echo='print -r --'
  22028. as_echo_n='print -rn --'
  22029. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22030. as_echo='printf %s\n'
  22031. as_echo_n='printf %s'
  22032. else
  22033. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22034. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22035. as_echo_n='/usr/ucb/echo -n'
  22036. else
  22037. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22038. as_echo_n_body='eval
  22039. arg=$1;
  22040. case $arg in #(
  22041. *"$as_nl"*)
  22042. expr "X$arg" : "X\\(.*\\)$as_nl";
  22043. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22044. esac;
  22045. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22046. '
  22047. export as_echo_n_body
  22048. as_echo_n='sh -c $as_echo_n_body as_echo'
  22049. fi
  22050. export as_echo_body
  22051. as_echo='sh -c $as_echo_body as_echo'
  22052. fi
  22053. # The user is always right.
  22054. if test "${PATH_SEPARATOR+set}" != set; then
  22055. PATH_SEPARATOR=:
  22056. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22057. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22058. PATH_SEPARATOR=';'
  22059. }
  22060. fi
  22061. # IFS
  22062. # We need space, tab and new line, in precisely that order. Quoting is
  22063. # there to prevent editors from complaining about space-tab.
  22064. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22065. # splitting by setting IFS to empty value.)
  22066. IFS=" "" $as_nl"
  22067. # Find who we are. Look in the path if we contain no directory separator.
  22068. as_myself=
  22069. case $0 in #((
  22070. *[\\/]* ) as_myself=$0 ;;
  22071. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22072. for as_dir in $PATH
  22073. do
  22074. IFS=$as_save_IFS
  22075. test -z "$as_dir" && as_dir=.
  22076. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22077. done
  22078. IFS=$as_save_IFS
  22079. ;;
  22080. esac
  22081. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22082. # in which case we are not to be found in the path.
  22083. if test "x$as_myself" = x; then
  22084. as_myself=$0
  22085. fi
  22086. if test ! -f "$as_myself"; then
  22087. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22088. exit 1
  22089. fi
  22090. # Unset variables that we do not need and which cause bugs (e.g. in
  22091. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22092. # suppresses any "Segmentation fault" message there. '((' could
  22093. # trigger a bug in pdksh 5.2.14.
  22094. for as_var in BASH_ENV ENV MAIL MAILPATH
  22095. do eval test x\${$as_var+set} = xset \
  22096. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22097. done
  22098. PS1='$ '
  22099. PS2='> '
  22100. PS4='+ '
  22101. # NLS nuisances.
  22102. LC_ALL=C
  22103. export LC_ALL
  22104. LANGUAGE=C
  22105. export LANGUAGE
  22106. # CDPATH.
  22107. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22108. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22109. # ----------------------------------------
  22110. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22111. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22112. # script with STATUS, using 1 if that was 0.
  22113. as_fn_error ()
  22114. {
  22115. as_status=$1; test $as_status -eq 0 && as_status=1
  22116. if test "$4"; then
  22117. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22118. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22119. fi
  22120. $as_echo "$as_me: error: $2" >&2
  22121. as_fn_exit $as_status
  22122. } # as_fn_error
  22123. # as_fn_set_status STATUS
  22124. # -----------------------
  22125. # Set $? to STATUS, without forking.
  22126. as_fn_set_status ()
  22127. {
  22128. return $1
  22129. } # as_fn_set_status
  22130. # as_fn_exit STATUS
  22131. # -----------------
  22132. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22133. as_fn_exit ()
  22134. {
  22135. set +e
  22136. as_fn_set_status $1
  22137. exit $1
  22138. } # as_fn_exit
  22139. # as_fn_unset VAR
  22140. # ---------------
  22141. # Portably unset VAR.
  22142. as_fn_unset ()
  22143. {
  22144. { eval $1=; unset $1;}
  22145. }
  22146. as_unset=as_fn_unset
  22147. # as_fn_append VAR VALUE
  22148. # ----------------------
  22149. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22150. # advantage of any shell optimizations that allow amortized linear growth over
  22151. # repeated appends, instead of the typical quadratic growth present in naive
  22152. # implementations.
  22153. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22154. eval 'as_fn_append ()
  22155. {
  22156. eval $1+=\$2
  22157. }'
  22158. else
  22159. as_fn_append ()
  22160. {
  22161. eval $1=\$$1\$2
  22162. }
  22163. fi # as_fn_append
  22164. # as_fn_arith ARG...
  22165. # ------------------
  22166. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22167. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22168. # must be portable across $(()) and expr.
  22169. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22170. eval 'as_fn_arith ()
  22171. {
  22172. as_val=$(( $* ))
  22173. }'
  22174. else
  22175. as_fn_arith ()
  22176. {
  22177. as_val=`expr "$@" || test $? -eq 1`
  22178. }
  22179. fi # as_fn_arith
  22180. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22181. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22182. as_expr=expr
  22183. else
  22184. as_expr=false
  22185. fi
  22186. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22187. as_basename=basename
  22188. else
  22189. as_basename=false
  22190. fi
  22191. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22192. as_dirname=dirname
  22193. else
  22194. as_dirname=false
  22195. fi
  22196. as_me=`$as_basename -- "$0" ||
  22197. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22198. X"$0" : 'X\(//\)$' \| \
  22199. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22200. $as_echo X/"$0" |
  22201. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22202. s//\1/
  22203. q
  22204. }
  22205. /^X\/\(\/\/\)$/{
  22206. s//\1/
  22207. q
  22208. }
  22209. /^X\/\(\/\).*/{
  22210. s//\1/
  22211. q
  22212. }
  22213. s/.*/./; q'`
  22214. # Avoid depending upon Character Ranges.
  22215. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22216. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22217. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22218. as_cr_digits='0123456789'
  22219. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22220. ECHO_C= ECHO_N= ECHO_T=
  22221. case `echo -n x` in #(((((
  22222. -n*)
  22223. case `echo 'xy\c'` in
  22224. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22225. xy) ECHO_C='\c';;
  22226. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22227. ECHO_T=' ';;
  22228. esac;;
  22229. *)
  22230. ECHO_N='-n';;
  22231. esac
  22232. rm -f conf$$ conf$$.exe conf$$.file
  22233. if test -d conf$$.dir; then
  22234. rm -f conf$$.dir/conf$$.file
  22235. else
  22236. rm -f conf$$.dir
  22237. mkdir conf$$.dir 2>/dev/null
  22238. fi
  22239. if (echo >conf$$.file) 2>/dev/null; then
  22240. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22241. as_ln_s='ln -s'
  22242. # ... but there are two gotchas:
  22243. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22244. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22245. # In both cases, we have to default to `cp -pR'.
  22246. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22247. as_ln_s='cp -pR'
  22248. elif ln conf$$.file conf$$ 2>/dev/null; then
  22249. as_ln_s=ln
  22250. else
  22251. as_ln_s='cp -pR'
  22252. fi
  22253. else
  22254. as_ln_s='cp -pR'
  22255. fi
  22256. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22257. rmdir conf$$.dir 2>/dev/null
  22258. # as_fn_mkdir_p
  22259. # -------------
  22260. # Create "$as_dir" as a directory, including parents if necessary.
  22261. as_fn_mkdir_p ()
  22262. {
  22263. case $as_dir in #(
  22264. -*) as_dir=./$as_dir;;
  22265. esac
  22266. test -d "$as_dir" || eval $as_mkdir_p || {
  22267. as_dirs=
  22268. while :; do
  22269. case $as_dir in #(
  22270. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22271. *) as_qdir=$as_dir;;
  22272. esac
  22273. as_dirs="'$as_qdir' $as_dirs"
  22274. as_dir=`$as_dirname -- "$as_dir" ||
  22275. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22276. X"$as_dir" : 'X\(//\)[^/]' \| \
  22277. X"$as_dir" : 'X\(//\)$' \| \
  22278. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22279. $as_echo X"$as_dir" |
  22280. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22281. s//\1/
  22282. q
  22283. }
  22284. /^X\(\/\/\)[^/].*/{
  22285. s//\1/
  22286. q
  22287. }
  22288. /^X\(\/\/\)$/{
  22289. s//\1/
  22290. q
  22291. }
  22292. /^X\(\/\).*/{
  22293. s//\1/
  22294. q
  22295. }
  22296. s/.*/./; q'`
  22297. test -d "$as_dir" && break
  22298. done
  22299. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22300. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22301. } # as_fn_mkdir_p
  22302. if mkdir -p . 2>/dev/null; then
  22303. as_mkdir_p='mkdir -p "$as_dir"'
  22304. else
  22305. test -d ./-p && rmdir ./-p
  22306. as_mkdir_p=false
  22307. fi
  22308. # as_fn_executable_p FILE
  22309. # -----------------------
  22310. # Test if FILE is an executable regular file.
  22311. as_fn_executable_p ()
  22312. {
  22313. test -f "$1" && test -x "$1"
  22314. } # as_fn_executable_p
  22315. as_test_x='test -x'
  22316. as_executable_p=as_fn_executable_p
  22317. # Sed expression to map a string onto a valid CPP name.
  22318. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22319. # Sed expression to map a string onto a valid variable name.
  22320. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22321. exec 6>&1
  22322. ## ----------------------------------- ##
  22323. ## Main body of $CONFIG_STATUS script. ##
  22324. ## ----------------------------------- ##
  22325. _ASEOF
  22326. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22327. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22328. # Save the log message, to keep $0 and so on meaningful, and to
  22329. # report actual input values of CONFIG_FILES etc. instead of their
  22330. # values after options handling.
  22331. ac_log="
  22332. This file was extended by $as_me, which was
  22333. generated by GNU Autoconf 2.69. Invocation command line was
  22334. CONFIG_FILES = $CONFIG_FILES
  22335. CONFIG_HEADERS = $CONFIG_HEADERS
  22336. CONFIG_LINKS = $CONFIG_LINKS
  22337. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22338. $ $0 $@
  22339. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22340. "
  22341. _ACEOF
  22342. case $ac_config_files in *"
  22343. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22344. esac
  22345. case $ac_config_headers in *"
  22346. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22347. esac
  22348. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22349. # Files that config.status was made for.
  22350. config_files="$ac_config_files"
  22351. config_headers="$ac_config_headers"
  22352. config_commands="$ac_config_commands"
  22353. _ACEOF
  22354. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22355. ac_cs_usage="\
  22356. \`$as_me' instantiates files and other configuration actions
  22357. from templates according to the current configuration. Unless the files
  22358. and actions are specified as TAGs, all are instantiated by default.
  22359. Usage: $0 [OPTION]... [TAG]...
  22360. -h, --help print this help, then exit
  22361. -V, --version print version number and configuration settings, then exit
  22362. --config print configuration, then exit
  22363. -q, --quiet, --silent
  22364. do not print progress messages
  22365. -d, --debug don't remove temporary files
  22366. --recheck update $as_me by reconfiguring in the same conditions
  22367. --file=FILE[:TEMPLATE]
  22368. instantiate the configuration file FILE
  22369. --header=FILE[:TEMPLATE]
  22370. instantiate the configuration header FILE
  22371. Configuration files:
  22372. $config_files
  22373. Configuration headers:
  22374. $config_headers
  22375. Configuration commands:
  22376. $config_commands
  22377. Report bugs to the package provider."
  22378. _ACEOF
  22379. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22380. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22381. ac_cs_version="\\
  22382. config.status
  22383. configured by $0, generated by GNU Autoconf 2.69,
  22384. with options \\"\$ac_cs_config\\"
  22385. Copyright (C) 2012 Free Software Foundation, Inc.
  22386. This config.status script is free software; the Free Software Foundation
  22387. gives unlimited permission to copy, distribute and modify it."
  22388. ac_pwd='$ac_pwd'
  22389. srcdir='$srcdir'
  22390. INSTALL='$INSTALL'
  22391. AWK='$AWK'
  22392. test -n "\$AWK" || AWK=awk
  22393. _ACEOF
  22394. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22395. # The default lists apply if the user does not specify any file.
  22396. ac_need_defaults=:
  22397. while test $# != 0
  22398. do
  22399. case $1 in
  22400. --*=?*)
  22401. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22402. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22403. ac_shift=:
  22404. ;;
  22405. --*=)
  22406. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22407. ac_optarg=
  22408. ac_shift=:
  22409. ;;
  22410. *)
  22411. ac_option=$1
  22412. ac_optarg=$2
  22413. ac_shift=shift
  22414. ;;
  22415. esac
  22416. case $ac_option in
  22417. # Handling of the options.
  22418. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22419. ac_cs_recheck=: ;;
  22420. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22421. $as_echo "$ac_cs_version"; exit ;;
  22422. --config | --confi | --conf | --con | --co | --c )
  22423. $as_echo "$ac_cs_config"; exit ;;
  22424. --debug | --debu | --deb | --de | --d | -d )
  22425. debug=: ;;
  22426. --file | --fil | --fi | --f )
  22427. $ac_shift
  22428. case $ac_optarg in
  22429. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22430. '') as_fn_error $? "missing file argument" ;;
  22431. esac
  22432. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22433. ac_need_defaults=false;;
  22434. --header | --heade | --head | --hea )
  22435. $ac_shift
  22436. case $ac_optarg in
  22437. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22438. esac
  22439. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22440. ac_need_defaults=false;;
  22441. --he | --h)
  22442. # Conflict between --help and --header
  22443. as_fn_error $? "ambiguous option: \`$1'
  22444. Try \`$0 --help' for more information.";;
  22445. --help | --hel | -h )
  22446. $as_echo "$ac_cs_usage"; exit ;;
  22447. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22448. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22449. ac_cs_silent=: ;;
  22450. # This is an error.
  22451. -*) as_fn_error $? "unrecognized option: \`$1'
  22452. Try \`$0 --help' for more information." ;;
  22453. *) as_fn_append ac_config_targets " $1"
  22454. ac_need_defaults=false ;;
  22455. esac
  22456. shift
  22457. done
  22458. ac_configure_extra_args=
  22459. if $ac_cs_silent; then
  22460. exec 6>/dev/null
  22461. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22462. fi
  22463. _ACEOF
  22464. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22465. if \$ac_cs_recheck; then
  22466. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22467. shift
  22468. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22469. CONFIG_SHELL='$SHELL'
  22470. export CONFIG_SHELL
  22471. exec "\$@"
  22472. fi
  22473. _ACEOF
  22474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22475. exec 5>>config.log
  22476. {
  22477. echo
  22478. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22479. ## Running $as_me. ##
  22480. _ASBOX
  22481. $as_echo "$ac_log"
  22482. } >&5
  22483. _ACEOF
  22484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22485. #
  22486. # INIT-COMMANDS
  22487. #
  22488. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22489. # if CDPATH is set.
  22490. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22491. sed_quote_subst='$sed_quote_subst'
  22492. double_quote_subst='$double_quote_subst'
  22493. delay_variable_subst='$delay_variable_subst'
  22494. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22495. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22496. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22497. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22498. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22499. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22500. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22501. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22502. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22503. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22504. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22505. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22506. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22507. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22508. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22509. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22510. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22511. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22512. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22513. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22514. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22515. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22516. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22517. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22518. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22519. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22520. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22521. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22522. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22523. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22524. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22525. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22526. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22527. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22528. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22529. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22530. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22531. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22532. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22533. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22534. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22535. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22536. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22537. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22538. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22539. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22540. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22541. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22542. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22543. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22544. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22545. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22546. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22547. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22548. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22549. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22550. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22551. 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"`'
  22552. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22553. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22554. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22555. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22556. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22557. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22558. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22559. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22560. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22561. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22562. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22563. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22564. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22565. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22566. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22567. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22568. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22569. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22570. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22571. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22572. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22573. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22574. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22575. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22576. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22577. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22578. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22579. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22580. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22581. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22582. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22583. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22584. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22585. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22586. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22587. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22588. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22589. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22590. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22591. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22592. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22593. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22594. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22595. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22596. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22597. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22598. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22599. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22600. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22601. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22602. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22603. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22604. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22605. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22606. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22607. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22608. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22609. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22610. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22611. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22612. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22613. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22614. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22615. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22616. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22617. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22618. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22619. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22620. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22621. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22622. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22623. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22624. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22625. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22626. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22627. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22628. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22629. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22630. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22631. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22632. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22633. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22634. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22635. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22636. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22637. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22638. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22639. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22640. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22641. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22642. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22643. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22644. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22645. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22646. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22647. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22648. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22649. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22650. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22651. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22652. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22653. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22654. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22655. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22656. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22657. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22658. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22659. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22660. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22661. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22662. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22663. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22664. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22665. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22666. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22667. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22668. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22669. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22670. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22671. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22672. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22673. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22674. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22675. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22676. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22677. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22678. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22679. LTCC='$LTCC'
  22680. LTCFLAGS='$LTCFLAGS'
  22681. compiler='$compiler_DEFAULT'
  22682. # A function that is used when there is no print builtin or printf.
  22683. func_fallback_echo ()
  22684. {
  22685. eval 'cat <<_LTECHO_EOF
  22686. \$1
  22687. _LTECHO_EOF'
  22688. }
  22689. # Quote evaled strings.
  22690. for var in AS \
  22691. DLLTOOL \
  22692. OBJDUMP \
  22693. SHELL \
  22694. ECHO \
  22695. PATH_SEPARATOR \
  22696. SED \
  22697. GREP \
  22698. EGREP \
  22699. FGREP \
  22700. LD \
  22701. NM \
  22702. LN_S \
  22703. lt_SP2NL \
  22704. lt_NL2SP \
  22705. reload_flag \
  22706. deplibs_check_method \
  22707. file_magic_cmd \
  22708. file_magic_glob \
  22709. want_nocaseglob \
  22710. sharedlib_from_linklib_cmd \
  22711. AR \
  22712. AR_FLAGS \
  22713. archiver_list_spec \
  22714. STRIP \
  22715. RANLIB \
  22716. CC \
  22717. CFLAGS \
  22718. compiler \
  22719. lt_cv_sys_global_symbol_pipe \
  22720. lt_cv_sys_global_symbol_to_cdecl \
  22721. lt_cv_sys_global_symbol_to_c_name_address \
  22722. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22723. nm_file_list_spec \
  22724. lt_prog_compiler_no_builtin_flag \
  22725. lt_prog_compiler_pic \
  22726. lt_prog_compiler_wl \
  22727. lt_prog_compiler_static \
  22728. lt_cv_prog_compiler_c_o \
  22729. need_locks \
  22730. MANIFEST_TOOL \
  22731. DSYMUTIL \
  22732. NMEDIT \
  22733. LIPO \
  22734. OTOOL \
  22735. OTOOL64 \
  22736. shrext_cmds \
  22737. export_dynamic_flag_spec \
  22738. whole_archive_flag_spec \
  22739. compiler_needs_object \
  22740. with_gnu_ld \
  22741. allow_undefined_flag \
  22742. no_undefined_flag \
  22743. hardcode_libdir_flag_spec \
  22744. hardcode_libdir_separator \
  22745. exclude_expsyms \
  22746. include_expsyms \
  22747. file_list_spec \
  22748. variables_saved_for_relink \
  22749. libname_spec \
  22750. library_names_spec \
  22751. soname_spec \
  22752. install_override_mode \
  22753. finish_eval \
  22754. old_striplib \
  22755. striplib \
  22756. compiler_lib_search_dirs \
  22757. predep_objects \
  22758. postdep_objects \
  22759. predeps \
  22760. postdeps \
  22761. compiler_lib_search_path \
  22762. LD_CXX \
  22763. reload_flag_CXX \
  22764. compiler_CXX \
  22765. lt_prog_compiler_no_builtin_flag_CXX \
  22766. lt_prog_compiler_pic_CXX \
  22767. lt_prog_compiler_wl_CXX \
  22768. lt_prog_compiler_static_CXX \
  22769. lt_cv_prog_compiler_c_o_CXX \
  22770. export_dynamic_flag_spec_CXX \
  22771. whole_archive_flag_spec_CXX \
  22772. compiler_needs_object_CXX \
  22773. with_gnu_ld_CXX \
  22774. allow_undefined_flag_CXX \
  22775. no_undefined_flag_CXX \
  22776. hardcode_libdir_flag_spec_CXX \
  22777. hardcode_libdir_separator_CXX \
  22778. exclude_expsyms_CXX \
  22779. include_expsyms_CXX \
  22780. file_list_spec_CXX \
  22781. compiler_lib_search_dirs_CXX \
  22782. predep_objects_CXX \
  22783. postdep_objects_CXX \
  22784. predeps_CXX \
  22785. postdeps_CXX \
  22786. compiler_lib_search_path_CXX; do
  22787. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22788. *[\\\\\\\`\\"\\\$]*)
  22789. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22790. ;;
  22791. *)
  22792. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22793. ;;
  22794. esac
  22795. done
  22796. # Double-quote double-evaled strings.
  22797. for var in reload_cmds \
  22798. old_postinstall_cmds \
  22799. old_postuninstall_cmds \
  22800. old_archive_cmds \
  22801. extract_expsyms_cmds \
  22802. old_archive_from_new_cmds \
  22803. old_archive_from_expsyms_cmds \
  22804. archive_cmds \
  22805. archive_expsym_cmds \
  22806. module_cmds \
  22807. module_expsym_cmds \
  22808. export_symbols_cmds \
  22809. prelink_cmds \
  22810. postlink_cmds \
  22811. postinstall_cmds \
  22812. postuninstall_cmds \
  22813. finish_cmds \
  22814. sys_lib_search_path_spec \
  22815. sys_lib_dlsearch_path_spec \
  22816. reload_cmds_CXX \
  22817. old_archive_cmds_CXX \
  22818. old_archive_from_new_cmds_CXX \
  22819. old_archive_from_expsyms_cmds_CXX \
  22820. archive_cmds_CXX \
  22821. archive_expsym_cmds_CXX \
  22822. module_cmds_CXX \
  22823. module_expsym_cmds_CXX \
  22824. export_symbols_cmds_CXX \
  22825. prelink_cmds_CXX \
  22826. postlink_cmds_CXX; do
  22827. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22828. *[\\\\\\\`\\"\\\$]*)
  22829. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22830. ;;
  22831. *)
  22832. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22833. ;;
  22834. esac
  22835. done
  22836. ac_aux_dir='$ac_aux_dir'
  22837. xsi_shell='$xsi_shell'
  22838. lt_shell_append='$lt_shell_append'
  22839. # See if we are running on zsh, and set the options which allow our
  22840. # commands through without removal of \ escapes INIT.
  22841. if test -n "\${ZSH_VERSION+set}" ; then
  22842. setopt NO_GLOB_SUBST
  22843. fi
  22844. PACKAGE='$PACKAGE'
  22845. VERSION='$VERSION'
  22846. TIMESTAMP='$TIMESTAMP'
  22847. RM='$RM'
  22848. ofile='$ofile'
  22849. SUMMARY="$SUMMARY"
  22850. _ACEOF
  22851. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22852. # Handling of arguments.
  22853. for ac_config_target in $ac_config_targets
  22854. do
  22855. case $ac_config_target in
  22856. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22857. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22858. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22859. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22860. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22861. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22862. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22863. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22864. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22865. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22866. esac
  22867. done
  22868. # If the user did not use the arguments to specify the items to instantiate,
  22869. # then the envvar interface is used. Set only those that are not.
  22870. # We use the long form for the default assignment because of an extremely
  22871. # bizarre bug on SunOS 4.1.3.
  22872. if $ac_need_defaults; then
  22873. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22874. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22875. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22876. fi
  22877. # Have a temporary directory for convenience. Make it in the build tree
  22878. # simply because there is no reason against having it here, and in addition,
  22879. # creating and moving files from /tmp can sometimes cause problems.
  22880. # Hook for its removal unless debugging.
  22881. # Note that there is a small window in which the directory will not be cleaned:
  22882. # after its creation but before its name has been assigned to `$tmp'.
  22883. $debug ||
  22884. {
  22885. tmp= ac_tmp=
  22886. trap 'exit_status=$?
  22887. : "${ac_tmp:=$tmp}"
  22888. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22889. ' 0
  22890. trap 'as_fn_exit 1' 1 2 13 15
  22891. }
  22892. # Create a (secure) tmp directory for tmp files.
  22893. {
  22894. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22895. test -d "$tmp"
  22896. } ||
  22897. {
  22898. tmp=./conf$$-$RANDOM
  22899. (umask 077 && mkdir "$tmp")
  22900. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22901. ac_tmp=$tmp
  22902. # Set up the scripts for CONFIG_FILES section.
  22903. # No need to generate them if there are no CONFIG_FILES.
  22904. # This happens for instance with `./config.status config.h'.
  22905. if test -n "$CONFIG_FILES"; then
  22906. ac_cr=`echo X | tr X '\015'`
  22907. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22908. # But we know of no other shell where ac_cr would be empty at this
  22909. # point, so we can use a bashism as a fallback.
  22910. if test "x$ac_cr" = x; then
  22911. eval ac_cr=\$\'\\r\'
  22912. fi
  22913. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22914. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22915. ac_cs_awk_cr='\\r'
  22916. else
  22917. ac_cs_awk_cr=$ac_cr
  22918. fi
  22919. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22920. _ACEOF
  22921. {
  22922. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22923. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22924. echo "_ACEOF"
  22925. } >conf$$subs.sh ||
  22926. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22927. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22928. ac_delim='%!_!# '
  22929. for ac_last_try in false false false false false :; do
  22930. . ./conf$$subs.sh ||
  22931. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22932. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22933. if test $ac_delim_n = $ac_delim_num; then
  22934. break
  22935. elif $ac_last_try; then
  22936. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22937. else
  22938. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22939. fi
  22940. done
  22941. rm -f conf$$subs.sh
  22942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22943. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22944. _ACEOF
  22945. sed -n '
  22946. h
  22947. s/^/S["/; s/!.*/"]=/
  22948. p
  22949. g
  22950. s/^[^!]*!//
  22951. :repl
  22952. t repl
  22953. s/'"$ac_delim"'$//
  22954. t delim
  22955. :nl
  22956. h
  22957. s/\(.\{148\}\)..*/\1/
  22958. t more1
  22959. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22960. p
  22961. n
  22962. b repl
  22963. :more1
  22964. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22965. p
  22966. g
  22967. s/.\{148\}//
  22968. t nl
  22969. :delim
  22970. h
  22971. s/\(.\{148\}\)..*/\1/
  22972. t more2
  22973. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22974. p
  22975. b
  22976. :more2
  22977. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22978. p
  22979. g
  22980. s/.\{148\}//
  22981. t delim
  22982. ' <conf$$subs.awk | sed '
  22983. /^[^""]/{
  22984. N
  22985. s/\n//
  22986. }
  22987. ' >>$CONFIG_STATUS || ac_write_fail=1
  22988. rm -f conf$$subs.awk
  22989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22990. _ACAWK
  22991. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22992. for (key in S) S_is_set[key] = 1
  22993. FS = ""
  22994. }
  22995. {
  22996. line = $ 0
  22997. nfields = split(line, field, "@")
  22998. substed = 0
  22999. len = length(field[1])
  23000. for (i = 2; i < nfields; i++) {
  23001. key = field[i]
  23002. keylen = length(key)
  23003. if (S_is_set[key]) {
  23004. value = S[key]
  23005. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23006. len += length(value) + length(field[++i])
  23007. substed = 1
  23008. } else
  23009. len += 1 + keylen
  23010. }
  23011. print line
  23012. }
  23013. _ACAWK
  23014. _ACEOF
  23015. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23016. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23017. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23018. else
  23019. cat
  23020. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23021. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23022. _ACEOF
  23023. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23024. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23025. # trailing colons and then remove the whole line if VPATH becomes empty
  23026. # (actually we leave an empty line to preserve line numbers).
  23027. if test "x$srcdir" = x.; then
  23028. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23029. h
  23030. s///
  23031. s/^/:/
  23032. s/[ ]*$/:/
  23033. s/:\$(srcdir):/:/g
  23034. s/:\${srcdir}:/:/g
  23035. s/:@srcdir@:/:/g
  23036. s/^:*//
  23037. s/:*$//
  23038. x
  23039. s/\(=[ ]*\).*/\1/
  23040. G
  23041. s/\n//
  23042. s/^[^=]*=[ ]*$//
  23043. }'
  23044. fi
  23045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23046. fi # test -n "$CONFIG_FILES"
  23047. # Set up the scripts for CONFIG_HEADERS section.
  23048. # No need to generate them if there are no CONFIG_HEADERS.
  23049. # This happens for instance with `./config.status Makefile'.
  23050. if test -n "$CONFIG_HEADERS"; then
  23051. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23052. BEGIN {
  23053. _ACEOF
  23054. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23055. # here-document in config.status, that substitutes the proper values into
  23056. # config.h.in to produce config.h.
  23057. # Create a delimiter string that does not exist in confdefs.h, to ease
  23058. # handling of long lines.
  23059. ac_delim='%!_!# '
  23060. for ac_last_try in false false :; do
  23061. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23062. if test -z "$ac_tt"; then
  23063. break
  23064. elif $ac_last_try; then
  23065. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23066. else
  23067. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23068. fi
  23069. done
  23070. # For the awk script, D is an array of macro values keyed by name,
  23071. # likewise P contains macro parameters if any. Preserve backslash
  23072. # newline sequences.
  23073. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23074. sed -n '
  23075. s/.\{148\}/&'"$ac_delim"'/g
  23076. t rset
  23077. :rset
  23078. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23079. t def
  23080. d
  23081. :def
  23082. s/\\$//
  23083. t bsnl
  23084. s/["\\]/\\&/g
  23085. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23086. D["\1"]=" \3"/p
  23087. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23088. d
  23089. :bsnl
  23090. s/["\\]/\\&/g
  23091. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23092. D["\1"]=" \3\\\\\\n"\\/p
  23093. t cont
  23094. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23095. t cont
  23096. d
  23097. :cont
  23098. n
  23099. s/.\{148\}/&'"$ac_delim"'/g
  23100. t clear
  23101. :clear
  23102. s/\\$//
  23103. t bsnlc
  23104. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23105. d
  23106. :bsnlc
  23107. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23108. b cont
  23109. ' <confdefs.h | sed '
  23110. s/'"$ac_delim"'/"\\\
  23111. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23113. for (key in D) D_is_set[key] = 1
  23114. FS = ""
  23115. }
  23116. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23117. line = \$ 0
  23118. split(line, arg, " ")
  23119. if (arg[1] == "#") {
  23120. defundef = arg[2]
  23121. mac1 = arg[3]
  23122. } else {
  23123. defundef = substr(arg[1], 2)
  23124. mac1 = arg[2]
  23125. }
  23126. split(mac1, mac2, "(") #)
  23127. macro = mac2[1]
  23128. prefix = substr(line, 1, index(line, defundef) - 1)
  23129. if (D_is_set[macro]) {
  23130. # Preserve the white space surrounding the "#".
  23131. print prefix "define", macro P[macro] D[macro]
  23132. next
  23133. } else {
  23134. # Replace #undef with comments. This is necessary, for example,
  23135. # in the case of _POSIX_SOURCE, which is predefined and required
  23136. # on some systems where configure will not decide to define it.
  23137. if (defundef == "undef") {
  23138. print "/*", prefix defundef, macro, "*/"
  23139. next
  23140. }
  23141. }
  23142. }
  23143. { print }
  23144. _ACAWK
  23145. _ACEOF
  23146. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23147. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23148. fi # test -n "$CONFIG_HEADERS"
  23149. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23150. shift
  23151. for ac_tag
  23152. do
  23153. case $ac_tag in
  23154. :[FHLC]) ac_mode=$ac_tag; continue;;
  23155. esac
  23156. case $ac_mode$ac_tag in
  23157. :[FHL]*:*);;
  23158. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23159. :[FH]-) ac_tag=-:-;;
  23160. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23161. esac
  23162. ac_save_IFS=$IFS
  23163. IFS=:
  23164. set x $ac_tag
  23165. IFS=$ac_save_IFS
  23166. shift
  23167. ac_file=$1
  23168. shift
  23169. case $ac_mode in
  23170. :L) ac_source=$1;;
  23171. :[FH])
  23172. ac_file_inputs=
  23173. for ac_f
  23174. do
  23175. case $ac_f in
  23176. -) ac_f="$ac_tmp/stdin";;
  23177. *) # Look for the file first in the build tree, then in the source tree
  23178. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23179. # because $ac_f cannot contain `:'.
  23180. test -f "$ac_f" ||
  23181. case $ac_f in
  23182. [\\/$]*) false;;
  23183. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23184. esac ||
  23185. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23186. esac
  23187. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23188. as_fn_append ac_file_inputs " '$ac_f'"
  23189. done
  23190. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23191. # use $as_me), people would be surprised to read:
  23192. # /* config.h. Generated by config.status. */
  23193. configure_input='Generated from '`
  23194. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23195. `' by configure.'
  23196. if test x"$ac_file" != x-; then
  23197. configure_input="$ac_file. $configure_input"
  23198. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23199. $as_echo "$as_me: creating $ac_file" >&6;}
  23200. fi
  23201. # Neutralize special characters interpreted by sed in replacement strings.
  23202. case $configure_input in #(
  23203. *\&* | *\|* | *\\* )
  23204. ac_sed_conf_input=`$as_echo "$configure_input" |
  23205. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23206. *) ac_sed_conf_input=$configure_input;;
  23207. esac
  23208. case $ac_tag in
  23209. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23210. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23211. esac
  23212. ;;
  23213. esac
  23214. ac_dir=`$as_dirname -- "$ac_file" ||
  23215. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23216. X"$ac_file" : 'X\(//\)[^/]' \| \
  23217. X"$ac_file" : 'X\(//\)$' \| \
  23218. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23219. $as_echo X"$ac_file" |
  23220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23221. s//\1/
  23222. q
  23223. }
  23224. /^X\(\/\/\)[^/].*/{
  23225. s//\1/
  23226. q
  23227. }
  23228. /^X\(\/\/\)$/{
  23229. s//\1/
  23230. q
  23231. }
  23232. /^X\(\/\).*/{
  23233. s//\1/
  23234. q
  23235. }
  23236. s/.*/./; q'`
  23237. as_dir="$ac_dir"; as_fn_mkdir_p
  23238. ac_builddir=.
  23239. case "$ac_dir" in
  23240. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23241. *)
  23242. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23243. # A ".." for each directory in $ac_dir_suffix.
  23244. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23245. case $ac_top_builddir_sub in
  23246. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23247. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23248. esac ;;
  23249. esac
  23250. ac_abs_top_builddir=$ac_pwd
  23251. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23252. # for backward compatibility:
  23253. ac_top_builddir=$ac_top_build_prefix
  23254. case $srcdir in
  23255. .) # We are building in place.
  23256. ac_srcdir=.
  23257. ac_top_srcdir=$ac_top_builddir_sub
  23258. ac_abs_top_srcdir=$ac_pwd ;;
  23259. [\\/]* | ?:[\\/]* ) # Absolute name.
  23260. ac_srcdir=$srcdir$ac_dir_suffix;
  23261. ac_top_srcdir=$srcdir
  23262. ac_abs_top_srcdir=$srcdir ;;
  23263. *) # Relative name.
  23264. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23265. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23266. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23267. esac
  23268. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23269. case $ac_mode in
  23270. :F)
  23271. #
  23272. # CONFIG_FILE
  23273. #
  23274. case $INSTALL in
  23275. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23276. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23277. esac
  23278. _ACEOF
  23279. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23280. # If the template does not know about datarootdir, expand it.
  23281. # FIXME: This hack should be removed a few years after 2.60.
  23282. ac_datarootdir_hack=; ac_datarootdir_seen=
  23283. ac_sed_dataroot='
  23284. /datarootdir/ {
  23285. p
  23286. q
  23287. }
  23288. /@datadir@/p
  23289. /@docdir@/p
  23290. /@infodir@/p
  23291. /@localedir@/p
  23292. /@mandir@/p'
  23293. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23294. *datarootdir*) ac_datarootdir_seen=yes;;
  23295. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23297. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23298. _ACEOF
  23299. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23300. ac_datarootdir_hack='
  23301. s&@datadir@&$datadir&g
  23302. s&@docdir@&$docdir&g
  23303. s&@infodir@&$infodir&g
  23304. s&@localedir@&$localedir&g
  23305. s&@mandir@&$mandir&g
  23306. s&\\\${datarootdir}&$datarootdir&g' ;;
  23307. esac
  23308. _ACEOF
  23309. # Neutralize VPATH when `$srcdir' = `.'.
  23310. # Shell code in configure.ac might set extrasub.
  23311. # FIXME: do we really want to maintain this feature?
  23312. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23313. ac_sed_extra="$ac_vpsub
  23314. $extrasub
  23315. _ACEOF
  23316. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23317. :t
  23318. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23319. s|@configure_input@|$ac_sed_conf_input|;t t
  23320. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23321. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23322. s&@srcdir@&$ac_srcdir&;t t
  23323. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23324. s&@top_srcdir@&$ac_top_srcdir&;t t
  23325. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23326. s&@builddir@&$ac_builddir&;t t
  23327. s&@abs_builddir@&$ac_abs_builddir&;t t
  23328. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23329. s&@INSTALL@&$ac_INSTALL&;t t
  23330. $ac_datarootdir_hack
  23331. "
  23332. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23333. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23334. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23335. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23336. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23337. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23339. which seems to be undefined. Please make sure it is defined" >&5
  23340. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23341. which seems to be undefined. Please make sure it is defined" >&2;}
  23342. rm -f "$ac_tmp/stdin"
  23343. case $ac_file in
  23344. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23345. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23346. esac \
  23347. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23348. ;;
  23349. :H)
  23350. #
  23351. # CONFIG_HEADER
  23352. #
  23353. if test x"$ac_file" != x-; then
  23354. {
  23355. $as_echo "/* $configure_input */" \
  23356. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23357. } >"$ac_tmp/config.h" \
  23358. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23359. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23360. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23361. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23362. else
  23363. rm -f "$ac_file"
  23364. mv "$ac_tmp/config.h" "$ac_file" \
  23365. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23366. fi
  23367. else
  23368. $as_echo "/* $configure_input */" \
  23369. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23370. || as_fn_error $? "could not create -" "$LINENO" 5
  23371. fi
  23372. ;;
  23373. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23374. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23375. ;;
  23376. esac
  23377. case $ac_file$ac_mode in
  23378. "libtool":C)
  23379. # See if we are running on zsh, and set the options which allow our
  23380. # commands through without removal of \ escapes.
  23381. if test -n "${ZSH_VERSION+set}" ; then
  23382. setopt NO_GLOB_SUBST
  23383. fi
  23384. cfgfile="${ofile}T"
  23385. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23386. $RM "$cfgfile"
  23387. cat <<_LT_EOF >> "$cfgfile"
  23388. #! $SHELL
  23389. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23390. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23391. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23392. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23393. #
  23394. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23395. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23396. # Foundation, Inc.
  23397. # Written by Gordon Matzigkeit, 1996
  23398. #
  23399. # This file is part of GNU Libtool.
  23400. #
  23401. # GNU Libtool is free software; you can redistribute it and/or
  23402. # modify it under the terms of the GNU General Public License as
  23403. # published by the Free Software Foundation; either version 2 of
  23404. # the License, or (at your option) any later version.
  23405. #
  23406. # As a special exception to the GNU General Public License,
  23407. # if you distribute this file as part of a program or library that
  23408. # is built using GNU Libtool, you may include this file under the
  23409. # same distribution terms that you use for the rest of that program.
  23410. #
  23411. # GNU Libtool is distributed in the hope that it will be useful,
  23412. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23413. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23414. # GNU General Public License for more details.
  23415. #
  23416. # You should have received a copy of the GNU General Public License
  23417. # along with GNU Libtool; see the file COPYING. If not, a copy
  23418. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23419. # obtained by writing to the Free Software Foundation, Inc.,
  23420. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23421. # The names of the tagged configurations supported by this script.
  23422. available_tags="CXX "
  23423. # ### BEGIN LIBTOOL CONFIG
  23424. # Which release of libtool.m4 was used?
  23425. macro_version=$macro_version
  23426. macro_revision=$macro_revision
  23427. # Assembler program.
  23428. AS=$lt_AS
  23429. # DLL creation program.
  23430. DLLTOOL=$lt_DLLTOOL
  23431. # Object dumper program.
  23432. OBJDUMP=$lt_OBJDUMP
  23433. # Whether or not to build shared libraries.
  23434. build_libtool_libs=$enable_shared
  23435. # Whether or not to build static libraries.
  23436. build_old_libs=$enable_static
  23437. # What type of objects to build.
  23438. pic_mode=$pic_mode
  23439. # Whether or not to optimize for fast installation.
  23440. fast_install=$enable_fast_install
  23441. # Shell to use when invoking shell scripts.
  23442. SHELL=$lt_SHELL
  23443. # An echo program that protects backslashes.
  23444. ECHO=$lt_ECHO
  23445. # The PATH separator for the build system.
  23446. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23447. # The host system.
  23448. host_alias=$host_alias
  23449. host=$host
  23450. host_os=$host_os
  23451. # The build system.
  23452. build_alias=$build_alias
  23453. build=$build
  23454. build_os=$build_os
  23455. # A sed program that does not truncate output.
  23456. SED=$lt_SED
  23457. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23458. Xsed="\$SED -e 1s/^X//"
  23459. # A grep program that handles long lines.
  23460. GREP=$lt_GREP
  23461. # An ERE matcher.
  23462. EGREP=$lt_EGREP
  23463. # A literal string matcher.
  23464. FGREP=$lt_FGREP
  23465. # A BSD- or MS-compatible name lister.
  23466. NM=$lt_NM
  23467. # Whether we need soft or hard links.
  23468. LN_S=$lt_LN_S
  23469. # What is the maximum length of a command?
  23470. max_cmd_len=$max_cmd_len
  23471. # Object file suffix (normally "o").
  23472. objext=$ac_objext
  23473. # Executable file suffix (normally "").
  23474. exeext=$exeext
  23475. # whether the shell understands "unset".
  23476. lt_unset=$lt_unset
  23477. # turn spaces into newlines.
  23478. SP2NL=$lt_lt_SP2NL
  23479. # turn newlines into spaces.
  23480. NL2SP=$lt_lt_NL2SP
  23481. # convert \$build file names to \$host format.
  23482. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23483. # convert \$build files to toolchain format.
  23484. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23485. # Method to check whether dependent libraries are shared objects.
  23486. deplibs_check_method=$lt_deplibs_check_method
  23487. # Command to use when deplibs_check_method = "file_magic".
  23488. file_magic_cmd=$lt_file_magic_cmd
  23489. # How to find potential files when deplibs_check_method = "file_magic".
  23490. file_magic_glob=$lt_file_magic_glob
  23491. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23492. want_nocaseglob=$lt_want_nocaseglob
  23493. # Command to associate shared and link libraries.
  23494. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23495. # The archiver.
  23496. AR=$lt_AR
  23497. # Flags to create an archive.
  23498. AR_FLAGS=$lt_AR_FLAGS
  23499. # How to feed a file listing to the archiver.
  23500. archiver_list_spec=$lt_archiver_list_spec
  23501. # A symbol stripping program.
  23502. STRIP=$lt_STRIP
  23503. # Commands used to install an old-style archive.
  23504. RANLIB=$lt_RANLIB
  23505. old_postinstall_cmds=$lt_old_postinstall_cmds
  23506. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23507. # Whether to use a lock for old archive extraction.
  23508. lock_old_archive_extraction=$lock_old_archive_extraction
  23509. # A C compiler.
  23510. LTCC=$lt_CC
  23511. # LTCC compiler flags.
  23512. LTCFLAGS=$lt_CFLAGS
  23513. # Take the output of nm and produce a listing of raw symbols and C names.
  23514. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23515. # Transform the output of nm in a proper C declaration.
  23516. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23517. # Transform the output of nm in a C name address pair.
  23518. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23519. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23520. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23521. # Specify filename containing input files for \$NM.
  23522. nm_file_list_spec=$lt_nm_file_list_spec
  23523. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23524. lt_sysroot=$lt_sysroot
  23525. # The name of the directory that contains temporary libtool files.
  23526. objdir=$objdir
  23527. # Used to examine libraries when file_magic_cmd begins with "file".
  23528. MAGIC_CMD=$MAGIC_CMD
  23529. # Must we lock files when doing compilation?
  23530. need_locks=$lt_need_locks
  23531. # Manifest tool.
  23532. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23533. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23534. DSYMUTIL=$lt_DSYMUTIL
  23535. # Tool to change global to local symbols on Mac OS X.
  23536. NMEDIT=$lt_NMEDIT
  23537. # Tool to manipulate fat objects and archives on Mac OS X.
  23538. LIPO=$lt_LIPO
  23539. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23540. OTOOL=$lt_OTOOL
  23541. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23542. OTOOL64=$lt_OTOOL64
  23543. # Old archive suffix (normally "a").
  23544. libext=$libext
  23545. # Shared library suffix (normally ".so").
  23546. shrext_cmds=$lt_shrext_cmds
  23547. # The commands to extract the exported symbol list from a shared archive.
  23548. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23549. # Variables whose values should be saved in libtool wrapper scripts and
  23550. # restored at link time.
  23551. variables_saved_for_relink=$lt_variables_saved_for_relink
  23552. # Do we need the "lib" prefix for modules?
  23553. need_lib_prefix=$need_lib_prefix
  23554. # Do we need a version for libraries?
  23555. need_version=$need_version
  23556. # Library versioning type.
  23557. version_type=$version_type
  23558. # Shared library runtime path variable.
  23559. runpath_var=$runpath_var
  23560. # Shared library path variable.
  23561. shlibpath_var=$shlibpath_var
  23562. # Is shlibpath searched before the hard-coded library search path?
  23563. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23564. # Format of library name prefix.
  23565. libname_spec=$lt_libname_spec
  23566. # List of archive names. First name is the real one, the rest are links.
  23567. # The last name is the one that the linker finds with -lNAME
  23568. library_names_spec=$lt_library_names_spec
  23569. # The coded name of the library, if different from the real name.
  23570. soname_spec=$lt_soname_spec
  23571. # Permission mode override for installation of shared libraries.
  23572. install_override_mode=$lt_install_override_mode
  23573. # Command to use after installation of a shared archive.
  23574. postinstall_cmds=$lt_postinstall_cmds
  23575. # Command to use after uninstallation of a shared archive.
  23576. postuninstall_cmds=$lt_postuninstall_cmds
  23577. # Commands used to finish a libtool library installation in a directory.
  23578. finish_cmds=$lt_finish_cmds
  23579. # As "finish_cmds", except a single script fragment to be evaled but
  23580. # not shown.
  23581. finish_eval=$lt_finish_eval
  23582. # Whether we should hardcode library paths into libraries.
  23583. hardcode_into_libs=$hardcode_into_libs
  23584. # Compile-time system search path for libraries.
  23585. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23586. # Run-time system search path for libraries.
  23587. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23588. # Whether dlopen is supported.
  23589. dlopen_support=$enable_dlopen
  23590. # Whether dlopen of programs is supported.
  23591. dlopen_self=$enable_dlopen_self
  23592. # Whether dlopen of statically linked programs is supported.
  23593. dlopen_self_static=$enable_dlopen_self_static
  23594. # Commands to strip libraries.
  23595. old_striplib=$lt_old_striplib
  23596. striplib=$lt_striplib
  23597. # The linker used to build libraries.
  23598. LD=$lt_LD
  23599. # How to create reloadable object files.
  23600. reload_flag=$lt_reload_flag
  23601. reload_cmds=$lt_reload_cmds
  23602. # Commands used to build an old-style archive.
  23603. old_archive_cmds=$lt_old_archive_cmds
  23604. # A language specific compiler.
  23605. CC=$lt_compiler
  23606. # Is the compiler the GNU compiler?
  23607. with_gcc=$GCC
  23608. # Compiler flag to turn off builtin functions.
  23609. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23610. # Additional compiler flags for building library objects.
  23611. pic_flag=$lt_lt_prog_compiler_pic
  23612. # How to pass a linker flag through the compiler.
  23613. wl=$lt_lt_prog_compiler_wl
  23614. # Compiler flag to prevent dynamic linking.
  23615. link_static_flag=$lt_lt_prog_compiler_static
  23616. # Does compiler simultaneously support -c and -o options?
  23617. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23618. # Whether or not to add -lc for building shared libraries.
  23619. build_libtool_need_lc=$archive_cmds_need_lc
  23620. # Whether or not to disallow shared libs when runtime libs are static.
  23621. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23622. # Compiler flag to allow reflexive dlopens.
  23623. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23624. # Compiler flag to generate shared objects directly from archives.
  23625. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23626. # Whether the compiler copes with passing no objects directly.
  23627. compiler_needs_object=$lt_compiler_needs_object
  23628. # Create an old-style archive from a shared archive.
  23629. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23630. # Create a temporary old-style archive to link instead of a shared archive.
  23631. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23632. # Commands used to build a shared archive.
  23633. archive_cmds=$lt_archive_cmds
  23634. archive_expsym_cmds=$lt_archive_expsym_cmds
  23635. # Commands used to build a loadable module if different from building
  23636. # a shared archive.
  23637. module_cmds=$lt_module_cmds
  23638. module_expsym_cmds=$lt_module_expsym_cmds
  23639. # Whether we are building with GNU ld or not.
  23640. with_gnu_ld=$lt_with_gnu_ld
  23641. # Flag that allows shared libraries with undefined symbols to be built.
  23642. allow_undefined_flag=$lt_allow_undefined_flag
  23643. # Flag that enforces no undefined symbols.
  23644. no_undefined_flag=$lt_no_undefined_flag
  23645. # Flag to hardcode \$libdir into a binary during linking.
  23646. # This must work even if \$libdir does not exist
  23647. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23648. # Whether we need a single "-rpath" flag with a separated argument.
  23649. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23650. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23651. # DIR into the resulting binary.
  23652. hardcode_direct=$hardcode_direct
  23653. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23654. # DIR into the resulting binary and the resulting library dependency is
  23655. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23656. # library is relocated.
  23657. hardcode_direct_absolute=$hardcode_direct_absolute
  23658. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23659. # into the resulting binary.
  23660. hardcode_minus_L=$hardcode_minus_L
  23661. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23662. # into the resulting binary.
  23663. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23664. # Set to "yes" if building a shared library automatically hardcodes DIR
  23665. # into the library and all subsequent libraries and executables linked
  23666. # against it.
  23667. hardcode_automatic=$hardcode_automatic
  23668. # Set to yes if linker adds runtime paths of dependent libraries
  23669. # to runtime path list.
  23670. inherit_rpath=$inherit_rpath
  23671. # Whether libtool must link a program against all its dependency libraries.
  23672. link_all_deplibs=$link_all_deplibs
  23673. # Set to "yes" if exported symbols are required.
  23674. always_export_symbols=$always_export_symbols
  23675. # The commands to list exported symbols.
  23676. export_symbols_cmds=$lt_export_symbols_cmds
  23677. # Symbols that should not be listed in the preloaded symbols.
  23678. exclude_expsyms=$lt_exclude_expsyms
  23679. # Symbols that must always be exported.
  23680. include_expsyms=$lt_include_expsyms
  23681. # Commands necessary for linking programs (against libraries) with templates.
  23682. prelink_cmds=$lt_prelink_cmds
  23683. # Commands necessary for finishing linking programs.
  23684. postlink_cmds=$lt_postlink_cmds
  23685. # Specify filename containing input files.
  23686. file_list_spec=$lt_file_list_spec
  23687. # How to hardcode a shared library path into an executable.
  23688. hardcode_action=$hardcode_action
  23689. # The directories searched by this compiler when creating a shared library.
  23690. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23691. # Dependencies to place before and after the objects being linked to
  23692. # create a shared library.
  23693. predep_objects=$lt_predep_objects
  23694. postdep_objects=$lt_postdep_objects
  23695. predeps=$lt_predeps
  23696. postdeps=$lt_postdeps
  23697. # The library search path used internally by the compiler when linking
  23698. # a shared library.
  23699. compiler_lib_search_path=$lt_compiler_lib_search_path
  23700. # ### END LIBTOOL CONFIG
  23701. _LT_EOF
  23702. case $host_os in
  23703. aix3*)
  23704. cat <<\_LT_EOF >> "$cfgfile"
  23705. # AIX sometimes has problems with the GCC collect2 program. For some
  23706. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23707. # vanish in a puff of smoke.
  23708. if test "X${COLLECT_NAMES+set}" != Xset; then
  23709. COLLECT_NAMES=
  23710. export COLLECT_NAMES
  23711. fi
  23712. _LT_EOF
  23713. ;;
  23714. esac
  23715. ltmain="$ac_aux_dir/ltmain.sh"
  23716. # We use sed instead of cat because bash on DJGPP gets confused if
  23717. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23718. # text mode, it properly converts lines to CR/LF. This bash problem
  23719. # is reportedly fixed, but why not run on old versions too?
  23720. sed '$q' "$ltmain" >> "$cfgfile" \
  23721. || (rm -f "$cfgfile"; exit 1)
  23722. if test x"$xsi_shell" = xyes; then
  23723. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23724. func_dirname ()\
  23725. {\
  23726. \ case ${1} in\
  23727. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23728. \ * ) func_dirname_result="${3}" ;;\
  23729. \ esac\
  23730. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23731. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23732. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23733. test 0 -eq $? || _lt_function_replace_fail=:
  23734. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23735. func_basename ()\
  23736. {\
  23737. \ func_basename_result="${1##*/}"\
  23738. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23739. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23740. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23741. test 0 -eq $? || _lt_function_replace_fail=:
  23742. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23743. func_dirname_and_basename ()\
  23744. {\
  23745. \ case ${1} in\
  23746. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23747. \ * ) func_dirname_result="${3}" ;;\
  23748. \ esac\
  23749. \ func_basename_result="${1##*/}"\
  23750. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23751. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23752. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23753. test 0 -eq $? || _lt_function_replace_fail=:
  23754. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23755. func_stripname ()\
  23756. {\
  23757. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23758. \ # positional parameters, so assign one to ordinary parameter first.\
  23759. \ func_stripname_result=${3}\
  23760. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23761. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23762. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23763. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23764. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23765. test 0 -eq $? || _lt_function_replace_fail=:
  23766. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23767. func_split_long_opt ()\
  23768. {\
  23769. \ func_split_long_opt_name=${1%%=*}\
  23770. \ func_split_long_opt_arg=${1#*=}\
  23771. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23772. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23773. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23774. test 0 -eq $? || _lt_function_replace_fail=:
  23775. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23776. func_split_short_opt ()\
  23777. {\
  23778. \ func_split_short_opt_arg=${1#??}\
  23779. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23780. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23781. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23782. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23783. test 0 -eq $? || _lt_function_replace_fail=:
  23784. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23785. func_lo2o ()\
  23786. {\
  23787. \ case ${1} in\
  23788. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23789. \ *) func_lo2o_result=${1} ;;\
  23790. \ esac\
  23791. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23792. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23793. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23794. test 0 -eq $? || _lt_function_replace_fail=:
  23795. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23796. func_xform ()\
  23797. {\
  23798. func_xform_result=${1%.*}.lo\
  23799. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23800. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23801. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23802. test 0 -eq $? || _lt_function_replace_fail=:
  23803. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23804. func_arith ()\
  23805. {\
  23806. func_arith_result=$(( $* ))\
  23807. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23808. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23809. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23810. test 0 -eq $? || _lt_function_replace_fail=:
  23811. sed -e '/^func_len ()$/,/^} # func_len /c\
  23812. func_len ()\
  23813. {\
  23814. func_len_result=${#1}\
  23815. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23816. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23817. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23818. test 0 -eq $? || _lt_function_replace_fail=:
  23819. fi
  23820. if test x"$lt_shell_append" = xyes; then
  23821. sed -e '/^func_append ()$/,/^} # func_append /c\
  23822. func_append ()\
  23823. {\
  23824. eval "${1}+=\\${2}"\
  23825. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23826. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23827. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23828. test 0 -eq $? || _lt_function_replace_fail=:
  23829. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23830. func_append_quoted ()\
  23831. {\
  23832. \ func_quote_for_eval "${2}"\
  23833. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23834. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23835. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23836. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23837. test 0 -eq $? || _lt_function_replace_fail=:
  23838. # Save a `func_append' function call where possible by direct use of '+='
  23839. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23840. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23841. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23842. test 0 -eq $? || _lt_function_replace_fail=:
  23843. else
  23844. # Save a `func_append' function call even when '+=' is not available
  23845. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23846. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23847. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23848. test 0 -eq $? || _lt_function_replace_fail=:
  23849. fi
  23850. if test x"$_lt_function_replace_fail" = x":"; then
  23851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23852. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23853. fi
  23854. mv -f "$cfgfile" "$ofile" ||
  23855. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23856. chmod +x "$ofile"
  23857. cat <<_LT_EOF >> "$ofile"
  23858. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23859. # The linker used to build libraries.
  23860. LD=$lt_LD_CXX
  23861. # How to create reloadable object files.
  23862. reload_flag=$lt_reload_flag_CXX
  23863. reload_cmds=$lt_reload_cmds_CXX
  23864. # Commands used to build an old-style archive.
  23865. old_archive_cmds=$lt_old_archive_cmds_CXX
  23866. # A language specific compiler.
  23867. CC=$lt_compiler_CXX
  23868. # Is the compiler the GNU compiler?
  23869. with_gcc=$GCC_CXX
  23870. # Compiler flag to turn off builtin functions.
  23871. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23872. # Additional compiler flags for building library objects.
  23873. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23874. # How to pass a linker flag through the compiler.
  23875. wl=$lt_lt_prog_compiler_wl_CXX
  23876. # Compiler flag to prevent dynamic linking.
  23877. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23878. # Does compiler simultaneously support -c and -o options?
  23879. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23880. # Whether or not to add -lc for building shared libraries.
  23881. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23882. # Whether or not to disallow shared libs when runtime libs are static.
  23883. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23884. # Compiler flag to allow reflexive dlopens.
  23885. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23886. # Compiler flag to generate shared objects directly from archives.
  23887. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23888. # Whether the compiler copes with passing no objects directly.
  23889. compiler_needs_object=$lt_compiler_needs_object_CXX
  23890. # Create an old-style archive from a shared archive.
  23891. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23892. # Create a temporary old-style archive to link instead of a shared archive.
  23893. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23894. # Commands used to build a shared archive.
  23895. archive_cmds=$lt_archive_cmds_CXX
  23896. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23897. # Commands used to build a loadable module if different from building
  23898. # a shared archive.
  23899. module_cmds=$lt_module_cmds_CXX
  23900. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23901. # Whether we are building with GNU ld or not.
  23902. with_gnu_ld=$lt_with_gnu_ld_CXX
  23903. # Flag that allows shared libraries with undefined symbols to be built.
  23904. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23905. # Flag that enforces no undefined symbols.
  23906. no_undefined_flag=$lt_no_undefined_flag_CXX
  23907. # Flag to hardcode \$libdir into a binary during linking.
  23908. # This must work even if \$libdir does not exist
  23909. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23910. # Whether we need a single "-rpath" flag with a separated argument.
  23911. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23912. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23913. # DIR into the resulting binary.
  23914. hardcode_direct=$hardcode_direct_CXX
  23915. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23916. # DIR into the resulting binary and the resulting library dependency is
  23917. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23918. # library is relocated.
  23919. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23920. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23921. # into the resulting binary.
  23922. hardcode_minus_L=$hardcode_minus_L_CXX
  23923. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23924. # into the resulting binary.
  23925. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23926. # Set to "yes" if building a shared library automatically hardcodes DIR
  23927. # into the library and all subsequent libraries and executables linked
  23928. # against it.
  23929. hardcode_automatic=$hardcode_automatic_CXX
  23930. # Set to yes if linker adds runtime paths of dependent libraries
  23931. # to runtime path list.
  23932. inherit_rpath=$inherit_rpath_CXX
  23933. # Whether libtool must link a program against all its dependency libraries.
  23934. link_all_deplibs=$link_all_deplibs_CXX
  23935. # Set to "yes" if exported symbols are required.
  23936. always_export_symbols=$always_export_symbols_CXX
  23937. # The commands to list exported symbols.
  23938. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23939. # Symbols that should not be listed in the preloaded symbols.
  23940. exclude_expsyms=$lt_exclude_expsyms_CXX
  23941. # Symbols that must always be exported.
  23942. include_expsyms=$lt_include_expsyms_CXX
  23943. # Commands necessary for linking programs (against libraries) with templates.
  23944. prelink_cmds=$lt_prelink_cmds_CXX
  23945. # Commands necessary for finishing linking programs.
  23946. postlink_cmds=$lt_postlink_cmds_CXX
  23947. # Specify filename containing input files.
  23948. file_list_spec=$lt_file_list_spec_CXX
  23949. # How to hardcode a shared library path into an executable.
  23950. hardcode_action=$hardcode_action_CXX
  23951. # The directories searched by this compiler when creating a shared library.
  23952. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23953. # Dependencies to place before and after the objects being linked to
  23954. # create a shared library.
  23955. predep_objects=$lt_predep_objects_CXX
  23956. postdep_objects=$lt_postdep_objects_CXX
  23957. predeps=$lt_predeps_CXX
  23958. postdeps=$lt_postdeps_CXX
  23959. # The library search path used internally by the compiler when linking
  23960. # a shared library.
  23961. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23962. # ### END LIBTOOL TAG CONFIG: CXX
  23963. _LT_EOF
  23964. ;;
  23965. "sdl2_config":C) chmod a+x sdl2-config ;;
  23966. "summary":C) echo -en "$SUMMARY" ;;
  23967. esac
  23968. done # for ac_tag
  23969. as_fn_exit 0
  23970. _ACEOF
  23971. ac_clean_files=$ac_clean_files_save
  23972. test $ac_write_fail = 0 ||
  23973. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23974. # configure is writing to config.log, and then calls config.status.
  23975. # config.status does its own redirection, appending to config.log.
  23976. # Unfortunately, on DOS this fails, as config.log is still kept open
  23977. # by configure, so config.status won't be able to write to it; its
  23978. # output is simply discarded. So we exec the FD to /dev/null,
  23979. # effectively closing config.log, so it can be properly (re)opened and
  23980. # appended to by config.status. When coming back to configure, we
  23981. # need to make the FD available again.
  23982. if test "$no_create" != yes; then
  23983. ac_cs_success=:
  23984. ac_config_status_args=
  23985. test "$silent" = yes &&
  23986. ac_config_status_args="$ac_config_status_args --quiet"
  23987. exec 5>/dev/null
  23988. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23989. exec 5>>config.log
  23990. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23991. # would make configure fail if this is the last instruction.
  23992. $ac_cs_success || as_fn_exit 1
  23993. fi
  23994. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23996. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23997. fi