configure 803 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425
  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. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_rpi
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_render_metal
  798. enable_video_directfb
  799. enable_directfb_shared
  800. enable_video_kmsdrm
  801. enable_kmsdrm_shared
  802. enable_video_dummy
  803. enable_video_opengl
  804. enable_video_opengles
  805. enable_video_opengles1
  806. enable_video_opengles2
  807. enable_video_vulkan
  808. enable_libudev
  809. enable_dbus
  810. enable_ime
  811. enable_ibus
  812. enable_fcitx
  813. enable_input_tslib
  814. enable_pthreads
  815. enable_pthread_sem
  816. enable_directx
  817. enable_sdl_dlopen
  818. enable_clock_gettime
  819. enable_rpath
  820. enable_render_d3d
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CC
  826. CFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CPP
  831. CXX
  832. CXXFLAGS
  833. CCC
  834. CXXCPP
  835. XMKMF'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. ac_unrecognized_opts=
  840. ac_unrecognized_sep=
  841. # The variables have the same names as the options, with
  842. # dashes changed to underlines.
  843. cache_file=/dev/null
  844. exec_prefix=NONE
  845. no_create=
  846. no_recursion=
  847. prefix=NONE
  848. program_prefix=NONE
  849. program_suffix=NONE
  850. program_transform_name=s,x,x,
  851. silent=
  852. site=
  853. srcdir=
  854. verbose=
  855. x_includes=NONE
  856. x_libraries=NONE
  857. # Installation directory options.
  858. # These are left unexpanded so users can "make install exec_prefix=/foo"
  859. # and all the variables that are supposed to be based on exec_prefix
  860. # by default will actually change.
  861. # Use braces instead of parens because sh, perl, etc. also accept them.
  862. # (The list follows the same order as the GNU Coding Standards.)
  863. bindir='${exec_prefix}/bin'
  864. sbindir='${exec_prefix}/sbin'
  865. libexecdir='${exec_prefix}/libexec'
  866. datarootdir='${prefix}/share'
  867. datadir='${datarootdir}'
  868. sysconfdir='${prefix}/etc'
  869. sharedstatedir='${prefix}/com'
  870. localstatedir='${prefix}/var'
  871. includedir='${prefix}/include'
  872. oldincludedir='/usr/include'
  873. docdir='${datarootdir}/doc/${PACKAGE}'
  874. infodir='${datarootdir}/info'
  875. htmldir='${docdir}'
  876. dvidir='${docdir}'
  877. pdfdir='${docdir}'
  878. psdir='${docdir}'
  879. libdir='${exec_prefix}/lib'
  880. localedir='${datarootdir}/locale'
  881. mandir='${datarootdir}/man'
  882. ac_prev=
  883. ac_dashdash=
  884. for ac_option
  885. do
  886. # If the previous option needs an argument, assign it.
  887. if test -n "$ac_prev"; then
  888. eval $ac_prev=\$ac_option
  889. ac_prev=
  890. continue
  891. fi
  892. case $ac_option in
  893. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  894. *=) ac_optarg= ;;
  895. *) ac_optarg=yes ;;
  896. esac
  897. # Accept the important Cygnus configure options, so we can diagnose typos.
  898. case $ac_dashdash$ac_option in
  899. --)
  900. ac_dashdash=yes ;;
  901. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  902. ac_prev=bindir ;;
  903. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  904. bindir=$ac_optarg ;;
  905. -build | --build | --buil | --bui | --bu)
  906. ac_prev=build_alias ;;
  907. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  908. build_alias=$ac_optarg ;;
  909. -cache-file | --cache-file | --cache-fil | --cache-fi \
  910. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  911. ac_prev=cache_file ;;
  912. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  913. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  914. cache_file=$ac_optarg ;;
  915. --config-cache | -C)
  916. cache_file=config.cache ;;
  917. -datadir | --datadir | --datadi | --datad)
  918. ac_prev=datadir ;;
  919. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  920. datadir=$ac_optarg ;;
  921. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  922. | --dataroo | --dataro | --datar)
  923. ac_prev=datarootdir ;;
  924. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  925. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  926. datarootdir=$ac_optarg ;;
  927. -disable-* | --disable-*)
  928. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  929. # Reject names that are not valid shell variable names.
  930. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  931. as_fn_error $? "invalid feature name: $ac_useropt"
  932. ac_useropt_orig=$ac_useropt
  933. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  934. case $ac_user_opts in
  935. *"
  936. "enable_$ac_useropt"
  937. "*) ;;
  938. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  939. ac_unrecognized_sep=', ';;
  940. esac
  941. eval enable_$ac_useropt=no ;;
  942. -docdir | --docdir | --docdi | --doc | --do)
  943. ac_prev=docdir ;;
  944. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  945. docdir=$ac_optarg ;;
  946. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  947. ac_prev=dvidir ;;
  948. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  949. dvidir=$ac_optarg ;;
  950. -enable-* | --enable-*)
  951. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  952. # Reject names that are not valid shell variable names.
  953. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  954. as_fn_error $? "invalid feature name: $ac_useropt"
  955. ac_useropt_orig=$ac_useropt
  956. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  957. case $ac_user_opts in
  958. *"
  959. "enable_$ac_useropt"
  960. "*) ;;
  961. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  962. ac_unrecognized_sep=', ';;
  963. esac
  964. eval enable_$ac_useropt=\$ac_optarg ;;
  965. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  966. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  967. | --exec | --exe | --ex)
  968. ac_prev=exec_prefix ;;
  969. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  970. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  971. | --exec=* | --exe=* | --ex=*)
  972. exec_prefix=$ac_optarg ;;
  973. -gas | --gas | --ga | --g)
  974. # Obsolete; use --with-gas.
  975. with_gas=yes ;;
  976. -help | --help | --hel | --he | -h)
  977. ac_init_help=long ;;
  978. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  979. ac_init_help=recursive ;;
  980. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  981. ac_init_help=short ;;
  982. -host | --host | --hos | --ho)
  983. ac_prev=host_alias ;;
  984. -host=* | --host=* | --hos=* | --ho=*)
  985. host_alias=$ac_optarg ;;
  986. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  987. ac_prev=htmldir ;;
  988. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  989. | --ht=*)
  990. htmldir=$ac_optarg ;;
  991. -includedir | --includedir | --includedi | --included | --include \
  992. | --includ | --inclu | --incl | --inc)
  993. ac_prev=includedir ;;
  994. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  995. | --includ=* | --inclu=* | --incl=* | --inc=*)
  996. includedir=$ac_optarg ;;
  997. -infodir | --infodir | --infodi | --infod | --info | --inf)
  998. ac_prev=infodir ;;
  999. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1000. infodir=$ac_optarg ;;
  1001. -libdir | --libdir | --libdi | --libd)
  1002. ac_prev=libdir ;;
  1003. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1004. libdir=$ac_optarg ;;
  1005. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1006. | --libexe | --libex | --libe)
  1007. ac_prev=libexecdir ;;
  1008. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1009. | --libexe=* | --libex=* | --libe=*)
  1010. libexecdir=$ac_optarg ;;
  1011. -localedir | --localedir | --localedi | --localed | --locale)
  1012. ac_prev=localedir ;;
  1013. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1014. localedir=$ac_optarg ;;
  1015. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1016. | --localstate | --localstat | --localsta | --localst | --locals)
  1017. ac_prev=localstatedir ;;
  1018. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1019. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1020. localstatedir=$ac_optarg ;;
  1021. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1022. ac_prev=mandir ;;
  1023. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1024. mandir=$ac_optarg ;;
  1025. -nfp | --nfp | --nf)
  1026. # Obsolete; use --without-fp.
  1027. with_fp=no ;;
  1028. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1029. | --no-cr | --no-c | -n)
  1030. no_create=yes ;;
  1031. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1032. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1033. no_recursion=yes ;;
  1034. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1035. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1036. | --oldin | --oldi | --old | --ol | --o)
  1037. ac_prev=oldincludedir ;;
  1038. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1039. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1040. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1041. oldincludedir=$ac_optarg ;;
  1042. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1043. ac_prev=prefix ;;
  1044. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1045. prefix=$ac_optarg ;;
  1046. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1047. | --program-pre | --program-pr | --program-p)
  1048. ac_prev=program_prefix ;;
  1049. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1050. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1051. program_prefix=$ac_optarg ;;
  1052. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1053. | --program-suf | --program-su | --program-s)
  1054. ac_prev=program_suffix ;;
  1055. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1056. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1057. program_suffix=$ac_optarg ;;
  1058. -program-transform-name | --program-transform-name \
  1059. | --program-transform-nam | --program-transform-na \
  1060. | --program-transform-n | --program-transform- \
  1061. | --program-transform | --program-transfor \
  1062. | --program-transfo | --program-transf \
  1063. | --program-trans | --program-tran \
  1064. | --progr-tra | --program-tr | --program-t)
  1065. ac_prev=program_transform_name ;;
  1066. -program-transform-name=* | --program-transform-name=* \
  1067. | --program-transform-nam=* | --program-transform-na=* \
  1068. | --program-transform-n=* | --program-transform-=* \
  1069. | --program-transform=* | --program-transfor=* \
  1070. | --program-transfo=* | --program-transf=* \
  1071. | --program-trans=* | --program-tran=* \
  1072. | --progr-tra=* | --program-tr=* | --program-t=*)
  1073. program_transform_name=$ac_optarg ;;
  1074. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1075. ac_prev=pdfdir ;;
  1076. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1077. pdfdir=$ac_optarg ;;
  1078. -psdir | --psdir | --psdi | --psd | --ps)
  1079. ac_prev=psdir ;;
  1080. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1081. psdir=$ac_optarg ;;
  1082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1083. | -silent | --silent | --silen | --sile | --sil)
  1084. silent=yes ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error $? "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error $? "invalid package name: $ac_useropt"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information"
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error $? "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. elif test "x$build_alias" != "x$host_alias"; then
  1230. cross_compiling=yes
  1231. fi
  1232. fi
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235. test "$silent" = yes && exec 6>/dev/null
  1236. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1237. ac_ls_di=`ls -di .` &&
  1238. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1239. as_fn_error $? "working directory cannot be determined"
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. as_fn_error $? "pwd does not report name of working directory"
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. $as_echo X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1283. pwd)`
  1284. # When building in place, set srcdir=.
  1285. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1286. srcdir=.
  1287. fi
  1288. # Remove unnecessary trailing slashes from srcdir.
  1289. # Double slashes in file names in object file debugging info
  1290. # mess up M-x gdb in Emacs.
  1291. case $srcdir in
  1292. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1293. esac
  1294. for ac_var in $ac_precious_vars; do
  1295. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_env_${ac_var}_value=\$${ac_var}
  1297. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1299. done
  1300. #
  1301. # Report the --help message.
  1302. #
  1303. if test "$ac_init_help" = "long"; then
  1304. # Omit some internal or obsolete options to make the list less imposing.
  1305. # This message is too long to be a string in the A/UX 3.1 sh.
  1306. cat <<_ACEOF
  1307. \`configure' configures this package to adapt to many kinds of systems.
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1310. VAR=VALUE. See below for descriptions of some of the useful variables.
  1311. Defaults for the options are specified in brackets.
  1312. Configuration:
  1313. -h, --help display this help and exit
  1314. --help=short display options specific to this package
  1315. --help=recursive display the short help of all the included packages
  1316. -V, --version display version information and exit
  1317. -q, --quiet, --silent do not print \`checking ...' messages
  1318. --cache-file=FILE cache test results in FILE [disabled]
  1319. -C, --config-cache alias for \`--cache-file=config.cache'
  1320. -n, --no-create do not create output files
  1321. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1322. Installation directories:
  1323. --prefix=PREFIX install architecture-independent files in PREFIX
  1324. [$ac_default_prefix]
  1325. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1326. [PREFIX]
  1327. By default, \`make install' will install all the files in
  1328. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1329. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1330. for instance \`--prefix=\$HOME'.
  1331. For better control, use the options below.
  1332. Fine tuning of the installation directories:
  1333. --bindir=DIR user executables [EPREFIX/bin]
  1334. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1335. --libexecdir=DIR program executables [EPREFIX/libexec]
  1336. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1337. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1338. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1339. --libdir=DIR object code libraries [EPREFIX/lib]
  1340. --includedir=DIR C header files [PREFIX/include]
  1341. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1342. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1343. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1344. --infodir=DIR info documentation [DATAROOTDIR/info]
  1345. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1346. --mandir=DIR man documentation [DATAROOTDIR/man]
  1347. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1348. --htmldir=DIR html documentation [DOCDIR]
  1349. --dvidir=DIR dvi documentation [DOCDIR]
  1350. --pdfdir=DIR pdf documentation [DOCDIR]
  1351. --psdir=DIR ps documentation [DOCDIR]
  1352. _ACEOF
  1353. cat <<\_ACEOF
  1354. X features:
  1355. --x-includes=DIR X include files are in DIR
  1356. --x-libraries=DIR X library files are in DIR
  1357. System types:
  1358. --build=BUILD configure for building on BUILD [guessed]
  1359. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1360. _ACEOF
  1361. fi
  1362. if test -n "$ac_init_help"; then
  1363. cat <<\_ACEOF
  1364. Optional Features:
  1365. --disable-option-checking ignore unrecognized --enable/--with options
  1366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1368. --enable-shared[=PKGS] build shared libraries [default=yes]
  1369. --enable-static[=PKGS] build static libraries [default=yes]
  1370. --enable-fast-install[=PKGS]
  1371. optimize for fast installation [default=yes]
  1372. --disable-libtool-lock avoid locking (might break parallel builds)
  1373. --enable-assertions Enable internal sanity checks
  1374. (auto/disabled/release/enabled/paranoid)
  1375. [[default=auto]]
  1376. --enable-dependency-tracking
  1377. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1378. --enable-libc Use the system C library [[default=yes]]
  1379. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1380. --enable-atomic Enable the atomic operations subsystem
  1381. [[default=yes]]
  1382. --enable-audio Enable the audio subsystem [[default=yes]]
  1383. --enable-video Enable the video subsystem [[default=yes]]
  1384. --enable-render Enable the render subsystem [[default=yes]]
  1385. --enable-events Enable the events subsystem [[default=yes]]
  1386. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1387. --enable-haptic Enable the haptic (force feedback) subsystem
  1388. [[default=yes]]
  1389. --enable-power Enable the power subsystem [[default=yes]]
  1390. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1391. --enable-threads Enable the threading subsystem [[default=yes]]
  1392. --enable-timers Enable the timer subsystem [[default=yes]]
  1393. --enable-file Enable the file subsystem [[default=yes]]
  1394. --enable-loadso Enable the shared object loading subsystem
  1395. [[default=yes]]
  1396. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1397. --enable-assembly Enable assembly routines [[default=yes]]
  1398. --enable-ssemath Allow GCC to use SSE floating point math
  1399. [[default=maybe]]
  1400. --enable-mmx use MMX assembly routines [[default=yes]]
  1401. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1402. --enable-sse use SSE assembly routines [[default=yes]]
  1403. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1404. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1405. --enable-altivec use Altivec assembly routines [[default=yes]]
  1406. --enable-oss support the OSS audio API [[default=maybe]]
  1407. --enable-alsa support the ALSA audio API [[default=yes]]
  1408. --disable-alsatest Do not try to compile and run a test Alsa program
  1409. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1410. --enable-jack use JACK audio [[default=yes]]
  1411. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1412. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1413. --disable-esdtest Do not try to compile and run a test ESD program
  1414. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1415. --enable-pulseaudio use PulseAudio [[default=yes]]
  1416. --enable-pulseaudio-shared
  1417. dynamically load PulseAudio support [[default=yes]]
  1418. --enable-arts support the Analog Real Time Synthesizer
  1419. [[default=yes]]
  1420. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1421. --enable-nas support the NAS audio API [[default=yes]]
  1422. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1423. --enable-sndio support the sndio audio API [[default=yes]]
  1424. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1425. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1426. --enable-fusionsound-shared
  1427. dynamically load fusionsound audio support
  1428. [[default=yes]]
  1429. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1430. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1431. --enable-libsamplerate use libsamplerate for audio rate conversion
  1432. [[default=yes]]
  1433. --enable-libsamplerate-shared
  1434. dynamically load libsamplerate [[default=yes]]
  1435. --enable-video-wayland use Wayland video driver [[default=yes]]
  1436. --enable-video-wayland-qt-touch
  1437. QtWayland server support for Wayland video driver
  1438. [[default=yes]]
  1439. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1440. --enable-video-mir use Mir video driver [[default=no]]
  1441. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1442. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1443. --enable-video-x11 use X11 video driver [[default=yes]]
  1444. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1445. --enable-video-x11-xcursor
  1446. enable X11 Xcursor support [[default=yes]]
  1447. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1448. --enable-video-x11-xinerama
  1449. enable X11 Xinerama support [[default=yes]]
  1450. --enable-video-x11-xinput
  1451. enable X11 XInput extension for manymouse, tablets,
  1452. etc [[default=yes]]
  1453. --enable-video-x11-xrandr
  1454. enable X11 Xrandr extension for fullscreen
  1455. [[default=yes]]
  1456. --enable-video-x11-scrnsaver
  1457. enable X11 screensaver extension [[default=yes]]
  1458. --enable-video-x11-xshape
  1459. enable X11 XShape support [[default=yes]]
  1460. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1461. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1462. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1463. --enable-render-metal enable the Metal render driver [[default=yes]]
  1464. --enable-video-directfb use DirectFB video driver [[default=no]]
  1465. --enable-directfb-shared
  1466. dynamically load directfb support [[default=yes]]
  1467. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1468. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1469. --enable-video-dummy use dummy video driver [[default=yes]]
  1470. --enable-video-opengl include OpenGL support [[default=yes]]
  1471. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1472. --enable-video-opengles1
  1473. include OpenGL ES 1.1 support [[default=yes]]
  1474. --enable-video-opengles2
  1475. include OpenGL ES 2.0 support [[default=yes]]
  1476. --enable-video-vulkan include Vulkan support [[default=yes]]
  1477. --enable-libudev enable libudev support [[default=yes]]
  1478. --enable-dbus enable D-Bus support [[default=yes]]
  1479. --enable-ime enable IME support [[default=yes]]
  1480. --enable-ibus enable IBus support [[default=yes]]
  1481. --enable-fcitx enable fcitx support [[default=yes]]
  1482. --enable-input-tslib use the Touchscreen library for input
  1483. [[default=yes]]
  1484. --enable-pthreads use POSIX threads for multi-threading
  1485. [[default=yes]]
  1486. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1487. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1488. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1489. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1490. UNIX [[default=yes]]
  1491. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1492. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1493. Optional Packages:
  1494. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1495. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1496. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1497. both]
  1498. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1499. --with-sysroot=DIR Search for dependent libraries within DIR
  1500. (or the compiler's sysroot if not specified).
  1501. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1502. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1503. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1504. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1505. --with-x use the X Window System
  1506. Some influential environment variables:
  1507. CC C compiler command
  1508. CFLAGS C compiler flags
  1509. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1510. nonstandard directory <lib dir>
  1511. LIBS libraries to pass to the linker, e.g. -l<library>
  1512. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1513. you have headers in a nonstandard directory <include dir>
  1514. CPP C preprocessor
  1515. CXX C++ compiler command
  1516. CXXFLAGS C++ compiler flags
  1517. CXXCPP C++ preprocessor
  1518. XMKMF Path to xmkmf, Makefile generator for X Window System
  1519. Use these variables to override the choices made by `configure' or to help
  1520. it to find libraries and programs with nonstandard names/locations.
  1521. Report bugs to the package provider.
  1522. _ACEOF
  1523. ac_status=$?
  1524. fi
  1525. if test "$ac_init_help" = "recursive"; then
  1526. # If there are subdirs, report their specific --help.
  1527. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1528. test -d "$ac_dir" ||
  1529. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1530. continue
  1531. ac_builddir=.
  1532. case "$ac_dir" in
  1533. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1534. *)
  1535. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1536. # A ".." for each directory in $ac_dir_suffix.
  1537. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1538. case $ac_top_builddir_sub in
  1539. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1540. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1541. esac ;;
  1542. esac
  1543. ac_abs_top_builddir=$ac_pwd
  1544. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1545. # for backward compatibility:
  1546. ac_top_builddir=$ac_top_build_prefix
  1547. case $srcdir in
  1548. .) # We are building in place.
  1549. ac_srcdir=.
  1550. ac_top_srcdir=$ac_top_builddir_sub
  1551. ac_abs_top_srcdir=$ac_pwd ;;
  1552. [\\/]* | ?:[\\/]* ) # Absolute name.
  1553. ac_srcdir=$srcdir$ac_dir_suffix;
  1554. ac_top_srcdir=$srcdir
  1555. ac_abs_top_srcdir=$srcdir ;;
  1556. *) # Relative name.
  1557. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1558. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1559. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1560. esac
  1561. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1562. cd "$ac_dir" || { ac_status=$?; continue; }
  1563. # Check for guested configure.
  1564. if test -f "$ac_srcdir/configure.gnu"; then
  1565. echo &&
  1566. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1567. elif test -f "$ac_srcdir/configure"; then
  1568. echo &&
  1569. $SHELL "$ac_srcdir/configure" --help=recursive
  1570. else
  1571. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1572. fi || ac_status=$?
  1573. cd "$ac_pwd" || { ac_status=$?; break; }
  1574. done
  1575. fi
  1576. test -n "$ac_init_help" && exit $ac_status
  1577. if $ac_init_version; then
  1578. cat <<\_ACEOF
  1579. configure
  1580. generated by GNU Autoconf 2.69
  1581. Copyright (C) 2012 Free Software Foundation, Inc.
  1582. This configure script is free software; the Free Software Foundation
  1583. gives unlimited permission to copy, distribute and modify it.
  1584. _ACEOF
  1585. exit
  1586. fi
  1587. ## ------------------------ ##
  1588. ## Autoconf initialization. ##
  1589. ## ------------------------ ##
  1590. # ac_fn_c_try_compile LINENO
  1591. # --------------------------
  1592. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1593. ac_fn_c_try_compile ()
  1594. {
  1595. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1596. rm -f conftest.$ac_objext
  1597. if { { ac_try="$ac_compile"
  1598. case "(($ac_try" in
  1599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1600. *) ac_try_echo=$ac_try;;
  1601. esac
  1602. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1603. $as_echo "$ac_try_echo"; } >&5
  1604. (eval "$ac_compile") 2>conftest.err
  1605. ac_status=$?
  1606. if test -s conftest.err; then
  1607. grep -v '^ *+' conftest.err >conftest.er1
  1608. cat conftest.er1 >&5
  1609. mv -f conftest.er1 conftest.err
  1610. fi
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } && {
  1613. test -z "$ac_c_werror_flag" ||
  1614. test ! -s conftest.err
  1615. } && test -s conftest.$ac_objext; then :
  1616. ac_retval=0
  1617. else
  1618. $as_echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. ac_retval=1
  1621. fi
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. as_fn_set_status $ac_retval
  1624. } # ac_fn_c_try_compile
  1625. # ac_fn_c_try_link LINENO
  1626. # -----------------------
  1627. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1628. ac_fn_c_try_link ()
  1629. {
  1630. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1631. rm -f conftest.$ac_objext conftest$ac_exeext
  1632. if { { ac_try="$ac_link"
  1633. case "(($ac_try" in
  1634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1635. *) ac_try_echo=$ac_try;;
  1636. esac
  1637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1638. $as_echo "$ac_try_echo"; } >&5
  1639. (eval "$ac_link") 2>conftest.err
  1640. ac_status=$?
  1641. if test -s conftest.err; then
  1642. grep -v '^ *+' conftest.err >conftest.er1
  1643. cat conftest.er1 >&5
  1644. mv -f conftest.er1 conftest.err
  1645. fi
  1646. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1647. test $ac_status = 0; } && {
  1648. test -z "$ac_c_werror_flag" ||
  1649. test ! -s conftest.err
  1650. } && test -s conftest$ac_exeext && {
  1651. test "$cross_compiling" = yes ||
  1652. test -x conftest$ac_exeext
  1653. }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=1
  1659. fi
  1660. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1661. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1662. # interfere with the next link command; also delete a directory that is
  1663. # left behind by Apple's compiler. We do this before executing the actions.
  1664. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1665. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1666. as_fn_set_status $ac_retval
  1667. } # ac_fn_c_try_link
  1668. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1669. # -------------------------------------------------------
  1670. # Tests whether HEADER exists and can be compiled using the include files in
  1671. # INCLUDES, setting the cache variable VAR accordingly.
  1672. ac_fn_c_check_header_compile ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1676. $as_echo_n "checking for $2... " >&6; }
  1677. if eval \${$3+:} false; then :
  1678. $as_echo_n "(cached) " >&6
  1679. else
  1680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1681. /* end confdefs.h. */
  1682. $4
  1683. #include <$2>
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1691. fi
  1692. eval ac_res=\$$3
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. $as_echo "$ac_res" >&6; }
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. } # ac_fn_c_check_header_compile
  1697. # ac_fn_c_try_cpp LINENO
  1698. # ----------------------
  1699. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_c_try_cpp ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1704. case "(($ac_try" in
  1705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1706. *) ac_try_echo=$ac_try;;
  1707. esac
  1708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1709. $as_echo "$ac_try_echo"; } >&5
  1710. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1711. ac_status=$?
  1712. if test -s conftest.err; then
  1713. grep -v '^ *+' conftest.err >conftest.er1
  1714. cat conftest.er1 >&5
  1715. mv -f conftest.er1 conftest.err
  1716. fi
  1717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1718. test $ac_status = 0; } > conftest.i && {
  1719. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1720. test ! -s conftest.err
  1721. }; then :
  1722. ac_retval=0
  1723. else
  1724. $as_echo "$as_me: failed program was:" >&5
  1725. sed 's/^/| /' conftest.$ac_ext >&5
  1726. ac_retval=1
  1727. fi
  1728. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1729. as_fn_set_status $ac_retval
  1730. } # ac_fn_c_try_cpp
  1731. # ac_fn_c_try_run LINENO
  1732. # ----------------------
  1733. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1734. # that executables *can* be run.
  1735. ac_fn_c_try_run ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. if { { ac_try="$ac_link"
  1739. case "(($ac_try" in
  1740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1741. *) ac_try_echo=$ac_try;;
  1742. esac
  1743. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1744. $as_echo "$ac_try_echo"; } >&5
  1745. (eval "$ac_link") 2>&5
  1746. ac_status=$?
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1756. ac_status=$?
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; }; }; then :
  1759. ac_retval=0
  1760. else
  1761. $as_echo "$as_me: program exited with status $ac_status" >&5
  1762. $as_echo "$as_me: failed program was:" >&5
  1763. sed 's/^/| /' conftest.$ac_ext >&5
  1764. ac_retval=$ac_status
  1765. fi
  1766. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. as_fn_set_status $ac_retval
  1769. } # ac_fn_c_try_run
  1770. # ac_fn_c_check_func LINENO FUNC VAR
  1771. # ----------------------------------
  1772. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1773. ac_fn_c_check_func ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1777. $as_echo_n "checking for $2... " >&6; }
  1778. if eval \${$3+:} false; then :
  1779. $as_echo_n "(cached) " >&6
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1785. #define $2 innocuous_$2
  1786. /* System header to define __stub macros and hopefully few prototypes,
  1787. which can conflict with char $2 (); below.
  1788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1789. <limits.h> exists even on freestanding compilers. */
  1790. #ifdef __STDC__
  1791. # include <limits.h>
  1792. #else
  1793. # include <assert.h>
  1794. #endif
  1795. #undef $2
  1796. /* Override any GCC internal prototype to avoid an error.
  1797. Use char because int might match the return type of a GCC
  1798. builtin and then its argument prototype would still apply. */
  1799. #ifdef __cplusplus
  1800. extern "C"
  1801. #endif
  1802. char $2 ();
  1803. /* The GNU C library defines this for functions which it implements
  1804. to always fail with ENOSYS. Some functions are actually named
  1805. something starting with __ and the normal name is an alias. */
  1806. #if defined __stub_$2 || defined __stub___$2
  1807. choke me
  1808. #endif
  1809. int
  1810. main ()
  1811. {
  1812. return $2 ();
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_link "$LINENO"; then :
  1818. eval "$3=yes"
  1819. else
  1820. eval "$3=no"
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext \
  1823. conftest$ac_exeext conftest.$ac_ext
  1824. fi
  1825. eval ac_res=\$$3
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1827. $as_echo "$ac_res" >&6; }
  1828. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1829. } # ac_fn_c_check_func
  1830. # ac_fn_cxx_try_compile LINENO
  1831. # ----------------------------
  1832. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1833. ac_fn_cxx_try_compile ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. rm -f conftest.$ac_objext
  1837. if { { ac_try="$ac_compile"
  1838. case "(($ac_try" in
  1839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1840. *) ac_try_echo=$ac_try;;
  1841. esac
  1842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1843. $as_echo "$ac_try_echo"; } >&5
  1844. (eval "$ac_compile") 2>conftest.err
  1845. ac_status=$?
  1846. if test -s conftest.err; then
  1847. grep -v '^ *+' conftest.err >conftest.er1
  1848. cat conftest.er1 >&5
  1849. mv -f conftest.er1 conftest.err
  1850. fi
  1851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1852. test $ac_status = 0; } && {
  1853. test -z "$ac_cxx_werror_flag" ||
  1854. test ! -s conftest.err
  1855. } && test -s conftest.$ac_objext; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1863. as_fn_set_status $ac_retval
  1864. } # ac_fn_cxx_try_compile
  1865. # ac_fn_cxx_try_cpp LINENO
  1866. # ------------------------
  1867. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1868. ac_fn_cxx_try_cpp ()
  1869. {
  1870. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1871. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1872. case "(($ac_try" in
  1873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1874. *) ac_try_echo=$ac_try;;
  1875. esac
  1876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1877. $as_echo "$ac_try_echo"; } >&5
  1878. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1879. ac_status=$?
  1880. if test -s conftest.err; then
  1881. grep -v '^ *+' conftest.err >conftest.er1
  1882. cat conftest.er1 >&5
  1883. mv -f conftest.er1 conftest.err
  1884. fi
  1885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1886. test $ac_status = 0; } > conftest.i && {
  1887. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1888. test ! -s conftest.err
  1889. }; then :
  1890. ac_retval=0
  1891. else
  1892. $as_echo "$as_me: failed program was:" >&5
  1893. sed 's/^/| /' conftest.$ac_ext >&5
  1894. ac_retval=1
  1895. fi
  1896. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1897. as_fn_set_status $ac_retval
  1898. } # ac_fn_cxx_try_cpp
  1899. # ac_fn_cxx_try_link LINENO
  1900. # -------------------------
  1901. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1902. ac_fn_cxx_try_link ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. rm -f conftest.$ac_objext conftest$ac_exeext
  1906. if { { ac_try="$ac_link"
  1907. case "(($ac_try" in
  1908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1909. *) ac_try_echo=$ac_try;;
  1910. esac
  1911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1912. $as_echo "$ac_try_echo"; } >&5
  1913. (eval "$ac_link") 2>conftest.err
  1914. ac_status=$?
  1915. if test -s conftest.err; then
  1916. grep -v '^ *+' conftest.err >conftest.er1
  1917. cat conftest.er1 >&5
  1918. mv -f conftest.er1 conftest.err
  1919. fi
  1920. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1921. test $ac_status = 0; } && {
  1922. test -z "$ac_cxx_werror_flag" ||
  1923. test ! -s conftest.err
  1924. } && test -s conftest$ac_exeext && {
  1925. test "$cross_compiling" = yes ||
  1926. test -x conftest$ac_exeext
  1927. }; then :
  1928. ac_retval=0
  1929. else
  1930. $as_echo "$as_me: failed program was:" >&5
  1931. sed 's/^/| /' conftest.$ac_ext >&5
  1932. ac_retval=1
  1933. fi
  1934. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1935. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1936. # interfere with the next link command; also delete a directory that is
  1937. # left behind by Apple's compiler. We do this before executing the actions.
  1938. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. as_fn_set_status $ac_retval
  1941. } # ac_fn_cxx_try_link
  1942. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1943. # -------------------------------------------------------
  1944. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1945. # the include files in INCLUDES and setting the cache variable VAR
  1946. # accordingly.
  1947. ac_fn_c_check_header_mongrel ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. if eval \${$3+:} false; then :
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1952. $as_echo_n "checking for $2... " >&6; }
  1953. if eval \${$3+:} false; then :
  1954. $as_echo_n "(cached) " >&6
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. else
  1960. # Is the header compilable?
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1962. $as_echo_n "checking $2 usability... " >&6; }
  1963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1964. /* end confdefs.h. */
  1965. $4
  1966. #include <$2>
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. ac_header_compiler=yes
  1970. else
  1971. ac_header_compiler=no
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1975. $as_echo "$ac_header_compiler" >&6; }
  1976. # Is the header present?
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1978. $as_echo_n "checking $2 presence... " >&6; }
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. #include <$2>
  1982. _ACEOF
  1983. if ac_fn_c_try_cpp "$LINENO"; then :
  1984. ac_header_preproc=yes
  1985. else
  1986. ac_header_preproc=no
  1987. fi
  1988. rm -f conftest.err conftest.i conftest.$ac_ext
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1990. $as_echo "$ac_header_preproc" >&6; }
  1991. # So? What about this header?
  1992. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1993. yes:no: )
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1995. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1997. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1998. ;;
  1999. no:yes:* )
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2001. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2003. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2005. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2007. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2009. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2010. ;;
  2011. esac
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2013. $as_echo_n "checking for $2... " >&6; }
  2014. if eval \${$3+:} false; then :
  2015. $as_echo_n "(cached) " >&6
  2016. else
  2017. eval "$3=\$ac_header_compiler"
  2018. fi
  2019. eval ac_res=\$$3
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2021. $as_echo "$ac_res" >&6; }
  2022. fi
  2023. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2024. } # ac_fn_c_check_header_mongrel
  2025. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2026. # -------------------------------------------
  2027. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2028. # variable VAR accordingly.
  2029. ac_fn_c_check_type ()
  2030. {
  2031. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2033. $as_echo_n "checking for $2... " >&6; }
  2034. if eval \${$3+:} false; then :
  2035. $as_echo_n "(cached) " >&6
  2036. else
  2037. eval "$3=no"
  2038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2039. /* end confdefs.h. */
  2040. $4
  2041. int
  2042. main ()
  2043. {
  2044. if (sizeof ($2))
  2045. return 0;
  2046. ;
  2047. return 0;
  2048. }
  2049. _ACEOF
  2050. if ac_fn_c_try_compile "$LINENO"; then :
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h. */
  2053. $4
  2054. int
  2055. main ()
  2056. {
  2057. if (sizeof (($2)))
  2058. return 0;
  2059. ;
  2060. return 0;
  2061. }
  2062. _ACEOF
  2063. if ac_fn_c_try_compile "$LINENO"; then :
  2064. else
  2065. eval "$3=yes"
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2070. fi
  2071. eval ac_res=\$$3
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2073. $as_echo "$ac_res" >&6; }
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. } # ac_fn_c_check_type
  2076. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2077. # ----------------------------------------------------
  2078. # Tries to find if the field MEMBER exists in type AGGR, after including
  2079. # INCLUDES, setting cache variable VAR accordingly.
  2080. ac_fn_c_check_member ()
  2081. {
  2082. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2084. $as_echo_n "checking for $2.$3... " >&6; }
  2085. if eval \${$4+:} false; then :
  2086. $as_echo_n "(cached) " >&6
  2087. else
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. $5
  2091. int
  2092. main ()
  2093. {
  2094. static $2 ac_aggr;
  2095. if (ac_aggr.$3)
  2096. return 0;
  2097. ;
  2098. return 0;
  2099. }
  2100. _ACEOF
  2101. if ac_fn_c_try_compile "$LINENO"; then :
  2102. eval "$4=yes"
  2103. else
  2104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2105. /* end confdefs.h. */
  2106. $5
  2107. int
  2108. main ()
  2109. {
  2110. static $2 ac_aggr;
  2111. if (sizeof ac_aggr.$3)
  2112. return 0;
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. if ac_fn_c_try_compile "$LINENO"; then :
  2118. eval "$4=yes"
  2119. else
  2120. eval "$4=no"
  2121. fi
  2122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2123. fi
  2124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2125. fi
  2126. eval ac_res=\$$4
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2128. $as_echo "$ac_res" >&6; }
  2129. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2130. } # ac_fn_c_check_member
  2131. cat >config.log <<_ACEOF
  2132. This file contains any messages produced by compilers while
  2133. running configure, to aid debugging if configure makes a mistake.
  2134. It was created by $as_me, which was
  2135. generated by GNU Autoconf 2.69. Invocation command line was
  2136. $ $0 $@
  2137. _ACEOF
  2138. exec 5>>config.log
  2139. {
  2140. cat <<_ASUNAME
  2141. ## --------- ##
  2142. ## Platform. ##
  2143. ## --------- ##
  2144. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2145. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2146. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2147. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2148. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2149. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2150. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2151. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2152. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2153. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2154. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2155. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2156. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2157. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2158. _ASUNAME
  2159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2160. for as_dir in $PATH
  2161. do
  2162. IFS=$as_save_IFS
  2163. test -z "$as_dir" && as_dir=.
  2164. $as_echo "PATH: $as_dir"
  2165. done
  2166. IFS=$as_save_IFS
  2167. } >&5
  2168. cat >&5 <<_ACEOF
  2169. ## ----------- ##
  2170. ## Core tests. ##
  2171. ## ----------- ##
  2172. _ACEOF
  2173. # Keep a trace of the command line.
  2174. # Strip out --no-create and --no-recursion so they do not pile up.
  2175. # Strip out --silent because we don't want to record it for future runs.
  2176. # Also quote any args containing shell meta-characters.
  2177. # Make two passes to allow for proper duplicate-argument suppression.
  2178. ac_configure_args=
  2179. ac_configure_args0=
  2180. ac_configure_args1=
  2181. ac_must_keep_next=false
  2182. for ac_pass in 1 2
  2183. do
  2184. for ac_arg
  2185. do
  2186. case $ac_arg in
  2187. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2188. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2189. | -silent | --silent | --silen | --sile | --sil)
  2190. continue ;;
  2191. *\'*)
  2192. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2193. esac
  2194. case $ac_pass in
  2195. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2196. 2)
  2197. as_fn_append ac_configure_args1 " '$ac_arg'"
  2198. if test $ac_must_keep_next = true; then
  2199. ac_must_keep_next=false # Got value, back to normal.
  2200. else
  2201. case $ac_arg in
  2202. *=* | --config-cache | -C | -disable-* | --disable-* \
  2203. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2204. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2205. | -with-* | --with-* | -without-* | --without-* | --x)
  2206. case "$ac_configure_args0 " in
  2207. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2208. esac
  2209. ;;
  2210. -* ) ac_must_keep_next=true ;;
  2211. esac
  2212. fi
  2213. as_fn_append ac_configure_args " '$ac_arg'"
  2214. ;;
  2215. esac
  2216. done
  2217. done
  2218. { ac_configure_args0=; unset ac_configure_args0;}
  2219. { ac_configure_args1=; unset ac_configure_args1;}
  2220. # When interrupted or exit'd, cleanup temporary files, and complete
  2221. # config.log. We remove comments because anyway the quotes in there
  2222. # would cause problems or look ugly.
  2223. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2224. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2225. trap 'exit_status=$?
  2226. # Save into config.log some information that might help in debugging.
  2227. {
  2228. echo
  2229. $as_echo "## ---------------- ##
  2230. ## Cache variables. ##
  2231. ## ---------------- ##"
  2232. echo
  2233. # The following way of writing the cache mishandles newlines in values,
  2234. (
  2235. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2236. eval ac_val=\$$ac_var
  2237. case $ac_val in #(
  2238. *${as_nl}*)
  2239. case $ac_var in #(
  2240. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2241. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2242. esac
  2243. case $ac_var in #(
  2244. _ | IFS | as_nl) ;; #(
  2245. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2246. *) { eval $ac_var=; unset $ac_var;} ;;
  2247. esac ;;
  2248. esac
  2249. done
  2250. (set) 2>&1 |
  2251. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2252. *${as_nl}ac_space=\ *)
  2253. sed -n \
  2254. "s/'\''/'\''\\\\'\'''\''/g;
  2255. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2256. ;; #(
  2257. *)
  2258. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2259. ;;
  2260. esac |
  2261. sort
  2262. )
  2263. echo
  2264. $as_echo "## ----------------- ##
  2265. ## Output variables. ##
  2266. ## ----------------- ##"
  2267. echo
  2268. for ac_var in $ac_subst_vars
  2269. do
  2270. eval ac_val=\$$ac_var
  2271. case $ac_val in
  2272. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2273. esac
  2274. $as_echo "$ac_var='\''$ac_val'\''"
  2275. done | sort
  2276. echo
  2277. if test -n "$ac_subst_files"; then
  2278. $as_echo "## ------------------- ##
  2279. ## File substitutions. ##
  2280. ## ------------------- ##"
  2281. echo
  2282. for ac_var in $ac_subst_files
  2283. do
  2284. eval ac_val=\$$ac_var
  2285. case $ac_val in
  2286. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2287. esac
  2288. $as_echo "$ac_var='\''$ac_val'\''"
  2289. done | sort
  2290. echo
  2291. fi
  2292. if test -s confdefs.h; then
  2293. $as_echo "## ----------- ##
  2294. ## confdefs.h. ##
  2295. ## ----------- ##"
  2296. echo
  2297. cat confdefs.h
  2298. echo
  2299. fi
  2300. test "$ac_signal" != 0 &&
  2301. $as_echo "$as_me: caught signal $ac_signal"
  2302. $as_echo "$as_me: exit $exit_status"
  2303. } >&5
  2304. rm -f core *.core core.conftest.* &&
  2305. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2306. exit $exit_status
  2307. ' 0
  2308. for ac_signal in 1 2 13 15; do
  2309. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2310. done
  2311. ac_signal=0
  2312. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2313. rm -f -r conftest* confdefs.h
  2314. $as_echo "/* confdefs.h */" > confdefs.h
  2315. # Predefined preprocessor variables.
  2316. cat >>confdefs.h <<_ACEOF
  2317. #define PACKAGE_NAME "$PACKAGE_NAME"
  2318. _ACEOF
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_STRING "$PACKAGE_STRING"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_URL "$PACKAGE_URL"
  2333. _ACEOF
  2334. # Let the site file select an alternate cache file if it wants to.
  2335. # Prefer an explicitly selected file to automatically selected ones.
  2336. ac_site_file1=NONE
  2337. ac_site_file2=NONE
  2338. if test -n "$CONFIG_SITE"; then
  2339. # We do not want a PATH search for config.site.
  2340. case $CONFIG_SITE in #((
  2341. -*) ac_site_file1=./$CONFIG_SITE;;
  2342. */*) ac_site_file1=$CONFIG_SITE;;
  2343. *) ac_site_file1=./$CONFIG_SITE;;
  2344. esac
  2345. elif test "x$prefix" != xNONE; then
  2346. ac_site_file1=$prefix/share/config.site
  2347. ac_site_file2=$prefix/etc/config.site
  2348. else
  2349. ac_site_file1=$ac_default_prefix/share/config.site
  2350. ac_site_file2=$ac_default_prefix/etc/config.site
  2351. fi
  2352. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2353. do
  2354. test "x$ac_site_file" = xNONE && continue
  2355. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2357. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2358. sed 's/^/| /' "$ac_site_file" >&5
  2359. . "$ac_site_file" \
  2360. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2361. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2362. as_fn_error $? "failed to load site script $ac_site_file
  2363. See \`config.log' for more details" "$LINENO" 5; }
  2364. fi
  2365. done
  2366. if test -r "$cache_file"; then
  2367. # Some versions of bash will fail to source /dev/null (special files
  2368. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2369. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2371. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2372. case $cache_file in
  2373. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2374. *) . "./$cache_file";;
  2375. esac
  2376. fi
  2377. else
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2379. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2380. >$cache_file
  2381. fi
  2382. # Check that the precious variables saved in the cache have kept the same
  2383. # value.
  2384. ac_cache_corrupted=false
  2385. for ac_var in $ac_precious_vars; do
  2386. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2387. eval ac_new_set=\$ac_env_${ac_var}_set
  2388. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2389. eval ac_new_val=\$ac_env_${ac_var}_value
  2390. case $ac_old_set,$ac_new_set in
  2391. set,)
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2393. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2394. ac_cache_corrupted=: ;;
  2395. ,set)
  2396. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2397. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2398. ac_cache_corrupted=: ;;
  2399. ,);;
  2400. *)
  2401. if test "x$ac_old_val" != "x$ac_new_val"; then
  2402. # differences in whitespace do not lead to failure.
  2403. ac_old_val_w=`echo x $ac_old_val`
  2404. ac_new_val_w=`echo x $ac_new_val`
  2405. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2407. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2408. ac_cache_corrupted=:
  2409. else
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2411. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2412. eval $ac_var=\$ac_old_val
  2413. fi
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2415. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2417. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2418. fi;;
  2419. esac
  2420. # Pass precious variables to config.status.
  2421. if test "$ac_new_set" = set; then
  2422. case $ac_new_val in
  2423. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2424. *) ac_arg=$ac_var=$ac_new_val ;;
  2425. esac
  2426. case " $ac_configure_args " in
  2427. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2428. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2429. esac
  2430. fi
  2431. done
  2432. if $ac_cache_corrupted; then
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2434. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2436. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2437. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2438. fi
  2439. ## -------------------- ##
  2440. ## Main body of script. ##
  2441. ## -------------------- ##
  2442. ac_ext=c
  2443. ac_cpp='$CPP $CPPFLAGS'
  2444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2447. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2448. ac_aux_dir=
  2449. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2450. if test -f "$ac_dir/install-sh"; then
  2451. ac_aux_dir=$ac_dir
  2452. ac_install_sh="$ac_aux_dir/install-sh -c"
  2453. break
  2454. elif test -f "$ac_dir/install.sh"; then
  2455. ac_aux_dir=$ac_dir
  2456. ac_install_sh="$ac_aux_dir/install.sh -c"
  2457. break
  2458. elif test -f "$ac_dir/shtool"; then
  2459. ac_aux_dir=$ac_dir
  2460. ac_install_sh="$ac_aux_dir/shtool install -c"
  2461. break
  2462. fi
  2463. done
  2464. if test -z "$ac_aux_dir"; then
  2465. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2466. fi
  2467. # These three variables are undocumented and unsupported,
  2468. # and are intended to be withdrawn in a future Autoconf release.
  2469. # They can cause serious problems if a builder's source tree is in a directory
  2470. # whose full name contains unusual characters.
  2471. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2472. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2473. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2474. orig_CFLAGS="$CFLAGS"
  2475. #
  2476. # Making releases:
  2477. # Edit include/SDL_version.h and change the version, then:
  2478. # SDL_MICRO_VERSION += 1;
  2479. # SDL_INTERFACE_AGE += 1;
  2480. # SDL_BINARY_AGE += 1;
  2481. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2482. # if backwards compatibility has been broken,
  2483. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2484. #
  2485. SDL_MAJOR_VERSION=2
  2486. SDL_MINOR_VERSION=0
  2487. SDL_MICRO_VERSION=8
  2488. SDL_INTERFACE_AGE=0
  2489. SDL_BINARY_AGE=8
  2490. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2491. # libtool versioning
  2492. case `pwd` in
  2493. *\ * | *\ *)
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2495. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2496. esac
  2497. macro_version='2.4.2'
  2498. macro_revision='1.3337'
  2499. ltmain="$ac_aux_dir/ltmain.sh"
  2500. # Make sure we can run config.sub.
  2501. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2502. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2504. $as_echo_n "checking build system type... " >&6; }
  2505. if ${ac_cv_build+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. ac_build_alias=$build_alias
  2509. test "x$ac_build_alias" = x &&
  2510. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2511. test "x$ac_build_alias" = x &&
  2512. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2513. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2515. fi
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2517. $as_echo "$ac_cv_build" >&6; }
  2518. case $ac_cv_build in
  2519. *-*-*) ;;
  2520. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2521. esac
  2522. build=$ac_cv_build
  2523. ac_save_IFS=$IFS; IFS='-'
  2524. set x $ac_cv_build
  2525. shift
  2526. build_cpu=$1
  2527. build_vendor=$2
  2528. shift; shift
  2529. # Remember, the first character of IFS is used to create $*,
  2530. # except with old shells:
  2531. build_os=$*
  2532. IFS=$ac_save_IFS
  2533. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2535. $as_echo_n "checking host system type... " >&6; }
  2536. if ${ac_cv_host+:} false; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test "x$host_alias" = x; then
  2540. ac_cv_host=$ac_cv_build
  2541. else
  2542. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2543. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2544. fi
  2545. fi
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2547. $as_echo "$ac_cv_host" >&6; }
  2548. case $ac_cv_host in
  2549. *-*-*) ;;
  2550. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2551. esac
  2552. host=$ac_cv_host
  2553. ac_save_IFS=$IFS; IFS='-'
  2554. set x $ac_cv_host
  2555. shift
  2556. host_cpu=$1
  2557. host_vendor=$2
  2558. shift; shift
  2559. # Remember, the first character of IFS is used to create $*,
  2560. # except with old shells:
  2561. host_os=$*
  2562. IFS=$ac_save_IFS
  2563. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2564. # Backslashify metacharacters that are still active within
  2565. # double-quoted strings.
  2566. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2567. # Same as above, but do not quote variable references.
  2568. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2569. # Sed substitution to delay expansion of an escaped shell variable in a
  2570. # double_quote_subst'ed string.
  2571. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2572. # Sed substitution to delay expansion of an escaped single quote.
  2573. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2574. # Sed substitution to avoid accidental globbing in evaled expressions
  2575. no_glob_subst='s/\*/\\\*/g'
  2576. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2577. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2578. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2580. $as_echo_n "checking how to print strings... " >&6; }
  2581. # Test print first, because it will be a builtin if present.
  2582. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2583. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2584. ECHO='print -r --'
  2585. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2586. ECHO='printf %s\n'
  2587. else
  2588. # Use this function as a fallback that always works.
  2589. func_fallback_echo ()
  2590. {
  2591. eval 'cat <<_LTECHO_EOF
  2592. $1
  2593. _LTECHO_EOF'
  2594. }
  2595. ECHO='func_fallback_echo'
  2596. fi
  2597. # func_echo_all arg...
  2598. # Invoke $ECHO with all args, space-separated.
  2599. func_echo_all ()
  2600. {
  2601. $ECHO ""
  2602. }
  2603. case "$ECHO" in
  2604. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2605. $as_echo "printf" >&6; } ;;
  2606. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2607. $as_echo "print -r" >&6; } ;;
  2608. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2609. $as_echo "cat" >&6; } ;;
  2610. esac
  2611. ac_ext=c
  2612. ac_cpp='$CPP $CPPFLAGS'
  2613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2616. if test -n "$ac_tool_prefix"; then
  2617. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2618. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2620. $as_echo_n "checking for $ac_word... " >&6; }
  2621. if ${ac_cv_prog_CC+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. if test -n "$CC"; then
  2625. ac_cv_prog_CC="$CC" # Let the user override the test.
  2626. else
  2627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2628. for as_dir in $PATH
  2629. do
  2630. IFS=$as_save_IFS
  2631. test -z "$as_dir" && as_dir=.
  2632. for ac_exec_ext in '' $ac_executable_extensions; do
  2633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2634. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2636. break 2
  2637. fi
  2638. done
  2639. done
  2640. IFS=$as_save_IFS
  2641. fi
  2642. fi
  2643. CC=$ac_cv_prog_CC
  2644. if test -n "$CC"; then
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2646. $as_echo "$CC" >&6; }
  2647. else
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2649. $as_echo "no" >&6; }
  2650. fi
  2651. fi
  2652. if test -z "$ac_cv_prog_CC"; then
  2653. ac_ct_CC=$CC
  2654. # Extract the first word of "gcc", so it can be a program name with args.
  2655. set dummy gcc; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$ac_ct_CC"; then
  2662. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2671. ac_cv_prog_ac_ct_CC="gcc"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2681. if test -n "$ac_ct_CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2683. $as_echo "$ac_ct_CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. if test "x$ac_ct_CC" = x; then
  2689. CC=""
  2690. else
  2691. case $cross_compiling:$ac_tool_warned in
  2692. yes:)
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2695. ac_tool_warned=yes ;;
  2696. esac
  2697. CC=$ac_ct_CC
  2698. fi
  2699. else
  2700. CC="$ac_cv_prog_CC"
  2701. fi
  2702. if test -z "$CC"; then
  2703. if test -n "$ac_tool_prefix"; then
  2704. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2705. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2707. $as_echo_n "checking for $ac_word... " >&6; }
  2708. if ${ac_cv_prog_CC+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. if test -n "$CC"; then
  2712. ac_cv_prog_CC="$CC" # Let the user override the test.
  2713. else
  2714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715. for as_dir in $PATH
  2716. do
  2717. IFS=$as_save_IFS
  2718. test -z "$as_dir" && as_dir=.
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2721. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. done
  2727. IFS=$as_save_IFS
  2728. fi
  2729. fi
  2730. CC=$ac_cv_prog_CC
  2731. if test -n "$CC"; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2733. $as_echo "$CC" >&6; }
  2734. else
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. fi
  2738. fi
  2739. fi
  2740. if test -z "$CC"; then
  2741. # Extract the first word of "cc", so it can be a program name with args.
  2742. set dummy cc; ac_word=$2
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2744. $as_echo_n "checking for $ac_word... " >&6; }
  2745. if ${ac_cv_prog_CC+:} false; then :
  2746. $as_echo_n "(cached) " >&6
  2747. else
  2748. if test -n "$CC"; then
  2749. ac_cv_prog_CC="$CC" # Let the user override the test.
  2750. else
  2751. ac_prog_rejected=no
  2752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2753. for as_dir in $PATH
  2754. do
  2755. IFS=$as_save_IFS
  2756. test -z "$as_dir" && as_dir=.
  2757. for ac_exec_ext in '' $ac_executable_extensions; do
  2758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2759. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2760. ac_prog_rejected=yes
  2761. continue
  2762. fi
  2763. ac_cv_prog_CC="cc"
  2764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. IFS=$as_save_IFS
  2770. if test $ac_prog_rejected = yes; then
  2771. # We found a bogon in the path, so make sure we never use it.
  2772. set dummy $ac_cv_prog_CC
  2773. shift
  2774. if test $# != 0; then
  2775. # We chose a different compiler from the bogus one.
  2776. # However, it has the same basename, so the bogon will be chosen
  2777. # first if we set CC to just the basename; use the full file name.
  2778. shift
  2779. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2780. fi
  2781. fi
  2782. fi
  2783. fi
  2784. CC=$ac_cv_prog_CC
  2785. if test -n "$CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2787. $as_echo "$CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. fi
  2793. if test -z "$CC"; then
  2794. if test -n "$ac_tool_prefix"; then
  2795. for ac_prog in cl.exe
  2796. do
  2797. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2798. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2800. $as_echo_n "checking for $ac_word... " >&6; }
  2801. if ${ac_cv_prog_CC+:} false; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. if test -n "$CC"; then
  2805. ac_cv_prog_CC="$CC" # Let the user override the test.
  2806. else
  2807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2808. for as_dir in $PATH
  2809. do
  2810. IFS=$as_save_IFS
  2811. test -z "$as_dir" && as_dir=.
  2812. for ac_exec_ext in '' $ac_executable_extensions; do
  2813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2814. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2816. break 2
  2817. fi
  2818. done
  2819. done
  2820. IFS=$as_save_IFS
  2821. fi
  2822. fi
  2823. CC=$ac_cv_prog_CC
  2824. if test -n "$CC"; then
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2826. $as_echo "$CC" >&6; }
  2827. else
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. fi
  2831. test -n "$CC" && break
  2832. done
  2833. fi
  2834. if test -z "$CC"; then
  2835. ac_ct_CC=$CC
  2836. for ac_prog in cl.exe
  2837. do
  2838. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2839. set dummy $ac_prog; ac_word=$2
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2841. $as_echo_n "checking for $ac_word... " >&6; }
  2842. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if test -n "$ac_ct_CC"; then
  2846. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2847. else
  2848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2849. for as_dir in $PATH
  2850. do
  2851. IFS=$as_save_IFS
  2852. test -z "$as_dir" && as_dir=.
  2853. for ac_exec_ext in '' $ac_executable_extensions; do
  2854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2855. ac_cv_prog_ac_ct_CC="$ac_prog"
  2856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2857. break 2
  2858. fi
  2859. done
  2860. done
  2861. IFS=$as_save_IFS
  2862. fi
  2863. fi
  2864. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2865. if test -n "$ac_ct_CC"; then
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2867. $as_echo "$ac_ct_CC" >&6; }
  2868. else
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2870. $as_echo "no" >&6; }
  2871. fi
  2872. test -n "$ac_ct_CC" && break
  2873. done
  2874. if test "x$ac_ct_CC" = x; then
  2875. CC=""
  2876. else
  2877. case $cross_compiling:$ac_tool_warned in
  2878. yes:)
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2880. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2881. ac_tool_warned=yes ;;
  2882. esac
  2883. CC=$ac_ct_CC
  2884. fi
  2885. fi
  2886. fi
  2887. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. as_fn_error $? "no acceptable C compiler found in \$PATH
  2890. See \`config.log' for more details" "$LINENO" 5; }
  2891. # Provide some information about the compiler.
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2893. set X $ac_compile
  2894. ac_compiler=$2
  2895. for ac_option in --version -v -V -qversion; do
  2896. { { ac_try="$ac_compiler $ac_option >&5"
  2897. case "(($ac_try" in
  2898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899. *) ac_try_echo=$ac_try;;
  2900. esac
  2901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. $as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2904. ac_status=$?
  2905. if test -s conftest.err; then
  2906. sed '10a\
  2907. ... rest of stderr output deleted ...
  2908. 10q' conftest.err >conftest.er1
  2909. cat conftest.er1 >&5
  2910. fi
  2911. rm -f conftest.er1 conftest.err
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }
  2914. done
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. int
  2918. main ()
  2919. {
  2920. ;
  2921. return 0;
  2922. }
  2923. _ACEOF
  2924. ac_clean_files_save=$ac_clean_files
  2925. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2926. # Try to create an executable without -o first, disregard a.out.
  2927. # It will help us diagnose broken compilers, and finding out an intuition
  2928. # of exeext.
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2930. $as_echo_n "checking whether the C compiler works... " >&6; }
  2931. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2932. # The possible output files:
  2933. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2934. ac_rmfiles=
  2935. for ac_file in $ac_files
  2936. do
  2937. case $ac_file in
  2938. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2939. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2940. esac
  2941. done
  2942. rm -f $ac_rmfiles
  2943. if { { ac_try="$ac_link_default"
  2944. case "(($ac_try" in
  2945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2946. *) ac_try_echo=$ac_try;;
  2947. esac
  2948. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2949. $as_echo "$ac_try_echo"; } >&5
  2950. (eval "$ac_link_default") 2>&5
  2951. ac_status=$?
  2952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2953. test $ac_status = 0; }; then :
  2954. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2955. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2956. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2957. # so that the user can short-circuit this test for compilers unknown to
  2958. # Autoconf.
  2959. for ac_file in $ac_files ''
  2960. do
  2961. test -f "$ac_file" || continue
  2962. case $ac_file in
  2963. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2964. ;;
  2965. [ab].out )
  2966. # We found the default executable, but exeext='' is most
  2967. # certainly right.
  2968. break;;
  2969. *.* )
  2970. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2971. then :; else
  2972. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2973. fi
  2974. # We set ac_cv_exeext here because the later test for it is not
  2975. # safe: cross compilers may not add the suffix if given an `-o'
  2976. # argument, so we may need to know it at that point already.
  2977. # Even if this section looks crufty: it has the advantage of
  2978. # actually working.
  2979. break;;
  2980. * )
  2981. break;;
  2982. esac
  2983. done
  2984. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2985. else
  2986. ac_file=''
  2987. fi
  2988. if test -z "$ac_file"; then :
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2990. $as_echo "no" >&6; }
  2991. $as_echo "$as_me: failed program was:" >&5
  2992. sed 's/^/| /' conftest.$ac_ext >&5
  2993. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2994. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2995. as_fn_error 77 "C compiler cannot create executables
  2996. See \`config.log' for more details" "$LINENO" 5; }
  2997. else
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2999. $as_echo "yes" >&6; }
  3000. fi
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3002. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3004. $as_echo "$ac_file" >&6; }
  3005. ac_exeext=$ac_cv_exeext
  3006. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3007. ac_clean_files=$ac_clean_files_save
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3009. $as_echo_n "checking for suffix of executables... " >&6; }
  3010. if { { ac_try="$ac_link"
  3011. case "(($ac_try" in
  3012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3013. *) ac_try_echo=$ac_try;;
  3014. esac
  3015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3016. $as_echo "$ac_try_echo"; } >&5
  3017. (eval "$ac_link") 2>&5
  3018. ac_status=$?
  3019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3020. test $ac_status = 0; }; then :
  3021. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3022. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3023. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3024. # `rm'.
  3025. for ac_file in conftest.exe conftest conftest.*; do
  3026. test -f "$ac_file" || continue
  3027. case $ac_file in
  3028. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3029. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3030. break;;
  3031. * ) break;;
  3032. esac
  3033. done
  3034. else
  3035. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3037. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3038. See \`config.log' for more details" "$LINENO" 5; }
  3039. fi
  3040. rm -f conftest conftest$ac_cv_exeext
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3042. $as_echo "$ac_cv_exeext" >&6; }
  3043. rm -f conftest.$ac_ext
  3044. EXEEXT=$ac_cv_exeext
  3045. ac_exeext=$EXEEXT
  3046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3047. /* end confdefs.h. */
  3048. #include <stdio.h>
  3049. int
  3050. main ()
  3051. {
  3052. FILE *f = fopen ("conftest.out", "w");
  3053. return ferror (f) || fclose (f) != 0;
  3054. ;
  3055. return 0;
  3056. }
  3057. _ACEOF
  3058. ac_clean_files="$ac_clean_files conftest.out"
  3059. # Check that the compiler produces executables we can run. If not, either
  3060. # the compiler is broken, or we cross compile.
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3062. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3063. if test "$cross_compiling" != yes; then
  3064. { { ac_try="$ac_link"
  3065. case "(($ac_try" in
  3066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3067. *) ac_try_echo=$ac_try;;
  3068. esac
  3069. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3070. $as_echo "$ac_try_echo"; } >&5
  3071. (eval "$ac_link") 2>&5
  3072. ac_status=$?
  3073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3074. test $ac_status = 0; }
  3075. if { ac_try='./conftest$ac_cv_exeext'
  3076. { { case "(($ac_try" in
  3077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3078. *) ac_try_echo=$ac_try;;
  3079. esac
  3080. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3081. $as_echo "$ac_try_echo"; } >&5
  3082. (eval "$ac_try") 2>&5
  3083. ac_status=$?
  3084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3085. test $ac_status = 0; }; }; then
  3086. cross_compiling=no
  3087. else
  3088. if test "$cross_compiling" = maybe; then
  3089. cross_compiling=yes
  3090. else
  3091. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3092. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3093. as_fn_error $? "cannot run C compiled programs.
  3094. If you meant to cross compile, use \`--host'.
  3095. See \`config.log' for more details" "$LINENO" 5; }
  3096. fi
  3097. fi
  3098. fi
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3100. $as_echo "$cross_compiling" >&6; }
  3101. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3102. ac_clean_files=$ac_clean_files_save
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3104. $as_echo_n "checking for suffix of object files... " >&6; }
  3105. if ${ac_cv_objext+:} false; then :
  3106. $as_echo_n "(cached) " >&6
  3107. else
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. rm -f conftest.o conftest.obj
  3118. if { { ac_try="$ac_compile"
  3119. case "(($ac_try" in
  3120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3121. *) ac_try_echo=$ac_try;;
  3122. esac
  3123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3124. $as_echo "$ac_try_echo"; } >&5
  3125. (eval "$ac_compile") 2>&5
  3126. ac_status=$?
  3127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3128. test $ac_status = 0; }; then :
  3129. for ac_file in conftest.o conftest.obj conftest.*; do
  3130. test -f "$ac_file" || continue;
  3131. case $ac_file in
  3132. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3133. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3134. break;;
  3135. esac
  3136. done
  3137. else
  3138. $as_echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3141. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3142. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3143. See \`config.log' for more details" "$LINENO" 5; }
  3144. fi
  3145. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3148. $as_echo "$ac_cv_objext" >&6; }
  3149. OBJEXT=$ac_cv_objext
  3150. ac_objext=$OBJEXT
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3152. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3153. if ${ac_cv_c_compiler_gnu+:} false; then :
  3154. $as_echo_n "(cached) " >&6
  3155. else
  3156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. #ifndef __GNUC__
  3162. choke me
  3163. #endif
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. if ac_fn_c_try_compile "$LINENO"; then :
  3169. ac_compiler_gnu=yes
  3170. else
  3171. ac_compiler_gnu=no
  3172. fi
  3173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3174. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3175. fi
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3177. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3178. if test $ac_compiler_gnu = yes; then
  3179. GCC=yes
  3180. else
  3181. GCC=
  3182. fi
  3183. ac_test_CFLAGS=${CFLAGS+set}
  3184. ac_save_CFLAGS=$CFLAGS
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3186. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3187. if ${ac_cv_prog_cc_g+:} false; then :
  3188. $as_echo_n "(cached) " >&6
  3189. else
  3190. ac_save_c_werror_flag=$ac_c_werror_flag
  3191. ac_c_werror_flag=yes
  3192. ac_cv_prog_cc_g=no
  3193. CFLAGS="-g"
  3194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. if ac_fn_c_try_compile "$LINENO"; then :
  3204. ac_cv_prog_cc_g=yes
  3205. else
  3206. CFLAGS=""
  3207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3208. /* end confdefs.h. */
  3209. int
  3210. main ()
  3211. {
  3212. ;
  3213. return 0;
  3214. }
  3215. _ACEOF
  3216. if ac_fn_c_try_compile "$LINENO"; then :
  3217. else
  3218. ac_c_werror_flag=$ac_save_c_werror_flag
  3219. CFLAGS="-g"
  3220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3221. /* end confdefs.h. */
  3222. int
  3223. main ()
  3224. {
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. if ac_fn_c_try_compile "$LINENO"; then :
  3230. ac_cv_prog_cc_g=yes
  3231. fi
  3232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. fi
  3234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3235. fi
  3236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3237. ac_c_werror_flag=$ac_save_c_werror_flag
  3238. fi
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3240. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3241. if test "$ac_test_CFLAGS" = set; then
  3242. CFLAGS=$ac_save_CFLAGS
  3243. elif test $ac_cv_prog_cc_g = yes; then
  3244. if test "$GCC" = yes; then
  3245. CFLAGS="-g -O2"
  3246. else
  3247. CFLAGS="-g"
  3248. fi
  3249. else
  3250. if test "$GCC" = yes; then
  3251. CFLAGS="-O2"
  3252. else
  3253. CFLAGS=
  3254. fi
  3255. fi
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3257. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3258. if ${ac_cv_prog_cc_c89+:} false; then :
  3259. $as_echo_n "(cached) " >&6
  3260. else
  3261. ac_cv_prog_cc_c89=no
  3262. ac_save_CC=$CC
  3263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3264. /* end confdefs.h. */
  3265. #include <stdarg.h>
  3266. #include <stdio.h>
  3267. struct stat;
  3268. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3269. struct buf { int x; };
  3270. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3271. static char *e (p, i)
  3272. char **p;
  3273. int i;
  3274. {
  3275. return p[i];
  3276. }
  3277. static char *f (char * (*g) (char **, int), char **p, ...)
  3278. {
  3279. char *s;
  3280. va_list v;
  3281. va_start (v,p);
  3282. s = g (p, va_arg (v,int));
  3283. va_end (v);
  3284. return s;
  3285. }
  3286. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3287. function prototypes and stuff, but not '\xHH' hex character constants.
  3288. These don't provoke an error unfortunately, instead are silently treated
  3289. as 'x'. The following induces an error, until -std is added to get
  3290. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3291. array size at least. It's necessary to write '\x00'==0 to get something
  3292. that's true only with -std. */
  3293. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3294. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3295. inside strings and character constants. */
  3296. #define FOO(x) 'x'
  3297. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3298. int test (int i, double x);
  3299. struct s1 {int (*f) (int a);};
  3300. struct s2 {int (*f) (double a);};
  3301. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3302. int argc;
  3303. char **argv;
  3304. int
  3305. main ()
  3306. {
  3307. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3313. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3314. do
  3315. CC="$ac_save_CC $ac_arg"
  3316. if ac_fn_c_try_compile "$LINENO"; then :
  3317. ac_cv_prog_cc_c89=$ac_arg
  3318. fi
  3319. rm -f core conftest.err conftest.$ac_objext
  3320. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3321. done
  3322. rm -f conftest.$ac_ext
  3323. CC=$ac_save_CC
  3324. fi
  3325. # AC_CACHE_VAL
  3326. case "x$ac_cv_prog_cc_c89" in
  3327. x)
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3329. $as_echo "none needed" >&6; } ;;
  3330. xno)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3332. $as_echo "unsupported" >&6; } ;;
  3333. *)
  3334. CC="$CC $ac_cv_prog_cc_c89"
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3336. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3337. esac
  3338. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3339. fi
  3340. ac_ext=c
  3341. ac_cpp='$CPP $CPPFLAGS'
  3342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3346. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3347. if ${ac_cv_path_SED+:} false; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3351. for ac_i in 1 2 3 4 5 6 7; do
  3352. ac_script="$ac_script$as_nl$ac_script"
  3353. done
  3354. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3355. { ac_script=; unset ac_script;}
  3356. if test -z "$SED"; then
  3357. ac_path_SED_found=false
  3358. # Loop through the user's path and test for each of PROGNAME-LIST
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_prog in sed gsed; do
  3365. for ac_exec_ext in '' $ac_executable_extensions; do
  3366. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3367. as_fn_executable_p "$ac_path_SED" || continue
  3368. # Check for GNU ac_path_SED and select it if it is found.
  3369. # Check for GNU $ac_path_SED
  3370. case `"$ac_path_SED" --version 2>&1` in
  3371. *GNU*)
  3372. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3373. *)
  3374. ac_count=0
  3375. $as_echo_n 0123456789 >"conftest.in"
  3376. while :
  3377. do
  3378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3379. mv "conftest.tmp" "conftest.in"
  3380. cp "conftest.in" "conftest.nl"
  3381. $as_echo '' >> "conftest.nl"
  3382. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3385. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3386. # Best one so far, save it but keep looking for a better one
  3387. ac_cv_path_SED="$ac_path_SED"
  3388. ac_path_SED_max=$ac_count
  3389. fi
  3390. # 10*(2^10) chars as input seems more than enough
  3391. test $ac_count -gt 10 && break
  3392. done
  3393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3394. esac
  3395. $ac_path_SED_found && break 3
  3396. done
  3397. done
  3398. done
  3399. IFS=$as_save_IFS
  3400. if test -z "$ac_cv_path_SED"; then
  3401. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3402. fi
  3403. else
  3404. ac_cv_path_SED=$SED
  3405. fi
  3406. fi
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3408. $as_echo "$ac_cv_path_SED" >&6; }
  3409. SED="$ac_cv_path_SED"
  3410. rm -f conftest.sed
  3411. test -z "$SED" && SED=sed
  3412. Xsed="$SED -e 1s/^X//"
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3414. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3415. if ${ac_cv_path_GREP+:} false; then :
  3416. $as_echo_n "(cached) " >&6
  3417. else
  3418. if test -z "$GREP"; then
  3419. ac_path_GREP_found=false
  3420. # Loop through the user's path and test for each of PROGNAME-LIST
  3421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3422. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3423. do
  3424. IFS=$as_save_IFS
  3425. test -z "$as_dir" && as_dir=.
  3426. for ac_prog in grep ggrep; do
  3427. for ac_exec_ext in '' $ac_executable_extensions; do
  3428. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3429. as_fn_executable_p "$ac_path_GREP" || continue
  3430. # Check for GNU ac_path_GREP and select it if it is found.
  3431. # Check for GNU $ac_path_GREP
  3432. case `"$ac_path_GREP" --version 2>&1` in
  3433. *GNU*)
  3434. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3435. *)
  3436. ac_count=0
  3437. $as_echo_n 0123456789 >"conftest.in"
  3438. while :
  3439. do
  3440. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3441. mv "conftest.tmp" "conftest.in"
  3442. cp "conftest.in" "conftest.nl"
  3443. $as_echo 'GREP' >> "conftest.nl"
  3444. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3445. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3446. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3447. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3448. # Best one so far, save it but keep looking for a better one
  3449. ac_cv_path_GREP="$ac_path_GREP"
  3450. ac_path_GREP_max=$ac_count
  3451. fi
  3452. # 10*(2^10) chars as input seems more than enough
  3453. test $ac_count -gt 10 && break
  3454. done
  3455. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3456. esac
  3457. $ac_path_GREP_found && break 3
  3458. done
  3459. done
  3460. done
  3461. IFS=$as_save_IFS
  3462. if test -z "$ac_cv_path_GREP"; then
  3463. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3464. fi
  3465. else
  3466. ac_cv_path_GREP=$GREP
  3467. fi
  3468. fi
  3469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3470. $as_echo "$ac_cv_path_GREP" >&6; }
  3471. GREP="$ac_cv_path_GREP"
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3473. $as_echo_n "checking for egrep... " >&6; }
  3474. if ${ac_cv_path_EGREP+:} false; then :
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3478. then ac_cv_path_EGREP="$GREP -E"
  3479. else
  3480. if test -z "$EGREP"; then
  3481. ac_path_EGREP_found=false
  3482. # Loop through the user's path and test for each of PROGNAME-LIST
  3483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3484. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3485. do
  3486. IFS=$as_save_IFS
  3487. test -z "$as_dir" && as_dir=.
  3488. for ac_prog in egrep; do
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3491. as_fn_executable_p "$ac_path_EGREP" || continue
  3492. # Check for GNU ac_path_EGREP and select it if it is found.
  3493. # Check for GNU $ac_path_EGREP
  3494. case `"$ac_path_EGREP" --version 2>&1` in
  3495. *GNU*)
  3496. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3497. *)
  3498. ac_count=0
  3499. $as_echo_n 0123456789 >"conftest.in"
  3500. while :
  3501. do
  3502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3503. mv "conftest.tmp" "conftest.in"
  3504. cp "conftest.in" "conftest.nl"
  3505. $as_echo 'EGREP' >> "conftest.nl"
  3506. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3509. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3510. # Best one so far, save it but keep looking for a better one
  3511. ac_cv_path_EGREP="$ac_path_EGREP"
  3512. ac_path_EGREP_max=$ac_count
  3513. fi
  3514. # 10*(2^10) chars as input seems more than enough
  3515. test $ac_count -gt 10 && break
  3516. done
  3517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3518. esac
  3519. $ac_path_EGREP_found && break 3
  3520. done
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. if test -z "$ac_cv_path_EGREP"; then
  3525. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3526. fi
  3527. else
  3528. ac_cv_path_EGREP=$EGREP
  3529. fi
  3530. fi
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3533. $as_echo "$ac_cv_path_EGREP" >&6; }
  3534. EGREP="$ac_cv_path_EGREP"
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3536. $as_echo_n "checking for fgrep... " >&6; }
  3537. if ${ac_cv_path_FGREP+:} false; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3541. then ac_cv_path_FGREP="$GREP -F"
  3542. else
  3543. if test -z "$FGREP"; then
  3544. ac_path_FGREP_found=false
  3545. # Loop through the user's path and test for each of PROGNAME-LIST
  3546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3547. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3548. do
  3549. IFS=$as_save_IFS
  3550. test -z "$as_dir" && as_dir=.
  3551. for ac_prog in fgrep; do
  3552. for ac_exec_ext in '' $ac_executable_extensions; do
  3553. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3554. as_fn_executable_p "$ac_path_FGREP" || continue
  3555. # Check for GNU ac_path_FGREP and select it if it is found.
  3556. # Check for GNU $ac_path_FGREP
  3557. case `"$ac_path_FGREP" --version 2>&1` in
  3558. *GNU*)
  3559. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3560. *)
  3561. ac_count=0
  3562. $as_echo_n 0123456789 >"conftest.in"
  3563. while :
  3564. do
  3565. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3566. mv "conftest.tmp" "conftest.in"
  3567. cp "conftest.in" "conftest.nl"
  3568. $as_echo 'FGREP' >> "conftest.nl"
  3569. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3570. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3571. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3572. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3573. # Best one so far, save it but keep looking for a better one
  3574. ac_cv_path_FGREP="$ac_path_FGREP"
  3575. ac_path_FGREP_max=$ac_count
  3576. fi
  3577. # 10*(2^10) chars as input seems more than enough
  3578. test $ac_count -gt 10 && break
  3579. done
  3580. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3581. esac
  3582. $ac_path_FGREP_found && break 3
  3583. done
  3584. done
  3585. done
  3586. IFS=$as_save_IFS
  3587. if test -z "$ac_cv_path_FGREP"; then
  3588. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3589. fi
  3590. else
  3591. ac_cv_path_FGREP=$FGREP
  3592. fi
  3593. fi
  3594. fi
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3596. $as_echo "$ac_cv_path_FGREP" >&6; }
  3597. FGREP="$ac_cv_path_FGREP"
  3598. test -z "$GREP" && GREP=grep
  3599. # Check whether --with-gnu-ld was given.
  3600. if test "${with_gnu_ld+set}" = set; then :
  3601. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3602. else
  3603. with_gnu_ld=no
  3604. fi
  3605. ac_prog=ld
  3606. if test "$GCC" = yes; then
  3607. # Check if gcc -print-prog-name=ld gives a path.
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3609. $as_echo_n "checking for ld used by $CC... " >&6; }
  3610. case $host in
  3611. *-*-mingw*)
  3612. # gcc leaves a trailing carriage return which upsets mingw
  3613. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3614. *)
  3615. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3616. esac
  3617. case $ac_prog in
  3618. # Accept absolute paths.
  3619. [\\/]* | ?:[\\/]*)
  3620. re_direlt='/[^/][^/]*/\.\./'
  3621. # Canonicalize the pathname of ld
  3622. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3623. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3624. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3625. done
  3626. test -z "$LD" && LD="$ac_prog"
  3627. ;;
  3628. "")
  3629. # If it fails, then pretend we aren't using GCC.
  3630. ac_prog=ld
  3631. ;;
  3632. *)
  3633. # If it is relative, then search for the first ld in PATH.
  3634. with_gnu_ld=unknown
  3635. ;;
  3636. esac
  3637. elif test "$with_gnu_ld" = yes; then
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3639. $as_echo_n "checking for GNU ld... " >&6; }
  3640. else
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3642. $as_echo_n "checking for non-GNU ld... " >&6; }
  3643. fi
  3644. if ${lt_cv_path_LD+:} false; then :
  3645. $as_echo_n "(cached) " >&6
  3646. else
  3647. if test -z "$LD"; then
  3648. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3649. for ac_dir in $PATH; do
  3650. IFS="$lt_save_ifs"
  3651. test -z "$ac_dir" && ac_dir=.
  3652. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3653. lt_cv_path_LD="$ac_dir/$ac_prog"
  3654. # Check to see if the program is GNU ld. I'd rather use --version,
  3655. # but apparently some variants of GNU ld only accept -v.
  3656. # Break only if it was the GNU/non-GNU ld that we prefer.
  3657. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3658. *GNU* | *'with BFD'*)
  3659. test "$with_gnu_ld" != no && break
  3660. ;;
  3661. *)
  3662. test "$with_gnu_ld" != yes && break
  3663. ;;
  3664. esac
  3665. fi
  3666. done
  3667. IFS="$lt_save_ifs"
  3668. else
  3669. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3670. fi
  3671. fi
  3672. LD="$lt_cv_path_LD"
  3673. if test -n "$LD"; then
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3675. $as_echo "$LD" >&6; }
  3676. else
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3678. $as_echo "no" >&6; }
  3679. fi
  3680. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3682. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3683. if ${lt_cv_prog_gnu_ld+:} false; then :
  3684. $as_echo_n "(cached) " >&6
  3685. else
  3686. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3687. case `$LD -v 2>&1 </dev/null` in
  3688. *GNU* | *'with BFD'*)
  3689. lt_cv_prog_gnu_ld=yes
  3690. ;;
  3691. *)
  3692. lt_cv_prog_gnu_ld=no
  3693. ;;
  3694. esac
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3697. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3698. with_gnu_ld=$lt_cv_prog_gnu_ld
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3700. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3701. if ${lt_cv_path_NM+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. if test -n "$NM"; then
  3705. # Let the user override the test.
  3706. lt_cv_path_NM="$NM"
  3707. else
  3708. lt_nm_to_check="${ac_tool_prefix}nm"
  3709. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3710. lt_nm_to_check="$lt_nm_to_check nm"
  3711. fi
  3712. for lt_tmp_nm in $lt_nm_to_check; do
  3713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3714. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3715. IFS="$lt_save_ifs"
  3716. test -z "$ac_dir" && ac_dir=.
  3717. tmp_nm="$ac_dir/$lt_tmp_nm"
  3718. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3719. # Check to see if the nm accepts a BSD-compat flag.
  3720. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3721. # nm: unknown option "B" ignored
  3722. # Tru64's nm complains that /dev/null is an invalid object file
  3723. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3724. */dev/null* | *'Invalid file or object type'*)
  3725. lt_cv_path_NM="$tmp_nm -B"
  3726. break
  3727. ;;
  3728. *)
  3729. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3730. */dev/null*)
  3731. lt_cv_path_NM="$tmp_nm -p"
  3732. break
  3733. ;;
  3734. *)
  3735. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3736. continue # so that we can try to find one that supports BSD flags
  3737. ;;
  3738. esac
  3739. ;;
  3740. esac
  3741. fi
  3742. done
  3743. IFS="$lt_save_ifs"
  3744. done
  3745. : ${lt_cv_path_NM=no}
  3746. fi
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3749. $as_echo "$lt_cv_path_NM" >&6; }
  3750. if test "$lt_cv_path_NM" != "no"; then
  3751. NM="$lt_cv_path_NM"
  3752. else
  3753. # Didn't find any BSD compatible name lister, look for dumpbin.
  3754. if test -n "$DUMPBIN"; then :
  3755. # Let the user override the test.
  3756. else
  3757. if test -n "$ac_tool_prefix"; then
  3758. for ac_prog in dumpbin "link -dump"
  3759. do
  3760. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3761. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3763. $as_echo_n "checking for $ac_word... " >&6; }
  3764. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. if test -n "$DUMPBIN"; then
  3768. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3769. else
  3770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3771. for as_dir in $PATH
  3772. do
  3773. IFS=$as_save_IFS
  3774. test -z "$as_dir" && as_dir=.
  3775. for ac_exec_ext in '' $ac_executable_extensions; do
  3776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3777. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3779. break 2
  3780. fi
  3781. done
  3782. done
  3783. IFS=$as_save_IFS
  3784. fi
  3785. fi
  3786. DUMPBIN=$ac_cv_prog_DUMPBIN
  3787. if test -n "$DUMPBIN"; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3789. $as_echo "$DUMPBIN" >&6; }
  3790. else
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3792. $as_echo "no" >&6; }
  3793. fi
  3794. test -n "$DUMPBIN" && break
  3795. done
  3796. fi
  3797. if test -z "$DUMPBIN"; then
  3798. ac_ct_DUMPBIN=$DUMPBIN
  3799. for ac_prog in dumpbin "link -dump"
  3800. do
  3801. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3802. set dummy $ac_prog; ac_word=$2
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3804. $as_echo_n "checking for $ac_word... " >&6; }
  3805. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$ac_ct_DUMPBIN"; then
  3809. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. test -z "$as_dir" && as_dir=.
  3816. for ac_exec_ext in '' $ac_executable_extensions; do
  3817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3818. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820. break 2
  3821. fi
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3828. if test -n "$ac_ct_DUMPBIN"; then
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3830. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3831. else
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. test -n "$ac_ct_DUMPBIN" && break
  3836. done
  3837. if test "x$ac_ct_DUMPBIN" = x; then
  3838. DUMPBIN=":"
  3839. else
  3840. case $cross_compiling:$ac_tool_warned in
  3841. yes:)
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3844. ac_tool_warned=yes ;;
  3845. esac
  3846. DUMPBIN=$ac_ct_DUMPBIN
  3847. fi
  3848. fi
  3849. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3850. *COFF*)
  3851. DUMPBIN="$DUMPBIN -symbols"
  3852. ;;
  3853. *)
  3854. DUMPBIN=:
  3855. ;;
  3856. esac
  3857. fi
  3858. if test "$DUMPBIN" != ":"; then
  3859. NM="$DUMPBIN"
  3860. fi
  3861. fi
  3862. test -z "$NM" && NM=nm
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3864. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3865. if ${lt_cv_nm_interface+:} false; then :
  3866. $as_echo_n "(cached) " >&6
  3867. else
  3868. lt_cv_nm_interface="BSD nm"
  3869. echo "int some_variable = 0;" > conftest.$ac_ext
  3870. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3871. (eval "$ac_compile" 2>conftest.err)
  3872. cat conftest.err >&5
  3873. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3874. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3875. cat conftest.err >&5
  3876. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3877. cat conftest.out >&5
  3878. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3879. lt_cv_nm_interface="MS dumpbin"
  3880. fi
  3881. rm -f conftest*
  3882. fi
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3884. $as_echo "$lt_cv_nm_interface" >&6; }
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3886. $as_echo_n "checking whether ln -s works... " >&6; }
  3887. LN_S=$as_ln_s
  3888. if test "$LN_S" = "ln -s"; then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3890. $as_echo "yes" >&6; }
  3891. else
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3893. $as_echo "no, using $LN_S" >&6; }
  3894. fi
  3895. # find the maximum length of command line arguments
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3897. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3898. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3899. $as_echo_n "(cached) " >&6
  3900. else
  3901. i=0
  3902. teststring="ABCD"
  3903. case $build_os in
  3904. msdosdjgpp*)
  3905. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3906. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3907. # during glob expansion). Even if it were fixed, the result of this
  3908. # check would be larger than it should be.
  3909. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3910. ;;
  3911. gnu*)
  3912. # Under GNU Hurd, this test is not required because there is
  3913. # no limit to the length of command line arguments.
  3914. # Libtool will interpret -1 as no limit whatsoever
  3915. lt_cv_sys_max_cmd_len=-1;
  3916. ;;
  3917. cygwin* | mingw* | cegcc*)
  3918. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3919. # about 5 minutes as the teststring grows exponentially.
  3920. # Worse, since 9x/ME are not pre-emptively multitasking,
  3921. # you end up with a "frozen" computer, even though with patience
  3922. # the test eventually succeeds (with a max line length of 256k).
  3923. # Instead, let's just punt: use the minimum linelength reported by
  3924. # all of the supported platforms: 8192 (on NT/2K/XP).
  3925. lt_cv_sys_max_cmd_len=8192;
  3926. ;;
  3927. mint*)
  3928. # On MiNT this can take a long time and run out of memory.
  3929. lt_cv_sys_max_cmd_len=8192;
  3930. ;;
  3931. amigaos*)
  3932. # On AmigaOS with pdksh, this test takes hours, literally.
  3933. # So we just punt and use a minimum line length of 8192.
  3934. lt_cv_sys_max_cmd_len=8192;
  3935. ;;
  3936. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3937. # This has been around since 386BSD, at least. Likely further.
  3938. if test -x /sbin/sysctl; then
  3939. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3940. elif test -x /usr/sbin/sysctl; then
  3941. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3942. else
  3943. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3944. fi
  3945. # And add a safety zone
  3946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3947. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3948. ;;
  3949. interix*)
  3950. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3951. lt_cv_sys_max_cmd_len=196608
  3952. ;;
  3953. os2*)
  3954. # The test takes a long time on OS/2.
  3955. lt_cv_sys_max_cmd_len=8192
  3956. ;;
  3957. osf*)
  3958. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3959. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3960. # nice to cause kernel panics so lets avoid the loop below.
  3961. # First set a reasonable default.
  3962. lt_cv_sys_max_cmd_len=16384
  3963. #
  3964. if test -x /sbin/sysconfig; then
  3965. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3966. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3967. esac
  3968. fi
  3969. ;;
  3970. sco3.2v5*)
  3971. lt_cv_sys_max_cmd_len=102400
  3972. ;;
  3973. sysv5* | sco5v6* | sysv4.2uw2*)
  3974. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3975. if test -n "$kargmax"; then
  3976. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3977. else
  3978. lt_cv_sys_max_cmd_len=32768
  3979. fi
  3980. ;;
  3981. *)
  3982. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3983. if test -n "$lt_cv_sys_max_cmd_len"; then
  3984. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3985. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3986. else
  3987. # Make teststring a little bigger before we do anything with it.
  3988. # a 1K string should be a reasonable start.
  3989. for i in 1 2 3 4 5 6 7 8 ; do
  3990. teststring=$teststring$teststring
  3991. done
  3992. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3993. # If test is not a shell built-in, we'll probably end up computing a
  3994. # maximum length that is only half of the actual maximum length, but
  3995. # we can't tell.
  3996. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  3997. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  3998. test $i != 17 # 1/2 MB should be enough
  3999. do
  4000. i=`expr $i + 1`
  4001. teststring=$teststring$teststring
  4002. done
  4003. # Only check the string length outside the loop.
  4004. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4005. teststring=
  4006. # Add a significant safety factor because C++ compilers can tack on
  4007. # massive amounts of additional arguments before passing them to the
  4008. # linker. It appears as though 1/2 is a usable value.
  4009. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4010. fi
  4011. ;;
  4012. esac
  4013. fi
  4014. if test -n $lt_cv_sys_max_cmd_len ; then
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4016. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4017. else
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4019. $as_echo "none" >&6; }
  4020. fi
  4021. max_cmd_len=$lt_cv_sys_max_cmd_len
  4022. : ${CP="cp -f"}
  4023. : ${MV="mv -f"}
  4024. : ${RM="rm -f"}
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4026. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4027. # Try some XSI features
  4028. xsi_shell=no
  4029. ( _lt_dummy="a/b/c"
  4030. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4031. = c,a/b,b/c, \
  4032. && eval 'test $(( 1 + 1 )) -eq 2 \
  4033. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4034. && xsi_shell=yes
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4036. $as_echo "$xsi_shell" >&6; }
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4038. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4039. lt_shell_append=no
  4040. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4041. >/dev/null 2>&1 \
  4042. && lt_shell_append=yes
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4044. $as_echo "$lt_shell_append" >&6; }
  4045. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4046. lt_unset=unset
  4047. else
  4048. lt_unset=false
  4049. fi
  4050. # test EBCDIC or ASCII
  4051. case `echo X|tr X '\101'` in
  4052. A) # ASCII based system
  4053. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4054. lt_SP2NL='tr \040 \012'
  4055. lt_NL2SP='tr \015\012 \040\040'
  4056. ;;
  4057. *) # EBCDIC based system
  4058. lt_SP2NL='tr \100 \n'
  4059. lt_NL2SP='tr \r\n \100\100'
  4060. ;;
  4061. esac
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4063. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4064. if ${lt_cv_to_host_file_cmd+:} false; then :
  4065. $as_echo_n "(cached) " >&6
  4066. else
  4067. case $host in
  4068. *-*-mingw* )
  4069. case $build in
  4070. *-*-mingw* ) # actually msys
  4071. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4072. ;;
  4073. *-*-cygwin* )
  4074. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4075. ;;
  4076. * ) # otherwise, assume *nix
  4077. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4078. ;;
  4079. esac
  4080. ;;
  4081. *-*-cygwin* )
  4082. case $build in
  4083. *-*-mingw* ) # actually msys
  4084. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4085. ;;
  4086. *-*-cygwin* )
  4087. lt_cv_to_host_file_cmd=func_convert_file_noop
  4088. ;;
  4089. * ) # otherwise, assume *nix
  4090. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4091. ;;
  4092. esac
  4093. ;;
  4094. * ) # unhandled hosts (and "normal" native builds)
  4095. lt_cv_to_host_file_cmd=func_convert_file_noop
  4096. ;;
  4097. esac
  4098. fi
  4099. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4101. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4103. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4104. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4105. $as_echo_n "(cached) " >&6
  4106. else
  4107. #assume ordinary cross tools, or native build.
  4108. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4109. case $host in
  4110. *-*-mingw* )
  4111. case $build in
  4112. *-*-mingw* ) # actually msys
  4113. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4114. ;;
  4115. esac
  4116. ;;
  4117. esac
  4118. fi
  4119. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4121. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4123. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4124. if ${lt_cv_ld_reload_flag+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. lt_cv_ld_reload_flag='-r'
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4130. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4131. reload_flag=$lt_cv_ld_reload_flag
  4132. case $reload_flag in
  4133. "" | " "*) ;;
  4134. *) reload_flag=" $reload_flag" ;;
  4135. esac
  4136. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4137. case $host_os in
  4138. cygwin* | mingw* | pw32* | cegcc*)
  4139. if test "$GCC" != yes; then
  4140. reload_cmds=false
  4141. fi
  4142. ;;
  4143. darwin*)
  4144. if test "$GCC" = yes; then
  4145. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4146. else
  4147. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4148. fi
  4149. ;;
  4150. esac
  4151. if test -n "$ac_tool_prefix"; then
  4152. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4153. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4155. $as_echo_n "checking for $ac_word... " >&6; }
  4156. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. if test -n "$OBJDUMP"; then
  4160. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4161. else
  4162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4163. for as_dir in $PATH
  4164. do
  4165. IFS=$as_save_IFS
  4166. test -z "$as_dir" && as_dir=.
  4167. for ac_exec_ext in '' $ac_executable_extensions; do
  4168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4169. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4171. break 2
  4172. fi
  4173. done
  4174. done
  4175. IFS=$as_save_IFS
  4176. fi
  4177. fi
  4178. OBJDUMP=$ac_cv_prog_OBJDUMP
  4179. if test -n "$OBJDUMP"; then
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4181. $as_echo "$OBJDUMP" >&6; }
  4182. else
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4184. $as_echo "no" >&6; }
  4185. fi
  4186. fi
  4187. if test -z "$ac_cv_prog_OBJDUMP"; then
  4188. ac_ct_OBJDUMP=$OBJDUMP
  4189. # Extract the first word of "objdump", so it can be a program name with args.
  4190. set dummy objdump; ac_word=$2
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4192. $as_echo_n "checking for $ac_word... " >&6; }
  4193. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. if test -n "$ac_ct_OBJDUMP"; then
  4197. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4198. else
  4199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4200. for as_dir in $PATH
  4201. do
  4202. IFS=$as_save_IFS
  4203. test -z "$as_dir" && as_dir=.
  4204. for ac_exec_ext in '' $ac_executable_extensions; do
  4205. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4206. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4207. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4208. break 2
  4209. fi
  4210. done
  4211. done
  4212. IFS=$as_save_IFS
  4213. fi
  4214. fi
  4215. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4216. if test -n "$ac_ct_OBJDUMP"; then
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4218. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4219. else
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4221. $as_echo "no" >&6; }
  4222. fi
  4223. if test "x$ac_ct_OBJDUMP" = x; then
  4224. OBJDUMP="false"
  4225. else
  4226. case $cross_compiling:$ac_tool_warned in
  4227. yes:)
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4230. ac_tool_warned=yes ;;
  4231. esac
  4232. OBJDUMP=$ac_ct_OBJDUMP
  4233. fi
  4234. else
  4235. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4236. fi
  4237. test -z "$OBJDUMP" && OBJDUMP=objdump
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4239. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4240. if ${lt_cv_deplibs_check_method+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4244. lt_cv_file_magic_test_file=
  4245. lt_cv_deplibs_check_method='unknown'
  4246. # Need to set the preceding variable on all platforms that support
  4247. # interlibrary dependencies.
  4248. # 'none' -- dependencies not supported.
  4249. # `unknown' -- same as none, but documents that we really don't know.
  4250. # 'pass_all' -- all dependencies passed with no checks.
  4251. # 'test_compile' -- check by making test program.
  4252. # 'file_magic [[regex]]' -- check by looking for files in library path
  4253. # which responds to the $file_magic_cmd with a given extended regex.
  4254. # If you have `file' or equivalent on your system and you're not sure
  4255. # whether `pass_all' will *always* work, you probably want this one.
  4256. case $host_os in
  4257. aix[4-9]*)
  4258. lt_cv_deplibs_check_method=pass_all
  4259. ;;
  4260. beos*)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. bsdi[45]*)
  4264. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4265. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4266. lt_cv_file_magic_test_file=/shlib/libc.so
  4267. ;;
  4268. cygwin*)
  4269. # func_win32_libid is a shell function defined in ltmain.sh
  4270. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4271. lt_cv_file_magic_cmd='func_win32_libid'
  4272. lt_cv_deplibs_check_method=pass_all
  4273. ;;
  4274. mingw* | pw32*)
  4275. # Base MSYS/MinGW do not provide the 'file' command needed by
  4276. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4277. # unless we find 'file', for example because we are cross-compiling.
  4278. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4279. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4280. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4281. lt_cv_file_magic_cmd='func_win32_libid'
  4282. else
  4283. # Keep this pattern in sync with the one in func_win32_libid.
  4284. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4285. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4286. fi
  4287. lt_cv_deplibs_check_method=pass_all
  4288. ;;
  4289. cegcc*)
  4290. # use the weaker test based on 'objdump'. See mingw*.
  4291. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4292. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4293. ;;
  4294. darwin* | rhapsody*)
  4295. lt_cv_deplibs_check_method=pass_all
  4296. ;;
  4297. freebsd* | dragonfly*)
  4298. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4299. case $host_cpu in
  4300. i*86 )
  4301. # Not sure whether the presence of OpenBSD here was a mistake.
  4302. # Let's accept both of them until this is cleared up.
  4303. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4304. lt_cv_file_magic_cmd=/usr/bin/file
  4305. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4306. ;;
  4307. esac
  4308. else
  4309. lt_cv_deplibs_check_method=pass_all
  4310. fi
  4311. ;;
  4312. gnu*)
  4313. lt_cv_deplibs_check_method=pass_all
  4314. ;;
  4315. haiku*)
  4316. lt_cv_deplibs_check_method=pass_all
  4317. ;;
  4318. hpux10.20* | hpux11*)
  4319. lt_cv_file_magic_cmd=/usr/bin/file
  4320. case $host_cpu in
  4321. ia64*)
  4322. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4323. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4324. ;;
  4325. hppa*64*)
  4326. 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]'
  4327. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4328. ;;
  4329. *)
  4330. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4331. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4332. ;;
  4333. esac
  4334. ;;
  4335. interix[3-9]*)
  4336. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4337. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4338. ;;
  4339. irix5* | irix6* | nonstopux*)
  4340. case $LD in
  4341. *-32|*"-32 ") libmagic=32-bit;;
  4342. *-n32|*"-n32 ") libmagic=N32;;
  4343. *-64|*"-64 ") libmagic=64-bit;;
  4344. *) libmagic=never-match;;
  4345. esac
  4346. lt_cv_deplibs_check_method=pass_all
  4347. ;;
  4348. # This must be glibc/ELF.
  4349. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4350. lt_cv_deplibs_check_method=pass_all
  4351. ;;
  4352. netbsd*)
  4353. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4354. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4355. else
  4356. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4357. fi
  4358. ;;
  4359. newos6*)
  4360. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4361. lt_cv_file_magic_cmd=/usr/bin/file
  4362. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4363. ;;
  4364. *nto* | *qnx*)
  4365. lt_cv_deplibs_check_method=pass_all
  4366. ;;
  4367. openbsd*)
  4368. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4369. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4370. else
  4371. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4372. fi
  4373. ;;
  4374. osf3* | osf4* | osf5*)
  4375. lt_cv_deplibs_check_method=pass_all
  4376. ;;
  4377. rdos*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. solaris*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. sysv4 | sysv4.3*)
  4387. case $host_vendor in
  4388. motorola)
  4389. 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]'
  4390. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4391. ;;
  4392. ncr)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. sequent)
  4396. lt_cv_file_magic_cmd='/bin/file'
  4397. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4398. ;;
  4399. sni)
  4400. lt_cv_file_magic_cmd='/bin/file'
  4401. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4402. lt_cv_file_magic_test_file=/lib/libc.so
  4403. ;;
  4404. siemens)
  4405. lt_cv_deplibs_check_method=pass_all
  4406. ;;
  4407. pc)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. esac
  4411. ;;
  4412. tpf*)
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. esac
  4416. fi
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4418. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4419. file_magic_glob=
  4420. want_nocaseglob=no
  4421. if test "$build" = "$host"; then
  4422. case $host_os in
  4423. mingw* | pw32*)
  4424. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4425. want_nocaseglob=yes
  4426. else
  4427. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4428. fi
  4429. ;;
  4430. esac
  4431. fi
  4432. file_magic_cmd=$lt_cv_file_magic_cmd
  4433. deplibs_check_method=$lt_cv_deplibs_check_method
  4434. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4435. if test -n "$ac_tool_prefix"; then
  4436. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4437. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4439. $as_echo_n "checking for $ac_word... " >&6; }
  4440. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4441. $as_echo_n "(cached) " >&6
  4442. else
  4443. if test -n "$DLLTOOL"; then
  4444. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4445. else
  4446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4447. for as_dir in $PATH
  4448. do
  4449. IFS=$as_save_IFS
  4450. test -z "$as_dir" && as_dir=.
  4451. for ac_exec_ext in '' $ac_executable_extensions; do
  4452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4453. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4455. break 2
  4456. fi
  4457. done
  4458. done
  4459. IFS=$as_save_IFS
  4460. fi
  4461. fi
  4462. DLLTOOL=$ac_cv_prog_DLLTOOL
  4463. if test -n "$DLLTOOL"; then
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4465. $as_echo "$DLLTOOL" >&6; }
  4466. else
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4468. $as_echo "no" >&6; }
  4469. fi
  4470. fi
  4471. if test -z "$ac_cv_prog_DLLTOOL"; then
  4472. ac_ct_DLLTOOL=$DLLTOOL
  4473. # Extract the first word of "dlltool", so it can be a program name with args.
  4474. set dummy dlltool; ac_word=$2
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4476. $as_echo_n "checking for $ac_word... " >&6; }
  4477. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4478. $as_echo_n "(cached) " >&6
  4479. else
  4480. if test -n "$ac_ct_DLLTOOL"; then
  4481. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4482. else
  4483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4484. for as_dir in $PATH
  4485. do
  4486. IFS=$as_save_IFS
  4487. test -z "$as_dir" && as_dir=.
  4488. for ac_exec_ext in '' $ac_executable_extensions; do
  4489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4490. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4492. break 2
  4493. fi
  4494. done
  4495. done
  4496. IFS=$as_save_IFS
  4497. fi
  4498. fi
  4499. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4500. if test -n "$ac_ct_DLLTOOL"; then
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4502. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4503. else
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4505. $as_echo "no" >&6; }
  4506. fi
  4507. if test "x$ac_ct_DLLTOOL" = x; then
  4508. DLLTOOL="false"
  4509. else
  4510. case $cross_compiling:$ac_tool_warned in
  4511. yes:)
  4512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4513. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4514. ac_tool_warned=yes ;;
  4515. esac
  4516. DLLTOOL=$ac_ct_DLLTOOL
  4517. fi
  4518. else
  4519. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4520. fi
  4521. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4523. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4524. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4525. $as_echo_n "(cached) " >&6
  4526. else
  4527. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4528. case $host_os in
  4529. cygwin* | mingw* | pw32* | cegcc*)
  4530. # two different shell functions defined in ltmain.sh
  4531. # decide which to use based on capabilities of $DLLTOOL
  4532. case `$DLLTOOL --help 2>&1` in
  4533. *--identify-strict*)
  4534. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4535. ;;
  4536. *)
  4537. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4538. ;;
  4539. esac
  4540. ;;
  4541. *)
  4542. # fallback: assume linklib IS sharedlib
  4543. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4544. ;;
  4545. esac
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4548. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4549. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4550. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4551. if test -n "$ac_tool_prefix"; then
  4552. for ac_prog in ar
  4553. do
  4554. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4555. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4557. $as_echo_n "checking for $ac_word... " >&6; }
  4558. if ${ac_cv_prog_AR+:} false; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if test -n "$AR"; then
  4562. ac_cv_prog_AR="$AR" # Let the user override the test.
  4563. else
  4564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4565. for as_dir in $PATH
  4566. do
  4567. IFS=$as_save_IFS
  4568. test -z "$as_dir" && as_dir=.
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4571. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4573. break 2
  4574. fi
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. fi
  4579. fi
  4580. AR=$ac_cv_prog_AR
  4581. if test -n "$AR"; then
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4583. $as_echo "$AR" >&6; }
  4584. else
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4586. $as_echo "no" >&6; }
  4587. fi
  4588. test -n "$AR" && break
  4589. done
  4590. fi
  4591. if test -z "$AR"; then
  4592. ac_ct_AR=$AR
  4593. for ac_prog in ar
  4594. do
  4595. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4596. set dummy $ac_prog; ac_word=$2
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4598. $as_echo_n "checking for $ac_word... " >&6; }
  4599. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$ac_ct_AR"; then
  4603. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4604. else
  4605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4606. for as_dir in $PATH
  4607. do
  4608. IFS=$as_save_IFS
  4609. test -z "$as_dir" && as_dir=.
  4610. for ac_exec_ext in '' $ac_executable_extensions; do
  4611. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4612. ac_cv_prog_ac_ct_AR="$ac_prog"
  4613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4614. break 2
  4615. fi
  4616. done
  4617. done
  4618. IFS=$as_save_IFS
  4619. fi
  4620. fi
  4621. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4622. if test -n "$ac_ct_AR"; then
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4624. $as_echo "$ac_ct_AR" >&6; }
  4625. else
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4627. $as_echo "no" >&6; }
  4628. fi
  4629. test -n "$ac_ct_AR" && break
  4630. done
  4631. if test "x$ac_ct_AR" = x; then
  4632. AR="false"
  4633. else
  4634. case $cross_compiling:$ac_tool_warned in
  4635. yes:)
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4637. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4638. ac_tool_warned=yes ;;
  4639. esac
  4640. AR=$ac_ct_AR
  4641. fi
  4642. fi
  4643. : ${AR=ar}
  4644. : ${AR_FLAGS=cru}
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4646. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4647. if ${lt_cv_ar_at_file+:} false; then :
  4648. $as_echo_n "(cached) " >&6
  4649. else
  4650. lt_cv_ar_at_file=no
  4651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4652. /* end confdefs.h. */
  4653. int
  4654. main ()
  4655. {
  4656. ;
  4657. return 0;
  4658. }
  4659. _ACEOF
  4660. if ac_fn_c_try_compile "$LINENO"; then :
  4661. echo conftest.$ac_objext > conftest.lst
  4662. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4663. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4664. (eval $lt_ar_try) 2>&5
  4665. ac_status=$?
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4667. test $ac_status = 0; }
  4668. if test "$ac_status" -eq 0; then
  4669. # Ensure the archiver fails upon bogus file names.
  4670. rm -f conftest.$ac_objext libconftest.a
  4671. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4672. (eval $lt_ar_try) 2>&5
  4673. ac_status=$?
  4674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4675. test $ac_status = 0; }
  4676. if test "$ac_status" -ne 0; then
  4677. lt_cv_ar_at_file=@
  4678. fi
  4679. fi
  4680. rm -f conftest.* libconftest.a
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4685. $as_echo "$lt_cv_ar_at_file" >&6; }
  4686. if test "x$lt_cv_ar_at_file" = xno; then
  4687. archiver_list_spec=
  4688. else
  4689. archiver_list_spec=$lt_cv_ar_at_file
  4690. fi
  4691. if test -n "$ac_tool_prefix"; then
  4692. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4693. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4695. $as_echo_n "checking for $ac_word... " >&6; }
  4696. if ${ac_cv_prog_STRIP+:} false; then :
  4697. $as_echo_n "(cached) " >&6
  4698. else
  4699. if test -n "$STRIP"; then
  4700. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4701. else
  4702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4703. for as_dir in $PATH
  4704. do
  4705. IFS=$as_save_IFS
  4706. test -z "$as_dir" && as_dir=.
  4707. for ac_exec_ext in '' $ac_executable_extensions; do
  4708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4709. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4710. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4711. break 2
  4712. fi
  4713. done
  4714. done
  4715. IFS=$as_save_IFS
  4716. fi
  4717. fi
  4718. STRIP=$ac_cv_prog_STRIP
  4719. if test -n "$STRIP"; then
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4721. $as_echo "$STRIP" >&6; }
  4722. else
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4724. $as_echo "no" >&6; }
  4725. fi
  4726. fi
  4727. if test -z "$ac_cv_prog_STRIP"; then
  4728. ac_ct_STRIP=$STRIP
  4729. # Extract the first word of "strip", so it can be a program name with args.
  4730. set dummy strip; ac_word=$2
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$ac_ct_STRIP"; then
  4737. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4746. ac_cv_prog_ac_ct_STRIP="strip"
  4747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4756. if test -n "$ac_ct_STRIP"; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4758. $as_echo "$ac_ct_STRIP" >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. if test "x$ac_ct_STRIP" = x; then
  4764. STRIP=":"
  4765. else
  4766. case $cross_compiling:$ac_tool_warned in
  4767. yes:)
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4769. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4770. ac_tool_warned=yes ;;
  4771. esac
  4772. STRIP=$ac_ct_STRIP
  4773. fi
  4774. else
  4775. STRIP="$ac_cv_prog_STRIP"
  4776. fi
  4777. test -z "$STRIP" && STRIP=:
  4778. if test -n "$ac_tool_prefix"; then
  4779. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4780. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4782. $as_echo_n "checking for $ac_word... " >&6; }
  4783. if ${ac_cv_prog_RANLIB+:} false; then :
  4784. $as_echo_n "(cached) " >&6
  4785. else
  4786. if test -n "$RANLIB"; then
  4787. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4788. else
  4789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4790. for as_dir in $PATH
  4791. do
  4792. IFS=$as_save_IFS
  4793. test -z "$as_dir" && as_dir=.
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4796. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4798. break 2
  4799. fi
  4800. done
  4801. done
  4802. IFS=$as_save_IFS
  4803. fi
  4804. fi
  4805. RANLIB=$ac_cv_prog_RANLIB
  4806. if test -n "$RANLIB"; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4808. $as_echo "$RANLIB" >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4811. $as_echo "no" >&6; }
  4812. fi
  4813. fi
  4814. if test -z "$ac_cv_prog_RANLIB"; then
  4815. ac_ct_RANLIB=$RANLIB
  4816. # Extract the first word of "ranlib", so it can be a program name with args.
  4817. set dummy ranlib; ac_word=$2
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4819. $as_echo_n "checking for $ac_word... " >&6; }
  4820. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4821. $as_echo_n "(cached) " >&6
  4822. else
  4823. if test -n "$ac_ct_RANLIB"; then
  4824. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4825. else
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829. IFS=$as_save_IFS
  4830. test -z "$as_dir" && as_dir=.
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4833. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835. break 2
  4836. fi
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. fi
  4841. fi
  4842. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4843. if test -n "$ac_ct_RANLIB"; then
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4845. $as_echo "$ac_ct_RANLIB" >&6; }
  4846. else
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4848. $as_echo "no" >&6; }
  4849. fi
  4850. if test "x$ac_ct_RANLIB" = x; then
  4851. RANLIB=":"
  4852. else
  4853. case $cross_compiling:$ac_tool_warned in
  4854. yes:)
  4855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4857. ac_tool_warned=yes ;;
  4858. esac
  4859. RANLIB=$ac_ct_RANLIB
  4860. fi
  4861. else
  4862. RANLIB="$ac_cv_prog_RANLIB"
  4863. fi
  4864. test -z "$RANLIB" && RANLIB=:
  4865. # Determine commands to create old-style static archives.
  4866. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4867. old_postinstall_cmds='chmod 644 $oldlib'
  4868. old_postuninstall_cmds=
  4869. if test -n "$RANLIB"; then
  4870. case $host_os in
  4871. openbsd*)
  4872. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4873. ;;
  4874. *)
  4875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4876. ;;
  4877. esac
  4878. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4879. fi
  4880. case $host_os in
  4881. darwin*)
  4882. lock_old_archive_extraction=yes ;;
  4883. *)
  4884. lock_old_archive_extraction=no ;;
  4885. esac
  4886. for ac_prog in gawk mawk nawk awk
  4887. do
  4888. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4889. set dummy $ac_prog; ac_word=$2
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4891. $as_echo_n "checking for $ac_word... " >&6; }
  4892. if ${ac_cv_prog_AWK+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. if test -n "$AWK"; then
  4896. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4897. else
  4898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4899. for as_dir in $PATH
  4900. do
  4901. IFS=$as_save_IFS
  4902. test -z "$as_dir" && as_dir=.
  4903. for ac_exec_ext in '' $ac_executable_extensions; do
  4904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4905. ac_cv_prog_AWK="$ac_prog"
  4906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4907. break 2
  4908. fi
  4909. done
  4910. done
  4911. IFS=$as_save_IFS
  4912. fi
  4913. fi
  4914. AWK=$ac_cv_prog_AWK
  4915. if test -n "$AWK"; then
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4917. $as_echo "$AWK" >&6; }
  4918. else
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4920. $as_echo "no" >&6; }
  4921. fi
  4922. test -n "$AWK" && break
  4923. done
  4924. # If no C compiler was specified, use CC.
  4925. LTCC=${LTCC-"$CC"}
  4926. # If no C compiler flags were specified, use CFLAGS.
  4927. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4928. # Allow CC to be a program name with arguments.
  4929. compiler=$CC
  4930. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4932. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4933. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. # These are sane defaults that work on at least a few old systems.
  4937. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4938. # Character class describing NM global symbol codes.
  4939. symcode='[BCDEGRST]'
  4940. # Regexp to match symbols that can be accessed directly from C.
  4941. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4942. # Define system-specific variables.
  4943. case $host_os in
  4944. aix*)
  4945. symcode='[BCDT]'
  4946. ;;
  4947. cygwin* | mingw* | pw32* | cegcc*)
  4948. symcode='[ABCDGISTW]'
  4949. ;;
  4950. hpux*)
  4951. if test "$host_cpu" = ia64; then
  4952. symcode='[ABCDEGRST]'
  4953. fi
  4954. ;;
  4955. irix* | nonstopux*)
  4956. symcode='[BCDEGRST]'
  4957. ;;
  4958. osf*)
  4959. symcode='[BCDEGQRST]'
  4960. ;;
  4961. solaris*)
  4962. symcode='[BDRT]'
  4963. ;;
  4964. sco3.2v5*)
  4965. symcode='[DT]'
  4966. ;;
  4967. sysv4.2uw2*)
  4968. symcode='[DT]'
  4969. ;;
  4970. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4971. symcode='[ABDT]'
  4972. ;;
  4973. sysv4)
  4974. symcode='[DFNSTU]'
  4975. ;;
  4976. esac
  4977. # If we're using GNU nm, then use its standard symbol codes.
  4978. case `$NM -V 2>&1` in
  4979. *GNU* | *'with BFD'*)
  4980. symcode='[ABCDGIRSTW]' ;;
  4981. esac
  4982. # Transform an extracted symbol line into a proper C declaration.
  4983. # Some systems (esp. on ia64) link data and code symbols differently,
  4984. # so use this general approach.
  4985. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4986. # Transform an extracted symbol line into symbol name and symbol address
  4987. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4988. 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'"
  4989. # Handle CRLF in mingw tool chain
  4990. opt_cr=
  4991. case $build_os in
  4992. mingw*)
  4993. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4994. ;;
  4995. esac
  4996. # Try without a prefix underscore, then with it.
  4997. for ac_symprfx in "" "_"; do
  4998. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4999. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5000. # Write the raw and C identifiers.
  5001. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5002. # Fake it for dumpbin and say T for any non-static function
  5003. # and D for any global variable.
  5004. # Also find C++ and __fastcall symbols from MSVC++,
  5005. # which start with @ or ?.
  5006. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5007. " {last_section=section; section=\$ 3};"\
  5008. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5009. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5010. " \$ 0!~/External *\|/{next};"\
  5011. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5012. " {if(hide[section]) next};"\
  5013. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5014. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5015. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5016. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5017. " ' prfx=^$ac_symprfx"
  5018. else
  5019. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5020. fi
  5021. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5022. # Check to see that the pipe works correctly.
  5023. pipe_works=no
  5024. rm -f conftest*
  5025. cat > conftest.$ac_ext <<_LT_EOF
  5026. #ifdef __cplusplus
  5027. extern "C" {
  5028. #endif
  5029. char nm_test_var;
  5030. void nm_test_func(void);
  5031. void nm_test_func(void){}
  5032. #ifdef __cplusplus
  5033. }
  5034. #endif
  5035. int main(){nm_test_var='a';nm_test_func();return(0);}
  5036. _LT_EOF
  5037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5038. (eval $ac_compile) 2>&5
  5039. ac_status=$?
  5040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5041. test $ac_status = 0; }; then
  5042. # Now try to grab the symbols.
  5043. nlist=conftest.nm
  5044. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5045. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5046. ac_status=$?
  5047. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5048. test $ac_status = 0; } && test -s "$nlist"; then
  5049. # Try sorting and uniquifying the output.
  5050. if sort "$nlist" | uniq > "$nlist"T; then
  5051. mv -f "$nlist"T "$nlist"
  5052. else
  5053. rm -f "$nlist"T
  5054. fi
  5055. # Make sure that we snagged all the symbols we need.
  5056. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5057. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5058. cat <<_LT_EOF > conftest.$ac_ext
  5059. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5060. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5061. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5062. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5063. # define LT_DLSYM_CONST
  5064. #elif defined(__osf__)
  5065. /* This system does not cope well with relocations in const data. */
  5066. # define LT_DLSYM_CONST
  5067. #else
  5068. # define LT_DLSYM_CONST const
  5069. #endif
  5070. #ifdef __cplusplus
  5071. extern "C" {
  5072. #endif
  5073. _LT_EOF
  5074. # Now generate the symbol file.
  5075. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5076. cat <<_LT_EOF >> conftest.$ac_ext
  5077. /* The mapping between symbol names and symbols. */
  5078. LT_DLSYM_CONST struct {
  5079. const char *name;
  5080. void *address;
  5081. }
  5082. lt__PROGRAM__LTX_preloaded_symbols[] =
  5083. {
  5084. { "@PROGRAM@", (void *) 0 },
  5085. _LT_EOF
  5086. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5087. cat <<\_LT_EOF >> conftest.$ac_ext
  5088. {0, (void *) 0}
  5089. };
  5090. /* This works around a problem in FreeBSD linker */
  5091. #ifdef FREEBSD_WORKAROUND
  5092. static const void *lt_preloaded_setup() {
  5093. return lt__PROGRAM__LTX_preloaded_symbols;
  5094. }
  5095. #endif
  5096. #ifdef __cplusplus
  5097. }
  5098. #endif
  5099. _LT_EOF
  5100. # Now try linking the two files.
  5101. mv conftest.$ac_objext conftstm.$ac_objext
  5102. lt_globsym_save_LIBS=$LIBS
  5103. lt_globsym_save_CFLAGS=$CFLAGS
  5104. LIBS="conftstm.$ac_objext"
  5105. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5107. (eval $ac_link) 2>&5
  5108. ac_status=$?
  5109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5110. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5111. pipe_works=yes
  5112. fi
  5113. LIBS=$lt_globsym_save_LIBS
  5114. CFLAGS=$lt_globsym_save_CFLAGS
  5115. else
  5116. echo "cannot find nm_test_func in $nlist" >&5
  5117. fi
  5118. else
  5119. echo "cannot find nm_test_var in $nlist" >&5
  5120. fi
  5121. else
  5122. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5123. fi
  5124. else
  5125. echo "$progname: failed program was:" >&5
  5126. cat conftest.$ac_ext >&5
  5127. fi
  5128. rm -rf conftest* conftst*
  5129. # Do not use the global_symbol_pipe unless it works.
  5130. if test "$pipe_works" = yes; then
  5131. break
  5132. else
  5133. lt_cv_sys_global_symbol_pipe=
  5134. fi
  5135. done
  5136. fi
  5137. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5138. lt_cv_sys_global_symbol_to_cdecl=
  5139. fi
  5140. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5142. $as_echo "failed" >&6; }
  5143. else
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5145. $as_echo "ok" >&6; }
  5146. fi
  5147. # Response file support.
  5148. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5149. nm_file_list_spec='@'
  5150. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5151. nm_file_list_spec='@'
  5152. fi
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5154. $as_echo_n "checking for sysroot... " >&6; }
  5155. # Check whether --with-sysroot was given.
  5156. if test "${with_sysroot+set}" = set; then :
  5157. withval=$with_sysroot;
  5158. else
  5159. with_sysroot=no
  5160. fi
  5161. lt_sysroot=
  5162. case ${with_sysroot} in #(
  5163. yes)
  5164. if test "$GCC" = yes; then
  5165. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5166. fi
  5167. ;; #(
  5168. /*)
  5169. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5170. ;; #(
  5171. no|'')
  5172. ;; #(
  5173. *)
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5175. $as_echo "${with_sysroot}" >&6; }
  5176. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5177. ;;
  5178. esac
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5180. $as_echo "${lt_sysroot:-no}" >&6; }
  5181. # Check whether --enable-libtool-lock was given.
  5182. if test "${enable_libtool_lock+set}" = set; then :
  5183. enableval=$enable_libtool_lock;
  5184. fi
  5185. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5186. # Some flags need to be propagated to the compiler or linker for good
  5187. # libtool support.
  5188. case $host in
  5189. ia64-*-hpux*)
  5190. # Find out which ABI we are using.
  5191. echo 'int i;' > conftest.$ac_ext
  5192. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5193. (eval $ac_compile) 2>&5
  5194. ac_status=$?
  5195. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5196. test $ac_status = 0; }; then
  5197. case `/usr/bin/file conftest.$ac_objext` in
  5198. *ELF-32*)
  5199. HPUX_IA64_MODE="32"
  5200. ;;
  5201. *ELF-64*)
  5202. HPUX_IA64_MODE="64"
  5203. ;;
  5204. esac
  5205. fi
  5206. rm -rf conftest*
  5207. ;;
  5208. *-*-irix6*)
  5209. # Find out which ABI we are using.
  5210. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5212. (eval $ac_compile) 2>&5
  5213. ac_status=$?
  5214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5215. test $ac_status = 0; }; then
  5216. if test "$lt_cv_prog_gnu_ld" = yes; then
  5217. case `/usr/bin/file conftest.$ac_objext` in
  5218. *32-bit*)
  5219. LD="${LD-ld} -melf32bsmip"
  5220. ;;
  5221. *N32*)
  5222. LD="${LD-ld} -melf32bmipn32"
  5223. ;;
  5224. *64-bit*)
  5225. LD="${LD-ld} -melf64bmip"
  5226. ;;
  5227. esac
  5228. else
  5229. case `/usr/bin/file conftest.$ac_objext` in
  5230. *32-bit*)
  5231. LD="${LD-ld} -32"
  5232. ;;
  5233. *N32*)
  5234. LD="${LD-ld} -n32"
  5235. ;;
  5236. *64-bit*)
  5237. LD="${LD-ld} -64"
  5238. ;;
  5239. esac
  5240. fi
  5241. fi
  5242. rm -rf conftest*
  5243. ;;
  5244. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5245. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5246. # Find out which ABI we are using.
  5247. echo 'int i;' > conftest.$ac_ext
  5248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5249. (eval $ac_compile) 2>&5
  5250. ac_status=$?
  5251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5252. test $ac_status = 0; }; then
  5253. case `/usr/bin/file conftest.o` in
  5254. *32-bit*)
  5255. case $host in
  5256. x86_64-*kfreebsd*-gnu)
  5257. LD="${LD-ld} -m elf_i386_fbsd"
  5258. ;;
  5259. x86_64-*linux*)
  5260. LD="${LD-ld} -m elf_i386"
  5261. ;;
  5262. ppc64-*linux*|powerpc64-*linux*)
  5263. LD="${LD-ld} -m elf32ppclinux"
  5264. ;;
  5265. s390x-*linux*)
  5266. LD="${LD-ld} -m elf_s390"
  5267. ;;
  5268. sparc64-*linux*)
  5269. LD="${LD-ld} -m elf32_sparc"
  5270. ;;
  5271. esac
  5272. ;;
  5273. *64-bit*)
  5274. case $host in
  5275. x86_64-*kfreebsd*-gnu)
  5276. LD="${LD-ld} -m elf_x86_64_fbsd"
  5277. ;;
  5278. x86_64-*linux*)
  5279. LD="${LD-ld} -m elf_x86_64"
  5280. ;;
  5281. powerpc64le-*linux*)
  5282. LD="${LD-ld} -m elf64lppc"
  5283. ;;
  5284. powerpc64-*linux*)
  5285. LD="${LD-ld} -m elf64ppc"
  5286. ;;
  5287. s390*-*linux*|s390*-*tpf*)
  5288. LD="${LD-ld} -m elf64_s390"
  5289. ;;
  5290. sparc*-*linux*)
  5291. LD="${LD-ld} -m elf64_sparc"
  5292. ;;
  5293. esac
  5294. ;;
  5295. esac
  5296. fi
  5297. rm -rf conftest*
  5298. ;;
  5299. *-*-sco3.2v5*)
  5300. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5301. SAVE_CFLAGS="$CFLAGS"
  5302. CFLAGS="$CFLAGS -belf"
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5304. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5305. if ${lt_cv_cc_needs_belf+:} false; then :
  5306. $as_echo_n "(cached) " >&6
  5307. else
  5308. ac_ext=c
  5309. ac_cpp='$CPP $CPPFLAGS'
  5310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5314. /* end confdefs.h. */
  5315. int
  5316. main ()
  5317. {
  5318. ;
  5319. return 0;
  5320. }
  5321. _ACEOF
  5322. if ac_fn_c_try_link "$LINENO"; then :
  5323. lt_cv_cc_needs_belf=yes
  5324. else
  5325. lt_cv_cc_needs_belf=no
  5326. fi
  5327. rm -f core conftest.err conftest.$ac_objext \
  5328. conftest$ac_exeext conftest.$ac_ext
  5329. ac_ext=c
  5330. ac_cpp='$CPP $CPPFLAGS'
  5331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5334. fi
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5336. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5337. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5338. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5339. CFLAGS="$SAVE_CFLAGS"
  5340. fi
  5341. ;;
  5342. *-*solaris*)
  5343. # Find out which ABI we are using.
  5344. echo 'int i;' > conftest.$ac_ext
  5345. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5346. (eval $ac_compile) 2>&5
  5347. ac_status=$?
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5349. test $ac_status = 0; }; then
  5350. case `/usr/bin/file conftest.o` in
  5351. *64-bit*)
  5352. case $lt_cv_prog_gnu_ld in
  5353. yes*)
  5354. case $host in
  5355. i?86-*-solaris*)
  5356. LD="${LD-ld} -m elf_x86_64"
  5357. ;;
  5358. sparc*-*-solaris*)
  5359. LD="${LD-ld} -m elf64_sparc"
  5360. ;;
  5361. esac
  5362. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5363. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5364. LD="${LD-ld}_sol2"
  5365. fi
  5366. ;;
  5367. *)
  5368. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5369. LD="${LD-ld} -64"
  5370. fi
  5371. ;;
  5372. esac
  5373. ;;
  5374. esac
  5375. fi
  5376. rm -rf conftest*
  5377. ;;
  5378. esac
  5379. need_locks="$enable_libtool_lock"
  5380. if test -n "$ac_tool_prefix"; then
  5381. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5382. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$MANIFEST_TOOL"; then
  5389. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5398. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5408. if test -n "$MANIFEST_TOOL"; then
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5410. $as_echo "$MANIFEST_TOOL" >&6; }
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. fi
  5416. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5417. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5418. # Extract the first word of "mt", so it can be a program name with args.
  5419. set dummy mt; ac_word=$2
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5421. $as_echo_n "checking for $ac_word... " >&6; }
  5422. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5426. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. for ac_exec_ext in '' $ac_executable_extensions; do
  5434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5435. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5437. break 2
  5438. fi
  5439. done
  5440. done
  5441. IFS=$as_save_IFS
  5442. fi
  5443. fi
  5444. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5445. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5447. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5448. else
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5450. $as_echo "no" >&6; }
  5451. fi
  5452. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5453. MANIFEST_TOOL=":"
  5454. else
  5455. case $cross_compiling:$ac_tool_warned in
  5456. yes:)
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5459. ac_tool_warned=yes ;;
  5460. esac
  5461. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5462. fi
  5463. else
  5464. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5465. fi
  5466. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5468. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5469. if ${lt_cv_path_mainfest_tool+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. lt_cv_path_mainfest_tool=no
  5473. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5474. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5475. cat conftest.err >&5
  5476. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5477. lt_cv_path_mainfest_tool=yes
  5478. fi
  5479. rm -f conftest*
  5480. fi
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5482. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5483. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5484. MANIFEST_TOOL=:
  5485. fi
  5486. case $host_os in
  5487. rhapsody* | darwin*)
  5488. if test -n "$ac_tool_prefix"; then
  5489. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5490. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$DSYMUTIL"; then
  5497. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5506. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5516. if test -n "$DSYMUTIL"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5518. $as_echo "$DSYMUTIL" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. fi
  5524. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5525. ac_ct_DSYMUTIL=$DSYMUTIL
  5526. # Extract the first word of "dsymutil", so it can be a program name with args.
  5527. set dummy dsymutil; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$ac_ct_DSYMUTIL"; then
  5534. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5553. if test -n "$ac_ct_DSYMUTIL"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5555. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. if test "x$ac_ct_DSYMUTIL" = x; then
  5561. DSYMUTIL=":"
  5562. else
  5563. case $cross_compiling:$ac_tool_warned in
  5564. yes:)
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5567. ac_tool_warned=yes ;;
  5568. esac
  5569. DSYMUTIL=$ac_ct_DSYMUTIL
  5570. fi
  5571. else
  5572. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5573. fi
  5574. if test -n "$ac_tool_prefix"; then
  5575. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5576. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5578. $as_echo_n "checking for $ac_word... " >&6; }
  5579. if ${ac_cv_prog_NMEDIT+:} false; then :
  5580. $as_echo_n "(cached) " >&6
  5581. else
  5582. if test -n "$NMEDIT"; then
  5583. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5584. else
  5585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5586. for as_dir in $PATH
  5587. do
  5588. IFS=$as_save_IFS
  5589. test -z "$as_dir" && as_dir=.
  5590. for ac_exec_ext in '' $ac_executable_extensions; do
  5591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5592. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5594. break 2
  5595. fi
  5596. done
  5597. done
  5598. IFS=$as_save_IFS
  5599. fi
  5600. fi
  5601. NMEDIT=$ac_cv_prog_NMEDIT
  5602. if test -n "$NMEDIT"; then
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5604. $as_echo "$NMEDIT" >&6; }
  5605. else
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5607. $as_echo "no" >&6; }
  5608. fi
  5609. fi
  5610. if test -z "$ac_cv_prog_NMEDIT"; then
  5611. ac_ct_NMEDIT=$NMEDIT
  5612. # Extract the first word of "nmedit", so it can be a program name with args.
  5613. set dummy nmedit; ac_word=$2
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5615. $as_echo_n "checking for $ac_word... " >&6; }
  5616. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if test -n "$ac_ct_NMEDIT"; then
  5620. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5621. else
  5622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5623. for as_dir in $PATH
  5624. do
  5625. IFS=$as_save_IFS
  5626. test -z "$as_dir" && as_dir=.
  5627. for ac_exec_ext in '' $ac_executable_extensions; do
  5628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5629. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5631. break 2
  5632. fi
  5633. done
  5634. done
  5635. IFS=$as_save_IFS
  5636. fi
  5637. fi
  5638. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5639. if test -n "$ac_ct_NMEDIT"; then
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5641. $as_echo "$ac_ct_NMEDIT" >&6; }
  5642. else
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5644. $as_echo "no" >&6; }
  5645. fi
  5646. if test "x$ac_ct_NMEDIT" = x; then
  5647. NMEDIT=":"
  5648. else
  5649. case $cross_compiling:$ac_tool_warned in
  5650. yes:)
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5653. ac_tool_warned=yes ;;
  5654. esac
  5655. NMEDIT=$ac_ct_NMEDIT
  5656. fi
  5657. else
  5658. NMEDIT="$ac_cv_prog_NMEDIT"
  5659. fi
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. $as_echo_n "checking for $ac_word... " >&6; }
  5665. if ${ac_cv_prog_LIPO+:} false; then :
  5666. $as_echo_n "(cached) " >&6
  5667. else
  5668. if test -n "$LIPO"; then
  5669. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5670. else
  5671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5672. for as_dir in $PATH
  5673. do
  5674. IFS=$as_save_IFS
  5675. test -z "$as_dir" && as_dir=.
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. LIPO=$ac_cv_prog_LIPO
  5688. if test -n "$LIPO"; then
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5690. $as_echo "$LIPO" >&6; }
  5691. else
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. $as_echo "no" >&6; }
  5694. fi
  5695. fi
  5696. if test -z "$ac_cv_prog_LIPO"; then
  5697. ac_ct_LIPO=$LIPO
  5698. # Extract the first word of "lipo", so it can be a program name with args.
  5699. set dummy lipo; ac_word=$2
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5701. $as_echo_n "checking for $ac_word... " >&6; }
  5702. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. if test -n "$ac_ct_LIPO"; then
  5706. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5715. ac_cv_prog_ac_ct_LIPO="lipo"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5725. if test -n "$ac_ct_LIPO"; then
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5727. $as_echo "$ac_ct_LIPO" >&6; }
  5728. else
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5730. $as_echo "no" >&6; }
  5731. fi
  5732. if test "x$ac_ct_LIPO" = x; then
  5733. LIPO=":"
  5734. else
  5735. case $cross_compiling:$ac_tool_warned in
  5736. yes:)
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5738. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5739. ac_tool_warned=yes ;;
  5740. esac
  5741. LIPO=$ac_ct_LIPO
  5742. fi
  5743. else
  5744. LIPO="$ac_cv_prog_LIPO"
  5745. fi
  5746. if test -n "$ac_tool_prefix"; then
  5747. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5748. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5750. $as_echo_n "checking for $ac_word... " >&6; }
  5751. if ${ac_cv_prog_OTOOL+:} false; then :
  5752. $as_echo_n "(cached) " >&6
  5753. else
  5754. if test -n "$OTOOL"; then
  5755. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5756. else
  5757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5758. for as_dir in $PATH
  5759. do
  5760. IFS=$as_save_IFS
  5761. test -z "$as_dir" && as_dir=.
  5762. for ac_exec_ext in '' $ac_executable_extensions; do
  5763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5764. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5766. break 2
  5767. fi
  5768. done
  5769. done
  5770. IFS=$as_save_IFS
  5771. fi
  5772. fi
  5773. OTOOL=$ac_cv_prog_OTOOL
  5774. if test -n "$OTOOL"; then
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5776. $as_echo "$OTOOL" >&6; }
  5777. else
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5779. $as_echo "no" >&6; }
  5780. fi
  5781. fi
  5782. if test -z "$ac_cv_prog_OTOOL"; then
  5783. ac_ct_OTOOL=$OTOOL
  5784. # Extract the first word of "otool", so it can be a program name with args.
  5785. set dummy otool; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$ac_ct_OTOOL"; then
  5792. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_prog_ac_ct_OTOOL="otool"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5811. if test -n "$ac_ct_OTOOL"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5813. $as_echo "$ac_ct_OTOOL" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. if test "x$ac_ct_OTOOL" = x; then
  5819. OTOOL=":"
  5820. else
  5821. case $cross_compiling:$ac_tool_warned in
  5822. yes:)
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5824. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5825. ac_tool_warned=yes ;;
  5826. esac
  5827. OTOOL=$ac_ct_OTOOL
  5828. fi
  5829. else
  5830. OTOOL="$ac_cv_prog_OTOOL"
  5831. fi
  5832. if test -n "$ac_tool_prefix"; then
  5833. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5834. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5836. $as_echo_n "checking for $ac_word... " >&6; }
  5837. if ${ac_cv_prog_OTOOL64+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. if test -n "$OTOOL64"; then
  5841. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5842. else
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5850. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. OTOOL64=$ac_cv_prog_OTOOL64
  5860. if test -n "$OTOOL64"; then
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5862. $as_echo "$OTOOL64" >&6; }
  5863. else
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5865. $as_echo "no" >&6; }
  5866. fi
  5867. fi
  5868. if test -z "$ac_cv_prog_OTOOL64"; then
  5869. ac_ct_OTOOL64=$OTOOL64
  5870. # Extract the first word of "otool64", so it can be a program name with args.
  5871. set dummy otool64; ac_word=$2
  5872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5873. $as_echo_n "checking for $ac_word... " >&6; }
  5874. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5875. $as_echo_n "(cached) " >&6
  5876. else
  5877. if test -n "$ac_ct_OTOOL64"; then
  5878. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5879. else
  5880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5881. for as_dir in $PATH
  5882. do
  5883. IFS=$as_save_IFS
  5884. test -z "$as_dir" && as_dir=.
  5885. for ac_exec_ext in '' $ac_executable_extensions; do
  5886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5887. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5889. break 2
  5890. fi
  5891. done
  5892. done
  5893. IFS=$as_save_IFS
  5894. fi
  5895. fi
  5896. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5897. if test -n "$ac_ct_OTOOL64"; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5899. $as_echo "$ac_ct_OTOOL64" >&6; }
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5902. $as_echo "no" >&6; }
  5903. fi
  5904. if test "x$ac_ct_OTOOL64" = x; then
  5905. OTOOL64=":"
  5906. else
  5907. case $cross_compiling:$ac_tool_warned in
  5908. yes:)
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5910. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5911. ac_tool_warned=yes ;;
  5912. esac
  5913. OTOOL64=$ac_ct_OTOOL64
  5914. fi
  5915. else
  5916. OTOOL64="$ac_cv_prog_OTOOL64"
  5917. fi
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5919. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5920. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. lt_cv_apple_cc_single_mod=no
  5924. if test -z "${LT_MULTI_MODULE}"; then
  5925. # By default we will add the -single_module flag. You can override
  5926. # by either setting the environment variable LT_MULTI_MODULE
  5927. # non-empty at configure time, or by adding -multi_module to the
  5928. # link flags.
  5929. rm -rf libconftest.dylib*
  5930. echo "int foo(void){return 1;}" > conftest.c
  5931. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5932. -dynamiclib -Wl,-single_module conftest.c" >&5
  5933. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5934. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5935. _lt_result=$?
  5936. # If there is a non-empty error log, and "single_module"
  5937. # appears in it, assume the flag caused a linker warning
  5938. if test -s conftest.err && $GREP single_module conftest.err; then
  5939. cat conftest.err >&5
  5940. # Otherwise, if the output was created with a 0 exit code from
  5941. # the compiler, it worked.
  5942. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5943. lt_cv_apple_cc_single_mod=yes
  5944. else
  5945. cat conftest.err >&5
  5946. fi
  5947. rm -rf libconftest.dylib*
  5948. rm -f conftest.*
  5949. fi
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5952. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5954. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5955. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5956. $as_echo_n "(cached) " >&6
  5957. else
  5958. lt_cv_ld_exported_symbols_list=no
  5959. save_LDFLAGS=$LDFLAGS
  5960. echo "_main" > conftest.sym
  5961. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5963. /* end confdefs.h. */
  5964. int
  5965. main ()
  5966. {
  5967. ;
  5968. return 0;
  5969. }
  5970. _ACEOF
  5971. if ac_fn_c_try_link "$LINENO"; then :
  5972. lt_cv_ld_exported_symbols_list=yes
  5973. else
  5974. lt_cv_ld_exported_symbols_list=no
  5975. fi
  5976. rm -f core conftest.err conftest.$ac_objext \
  5977. conftest$ac_exeext conftest.$ac_ext
  5978. LDFLAGS="$save_LDFLAGS"
  5979. fi
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5981. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5983. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5984. if ${lt_cv_ld_force_load+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. lt_cv_ld_force_load=no
  5988. cat > conftest.c << _LT_EOF
  5989. int forced_loaded() { return 2;}
  5990. _LT_EOF
  5991. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5992. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5993. echo "$AR cru libconftest.a conftest.o" >&5
  5994. $AR cru libconftest.a conftest.o 2>&5
  5995. echo "$RANLIB libconftest.a" >&5
  5996. $RANLIB libconftest.a 2>&5
  5997. cat > conftest.c << _LT_EOF
  5998. int main() { return 0;}
  5999. _LT_EOF
  6000. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6001. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6002. _lt_result=$?
  6003. if test -s conftest.err && $GREP force_load conftest.err; then
  6004. cat conftest.err >&5
  6005. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6006. lt_cv_ld_force_load=yes
  6007. else
  6008. cat conftest.err >&5
  6009. fi
  6010. rm -f conftest.err libconftest.a conftest conftest.c
  6011. rm -rf conftest.dSYM
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6014. $as_echo "$lt_cv_ld_force_load" >&6; }
  6015. case $host_os in
  6016. rhapsody* | darwin1.[012])
  6017. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6018. darwin1.*)
  6019. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6020. darwin*) # darwin 5.x on
  6021. # if running on 10.5 or later, the deployment target defaults
  6022. # to the OS version, if on x86, and 10.4, the deployment
  6023. # target defaults to 10.4. Don't you love it?
  6024. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6025. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6026. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6027. 10.[012]*)
  6028. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6029. 10.*)
  6030. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6031. esac
  6032. ;;
  6033. esac
  6034. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6035. _lt_dar_single_mod='$single_module'
  6036. fi
  6037. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6038. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6039. else
  6040. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6041. fi
  6042. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6043. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6044. else
  6045. _lt_dsymutil=
  6046. fi
  6047. ;;
  6048. esac
  6049. ac_ext=c
  6050. ac_cpp='$CPP $CPPFLAGS'
  6051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6055. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6056. # On Suns, sometimes $CPP names a directory.
  6057. if test -n "$CPP" && test -d "$CPP"; then
  6058. CPP=
  6059. fi
  6060. if test -z "$CPP"; then
  6061. if ${ac_cv_prog_CPP+:} false; then :
  6062. $as_echo_n "(cached) " >&6
  6063. else
  6064. # Double quotes because CPP needs to be expanded
  6065. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6066. do
  6067. ac_preproc_ok=false
  6068. for ac_c_preproc_warn_flag in '' yes
  6069. do
  6070. # Use a header file that comes with gcc, so configuring glibc
  6071. # with a fresh cross-compiler works.
  6072. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6073. # <limits.h> exists even on freestanding compilers.
  6074. # On the NeXT, cc -E runs the code through the compiler's parser,
  6075. # not just through cpp. "Syntax error" is here to catch this case.
  6076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6077. /* end confdefs.h. */
  6078. #ifdef __STDC__
  6079. # include <limits.h>
  6080. #else
  6081. # include <assert.h>
  6082. #endif
  6083. Syntax error
  6084. _ACEOF
  6085. if ac_fn_c_try_cpp "$LINENO"; then :
  6086. else
  6087. # Broken: fails on valid input.
  6088. continue
  6089. fi
  6090. rm -f conftest.err conftest.i conftest.$ac_ext
  6091. # OK, works on sane cases. Now check whether nonexistent headers
  6092. # can be detected and how.
  6093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6094. /* end confdefs.h. */
  6095. #include <ac_nonexistent.h>
  6096. _ACEOF
  6097. if ac_fn_c_try_cpp "$LINENO"; then :
  6098. # Broken: success on invalid input.
  6099. continue
  6100. else
  6101. # Passes both tests.
  6102. ac_preproc_ok=:
  6103. break
  6104. fi
  6105. rm -f conftest.err conftest.i conftest.$ac_ext
  6106. done
  6107. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6108. rm -f conftest.i conftest.err conftest.$ac_ext
  6109. if $ac_preproc_ok; then :
  6110. break
  6111. fi
  6112. done
  6113. ac_cv_prog_CPP=$CPP
  6114. fi
  6115. CPP=$ac_cv_prog_CPP
  6116. else
  6117. ac_cv_prog_CPP=$CPP
  6118. fi
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6120. $as_echo "$CPP" >&6; }
  6121. ac_preproc_ok=false
  6122. for ac_c_preproc_warn_flag in '' yes
  6123. do
  6124. # Use a header file that comes with gcc, so configuring glibc
  6125. # with a fresh cross-compiler works.
  6126. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6127. # <limits.h> exists even on freestanding compilers.
  6128. # On the NeXT, cc -E runs the code through the compiler's parser,
  6129. # not just through cpp. "Syntax error" is here to catch this case.
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. #ifdef __STDC__
  6133. # include <limits.h>
  6134. #else
  6135. # include <assert.h>
  6136. #endif
  6137. Syntax error
  6138. _ACEOF
  6139. if ac_fn_c_try_cpp "$LINENO"; then :
  6140. else
  6141. # Broken: fails on valid input.
  6142. continue
  6143. fi
  6144. rm -f conftest.err conftest.i conftest.$ac_ext
  6145. # OK, works on sane cases. Now check whether nonexistent headers
  6146. # can be detected and how.
  6147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6148. /* end confdefs.h. */
  6149. #include <ac_nonexistent.h>
  6150. _ACEOF
  6151. if ac_fn_c_try_cpp "$LINENO"; then :
  6152. # Broken: success on invalid input.
  6153. continue
  6154. else
  6155. # Passes both tests.
  6156. ac_preproc_ok=:
  6157. break
  6158. fi
  6159. rm -f conftest.err conftest.i conftest.$ac_ext
  6160. done
  6161. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6162. rm -f conftest.i conftest.err conftest.$ac_ext
  6163. if $ac_preproc_ok; then :
  6164. else
  6165. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6167. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6168. See \`config.log' for more details" "$LINENO" 5; }
  6169. fi
  6170. ac_ext=c
  6171. ac_cpp='$CPP $CPPFLAGS'
  6172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6176. $as_echo_n "checking for ANSI C header files... " >&6; }
  6177. if ${ac_cv_header_stdc+:} false; then :
  6178. $as_echo_n "(cached) " >&6
  6179. else
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #include <stdlib.h>
  6183. #include <stdarg.h>
  6184. #include <string.h>
  6185. #include <float.h>
  6186. int
  6187. main ()
  6188. {
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_c_try_compile "$LINENO"; then :
  6194. ac_cv_header_stdc=yes
  6195. else
  6196. ac_cv_header_stdc=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6199. if test $ac_cv_header_stdc = yes; then
  6200. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #include <string.h>
  6204. _ACEOF
  6205. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6206. $EGREP "memchr" >/dev/null 2>&1; then :
  6207. else
  6208. ac_cv_header_stdc=no
  6209. fi
  6210. rm -f conftest*
  6211. fi
  6212. if test $ac_cv_header_stdc = yes; then
  6213. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6215. /* end confdefs.h. */
  6216. #include <stdlib.h>
  6217. _ACEOF
  6218. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6219. $EGREP "free" >/dev/null 2>&1; then :
  6220. else
  6221. ac_cv_header_stdc=no
  6222. fi
  6223. rm -f conftest*
  6224. fi
  6225. if test $ac_cv_header_stdc = yes; then
  6226. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6227. if test "$cross_compiling" = yes; then :
  6228. :
  6229. else
  6230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6231. /* end confdefs.h. */
  6232. #include <ctype.h>
  6233. #include <stdlib.h>
  6234. #if ((' ' & 0x0FF) == 0x020)
  6235. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6236. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6237. #else
  6238. # define ISLOWER(c) \
  6239. (('a' <= (c) && (c) <= 'i') \
  6240. || ('j' <= (c) && (c) <= 'r') \
  6241. || ('s' <= (c) && (c) <= 'z'))
  6242. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6243. #endif
  6244. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6245. int
  6246. main ()
  6247. {
  6248. int i;
  6249. for (i = 0; i < 256; i++)
  6250. if (XOR (islower (i), ISLOWER (i))
  6251. || toupper (i) != TOUPPER (i))
  6252. return 2;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_run "$LINENO"; then :
  6257. else
  6258. ac_cv_header_stdc=no
  6259. fi
  6260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6262. fi
  6263. fi
  6264. fi
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6266. $as_echo "$ac_cv_header_stdc" >&6; }
  6267. if test $ac_cv_header_stdc = yes; then
  6268. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6269. fi
  6270. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6271. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6272. inttypes.h stdint.h unistd.h
  6273. do :
  6274. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6275. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6276. "
  6277. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6278. cat >>confdefs.h <<_ACEOF
  6279. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6280. _ACEOF
  6281. fi
  6282. done
  6283. for ac_header in dlfcn.h
  6284. do :
  6285. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6286. "
  6287. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6288. cat >>confdefs.h <<_ACEOF
  6289. #define HAVE_DLFCN_H 1
  6290. _ACEOF
  6291. fi
  6292. done
  6293. # Set options
  6294. enable_win32_dll=yes
  6295. case $host in
  6296. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6297. if test -n "$ac_tool_prefix"; then
  6298. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6299. set dummy ${ac_tool_prefix}as; ac_word=$2
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6301. $as_echo_n "checking for $ac_word... " >&6; }
  6302. if ${ac_cv_prog_AS+:} false; then :
  6303. $as_echo_n "(cached) " >&6
  6304. else
  6305. if test -n "$AS"; then
  6306. ac_cv_prog_AS="$AS" # Let the user override the test.
  6307. else
  6308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6309. for as_dir in $PATH
  6310. do
  6311. IFS=$as_save_IFS
  6312. test -z "$as_dir" && as_dir=.
  6313. for ac_exec_ext in '' $ac_executable_extensions; do
  6314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6315. ac_cv_prog_AS="${ac_tool_prefix}as"
  6316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6317. break 2
  6318. fi
  6319. done
  6320. done
  6321. IFS=$as_save_IFS
  6322. fi
  6323. fi
  6324. AS=$ac_cv_prog_AS
  6325. if test -n "$AS"; then
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6327. $as_echo "$AS" >&6; }
  6328. else
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6330. $as_echo "no" >&6; }
  6331. fi
  6332. fi
  6333. if test -z "$ac_cv_prog_AS"; then
  6334. ac_ct_AS=$AS
  6335. # Extract the first word of "as", so it can be a program name with args.
  6336. set dummy as; ac_word=$2
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6338. $as_echo_n "checking for $ac_word... " >&6; }
  6339. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6340. $as_echo_n "(cached) " >&6
  6341. else
  6342. if test -n "$ac_ct_AS"; then
  6343. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6352. ac_cv_prog_ac_ct_AS="as"
  6353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6362. if test -n "$ac_ct_AS"; then
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6364. $as_echo "$ac_ct_AS" >&6; }
  6365. else
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6367. $as_echo "no" >&6; }
  6368. fi
  6369. if test "x$ac_ct_AS" = x; then
  6370. AS="false"
  6371. else
  6372. case $cross_compiling:$ac_tool_warned in
  6373. yes:)
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6376. ac_tool_warned=yes ;;
  6377. esac
  6378. AS=$ac_ct_AS
  6379. fi
  6380. else
  6381. AS="$ac_cv_prog_AS"
  6382. fi
  6383. if test -n "$ac_tool_prefix"; then
  6384. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6385. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6387. $as_echo_n "checking for $ac_word... " >&6; }
  6388. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6389. $as_echo_n "(cached) " >&6
  6390. else
  6391. if test -n "$DLLTOOL"; then
  6392. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6393. else
  6394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6395. for as_dir in $PATH
  6396. do
  6397. IFS=$as_save_IFS
  6398. test -z "$as_dir" && as_dir=.
  6399. for ac_exec_ext in '' $ac_executable_extensions; do
  6400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6401. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6403. break 2
  6404. fi
  6405. done
  6406. done
  6407. IFS=$as_save_IFS
  6408. fi
  6409. fi
  6410. DLLTOOL=$ac_cv_prog_DLLTOOL
  6411. if test -n "$DLLTOOL"; then
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6413. $as_echo "$DLLTOOL" >&6; }
  6414. else
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6416. $as_echo "no" >&6; }
  6417. fi
  6418. fi
  6419. if test -z "$ac_cv_prog_DLLTOOL"; then
  6420. ac_ct_DLLTOOL=$DLLTOOL
  6421. # Extract the first word of "dlltool", so it can be a program name with args.
  6422. set dummy dlltool; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. if test -n "$ac_ct_DLLTOOL"; then
  6429. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6430. else
  6431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6432. for as_dir in $PATH
  6433. do
  6434. IFS=$as_save_IFS
  6435. test -z "$as_dir" && as_dir=.
  6436. for ac_exec_ext in '' $ac_executable_extensions; do
  6437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6438. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6440. break 2
  6441. fi
  6442. done
  6443. done
  6444. IFS=$as_save_IFS
  6445. fi
  6446. fi
  6447. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6448. if test -n "$ac_ct_DLLTOOL"; then
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6450. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6451. else
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6453. $as_echo "no" >&6; }
  6454. fi
  6455. if test "x$ac_ct_DLLTOOL" = x; then
  6456. DLLTOOL="false"
  6457. else
  6458. case $cross_compiling:$ac_tool_warned in
  6459. yes:)
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6462. ac_tool_warned=yes ;;
  6463. esac
  6464. DLLTOOL=$ac_ct_DLLTOOL
  6465. fi
  6466. else
  6467. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6468. fi
  6469. if test -n "$ac_tool_prefix"; then
  6470. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6471. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6473. $as_echo_n "checking for $ac_word... " >&6; }
  6474. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. if test -n "$OBJDUMP"; then
  6478. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6479. else
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH
  6482. do
  6483. IFS=$as_save_IFS
  6484. test -z "$as_dir" && as_dir=.
  6485. for ac_exec_ext in '' $ac_executable_extensions; do
  6486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6487. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489. break 2
  6490. fi
  6491. done
  6492. done
  6493. IFS=$as_save_IFS
  6494. fi
  6495. fi
  6496. OBJDUMP=$ac_cv_prog_OBJDUMP
  6497. if test -n "$OBJDUMP"; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6499. $as_echo "$OBJDUMP" >&6; }
  6500. else
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6502. $as_echo "no" >&6; }
  6503. fi
  6504. fi
  6505. if test -z "$ac_cv_prog_OBJDUMP"; then
  6506. ac_ct_OBJDUMP=$OBJDUMP
  6507. # Extract the first word of "objdump", so it can be a program name with args.
  6508. set dummy objdump; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$ac_ct_OBJDUMP"; then
  6515. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6534. if test -n "$ac_ct_OBJDUMP"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6536. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. if test "x$ac_ct_OBJDUMP" = x; then
  6542. OBJDUMP="false"
  6543. else
  6544. case $cross_compiling:$ac_tool_warned in
  6545. yes:)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6548. ac_tool_warned=yes ;;
  6549. esac
  6550. OBJDUMP=$ac_ct_OBJDUMP
  6551. fi
  6552. else
  6553. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6554. fi
  6555. ;;
  6556. esac
  6557. test -z "$AS" && AS=as
  6558. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6559. test -z "$OBJDUMP" && OBJDUMP=objdump
  6560. enable_dlopen=no
  6561. # Check whether --enable-shared was given.
  6562. if test "${enable_shared+set}" = set; then :
  6563. enableval=$enable_shared; p=${PACKAGE-default}
  6564. case $enableval in
  6565. yes) enable_shared=yes ;;
  6566. no) enable_shared=no ;;
  6567. *)
  6568. enable_shared=no
  6569. # Look at the argument we got. We use all the common list separators.
  6570. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6571. for pkg in $enableval; do
  6572. IFS="$lt_save_ifs"
  6573. if test "X$pkg" = "X$p"; then
  6574. enable_shared=yes
  6575. fi
  6576. done
  6577. IFS="$lt_save_ifs"
  6578. ;;
  6579. esac
  6580. else
  6581. enable_shared=yes
  6582. fi
  6583. # Check whether --enable-static was given.
  6584. if test "${enable_static+set}" = set; then :
  6585. enableval=$enable_static; p=${PACKAGE-default}
  6586. case $enableval in
  6587. yes) enable_static=yes ;;
  6588. no) enable_static=no ;;
  6589. *)
  6590. enable_static=no
  6591. # Look at the argument we got. We use all the common list separators.
  6592. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6593. for pkg in $enableval; do
  6594. IFS="$lt_save_ifs"
  6595. if test "X$pkg" = "X$p"; then
  6596. enable_static=yes
  6597. fi
  6598. done
  6599. IFS="$lt_save_ifs"
  6600. ;;
  6601. esac
  6602. else
  6603. enable_static=yes
  6604. fi
  6605. # Check whether --with-pic was given.
  6606. if test "${with_pic+set}" = set; then :
  6607. withval=$with_pic; lt_p=${PACKAGE-default}
  6608. case $withval in
  6609. yes|no) pic_mode=$withval ;;
  6610. *)
  6611. pic_mode=default
  6612. # Look at the argument we got. We use all the common list separators.
  6613. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6614. for lt_pkg in $withval; do
  6615. IFS="$lt_save_ifs"
  6616. if test "X$lt_pkg" = "X$lt_p"; then
  6617. pic_mode=yes
  6618. fi
  6619. done
  6620. IFS="$lt_save_ifs"
  6621. ;;
  6622. esac
  6623. else
  6624. pic_mode=default
  6625. fi
  6626. test -z "$pic_mode" && pic_mode=default
  6627. # Check whether --enable-fast-install was given.
  6628. if test "${enable_fast_install+set}" = set; then :
  6629. enableval=$enable_fast_install; p=${PACKAGE-default}
  6630. case $enableval in
  6631. yes) enable_fast_install=yes ;;
  6632. no) enable_fast_install=no ;;
  6633. *)
  6634. enable_fast_install=no
  6635. # Look at the argument we got. We use all the common list separators.
  6636. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6637. for pkg in $enableval; do
  6638. IFS="$lt_save_ifs"
  6639. if test "X$pkg" = "X$p"; then
  6640. enable_fast_install=yes
  6641. fi
  6642. done
  6643. IFS="$lt_save_ifs"
  6644. ;;
  6645. esac
  6646. else
  6647. enable_fast_install=yes
  6648. fi
  6649. # This can be used to rebuild libtool when needed
  6650. LIBTOOL_DEPS="$ltmain"
  6651. # Always use our own libtool.
  6652. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6653. test -z "$LN_S" && LN_S="ln -s"
  6654. if test -n "${ZSH_VERSION+set}" ; then
  6655. setopt NO_GLOB_SUBST
  6656. fi
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6658. $as_echo_n "checking for objdir... " >&6; }
  6659. if ${lt_cv_objdir+:} false; then :
  6660. $as_echo_n "(cached) " >&6
  6661. else
  6662. rm -f .libs 2>/dev/null
  6663. mkdir .libs 2>/dev/null
  6664. if test -d .libs; then
  6665. lt_cv_objdir=.libs
  6666. else
  6667. # MS-DOS does not allow filenames that begin with a dot.
  6668. lt_cv_objdir=_libs
  6669. fi
  6670. rmdir .libs 2>/dev/null
  6671. fi
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6673. $as_echo "$lt_cv_objdir" >&6; }
  6674. objdir=$lt_cv_objdir
  6675. cat >>confdefs.h <<_ACEOF
  6676. #define LT_OBJDIR "$lt_cv_objdir/"
  6677. _ACEOF
  6678. case $host_os in
  6679. aix3*)
  6680. # AIX sometimes has problems with the GCC collect2 program. For some
  6681. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6682. # vanish in a puff of smoke.
  6683. if test "X${COLLECT_NAMES+set}" != Xset; then
  6684. COLLECT_NAMES=
  6685. export COLLECT_NAMES
  6686. fi
  6687. ;;
  6688. esac
  6689. # Global variables:
  6690. ofile=libtool
  6691. can_build_shared=yes
  6692. # All known linkers require a `.a' archive for static linking (except MSVC,
  6693. # which needs '.lib').
  6694. libext=a
  6695. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6696. old_CC="$CC"
  6697. old_CFLAGS="$CFLAGS"
  6698. # Set sane defaults for various variables
  6699. test -z "$CC" && CC=cc
  6700. test -z "$LTCC" && LTCC=$CC
  6701. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6702. test -z "$LD" && LD=ld
  6703. test -z "$ac_objext" && ac_objext=o
  6704. for cc_temp in $compiler""; do
  6705. case $cc_temp in
  6706. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6707. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6708. \-*) ;;
  6709. *) break;;
  6710. esac
  6711. done
  6712. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6713. # Only perform the check for file, if the check method requires it
  6714. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6715. case $deplibs_check_method in
  6716. file_magic*)
  6717. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6719. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6720. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. case $MAGIC_CMD in
  6724. [\\/*] | ?:[\\/]*)
  6725. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6726. ;;
  6727. *)
  6728. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6729. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6730. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6731. for ac_dir in $ac_dummy; do
  6732. IFS="$lt_save_ifs"
  6733. test -z "$ac_dir" && ac_dir=.
  6734. if test -f $ac_dir/${ac_tool_prefix}file; then
  6735. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6736. if test -n "$file_magic_test_file"; then
  6737. case $deplibs_check_method in
  6738. "file_magic "*)
  6739. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6740. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6741. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6742. $EGREP "$file_magic_regex" > /dev/null; then
  6743. :
  6744. else
  6745. cat <<_LT_EOF 1>&2
  6746. *** Warning: the command libtool uses to detect shared libraries,
  6747. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6748. *** The result is that libtool may fail to recognize shared libraries
  6749. *** as such. This will affect the creation of libtool libraries that
  6750. *** depend on shared libraries, but programs linked with such libtool
  6751. *** libraries will work regardless of this problem. Nevertheless, you
  6752. *** may want to report the problem to your system manager and/or to
  6753. *** bug-libtool@gnu.org
  6754. _LT_EOF
  6755. fi ;;
  6756. esac
  6757. fi
  6758. break
  6759. fi
  6760. done
  6761. IFS="$lt_save_ifs"
  6762. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6763. ;;
  6764. esac
  6765. fi
  6766. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6767. if test -n "$MAGIC_CMD"; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6769. $as_echo "$MAGIC_CMD" >&6; }
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6772. $as_echo "no" >&6; }
  6773. fi
  6774. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6775. if test -n "$ac_tool_prefix"; then
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6777. $as_echo_n "checking for file... " >&6; }
  6778. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. case $MAGIC_CMD in
  6782. [\\/*] | ?:[\\/]*)
  6783. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6784. ;;
  6785. *)
  6786. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6787. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6788. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6789. for ac_dir in $ac_dummy; do
  6790. IFS="$lt_save_ifs"
  6791. test -z "$ac_dir" && ac_dir=.
  6792. if test -f $ac_dir/file; then
  6793. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6794. if test -n "$file_magic_test_file"; then
  6795. case $deplibs_check_method in
  6796. "file_magic "*)
  6797. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6798. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6799. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6800. $EGREP "$file_magic_regex" > /dev/null; then
  6801. :
  6802. else
  6803. cat <<_LT_EOF 1>&2
  6804. *** Warning: the command libtool uses to detect shared libraries,
  6805. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6806. *** The result is that libtool may fail to recognize shared libraries
  6807. *** as such. This will affect the creation of libtool libraries that
  6808. *** depend on shared libraries, but programs linked with such libtool
  6809. *** libraries will work regardless of this problem. Nevertheless, you
  6810. *** may want to report the problem to your system manager and/or to
  6811. *** bug-libtool@gnu.org
  6812. _LT_EOF
  6813. fi ;;
  6814. esac
  6815. fi
  6816. break
  6817. fi
  6818. done
  6819. IFS="$lt_save_ifs"
  6820. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6821. ;;
  6822. esac
  6823. fi
  6824. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6825. if test -n "$MAGIC_CMD"; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6827. $as_echo "$MAGIC_CMD" >&6; }
  6828. else
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6830. $as_echo "no" >&6; }
  6831. fi
  6832. else
  6833. MAGIC_CMD=:
  6834. fi
  6835. fi
  6836. fi
  6837. ;;
  6838. esac
  6839. # Use C for the default configuration in the libtool script
  6840. lt_save_CC="$CC"
  6841. ac_ext=c
  6842. ac_cpp='$CPP $CPPFLAGS'
  6843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6846. # Source file extension for C test sources.
  6847. ac_ext=c
  6848. # Object file extension for compiled C test sources.
  6849. objext=o
  6850. objext=$objext
  6851. # Code to be used in simple compile tests
  6852. lt_simple_compile_test_code="int some_variable = 0;"
  6853. # Code to be used in simple link tests
  6854. lt_simple_link_test_code='int main(){return(0);}'
  6855. # If no C compiler was specified, use CC.
  6856. LTCC=${LTCC-"$CC"}
  6857. # If no C compiler flags were specified, use CFLAGS.
  6858. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6859. # Allow CC to be a program name with arguments.
  6860. compiler=$CC
  6861. # Save the default compiler, since it gets overwritten when the other
  6862. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6863. compiler_DEFAULT=$CC
  6864. # save warnings/boilerplate of simple test code
  6865. ac_outfile=conftest.$ac_objext
  6866. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6867. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6868. _lt_compiler_boilerplate=`cat conftest.err`
  6869. $RM conftest*
  6870. ac_outfile=conftest.$ac_objext
  6871. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6872. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6873. _lt_linker_boilerplate=`cat conftest.err`
  6874. $RM -r conftest*
  6875. ## CAVEAT EMPTOR:
  6876. ## There is no encapsulation within the following macros, do not change
  6877. ## the running order or otherwise move them around unless you know exactly
  6878. ## what you are doing...
  6879. if test -n "$compiler"; then
  6880. lt_prog_compiler_no_builtin_flag=
  6881. if test "$GCC" = yes; then
  6882. case $cc_basename in
  6883. nvcc*)
  6884. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6885. *)
  6886. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6887. esac
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6889. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6890. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6891. $as_echo_n "(cached) " >&6
  6892. else
  6893. lt_cv_prog_compiler_rtti_exceptions=no
  6894. ac_outfile=conftest.$ac_objext
  6895. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6896. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6897. # Insert the option either (1) after the last *FLAGS variable, or
  6898. # (2) before a word containing "conftest.", or (3) at the end.
  6899. # Note that $ac_compile itself does not contain backslashes and begins
  6900. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6901. # The option is referenced via a variable to avoid confusing sed.
  6902. lt_compile=`echo "$ac_compile" | $SED \
  6903. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6904. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6905. -e 's:$: $lt_compiler_flag:'`
  6906. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6907. (eval "$lt_compile" 2>conftest.err)
  6908. ac_status=$?
  6909. cat conftest.err >&5
  6910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6911. if (exit $ac_status) && test -s "$ac_outfile"; then
  6912. # The compiler can only warn and ignore the option if not recognized
  6913. # So say no if there are warnings other than the usual output.
  6914. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6915. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6916. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6917. lt_cv_prog_compiler_rtti_exceptions=yes
  6918. fi
  6919. fi
  6920. $RM conftest*
  6921. fi
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6923. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6924. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6925. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6926. else
  6927. :
  6928. fi
  6929. fi
  6930. lt_prog_compiler_wl=
  6931. lt_prog_compiler_pic=
  6932. lt_prog_compiler_static=
  6933. if test "$GCC" = yes; then
  6934. lt_prog_compiler_wl='-Wl,'
  6935. lt_prog_compiler_static='-static'
  6936. case $host_os in
  6937. aix*)
  6938. # All AIX code is PIC.
  6939. if test "$host_cpu" = ia64; then
  6940. # AIX 5 now supports IA64 processor
  6941. lt_prog_compiler_static='-Bstatic'
  6942. fi
  6943. ;;
  6944. amigaos*)
  6945. case $host_cpu in
  6946. powerpc)
  6947. # see comment about AmigaOS4 .so support
  6948. lt_prog_compiler_pic='-fPIC'
  6949. ;;
  6950. m68k)
  6951. # FIXME: we need at least 68020 code to build shared libraries, but
  6952. # adding the `-m68020' flag to GCC prevents building anything better,
  6953. # like `-m68040'.
  6954. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6955. ;;
  6956. esac
  6957. ;;
  6958. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6959. # PIC is the default for these OSes.
  6960. ;;
  6961. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6962. # This hack is so that the source file can tell whether it is being
  6963. # built for inclusion in a dll (and should export symbols for example).
  6964. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6965. # (--disable-auto-import) libraries
  6966. lt_prog_compiler_pic='-DDLL_EXPORT'
  6967. ;;
  6968. darwin* | rhapsody*)
  6969. # PIC is the default on this platform
  6970. # Common symbols not allowed in MH_DYLIB files
  6971. lt_prog_compiler_pic='-fno-common'
  6972. ;;
  6973. haiku*)
  6974. # PIC is the default for Haiku.
  6975. # The "-static" flag exists, but is broken.
  6976. lt_prog_compiler_static=
  6977. ;;
  6978. hpux*)
  6979. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6980. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6981. # sets the default TLS model and affects inlining.
  6982. case $host_cpu in
  6983. hppa*64*)
  6984. # +Z the default
  6985. ;;
  6986. *)
  6987. lt_prog_compiler_pic='-fPIC'
  6988. ;;
  6989. esac
  6990. ;;
  6991. interix[3-9]*)
  6992. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6993. # Instead, we relocate shared libraries at runtime.
  6994. ;;
  6995. msdosdjgpp*)
  6996. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6997. # on systems that don't support them.
  6998. lt_prog_compiler_can_build_shared=no
  6999. enable_shared=no
  7000. ;;
  7001. *nto* | *qnx*)
  7002. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7003. # it will coredump.
  7004. lt_prog_compiler_pic='-fPIC -shared'
  7005. ;;
  7006. sysv4*MP*)
  7007. if test -d /usr/nec; then
  7008. lt_prog_compiler_pic=-Kconform_pic
  7009. fi
  7010. ;;
  7011. *)
  7012. lt_prog_compiler_pic='-fPIC'
  7013. ;;
  7014. esac
  7015. case $cc_basename in
  7016. nvcc*) # Cuda Compiler Driver 2.2
  7017. lt_prog_compiler_wl='-Xlinker '
  7018. if test -n "$lt_prog_compiler_pic"; then
  7019. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7020. fi
  7021. ;;
  7022. esac
  7023. else
  7024. # PORTME Check for flag to pass linker flags through the system compiler.
  7025. case $host_os in
  7026. aix*)
  7027. lt_prog_compiler_wl='-Wl,'
  7028. if test "$host_cpu" = ia64; then
  7029. # AIX 5 now supports IA64 processor
  7030. lt_prog_compiler_static='-Bstatic'
  7031. else
  7032. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7033. fi
  7034. ;;
  7035. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7036. # This hack is so that the source file can tell whether it is being
  7037. # built for inclusion in a dll (and should export symbols for example).
  7038. lt_prog_compiler_pic='-DDLL_EXPORT'
  7039. ;;
  7040. hpux9* | hpux10* | hpux11*)
  7041. lt_prog_compiler_wl='-Wl,'
  7042. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7043. # not for PA HP-UX.
  7044. case $host_cpu in
  7045. hppa*64*|ia64*)
  7046. # +Z the default
  7047. ;;
  7048. *)
  7049. lt_prog_compiler_pic='+Z'
  7050. ;;
  7051. esac
  7052. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7053. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7054. ;;
  7055. irix5* | irix6* | nonstopux*)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. # PIC (with -KPIC) is the default.
  7058. lt_prog_compiler_static='-non_shared'
  7059. ;;
  7060. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7061. case $cc_basename in
  7062. # old Intel for x86_64 which still supported -KPIC.
  7063. ecc*)
  7064. lt_prog_compiler_wl='-Wl,'
  7065. lt_prog_compiler_pic='-KPIC'
  7066. lt_prog_compiler_static='-static'
  7067. ;;
  7068. # icc used to be incompatible with GCC.
  7069. # ICC 10 doesn't accept -KPIC any more.
  7070. icc* | ifort*)
  7071. lt_prog_compiler_wl='-Wl,'
  7072. lt_prog_compiler_pic='-fPIC'
  7073. lt_prog_compiler_static='-static'
  7074. ;;
  7075. # Lahey Fortran 8.1.
  7076. lf95*)
  7077. lt_prog_compiler_wl='-Wl,'
  7078. lt_prog_compiler_pic='--shared'
  7079. lt_prog_compiler_static='--static'
  7080. ;;
  7081. nagfor*)
  7082. # NAG Fortran compiler
  7083. lt_prog_compiler_wl='-Wl,-Wl,,'
  7084. lt_prog_compiler_pic='-PIC'
  7085. lt_prog_compiler_static='-Bstatic'
  7086. ;;
  7087. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7088. # Portland Group compilers (*not* the Pentium gcc compiler,
  7089. # which looks to be a dead project)
  7090. lt_prog_compiler_wl='-Wl,'
  7091. lt_prog_compiler_pic='-fpic'
  7092. lt_prog_compiler_static='-Bstatic'
  7093. ;;
  7094. ccc*)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. # All Alpha code is PIC.
  7097. lt_prog_compiler_static='-non_shared'
  7098. ;;
  7099. xl* | bgxl* | bgf* | mpixl*)
  7100. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7101. lt_prog_compiler_wl='-Wl,'
  7102. lt_prog_compiler_pic='-qpic'
  7103. lt_prog_compiler_static='-qstaticlink'
  7104. ;;
  7105. *)
  7106. case `$CC -V 2>&1 | sed 5q` in
  7107. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7108. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7109. lt_prog_compiler_pic='-KPIC'
  7110. lt_prog_compiler_static='-Bstatic'
  7111. lt_prog_compiler_wl=''
  7112. ;;
  7113. *Sun\ F* | *Sun*Fortran*)
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. lt_prog_compiler_wl='-Qoption ld '
  7117. ;;
  7118. *Sun\ C*)
  7119. # Sun C 5.9
  7120. lt_prog_compiler_pic='-KPIC'
  7121. lt_prog_compiler_static='-Bstatic'
  7122. lt_prog_compiler_wl='-Wl,'
  7123. ;;
  7124. *Intel*\ [CF]*Compiler*)
  7125. lt_prog_compiler_wl='-Wl,'
  7126. lt_prog_compiler_pic='-fPIC'
  7127. lt_prog_compiler_static='-static'
  7128. ;;
  7129. *Portland\ Group*)
  7130. lt_prog_compiler_wl='-Wl,'
  7131. lt_prog_compiler_pic='-fpic'
  7132. lt_prog_compiler_static='-Bstatic'
  7133. ;;
  7134. esac
  7135. ;;
  7136. esac
  7137. ;;
  7138. newsos6)
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-Bstatic'
  7141. ;;
  7142. *nto* | *qnx*)
  7143. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7144. # it will coredump.
  7145. lt_prog_compiler_pic='-fPIC -shared'
  7146. ;;
  7147. osf3* | osf4* | osf5*)
  7148. lt_prog_compiler_wl='-Wl,'
  7149. # All OSF/1 code is PIC.
  7150. lt_prog_compiler_static='-non_shared'
  7151. ;;
  7152. rdos*)
  7153. lt_prog_compiler_static='-non_shared'
  7154. ;;
  7155. solaris*)
  7156. lt_prog_compiler_pic='-KPIC'
  7157. lt_prog_compiler_static='-Bstatic'
  7158. case $cc_basename in
  7159. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7160. lt_prog_compiler_wl='-Qoption ld ';;
  7161. *)
  7162. lt_prog_compiler_wl='-Wl,';;
  7163. esac
  7164. ;;
  7165. sunos4*)
  7166. lt_prog_compiler_wl='-Qoption ld '
  7167. lt_prog_compiler_pic='-PIC'
  7168. lt_prog_compiler_static='-Bstatic'
  7169. ;;
  7170. sysv4 | sysv4.2uw2* | sysv4.3*)
  7171. lt_prog_compiler_wl='-Wl,'
  7172. lt_prog_compiler_pic='-KPIC'
  7173. lt_prog_compiler_static='-Bstatic'
  7174. ;;
  7175. sysv4*MP*)
  7176. if test -d /usr/nec ;then
  7177. lt_prog_compiler_pic='-Kconform_pic'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. fi
  7180. ;;
  7181. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7182. lt_prog_compiler_wl='-Wl,'
  7183. lt_prog_compiler_pic='-KPIC'
  7184. lt_prog_compiler_static='-Bstatic'
  7185. ;;
  7186. unicos*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_can_build_shared=no
  7189. ;;
  7190. uts4*)
  7191. lt_prog_compiler_pic='-pic'
  7192. lt_prog_compiler_static='-Bstatic'
  7193. ;;
  7194. *)
  7195. lt_prog_compiler_can_build_shared=no
  7196. ;;
  7197. esac
  7198. fi
  7199. case $host_os in
  7200. # For platforms which do not support PIC, -DPIC is meaningless:
  7201. *djgpp*)
  7202. lt_prog_compiler_pic=
  7203. ;;
  7204. *)
  7205. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7206. ;;
  7207. esac
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7209. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7210. if ${lt_cv_prog_compiler_pic+:} false; then :
  7211. $as_echo_n "(cached) " >&6
  7212. else
  7213. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7216. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7217. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7218. #
  7219. # Check to make sure the PIC flag actually works.
  7220. #
  7221. if test -n "$lt_prog_compiler_pic"; then
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7223. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7224. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7225. $as_echo_n "(cached) " >&6
  7226. else
  7227. lt_cv_prog_compiler_pic_works=no
  7228. ac_outfile=conftest.$ac_objext
  7229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7230. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7231. # Insert the option either (1) after the last *FLAGS variable, or
  7232. # (2) before a word containing "conftest.", or (3) at the end.
  7233. # Note that $ac_compile itself does not contain backslashes and begins
  7234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7235. # The option is referenced via a variable to avoid confusing sed.
  7236. lt_compile=`echo "$ac_compile" | $SED \
  7237. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7238. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7239. -e 's:$: $lt_compiler_flag:'`
  7240. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7241. (eval "$lt_compile" 2>conftest.err)
  7242. ac_status=$?
  7243. cat conftest.err >&5
  7244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7245. if (exit $ac_status) && test -s "$ac_outfile"; then
  7246. # The compiler can only warn and ignore the option if not recognized
  7247. # So say no if there are warnings other than the usual output.
  7248. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7249. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7250. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7251. lt_cv_prog_compiler_pic_works=yes
  7252. fi
  7253. fi
  7254. $RM conftest*
  7255. fi
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7257. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7258. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7259. case $lt_prog_compiler_pic in
  7260. "" | " "*) ;;
  7261. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7262. esac
  7263. else
  7264. lt_prog_compiler_pic=
  7265. lt_prog_compiler_can_build_shared=no
  7266. fi
  7267. fi
  7268. #
  7269. # Check to make sure the static flag actually works.
  7270. #
  7271. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7273. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7274. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. lt_cv_prog_compiler_static_works=no
  7278. save_LDFLAGS="$LDFLAGS"
  7279. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7280. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7281. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7282. # The linker can only warn and ignore the option if not recognized
  7283. # So say no if there are warnings
  7284. if test -s conftest.err; then
  7285. # Append any errors to the config.log.
  7286. cat conftest.err 1>&5
  7287. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7288. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7289. if diff conftest.exp conftest.er2 >/dev/null; then
  7290. lt_cv_prog_compiler_static_works=yes
  7291. fi
  7292. else
  7293. lt_cv_prog_compiler_static_works=yes
  7294. fi
  7295. fi
  7296. $RM -r conftest*
  7297. LDFLAGS="$save_LDFLAGS"
  7298. fi
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7300. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7301. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7302. :
  7303. else
  7304. lt_prog_compiler_static=
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7307. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7308. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7309. $as_echo_n "(cached) " >&6
  7310. else
  7311. lt_cv_prog_compiler_c_o=no
  7312. $RM -r conftest 2>/dev/null
  7313. mkdir conftest
  7314. cd conftest
  7315. mkdir out
  7316. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7317. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7318. # Insert the option either (1) after the last *FLAGS variable, or
  7319. # (2) before a word containing "conftest.", or (3) at the end.
  7320. # Note that $ac_compile itself does not contain backslashes and begins
  7321. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7322. lt_compile=`echo "$ac_compile" | $SED \
  7323. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7324. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7325. -e 's:$: $lt_compiler_flag:'`
  7326. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7327. (eval "$lt_compile" 2>out/conftest.err)
  7328. ac_status=$?
  7329. cat out/conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7332. then
  7333. # The compiler can only warn and ignore the option if not recognized
  7334. # So say no if there are warnings
  7335. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7336. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7337. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7338. lt_cv_prog_compiler_c_o=yes
  7339. fi
  7340. fi
  7341. chmod u+w . 2>&5
  7342. $RM conftest*
  7343. # SGI C++ compiler will create directory out/ii_files/ for
  7344. # template instantiation
  7345. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7346. $RM out/* && rmdir out
  7347. cd ..
  7348. $RM -r conftest
  7349. $RM conftest*
  7350. fi
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7352. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7354. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7355. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. lt_cv_prog_compiler_c_o=no
  7359. $RM -r conftest 2>/dev/null
  7360. mkdir conftest
  7361. cd conftest
  7362. mkdir out
  7363. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7364. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7365. # Insert the option either (1) after the last *FLAGS variable, or
  7366. # (2) before a word containing "conftest.", or (3) at the end.
  7367. # Note that $ac_compile itself does not contain backslashes and begins
  7368. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7369. lt_compile=`echo "$ac_compile" | $SED \
  7370. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7371. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7372. -e 's:$: $lt_compiler_flag:'`
  7373. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7374. (eval "$lt_compile" 2>out/conftest.err)
  7375. ac_status=$?
  7376. cat out/conftest.err >&5
  7377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7378. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7379. then
  7380. # The compiler can only warn and ignore the option if not recognized
  7381. # So say no if there are warnings
  7382. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7383. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7384. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7385. lt_cv_prog_compiler_c_o=yes
  7386. fi
  7387. fi
  7388. chmod u+w . 2>&5
  7389. $RM conftest*
  7390. # SGI C++ compiler will create directory out/ii_files/ for
  7391. # template instantiation
  7392. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7393. $RM out/* && rmdir out
  7394. cd ..
  7395. $RM -r conftest
  7396. $RM conftest*
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7399. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7400. hard_links="nottested"
  7401. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7402. # do not overwrite the value of need_locks provided by the user
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7404. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7405. hard_links=yes
  7406. $RM conftest*
  7407. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7408. touch conftest.a
  7409. ln conftest.a conftest.b 2>&5 || hard_links=no
  7410. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7412. $as_echo "$hard_links" >&6; }
  7413. if test "$hard_links" = no; then
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7415. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7416. need_locks=warn
  7417. fi
  7418. else
  7419. need_locks=no
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7422. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7423. runpath_var=
  7424. allow_undefined_flag=
  7425. always_export_symbols=no
  7426. archive_cmds=
  7427. archive_expsym_cmds=
  7428. compiler_needs_object=no
  7429. enable_shared_with_static_runtimes=no
  7430. export_dynamic_flag_spec=
  7431. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7432. hardcode_automatic=no
  7433. hardcode_direct=no
  7434. hardcode_direct_absolute=no
  7435. hardcode_libdir_flag_spec=
  7436. hardcode_libdir_separator=
  7437. hardcode_minus_L=no
  7438. hardcode_shlibpath_var=unsupported
  7439. inherit_rpath=no
  7440. link_all_deplibs=unknown
  7441. module_cmds=
  7442. module_expsym_cmds=
  7443. old_archive_from_new_cmds=
  7444. old_archive_from_expsyms_cmds=
  7445. thread_safe_flag_spec=
  7446. whole_archive_flag_spec=
  7447. # include_expsyms should be a list of space-separated symbols to be *always*
  7448. # included in the symbol list
  7449. include_expsyms=
  7450. # exclude_expsyms can be an extended regexp of symbols to exclude
  7451. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7452. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7453. # as well as any symbol that contains `d'.
  7454. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7455. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7456. # platforms (ab)use it in PIC code, but their linkers get confused if
  7457. # the symbol is explicitly referenced. Since portable code cannot
  7458. # rely on this symbol name, it's probably fine to never include it in
  7459. # preloaded symbol tables.
  7460. # Exclude shared library initialization/finalization symbols.
  7461. extract_expsyms_cmds=
  7462. case $host_os in
  7463. cygwin* | mingw* | pw32* | cegcc*)
  7464. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7465. # When not using gcc, we currently assume that we are using
  7466. # Microsoft Visual C++.
  7467. if test "$GCC" != yes; then
  7468. with_gnu_ld=no
  7469. fi
  7470. ;;
  7471. interix*)
  7472. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7473. with_gnu_ld=yes
  7474. ;;
  7475. openbsd*)
  7476. with_gnu_ld=no
  7477. ;;
  7478. esac
  7479. ld_shlibs=yes
  7480. # On some targets, GNU ld is compatible enough with the native linker
  7481. # that we're better off using the native interface for both.
  7482. lt_use_gnu_ld_interface=no
  7483. if test "$with_gnu_ld" = yes; then
  7484. case $host_os in
  7485. aix*)
  7486. # The AIX port of GNU ld has always aspired to compatibility
  7487. # with the native linker. However, as the warning in the GNU ld
  7488. # block says, versions before 2.19.5* couldn't really create working
  7489. # shared libraries, regardless of the interface used.
  7490. case `$LD -v 2>&1` in
  7491. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7492. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7493. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7494. *)
  7495. lt_use_gnu_ld_interface=yes
  7496. ;;
  7497. esac
  7498. ;;
  7499. *)
  7500. lt_use_gnu_ld_interface=yes
  7501. ;;
  7502. esac
  7503. fi
  7504. if test "$lt_use_gnu_ld_interface" = yes; then
  7505. # If archive_cmds runs LD, not CC, wlarc should be empty
  7506. wlarc='${wl}'
  7507. # Set some defaults for GNU ld with shared library support. These
  7508. # are reset later if shared libraries are not supported. Putting them
  7509. # here allows them to be overridden if necessary.
  7510. runpath_var=LD_RUN_PATH
  7511. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7512. export_dynamic_flag_spec='${wl}--export-dynamic'
  7513. # ancient GNU ld didn't support --whole-archive et. al.
  7514. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7515. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7516. else
  7517. whole_archive_flag_spec=
  7518. fi
  7519. supports_anon_versioning=no
  7520. case `$LD -v 2>&1` in
  7521. *GNU\ gold*) supports_anon_versioning=yes ;;
  7522. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7523. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7524. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7525. *\ 2.11.*) ;; # other 2.11 versions
  7526. *) supports_anon_versioning=yes ;;
  7527. esac
  7528. # See if GNU ld supports shared libraries.
  7529. case $host_os in
  7530. aix[3-9]*)
  7531. # On AIX/PPC, the GNU linker is very broken
  7532. if test "$host_cpu" != ia64; then
  7533. ld_shlibs=no
  7534. cat <<_LT_EOF 1>&2
  7535. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7536. *** to be unable to reliably create shared libraries on AIX.
  7537. *** Therefore, libtool is disabling shared libraries support. If you
  7538. *** really care for shared libraries, you may want to install binutils
  7539. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7540. *** You will then need to restart the configuration process.
  7541. _LT_EOF
  7542. fi
  7543. ;;
  7544. amigaos*)
  7545. case $host_cpu in
  7546. powerpc)
  7547. # see comment about AmigaOS4 .so support
  7548. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. archive_expsym_cmds=''
  7550. ;;
  7551. m68k)
  7552. 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)'
  7553. hardcode_libdir_flag_spec='-L$libdir'
  7554. hardcode_minus_L=yes
  7555. ;;
  7556. esac
  7557. ;;
  7558. beos*)
  7559. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7560. allow_undefined_flag=unsupported
  7561. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7562. # support --undefined. This deserves some investigation. FIXME
  7563. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7564. else
  7565. ld_shlibs=no
  7566. fi
  7567. ;;
  7568. cygwin* | mingw* | pw32* | cegcc*)
  7569. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7570. # as there is no search path for DLLs.
  7571. hardcode_libdir_flag_spec='-L$libdir'
  7572. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7573. allow_undefined_flag=unsupported
  7574. always_export_symbols=no
  7575. enable_shared_with_static_runtimes=yes
  7576. 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'
  7577. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7578. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7580. # If the export-symbols file already is a .def file (1st line
  7581. # is EXPORTS), use it as is; otherwise, prepend...
  7582. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7583. cp $export_symbols $output_objdir/$soname.def;
  7584. else
  7585. echo EXPORTS > $output_objdir/$soname.def;
  7586. cat $export_symbols >> $output_objdir/$soname.def;
  7587. fi~
  7588. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7589. else
  7590. ld_shlibs=no
  7591. fi
  7592. ;;
  7593. haiku*)
  7594. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7595. link_all_deplibs=yes
  7596. ;;
  7597. interix[3-9]*)
  7598. hardcode_direct=no
  7599. hardcode_shlibpath_var=no
  7600. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7601. export_dynamic_flag_spec='${wl}-E'
  7602. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7603. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7604. # default) and relocated if they conflict, which is a slow very memory
  7605. # consuming and fragmenting process. To avoid this, we pick a random,
  7606. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7607. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7608. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7609. 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'
  7610. ;;
  7611. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7612. tmp_diet=no
  7613. if test "$host_os" = linux-dietlibc; then
  7614. case $cc_basename in
  7615. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7616. esac
  7617. fi
  7618. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7619. && test "$tmp_diet" = no
  7620. then
  7621. tmp_addflag=' $pic_flag'
  7622. tmp_sharedflag='-shared'
  7623. case $cc_basename,$host_cpu in
  7624. pgcc*) # Portland Group C compiler
  7625. 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'
  7626. tmp_addflag=' $pic_flag'
  7627. ;;
  7628. pgf77* | pgf90* | pgf95* | pgfortran*)
  7629. # Portland Group f77 and f90 compilers
  7630. 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'
  7631. tmp_addflag=' $pic_flag -Mnomain' ;;
  7632. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7633. tmp_addflag=' -i_dynamic' ;;
  7634. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7635. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7636. ifc* | ifort*) # Intel Fortran compiler
  7637. tmp_addflag=' -nofor_main' ;;
  7638. lf95*) # Lahey Fortran 8.1
  7639. whole_archive_flag_spec=
  7640. tmp_sharedflag='--shared' ;;
  7641. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7642. tmp_sharedflag='-qmkshrobj'
  7643. tmp_addflag= ;;
  7644. nvcc*) # Cuda Compiler Driver 2.2
  7645. 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'
  7646. compiler_needs_object=yes
  7647. ;;
  7648. esac
  7649. case `$CC -V 2>&1 | sed 5q` in
  7650. *Sun\ C*) # Sun C 5.9
  7651. 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'
  7652. compiler_needs_object=yes
  7653. tmp_sharedflag='-G' ;;
  7654. *Sun\ F*) # Sun Fortran 8.3
  7655. tmp_sharedflag='-G' ;;
  7656. esac
  7657. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. if test "x$supports_anon_versioning" = xyes; then
  7659. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7660. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7661. echo "local: *; };" >> $output_objdir/$libname.ver~
  7662. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7663. fi
  7664. case $cc_basename in
  7665. xlf* | bgf* | bgxlf* | mpixlf*)
  7666. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7667. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7668. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7669. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7670. if test "x$supports_anon_versioning" = xyes; then
  7671. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7672. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7673. echo "local: *; };" >> $output_objdir/$libname.ver~
  7674. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7675. fi
  7676. ;;
  7677. esac
  7678. else
  7679. ld_shlibs=no
  7680. fi
  7681. ;;
  7682. netbsd*)
  7683. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7684. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7685. wlarc=
  7686. else
  7687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7689. fi
  7690. ;;
  7691. solaris*)
  7692. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7693. ld_shlibs=no
  7694. cat <<_LT_EOF 1>&2
  7695. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7696. *** create shared libraries on Solaris systems. Therefore, libtool
  7697. *** is disabling shared libraries support. We urge you to upgrade GNU
  7698. *** binutils to release 2.9.1 or newer. Another option is to modify
  7699. *** your PATH or compiler configuration so that the native linker is
  7700. *** used, and then restart.
  7701. _LT_EOF
  7702. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7703. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7705. else
  7706. ld_shlibs=no
  7707. fi
  7708. ;;
  7709. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7710. case `$LD -v 2>&1` in
  7711. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7712. ld_shlibs=no
  7713. cat <<_LT_EOF 1>&2
  7714. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7715. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7716. *** is disabling shared libraries support. We urge you to upgrade GNU
  7717. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7718. *** your PATH or compiler configuration so that the native linker is
  7719. *** used, and then restart.
  7720. _LT_EOF
  7721. ;;
  7722. *)
  7723. # For security reasons, it is highly recommended that you always
  7724. # use absolute paths for naming shared libraries, and exclude the
  7725. # DT_RUNPATH tag from executables and libraries. But doing so
  7726. # requires that you compile everything twice, which is a pain.
  7727. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7728. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7729. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7730. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7731. else
  7732. ld_shlibs=no
  7733. fi
  7734. ;;
  7735. esac
  7736. ;;
  7737. sunos4*)
  7738. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7739. wlarc=
  7740. hardcode_direct=yes
  7741. hardcode_shlibpath_var=no
  7742. ;;
  7743. *)
  7744. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7745. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7746. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7747. else
  7748. ld_shlibs=no
  7749. fi
  7750. ;;
  7751. esac
  7752. if test "$ld_shlibs" = no; then
  7753. runpath_var=
  7754. hardcode_libdir_flag_spec=
  7755. export_dynamic_flag_spec=
  7756. whole_archive_flag_spec=
  7757. fi
  7758. else
  7759. # PORTME fill in a description of your system's linker (not GNU ld)
  7760. case $host_os in
  7761. aix3*)
  7762. allow_undefined_flag=unsupported
  7763. always_export_symbols=yes
  7764. 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'
  7765. # Note: this linker hardcodes the directories in LIBPATH if there
  7766. # are no directories specified by -L.
  7767. hardcode_minus_L=yes
  7768. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7769. # Neither direct hardcoding nor static linking is supported with a
  7770. # broken collect2.
  7771. hardcode_direct=unsupported
  7772. fi
  7773. ;;
  7774. aix[4-9]*)
  7775. if test "$host_cpu" = ia64; then
  7776. # On IA64, the linker does run time linking by default, so we don't
  7777. # have to do anything special.
  7778. aix_use_runtimelinking=no
  7779. exp_sym_flag='-Bexport'
  7780. no_entry_flag=""
  7781. else
  7782. # If we're using GNU nm, then we don't want the "-C" option.
  7783. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7784. # Also, AIX nm treats weak defined symbols like other global
  7785. # defined symbols, whereas GNU nm marks them as "W".
  7786. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7787. 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'
  7788. else
  7789. 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'
  7790. fi
  7791. aix_use_runtimelinking=no
  7792. # Test if we are trying to use run time linking or normal
  7793. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7794. # need to do runtime linking.
  7795. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7796. for ld_flag in $LDFLAGS; do
  7797. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7798. aix_use_runtimelinking=yes
  7799. break
  7800. fi
  7801. done
  7802. ;;
  7803. esac
  7804. exp_sym_flag='-bexport'
  7805. no_entry_flag='-bnoentry'
  7806. fi
  7807. # When large executables or shared objects are built, AIX ld can
  7808. # have problems creating the table of contents. If linking a library
  7809. # or program results in "error TOC overflow" add -mminimal-toc to
  7810. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7811. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7812. archive_cmds=''
  7813. hardcode_direct=yes
  7814. hardcode_direct_absolute=yes
  7815. hardcode_libdir_separator=':'
  7816. link_all_deplibs=yes
  7817. file_list_spec='${wl}-f,'
  7818. if test "$GCC" = yes; then
  7819. case $host_os in aix4.[012]|aix4.[012].*)
  7820. # We only want to do this on AIX 4.2 and lower, the check
  7821. # below for broken collect2 doesn't work under 4.3+
  7822. collect2name=`${CC} -print-prog-name=collect2`
  7823. if test -f "$collect2name" &&
  7824. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7825. then
  7826. # We have reworked collect2
  7827. :
  7828. else
  7829. # We have old collect2
  7830. hardcode_direct=unsupported
  7831. # It fails to find uninstalled libraries when the uninstalled
  7832. # path is not listed in the libpath. Setting hardcode_minus_L
  7833. # to unsupported forces relinking
  7834. hardcode_minus_L=yes
  7835. hardcode_libdir_flag_spec='-L$libdir'
  7836. hardcode_libdir_separator=
  7837. fi
  7838. ;;
  7839. esac
  7840. shared_flag='-shared'
  7841. if test "$aix_use_runtimelinking" = yes; then
  7842. shared_flag="$shared_flag "'${wl}-G'
  7843. fi
  7844. else
  7845. # not using gcc
  7846. if test "$host_cpu" = ia64; then
  7847. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7848. # chokes on -Wl,-G. The following line is correct:
  7849. shared_flag='-G'
  7850. else
  7851. if test "$aix_use_runtimelinking" = yes; then
  7852. shared_flag='${wl}-G'
  7853. else
  7854. shared_flag='${wl}-bM:SRE'
  7855. fi
  7856. fi
  7857. fi
  7858. export_dynamic_flag_spec='${wl}-bexpall'
  7859. # It seems that -bexpall does not export symbols beginning with
  7860. # underscore (_), so it is better to generate a list of symbols to export.
  7861. always_export_symbols=yes
  7862. if test "$aix_use_runtimelinking" = yes; then
  7863. # Warning - without using the other runtime loading flags (-brtl),
  7864. # -berok will link without error, but may produce a broken library.
  7865. allow_undefined_flag='-berok'
  7866. # Determine the default libpath from the value encoded in an
  7867. # empty executable.
  7868. if test "${lt_cv_aix_libpath+set}" = set; then
  7869. aix_libpath=$lt_cv_aix_libpath
  7870. else
  7871. if ${lt_cv_aix_libpath_+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7875. /* end confdefs.h. */
  7876. int
  7877. main ()
  7878. {
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. if ac_fn_c_try_link "$LINENO"; then :
  7884. lt_aix_libpath_sed='
  7885. /Import File Strings/,/^$/ {
  7886. /^0/ {
  7887. s/^0 *\([^ ]*\) *$/\1/
  7888. p
  7889. }
  7890. }'
  7891. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7892. # Check for a 64-bit object if we didn't find anything.
  7893. if test -z "$lt_cv_aix_libpath_"; then
  7894. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. fi
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext \
  7898. conftest$ac_exeext conftest.$ac_ext
  7899. if test -z "$lt_cv_aix_libpath_"; then
  7900. lt_cv_aix_libpath_="/usr/lib:/lib"
  7901. fi
  7902. fi
  7903. aix_libpath=$lt_cv_aix_libpath_
  7904. fi
  7905. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7906. 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"
  7907. else
  7908. if test "$host_cpu" = ia64; then
  7909. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7910. allow_undefined_flag="-z nodefs"
  7911. 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"
  7912. else
  7913. # Determine the default libpath from the value encoded in an
  7914. # empty executable.
  7915. if test "${lt_cv_aix_libpath+set}" = set; then
  7916. aix_libpath=$lt_cv_aix_libpath
  7917. else
  7918. if ${lt_cv_aix_libpath_+:} false; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7922. /* end confdefs.h. */
  7923. int
  7924. main ()
  7925. {
  7926. ;
  7927. return 0;
  7928. }
  7929. _ACEOF
  7930. if ac_fn_c_try_link "$LINENO"; then :
  7931. lt_aix_libpath_sed='
  7932. /Import File Strings/,/^$/ {
  7933. /^0/ {
  7934. s/^0 *\([^ ]*\) *$/\1/
  7935. p
  7936. }
  7937. }'
  7938. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7939. # Check for a 64-bit object if we didn't find anything.
  7940. if test -z "$lt_cv_aix_libpath_"; then
  7941. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7942. fi
  7943. fi
  7944. rm -f core conftest.err conftest.$ac_objext \
  7945. conftest$ac_exeext conftest.$ac_ext
  7946. if test -z "$lt_cv_aix_libpath_"; then
  7947. lt_cv_aix_libpath_="/usr/lib:/lib"
  7948. fi
  7949. fi
  7950. aix_libpath=$lt_cv_aix_libpath_
  7951. fi
  7952. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7953. # Warning - without using the other run time loading flags,
  7954. # -berok will link without error, but may produce a broken library.
  7955. no_undefined_flag=' ${wl}-bernotok'
  7956. allow_undefined_flag=' ${wl}-berok'
  7957. if test "$with_gnu_ld" = yes; then
  7958. # We only use this code for GNU lds that support --whole-archive.
  7959. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7960. else
  7961. # Exported symbols can be pulled into shared objects from archives
  7962. whole_archive_flag_spec='$convenience'
  7963. fi
  7964. archive_cmds_need_lc=yes
  7965. # This is similar to how AIX traditionally builds its shared libraries.
  7966. 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'
  7967. fi
  7968. fi
  7969. ;;
  7970. amigaos*)
  7971. case $host_cpu in
  7972. powerpc)
  7973. # see comment about AmigaOS4 .so support
  7974. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7975. archive_expsym_cmds=''
  7976. ;;
  7977. m68k)
  7978. 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)'
  7979. hardcode_libdir_flag_spec='-L$libdir'
  7980. hardcode_minus_L=yes
  7981. ;;
  7982. esac
  7983. ;;
  7984. bsdi[45]*)
  7985. export_dynamic_flag_spec=-rdynamic
  7986. ;;
  7987. cygwin* | mingw* | pw32* | cegcc*)
  7988. # When not using gcc, we currently assume that we are using
  7989. # Microsoft Visual C++.
  7990. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7991. # no search path for DLLs.
  7992. case $cc_basename in
  7993. cl*)
  7994. # Native MSVC
  7995. hardcode_libdir_flag_spec=' '
  7996. allow_undefined_flag=unsupported
  7997. always_export_symbols=yes
  7998. file_list_spec='@'
  7999. # Tell ltmain to make .lib files, not .a files.
  8000. libext=lib
  8001. # Tell ltmain to make .dll files, not .so files.
  8002. shrext_cmds=".dll"
  8003. # FIXME: Setting linknames here is a bad hack.
  8004. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8005. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8006. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8007. else
  8008. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8009. fi~
  8010. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8011. linknames='
  8012. # The linker will not automatically build a static lib if we build a DLL.
  8013. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8014. enable_shared_with_static_runtimes=yes
  8015. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8016. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8017. # Don't use ranlib
  8018. old_postinstall_cmds='chmod 644 $oldlib'
  8019. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8020. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8021. case $lt_outputfile in
  8022. *.exe|*.EXE) ;;
  8023. *)
  8024. lt_outputfile="$lt_outputfile.exe"
  8025. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8026. ;;
  8027. esac~
  8028. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8029. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8030. $RM "$lt_outputfile.manifest";
  8031. fi'
  8032. ;;
  8033. *)
  8034. # Assume MSVC wrapper
  8035. hardcode_libdir_flag_spec=' '
  8036. allow_undefined_flag=unsupported
  8037. # Tell ltmain to make .lib files, not .a files.
  8038. libext=lib
  8039. # Tell ltmain to make .dll files, not .so files.
  8040. shrext_cmds=".dll"
  8041. # FIXME: Setting linknames here is a bad hack.
  8042. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8043. # The linker will automatically build a .lib file if we build a DLL.
  8044. old_archive_from_new_cmds='true'
  8045. # FIXME: Should let the user specify the lib program.
  8046. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8047. enable_shared_with_static_runtimes=yes
  8048. ;;
  8049. esac
  8050. ;;
  8051. darwin* | rhapsody*)
  8052. archive_cmds_need_lc=no
  8053. hardcode_direct=no
  8054. hardcode_automatic=yes
  8055. hardcode_shlibpath_var=unsupported
  8056. if test "$lt_cv_ld_force_load" = "yes"; then
  8057. 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\"`'
  8058. else
  8059. whole_archive_flag_spec=''
  8060. fi
  8061. link_all_deplibs=yes
  8062. allow_undefined_flag="$_lt_dar_allow_undefined"
  8063. case $cc_basename in
  8064. ifort*) _lt_dar_can_shared=yes ;;
  8065. *) _lt_dar_can_shared=$GCC ;;
  8066. esac
  8067. if test "$_lt_dar_can_shared" = "yes"; then
  8068. output_verbose_link_cmd=func_echo_all
  8069. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8070. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8071. 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}"
  8072. 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}"
  8073. else
  8074. ld_shlibs=no
  8075. fi
  8076. ;;
  8077. dgux*)
  8078. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8079. hardcode_libdir_flag_spec='-L$libdir'
  8080. hardcode_shlibpath_var=no
  8081. ;;
  8082. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8083. # support. Future versions do this automatically, but an explicit c++rt0.o
  8084. # does not break anything, and helps significantly (at the cost of a little
  8085. # extra space).
  8086. freebsd2.2*)
  8087. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8088. hardcode_libdir_flag_spec='-R$libdir'
  8089. hardcode_direct=yes
  8090. hardcode_shlibpath_var=no
  8091. ;;
  8092. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8093. freebsd2.*)
  8094. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8095. hardcode_direct=yes
  8096. hardcode_minus_L=yes
  8097. hardcode_shlibpath_var=no
  8098. ;;
  8099. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8100. freebsd* | dragonfly*)
  8101. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8102. hardcode_libdir_flag_spec='-R$libdir'
  8103. hardcode_direct=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. hpux9*)
  8107. if test "$GCC" = yes; then
  8108. 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'
  8109. else
  8110. 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'
  8111. fi
  8112. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8113. hardcode_libdir_separator=:
  8114. hardcode_direct=yes
  8115. # hardcode_minus_L: Not really in the search PATH,
  8116. # but as the default location of the library.
  8117. hardcode_minus_L=yes
  8118. export_dynamic_flag_spec='${wl}-E'
  8119. ;;
  8120. hpux10*)
  8121. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8122. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8123. else
  8124. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8125. fi
  8126. if test "$with_gnu_ld" = no; then
  8127. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8128. hardcode_libdir_separator=:
  8129. hardcode_direct=yes
  8130. hardcode_direct_absolute=yes
  8131. export_dynamic_flag_spec='${wl}-E'
  8132. # hardcode_minus_L: Not really in the search PATH,
  8133. # but as the default location of the library.
  8134. hardcode_minus_L=yes
  8135. fi
  8136. ;;
  8137. hpux11*)
  8138. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8139. case $host_cpu in
  8140. hppa*64*)
  8141. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8142. ;;
  8143. ia64*)
  8144. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. *)
  8147. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8148. ;;
  8149. esac
  8150. else
  8151. case $host_cpu in
  8152. hppa*64*)
  8153. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8154. ;;
  8155. ia64*)
  8156. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8157. ;;
  8158. *)
  8159. # Older versions of the 11.00 compiler do not understand -b yet
  8160. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8162. $as_echo_n "checking if $CC understands -b... " >&6; }
  8163. if ${lt_cv_prog_compiler__b+:} false; then :
  8164. $as_echo_n "(cached) " >&6
  8165. else
  8166. lt_cv_prog_compiler__b=no
  8167. save_LDFLAGS="$LDFLAGS"
  8168. LDFLAGS="$LDFLAGS -b"
  8169. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8170. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8171. # The linker can only warn and ignore the option if not recognized
  8172. # So say no if there are warnings
  8173. if test -s conftest.err; then
  8174. # Append any errors to the config.log.
  8175. cat conftest.err 1>&5
  8176. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8177. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8178. if diff conftest.exp conftest.er2 >/dev/null; then
  8179. lt_cv_prog_compiler__b=yes
  8180. fi
  8181. else
  8182. lt_cv_prog_compiler__b=yes
  8183. fi
  8184. fi
  8185. $RM -r conftest*
  8186. LDFLAGS="$save_LDFLAGS"
  8187. fi
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8189. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8190. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8191. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8192. else
  8193. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8194. fi
  8195. ;;
  8196. esac
  8197. fi
  8198. if test "$with_gnu_ld" = no; then
  8199. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8200. hardcode_libdir_separator=:
  8201. case $host_cpu in
  8202. hppa*64*|ia64*)
  8203. hardcode_direct=no
  8204. hardcode_shlibpath_var=no
  8205. ;;
  8206. *)
  8207. hardcode_direct=yes
  8208. hardcode_direct_absolute=yes
  8209. export_dynamic_flag_spec='${wl}-E'
  8210. # hardcode_minus_L: Not really in the search PATH,
  8211. # but as the default location of the library.
  8212. hardcode_minus_L=yes
  8213. ;;
  8214. esac
  8215. fi
  8216. ;;
  8217. irix5* | irix6* | nonstopux*)
  8218. if test "$GCC" = yes; then
  8219. 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'
  8220. # Try to use the -exported_symbol ld option, if it does not
  8221. # work, assume that -exports_file does not work either and
  8222. # implicitly export all symbols.
  8223. # This should be the same for all languages, so no per-tag cache variable.
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8225. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8226. if ${lt_cv_irix_exported_symbol+:} false; then :
  8227. $as_echo_n "(cached) " >&6
  8228. else
  8229. save_LDFLAGS="$LDFLAGS"
  8230. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8232. /* end confdefs.h. */
  8233. int foo (void) { return 0; }
  8234. _ACEOF
  8235. if ac_fn_c_try_link "$LINENO"; then :
  8236. lt_cv_irix_exported_symbol=yes
  8237. else
  8238. lt_cv_irix_exported_symbol=no
  8239. fi
  8240. rm -f core conftest.err conftest.$ac_objext \
  8241. conftest$ac_exeext conftest.$ac_ext
  8242. LDFLAGS="$save_LDFLAGS"
  8243. fi
  8244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8245. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8246. if test "$lt_cv_irix_exported_symbol" = yes; then
  8247. 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'
  8248. fi
  8249. else
  8250. 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'
  8251. 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'
  8252. fi
  8253. archive_cmds_need_lc='no'
  8254. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8255. hardcode_libdir_separator=:
  8256. inherit_rpath=yes
  8257. link_all_deplibs=yes
  8258. ;;
  8259. netbsd*)
  8260. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8261. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8262. else
  8263. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8264. fi
  8265. hardcode_libdir_flag_spec='-R$libdir'
  8266. hardcode_direct=yes
  8267. hardcode_shlibpath_var=no
  8268. ;;
  8269. newsos6)
  8270. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8271. hardcode_direct=yes
  8272. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8273. hardcode_libdir_separator=:
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. *nto* | *qnx*)
  8277. ;;
  8278. openbsd*)
  8279. if test -f /usr/libexec/ld.so; then
  8280. hardcode_direct=yes
  8281. hardcode_shlibpath_var=no
  8282. hardcode_direct_absolute=yes
  8283. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8284. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8285. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8286. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8287. export_dynamic_flag_spec='${wl}-E'
  8288. else
  8289. case $host_os in
  8290. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8291. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8292. hardcode_libdir_flag_spec='-R$libdir'
  8293. ;;
  8294. *)
  8295. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8296. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8297. ;;
  8298. esac
  8299. fi
  8300. else
  8301. ld_shlibs=no
  8302. fi
  8303. ;;
  8304. os2*)
  8305. hardcode_libdir_flag_spec='-L$libdir'
  8306. hardcode_minus_L=yes
  8307. allow_undefined_flag=unsupported
  8308. 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'
  8309. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8310. ;;
  8311. osf3*)
  8312. if test "$GCC" = yes; then
  8313. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8314. 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'
  8315. else
  8316. allow_undefined_flag=' -expect_unresolved \*'
  8317. 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'
  8318. fi
  8319. archive_cmds_need_lc='no'
  8320. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8321. hardcode_libdir_separator=:
  8322. ;;
  8323. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8324. if test "$GCC" = yes; then
  8325. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8326. 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'
  8327. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8328. else
  8329. allow_undefined_flag=' -expect_unresolved \*'
  8330. 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'
  8331. 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~
  8332. $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'
  8333. # Both c and cxx compiler support -rpath directly
  8334. hardcode_libdir_flag_spec='-rpath $libdir'
  8335. fi
  8336. archive_cmds_need_lc='no'
  8337. hardcode_libdir_separator=:
  8338. ;;
  8339. solaris*)
  8340. no_undefined_flag=' -z defs'
  8341. if test "$GCC" = yes; then
  8342. wlarc='${wl}'
  8343. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8344. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8345. $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'
  8346. else
  8347. case `$CC -V 2>&1` in
  8348. *"Compilers 5.0"*)
  8349. wlarc=''
  8350. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8351. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8352. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8353. ;;
  8354. *)
  8355. wlarc='${wl}'
  8356. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8357. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8358. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8359. ;;
  8360. esac
  8361. fi
  8362. hardcode_libdir_flag_spec='-R$libdir'
  8363. hardcode_shlibpath_var=no
  8364. case $host_os in
  8365. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8366. *)
  8367. # The compiler driver will combine and reorder linker options,
  8368. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8369. # but is careful enough not to reorder.
  8370. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8371. if test "$GCC" = yes; then
  8372. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8373. else
  8374. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8375. fi
  8376. ;;
  8377. esac
  8378. link_all_deplibs=yes
  8379. ;;
  8380. sunos4*)
  8381. if test "x$host_vendor" = xsequent; then
  8382. # Use $CC to link under sequent, because it throws in some extra .o
  8383. # files that make .init and .fini sections work.
  8384. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8385. else
  8386. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8387. fi
  8388. hardcode_libdir_flag_spec='-L$libdir'
  8389. hardcode_direct=yes
  8390. hardcode_minus_L=yes
  8391. hardcode_shlibpath_var=no
  8392. ;;
  8393. sysv4)
  8394. case $host_vendor in
  8395. sni)
  8396. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8397. hardcode_direct=yes # is this really true???
  8398. ;;
  8399. siemens)
  8400. ## LD is ld it makes a PLAMLIB
  8401. ## CC just makes a GrossModule.
  8402. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8403. reload_cmds='$CC -r -o $output$reload_objs'
  8404. hardcode_direct=no
  8405. ;;
  8406. motorola)
  8407. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8408. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8409. ;;
  8410. esac
  8411. runpath_var='LD_RUN_PATH'
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. sysv4.3*)
  8415. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8416. hardcode_shlibpath_var=no
  8417. export_dynamic_flag_spec='-Bexport'
  8418. ;;
  8419. sysv4*MP*)
  8420. if test -d /usr/nec; then
  8421. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8422. hardcode_shlibpath_var=no
  8423. runpath_var=LD_RUN_PATH
  8424. hardcode_runpath_var=yes
  8425. ld_shlibs=yes
  8426. fi
  8427. ;;
  8428. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8429. no_undefined_flag='${wl}-z,text'
  8430. archive_cmds_need_lc=no
  8431. hardcode_shlibpath_var=no
  8432. runpath_var='LD_RUN_PATH'
  8433. if test "$GCC" = yes; then
  8434. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8435. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8436. else
  8437. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. fi
  8440. ;;
  8441. sysv5* | sco3.2v5* | sco5v6*)
  8442. # Note: We can NOT use -z defs as we might desire, because we do not
  8443. # link with -lc, and that would cause any symbols used from libc to
  8444. # always be unresolved, which means just about no library would
  8445. # ever link correctly. If we're not using GNU ld we use -z text
  8446. # though, which does catch some bad symbols but isn't as heavy-handed
  8447. # as -z defs.
  8448. no_undefined_flag='${wl}-z,text'
  8449. allow_undefined_flag='${wl}-z,nodefs'
  8450. archive_cmds_need_lc=no
  8451. hardcode_shlibpath_var=no
  8452. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8453. hardcode_libdir_separator=':'
  8454. link_all_deplibs=yes
  8455. export_dynamic_flag_spec='${wl}-Bexport'
  8456. runpath_var='LD_RUN_PATH'
  8457. if test "$GCC" = yes; then
  8458. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8459. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. else
  8461. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8462. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. fi
  8464. ;;
  8465. uts4*)
  8466. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8467. hardcode_libdir_flag_spec='-L$libdir'
  8468. hardcode_shlibpath_var=no
  8469. ;;
  8470. *)
  8471. ld_shlibs=no
  8472. ;;
  8473. esac
  8474. if test x$host_vendor = xsni; then
  8475. case $host in
  8476. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8477. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8478. ;;
  8479. esac
  8480. fi
  8481. fi
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8483. $as_echo "$ld_shlibs" >&6; }
  8484. test "$ld_shlibs" = no && can_build_shared=no
  8485. with_gnu_ld=$with_gnu_ld
  8486. #
  8487. # Do we need to explicitly link libc?
  8488. #
  8489. case "x$archive_cmds_need_lc" in
  8490. x|xyes)
  8491. # Assume -lc should be added
  8492. archive_cmds_need_lc=yes
  8493. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8494. case $archive_cmds in
  8495. *'~'*)
  8496. # FIXME: we may have to deal with multi-command sequences.
  8497. ;;
  8498. '$CC '*)
  8499. # Test whether the compiler implicitly links with -lc since on some
  8500. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8501. # to ld, don't add -lc before -lgcc.
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8503. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8504. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8505. $as_echo_n "(cached) " >&6
  8506. else
  8507. $RM conftest*
  8508. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8509. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8510. (eval $ac_compile) 2>&5
  8511. ac_status=$?
  8512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8513. test $ac_status = 0; } 2>conftest.err; then
  8514. soname=conftest
  8515. lib=conftest
  8516. libobjs=conftest.$ac_objext
  8517. deplibs=
  8518. wl=$lt_prog_compiler_wl
  8519. pic_flag=$lt_prog_compiler_pic
  8520. compiler_flags=-v
  8521. linker_flags=-v
  8522. verstring=
  8523. output_objdir=.
  8524. libname=conftest
  8525. lt_save_allow_undefined_flag=$allow_undefined_flag
  8526. allow_undefined_flag=
  8527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8528. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8529. ac_status=$?
  8530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8531. test $ac_status = 0; }
  8532. then
  8533. lt_cv_archive_cmds_need_lc=no
  8534. else
  8535. lt_cv_archive_cmds_need_lc=yes
  8536. fi
  8537. allow_undefined_flag=$lt_save_allow_undefined_flag
  8538. else
  8539. cat conftest.err 1>&5
  8540. fi
  8541. $RM conftest*
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8544. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8545. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8546. ;;
  8547. esac
  8548. fi
  8549. ;;
  8550. esac
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8552. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8553. if test "$GCC" = yes; then
  8554. case $host_os in
  8555. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8556. *) lt_awk_arg="/^libraries:/" ;;
  8557. esac
  8558. case $host_os in
  8559. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8560. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8561. esac
  8562. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8563. case $lt_search_path_spec in
  8564. *\;*)
  8565. # if the path contains ";" then we assume it to be the separator
  8566. # otherwise default to the standard path separator (i.e. ":") - it is
  8567. # assumed that no part of a normal pathname contains ";" but that should
  8568. # okay in the real world where ";" in dirpaths is itself problematic.
  8569. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8570. ;;
  8571. *)
  8572. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8573. ;;
  8574. esac
  8575. # Ok, now we have the path, separated by spaces, we can step through it
  8576. # and add multilib dir if necessary...
  8577. lt_tmp_lt_search_path_spec=
  8578. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8579. # ...but if some path already ends with the multilib dir we assume
  8580. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8581. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8582. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8583. lt_multi_os_dir=
  8584. ;;
  8585. esac
  8586. for lt_sys_path in $lt_search_path_spec; do
  8587. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8588. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8589. elif test -n "$lt_multi_os_dir"; then
  8590. test -d "$lt_sys_path" && \
  8591. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8592. fi
  8593. done
  8594. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8595. BEGIN {RS=" "; FS="/|\n";} {
  8596. lt_foo="";
  8597. lt_count=0;
  8598. for (lt_i = NF; lt_i > 0; lt_i--) {
  8599. if ($lt_i != "" && $lt_i != ".") {
  8600. if ($lt_i == "..") {
  8601. lt_count++;
  8602. } else {
  8603. if (lt_count == 0) {
  8604. lt_foo="/" $lt_i lt_foo;
  8605. } else {
  8606. lt_count--;
  8607. }
  8608. }
  8609. }
  8610. }
  8611. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8612. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8613. }'`
  8614. # AWK program above erroneously prepends '/' to C:/dos/paths
  8615. # for these hosts.
  8616. case $host_os in
  8617. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8618. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8619. esac
  8620. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8621. else
  8622. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8623. fi
  8624. library_names_spec=
  8625. libname_spec='lib$name'
  8626. soname_spec=
  8627. shrext_cmds=".so"
  8628. postinstall_cmds=
  8629. postuninstall_cmds=
  8630. finish_cmds=
  8631. finish_eval=
  8632. shlibpath_var=
  8633. shlibpath_overrides_runpath=unknown
  8634. version_type=none
  8635. dynamic_linker="$host_os ld.so"
  8636. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8637. need_lib_prefix=unknown
  8638. hardcode_into_libs=no
  8639. # when you set need_version to no, make sure it does not cause -set_version
  8640. # flags to be left without arguments
  8641. need_version=unknown
  8642. case $host_os in
  8643. aix3*)
  8644. version_type=linux # correct to gnu/linux during the next big refactor
  8645. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8646. shlibpath_var=LIBPATH
  8647. # AIX 3 has no versioning support, so we append a major version to the name.
  8648. soname_spec='${libname}${release}${shared_ext}$major'
  8649. ;;
  8650. aix[4-9]*)
  8651. version_type=linux # correct to gnu/linux during the next big refactor
  8652. need_lib_prefix=no
  8653. need_version=no
  8654. hardcode_into_libs=yes
  8655. if test "$host_cpu" = ia64; then
  8656. # AIX 5 supports IA64
  8657. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. else
  8660. # With GCC up to 2.95.x, collect2 would create an import file
  8661. # for dependence libraries. The import file would start with
  8662. # the line `#! .'. This would cause the generated library to
  8663. # depend on `.', always an invalid library. This was fixed in
  8664. # development snapshots of GCC prior to 3.0.
  8665. case $host_os in
  8666. aix4 | aix4.[01] | aix4.[01].*)
  8667. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8668. echo ' yes '
  8669. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8670. :
  8671. else
  8672. can_build_shared=no
  8673. fi
  8674. ;;
  8675. esac
  8676. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8677. # soname into executable. Probably we can add versioning support to
  8678. # collect2, so additional links can be useful in future.
  8679. if test "$aix_use_runtimelinking" = yes; then
  8680. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8681. # instead of lib<name>.a to let people know that these are not
  8682. # typical AIX shared libraries.
  8683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8684. else
  8685. # We preserve .a as extension for shared libraries through AIX4.2
  8686. # and later when we are not doing run time linking.
  8687. library_names_spec='${libname}${release}.a $libname.a'
  8688. soname_spec='${libname}${release}${shared_ext}$major'
  8689. fi
  8690. shlibpath_var=LIBPATH
  8691. fi
  8692. ;;
  8693. amigaos*)
  8694. case $host_cpu in
  8695. powerpc)
  8696. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8697. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8699. ;;
  8700. m68k)
  8701. library_names_spec='$libname.ixlibrary $libname.a'
  8702. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8703. 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'
  8704. ;;
  8705. esac
  8706. ;;
  8707. beos*)
  8708. library_names_spec='${libname}${shared_ext}'
  8709. dynamic_linker="$host_os ld.so"
  8710. shlibpath_var=LIBRARY_PATH
  8711. ;;
  8712. bsdi[45]*)
  8713. version_type=linux # correct to gnu/linux during the next big refactor
  8714. need_version=no
  8715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8716. soname_spec='${libname}${release}${shared_ext}$major'
  8717. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8718. shlibpath_var=LD_LIBRARY_PATH
  8719. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8720. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8721. # the default ld.so.conf also contains /usr/contrib/lib and
  8722. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8723. # libtool to hard-code these into programs
  8724. ;;
  8725. cygwin* | mingw* | pw32* | cegcc*)
  8726. version_type=windows
  8727. shrext_cmds=".dll"
  8728. need_version=no
  8729. need_lib_prefix=no
  8730. case $GCC,$cc_basename in
  8731. yes,*)
  8732. # gcc
  8733. library_names_spec='$libname.dll.a'
  8734. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8735. postinstall_cmds='base_file=`basename \${file}`~
  8736. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8737. dldir=$destdir/`dirname \$dlpath`~
  8738. test -d \$dldir || mkdir -p \$dldir~
  8739. $install_prog $dir/$dlname \$dldir/$dlname~
  8740. chmod a+x \$dldir/$dlname~
  8741. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8742. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8743. fi'
  8744. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8745. dlpath=$dir/\$dldll~
  8746. $RM \$dlpath'
  8747. shlibpath_overrides_runpath=yes
  8748. case $host_os in
  8749. cygwin*)
  8750. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8751. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8752. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8753. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8754. ;;
  8755. mingw* | cegcc*)
  8756. # MinGW DLLs use traditional 'lib' prefix
  8757. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8758. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8759. ;;
  8760. pw32*)
  8761. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8762. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8763. ;;
  8764. esac
  8765. dynamic_linker='Win32 ld.exe'
  8766. ;;
  8767. *,cl*)
  8768. # Native MSVC
  8769. libname_spec='$name'
  8770. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8771. library_names_spec='${libname}.dll.lib'
  8772. case $build_os in
  8773. mingw*)
  8774. sys_lib_search_path_spec=
  8775. lt_save_ifs=$IFS
  8776. IFS=';'
  8777. for lt_path in $LIB
  8778. do
  8779. IFS=$lt_save_ifs
  8780. # Let DOS variable expansion print the short 8.3 style file name.
  8781. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8782. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8783. done
  8784. IFS=$lt_save_ifs
  8785. # Convert to MSYS style.
  8786. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8787. ;;
  8788. cygwin*)
  8789. # Convert to unix form, then to dos form, then back to unix form
  8790. # but this time dos style (no spaces!) so that the unix form looks
  8791. # like /cygdrive/c/PROGRA~1:/cygdr...
  8792. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8793. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8794. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8795. ;;
  8796. *)
  8797. sys_lib_search_path_spec="$LIB"
  8798. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8799. # It is most probably a Windows format PATH.
  8800. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8801. else
  8802. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8803. fi
  8804. # FIXME: find the short name or the path components, as spaces are
  8805. # common. (e.g. "Program Files" -> "PROGRA~1")
  8806. ;;
  8807. esac
  8808. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8809. postinstall_cmds='base_file=`basename \${file}`~
  8810. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8811. dldir=$destdir/`dirname \$dlpath`~
  8812. test -d \$dldir || mkdir -p \$dldir~
  8813. $install_prog $dir/$dlname \$dldir/$dlname'
  8814. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8815. dlpath=$dir/\$dldll~
  8816. $RM \$dlpath'
  8817. shlibpath_overrides_runpath=yes
  8818. dynamic_linker='Win32 link.exe'
  8819. ;;
  8820. *)
  8821. # Assume MSVC wrapper
  8822. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8823. dynamic_linker='Win32 ld.exe'
  8824. ;;
  8825. esac
  8826. # FIXME: first we should search . and the directory the executable is in
  8827. shlibpath_var=PATH
  8828. ;;
  8829. darwin* | rhapsody*)
  8830. dynamic_linker="$host_os dyld"
  8831. version_type=darwin
  8832. need_lib_prefix=no
  8833. need_version=no
  8834. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8835. soname_spec='${libname}${release}${major}$shared_ext'
  8836. shlibpath_overrides_runpath=yes
  8837. shlibpath_var=DYLD_LIBRARY_PATH
  8838. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8839. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8840. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8841. ;;
  8842. dgux*)
  8843. version_type=linux # correct to gnu/linux during the next big refactor
  8844. need_lib_prefix=no
  8845. need_version=no
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8847. soname_spec='${libname}${release}${shared_ext}$major'
  8848. shlibpath_var=LD_LIBRARY_PATH
  8849. ;;
  8850. freebsd* | dragonfly*)
  8851. # DragonFly does not have aout. When/if they implement a new
  8852. # versioning mechanism, adjust this.
  8853. if test -x /usr/bin/objformat; then
  8854. objformat=`/usr/bin/objformat`
  8855. else
  8856. case $host_os in
  8857. freebsd[23].*) objformat=aout ;;
  8858. *) objformat=elf ;;
  8859. esac
  8860. fi
  8861. version_type=freebsd-$objformat
  8862. case $version_type in
  8863. freebsd-elf*)
  8864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8865. need_version=no
  8866. need_lib_prefix=no
  8867. ;;
  8868. freebsd-*)
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8870. need_version=yes
  8871. ;;
  8872. esac
  8873. shlibpath_var=LD_LIBRARY_PATH
  8874. case $host_os in
  8875. freebsd2.*)
  8876. shlibpath_overrides_runpath=yes
  8877. ;;
  8878. freebsd3.[01]* | freebsdelf3.[01]*)
  8879. shlibpath_overrides_runpath=yes
  8880. hardcode_into_libs=yes
  8881. ;;
  8882. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8883. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. *) # from 4.6 on, and DragonFly
  8888. shlibpath_overrides_runpath=yes
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. esac
  8892. ;;
  8893. gnu*)
  8894. version_type=linux # correct to gnu/linux during the next big refactor
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8898. soname_spec='${libname}${release}${shared_ext}$major'
  8899. shlibpath_var=LD_LIBRARY_PATH
  8900. shlibpath_overrides_runpath=no
  8901. hardcode_into_libs=yes
  8902. ;;
  8903. haiku*)
  8904. version_type=linux # correct to gnu/linux during the next big refactor
  8905. need_lib_prefix=no
  8906. need_version=no
  8907. dynamic_linker="$host_os runtime_loader"
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8909. soname_spec='${libname}${release}${shared_ext}$major'
  8910. shlibpath_var=LIBRARY_PATH
  8911. shlibpath_overrides_runpath=yes
  8912. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8913. hardcode_into_libs=yes
  8914. ;;
  8915. hpux9* | hpux10* | hpux11*)
  8916. # Give a soname corresponding to the major version so that dld.sl refuses to
  8917. # link against other versions.
  8918. version_type=sunos
  8919. need_lib_prefix=no
  8920. need_version=no
  8921. case $host_cpu in
  8922. ia64*)
  8923. shrext_cmds='.so'
  8924. hardcode_into_libs=yes
  8925. dynamic_linker="$host_os dld.so"
  8926. shlibpath_var=LD_LIBRARY_PATH
  8927. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8929. soname_spec='${libname}${release}${shared_ext}$major'
  8930. if test "X$HPUX_IA64_MODE" = X32; then
  8931. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8932. else
  8933. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8934. fi
  8935. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8936. ;;
  8937. hppa*64*)
  8938. shrext_cmds='.sl'
  8939. hardcode_into_libs=yes
  8940. dynamic_linker="$host_os dld.sl"
  8941. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8942. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8944. soname_spec='${libname}${release}${shared_ext}$major'
  8945. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8946. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8947. ;;
  8948. *)
  8949. shrext_cmds='.sl'
  8950. dynamic_linker="$host_os dld.sl"
  8951. shlibpath_var=SHLIB_PATH
  8952. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8954. soname_spec='${libname}${release}${shared_ext}$major'
  8955. ;;
  8956. esac
  8957. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8958. postinstall_cmds='chmod 555 $lib'
  8959. # or fails outright, so override atomically:
  8960. install_override_mode=555
  8961. ;;
  8962. interix[3-9]*)
  8963. version_type=linux # correct to gnu/linux during the next big refactor
  8964. need_lib_prefix=no
  8965. need_version=no
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8967. soname_spec='${libname}${release}${shared_ext}$major'
  8968. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8969. shlibpath_var=LD_LIBRARY_PATH
  8970. shlibpath_overrides_runpath=no
  8971. hardcode_into_libs=yes
  8972. ;;
  8973. irix5* | irix6* | nonstopux*)
  8974. case $host_os in
  8975. nonstopux*) version_type=nonstopux ;;
  8976. *)
  8977. if test "$lt_cv_prog_gnu_ld" = yes; then
  8978. version_type=linux # correct to gnu/linux during the next big refactor
  8979. else
  8980. version_type=irix
  8981. fi ;;
  8982. esac
  8983. need_lib_prefix=no
  8984. need_version=no
  8985. soname_spec='${libname}${release}${shared_ext}$major'
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8987. case $host_os in
  8988. irix5* | nonstopux*)
  8989. libsuff= shlibsuff=
  8990. ;;
  8991. *)
  8992. case $LD in # libtool.m4 will add one of these switches to LD
  8993. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8994. libsuff= shlibsuff= libmagic=32-bit;;
  8995. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8996. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8997. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8998. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8999. *) libsuff= shlibsuff= libmagic=never-match;;
  9000. esac
  9001. ;;
  9002. esac
  9003. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9004. shlibpath_overrides_runpath=no
  9005. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9006. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. # No shared lib support for Linux oldld, aout, or coff.
  9010. linux*oldld* | linux*aout* | linux*coff*)
  9011. dynamic_linker=no
  9012. ;;
  9013. # This must be glibc/ELF.
  9014. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9015. version_type=linux # correct to gnu/linux during the next big refactor
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9021. shlibpath_var=LD_LIBRARY_PATH
  9022. shlibpath_overrides_runpath=no
  9023. # Some binutils ld are patched to set DT_RUNPATH
  9024. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9025. $as_echo_n "(cached) " >&6
  9026. else
  9027. lt_cv_shlibpath_overrides_runpath=no
  9028. save_LDFLAGS=$LDFLAGS
  9029. save_libdir=$libdir
  9030. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9031. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9033. /* end confdefs.h. */
  9034. int
  9035. main ()
  9036. {
  9037. ;
  9038. return 0;
  9039. }
  9040. _ACEOF
  9041. if ac_fn_c_try_link "$LINENO"; then :
  9042. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9043. lt_cv_shlibpath_overrides_runpath=yes
  9044. fi
  9045. fi
  9046. rm -f core conftest.err conftest.$ac_objext \
  9047. conftest$ac_exeext conftest.$ac_ext
  9048. LDFLAGS=$save_LDFLAGS
  9049. libdir=$save_libdir
  9050. fi
  9051. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9052. # This implies no fast_install, which is unacceptable.
  9053. # Some rework will be needed to allow for fast_install
  9054. # before this can be enabled.
  9055. hardcode_into_libs=yes
  9056. # Append ld.so.conf contents to the search path
  9057. if test -f /etc/ld.so.conf; then
  9058. 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' ' '`
  9059. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9060. fi
  9061. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9062. # powerpc, because MkLinux only supported shared libraries with the
  9063. # GNU dynamic linker. Since this was broken with cross compilers,
  9064. # most powerpc-linux boxes support dynamic linking these days and
  9065. # people can always --disable-shared, the test was removed, and we
  9066. # assume the GNU/Linux dynamic linker is in use.
  9067. dynamic_linker='GNU/Linux ld.so'
  9068. ;;
  9069. netbsd*)
  9070. version_type=sunos
  9071. need_lib_prefix=no
  9072. need_version=no
  9073. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9075. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9076. dynamic_linker='NetBSD (a.out) ld.so'
  9077. else
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. dynamic_linker='NetBSD ld.elf_so'
  9081. fi
  9082. shlibpath_var=LD_LIBRARY_PATH
  9083. shlibpath_overrides_runpath=yes
  9084. hardcode_into_libs=yes
  9085. ;;
  9086. newsos6)
  9087. version_type=linux # correct to gnu/linux during the next big refactor
  9088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. shlibpath_overrides_runpath=yes
  9091. ;;
  9092. *nto* | *qnx*)
  9093. version_type=qnx
  9094. need_lib_prefix=no
  9095. need_version=no
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9097. soname_spec='${libname}${release}${shared_ext}$major'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. shlibpath_overrides_runpath=no
  9100. hardcode_into_libs=yes
  9101. dynamic_linker='ldqnx.so'
  9102. ;;
  9103. openbsd*)
  9104. version_type=sunos
  9105. sys_lib_dlsearch_path_spec="/usr/lib"
  9106. need_lib_prefix=no
  9107. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9108. case $host_os in
  9109. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9110. *) need_version=no ;;
  9111. esac
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9116. case $host_os in
  9117. openbsd2.[89] | openbsd2.[89].*)
  9118. shlibpath_overrides_runpath=no
  9119. ;;
  9120. *)
  9121. shlibpath_overrides_runpath=yes
  9122. ;;
  9123. esac
  9124. else
  9125. shlibpath_overrides_runpath=yes
  9126. fi
  9127. ;;
  9128. os2*)
  9129. libname_spec='$name'
  9130. shrext_cmds=".dll"
  9131. need_lib_prefix=no
  9132. library_names_spec='$libname${shared_ext} $libname.a'
  9133. dynamic_linker='OS/2 ld.exe'
  9134. shlibpath_var=LIBPATH
  9135. ;;
  9136. osf3* | osf4* | osf5*)
  9137. version_type=osf
  9138. need_lib_prefix=no
  9139. need_version=no
  9140. soname_spec='${libname}${release}${shared_ext}$major'
  9141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9142. shlibpath_var=LD_LIBRARY_PATH
  9143. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9144. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9145. ;;
  9146. rdos*)
  9147. dynamic_linker=no
  9148. ;;
  9149. solaris*)
  9150. version_type=linux # correct to gnu/linux during the next big refactor
  9151. need_lib_prefix=no
  9152. need_version=no
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. hardcode_into_libs=yes
  9158. # ldd complains unless libraries are executable
  9159. postinstall_cmds='chmod +x $lib'
  9160. ;;
  9161. sunos4*)
  9162. version_type=sunos
  9163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9164. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9165. shlibpath_var=LD_LIBRARY_PATH
  9166. shlibpath_overrides_runpath=yes
  9167. if test "$with_gnu_ld" = yes; then
  9168. need_lib_prefix=no
  9169. fi
  9170. need_version=yes
  9171. ;;
  9172. sysv4 | sysv4.3*)
  9173. version_type=linux # correct to gnu/linux during the next big refactor
  9174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9175. soname_spec='${libname}${release}${shared_ext}$major'
  9176. shlibpath_var=LD_LIBRARY_PATH
  9177. case $host_vendor in
  9178. sni)
  9179. shlibpath_overrides_runpath=no
  9180. need_lib_prefix=no
  9181. runpath_var=LD_RUN_PATH
  9182. ;;
  9183. siemens)
  9184. need_lib_prefix=no
  9185. ;;
  9186. motorola)
  9187. need_lib_prefix=no
  9188. need_version=no
  9189. shlibpath_overrides_runpath=no
  9190. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9191. ;;
  9192. esac
  9193. ;;
  9194. sysv4*MP*)
  9195. if test -d /usr/nec ;then
  9196. version_type=linux # correct to gnu/linux during the next big refactor
  9197. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9198. soname_spec='$libname${shared_ext}.$major'
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. fi
  9201. ;;
  9202. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9203. version_type=freebsd-elf
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. shlibpath_overrides_runpath=yes
  9210. hardcode_into_libs=yes
  9211. if test "$with_gnu_ld" = yes; then
  9212. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9213. else
  9214. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9215. case $host_os in
  9216. sco3.2v5*)
  9217. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9218. ;;
  9219. esac
  9220. fi
  9221. sys_lib_dlsearch_path_spec='/usr/lib'
  9222. ;;
  9223. tpf*)
  9224. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9225. version_type=linux # correct to gnu/linux during the next big refactor
  9226. need_lib_prefix=no
  9227. need_version=no
  9228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=no
  9231. hardcode_into_libs=yes
  9232. ;;
  9233. uts4*)
  9234. version_type=linux # correct to gnu/linux during the next big refactor
  9235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9236. soname_spec='${libname}${release}${shared_ext}$major'
  9237. shlibpath_var=LD_LIBRARY_PATH
  9238. ;;
  9239. *)
  9240. dynamic_linker=no
  9241. ;;
  9242. esac
  9243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9244. $as_echo "$dynamic_linker" >&6; }
  9245. test "$dynamic_linker" = no && can_build_shared=no
  9246. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9247. if test "$GCC" = yes; then
  9248. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9249. fi
  9250. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9251. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9252. fi
  9253. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9254. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9255. fi
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9257. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9258. hardcode_action=
  9259. if test -n "$hardcode_libdir_flag_spec" ||
  9260. test -n "$runpath_var" ||
  9261. test "X$hardcode_automatic" = "Xyes" ; then
  9262. # We can hardcode non-existent directories.
  9263. if test "$hardcode_direct" != no &&
  9264. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9265. # have to relink, otherwise we might link with an installed library
  9266. # when we should be linking with a yet-to-be-installed one
  9267. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9268. test "$hardcode_minus_L" != no; then
  9269. # Linking always hardcodes the temporary library directory.
  9270. hardcode_action=relink
  9271. else
  9272. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9273. hardcode_action=immediate
  9274. fi
  9275. else
  9276. # We cannot hardcode anything, or else we can only hardcode existing
  9277. # directories.
  9278. hardcode_action=unsupported
  9279. fi
  9280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9281. $as_echo "$hardcode_action" >&6; }
  9282. if test "$hardcode_action" = relink ||
  9283. test "$inherit_rpath" = yes; then
  9284. # Fast installation is not supported
  9285. enable_fast_install=no
  9286. elif test "$shlibpath_overrides_runpath" = yes ||
  9287. test "$enable_shared" = no; then
  9288. # Fast installation is not necessary
  9289. enable_fast_install=needless
  9290. fi
  9291. if test "x$enable_dlopen" != xyes; then
  9292. enable_dlopen=unknown
  9293. enable_dlopen_self=unknown
  9294. enable_dlopen_self_static=unknown
  9295. else
  9296. lt_cv_dlopen=no
  9297. lt_cv_dlopen_libs=
  9298. case $host_os in
  9299. beos*)
  9300. lt_cv_dlopen="load_add_on"
  9301. lt_cv_dlopen_libs=
  9302. lt_cv_dlopen_self=yes
  9303. ;;
  9304. mingw* | pw32* | cegcc*)
  9305. lt_cv_dlopen="LoadLibrary"
  9306. lt_cv_dlopen_libs=
  9307. ;;
  9308. cygwin*)
  9309. lt_cv_dlopen="dlopen"
  9310. lt_cv_dlopen_libs=
  9311. ;;
  9312. darwin*)
  9313. # if libdl is installed we need to link against it
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9315. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9316. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9317. $as_echo_n "(cached) " >&6
  9318. else
  9319. ac_check_lib_save_LIBS=$LIBS
  9320. LIBS="-ldl $LIBS"
  9321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9322. /* end confdefs.h. */
  9323. /* Override any GCC internal prototype to avoid an error.
  9324. Use char because int might match the return type of a GCC
  9325. builtin and then its argument prototype would still apply. */
  9326. #ifdef __cplusplus
  9327. extern "C"
  9328. #endif
  9329. char dlopen ();
  9330. int
  9331. main ()
  9332. {
  9333. return dlopen ();
  9334. ;
  9335. return 0;
  9336. }
  9337. _ACEOF
  9338. if ac_fn_c_try_link "$LINENO"; then :
  9339. ac_cv_lib_dl_dlopen=yes
  9340. else
  9341. ac_cv_lib_dl_dlopen=no
  9342. fi
  9343. rm -f core conftest.err conftest.$ac_objext \
  9344. conftest$ac_exeext conftest.$ac_ext
  9345. LIBS=$ac_check_lib_save_LIBS
  9346. fi
  9347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9348. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9349. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9350. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9351. else
  9352. lt_cv_dlopen="dyld"
  9353. lt_cv_dlopen_libs=
  9354. lt_cv_dlopen_self=yes
  9355. fi
  9356. ;;
  9357. *)
  9358. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9359. if test "x$ac_cv_func_shl_load" = xyes; then :
  9360. lt_cv_dlopen="shl_load"
  9361. else
  9362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9363. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9364. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9365. $as_echo_n "(cached) " >&6
  9366. else
  9367. ac_check_lib_save_LIBS=$LIBS
  9368. LIBS="-ldld $LIBS"
  9369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9370. /* end confdefs.h. */
  9371. /* Override any GCC internal prototype to avoid an error.
  9372. Use char because int might match the return type of a GCC
  9373. builtin and then its argument prototype would still apply. */
  9374. #ifdef __cplusplus
  9375. extern "C"
  9376. #endif
  9377. char shl_load ();
  9378. int
  9379. main ()
  9380. {
  9381. return shl_load ();
  9382. ;
  9383. return 0;
  9384. }
  9385. _ACEOF
  9386. if ac_fn_c_try_link "$LINENO"; then :
  9387. ac_cv_lib_dld_shl_load=yes
  9388. else
  9389. ac_cv_lib_dld_shl_load=no
  9390. fi
  9391. rm -f core conftest.err conftest.$ac_objext \
  9392. conftest$ac_exeext conftest.$ac_ext
  9393. LIBS=$ac_check_lib_save_LIBS
  9394. fi
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9396. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9397. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9398. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9399. else
  9400. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9401. if test "x$ac_cv_func_dlopen" = xyes; then :
  9402. lt_cv_dlopen="dlopen"
  9403. else
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9405. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9406. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9407. $as_echo_n "(cached) " >&6
  9408. else
  9409. ac_check_lib_save_LIBS=$LIBS
  9410. LIBS="-ldl $LIBS"
  9411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9412. /* end confdefs.h. */
  9413. /* Override any GCC internal prototype to avoid an error.
  9414. Use char because int might match the return type of a GCC
  9415. builtin and then its argument prototype would still apply. */
  9416. #ifdef __cplusplus
  9417. extern "C"
  9418. #endif
  9419. char dlopen ();
  9420. int
  9421. main ()
  9422. {
  9423. return dlopen ();
  9424. ;
  9425. return 0;
  9426. }
  9427. _ACEOF
  9428. if ac_fn_c_try_link "$LINENO"; then :
  9429. ac_cv_lib_dl_dlopen=yes
  9430. else
  9431. ac_cv_lib_dl_dlopen=no
  9432. fi
  9433. rm -f core conftest.err conftest.$ac_objext \
  9434. conftest$ac_exeext conftest.$ac_ext
  9435. LIBS=$ac_check_lib_save_LIBS
  9436. fi
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9438. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9439. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9440. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9441. else
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9443. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9444. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9445. $as_echo_n "(cached) " >&6
  9446. else
  9447. ac_check_lib_save_LIBS=$LIBS
  9448. LIBS="-lsvld $LIBS"
  9449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9450. /* end confdefs.h. */
  9451. /* Override any GCC internal prototype to avoid an error.
  9452. Use char because int might match the return type of a GCC
  9453. builtin and then its argument prototype would still apply. */
  9454. #ifdef __cplusplus
  9455. extern "C"
  9456. #endif
  9457. char dlopen ();
  9458. int
  9459. main ()
  9460. {
  9461. return dlopen ();
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. if ac_fn_c_try_link "$LINENO"; then :
  9467. ac_cv_lib_svld_dlopen=yes
  9468. else
  9469. ac_cv_lib_svld_dlopen=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext \
  9472. conftest$ac_exeext conftest.$ac_ext
  9473. LIBS=$ac_check_lib_save_LIBS
  9474. fi
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9476. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9477. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9478. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9479. else
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9481. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9482. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. ac_check_lib_save_LIBS=$LIBS
  9486. LIBS="-ldld $LIBS"
  9487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9488. /* end confdefs.h. */
  9489. /* Override any GCC internal prototype to avoid an error.
  9490. Use char because int might match the return type of a GCC
  9491. builtin and then its argument prototype would still apply. */
  9492. #ifdef __cplusplus
  9493. extern "C"
  9494. #endif
  9495. char dld_link ();
  9496. int
  9497. main ()
  9498. {
  9499. return dld_link ();
  9500. ;
  9501. return 0;
  9502. }
  9503. _ACEOF
  9504. if ac_fn_c_try_link "$LINENO"; then :
  9505. ac_cv_lib_dld_dld_link=yes
  9506. else
  9507. ac_cv_lib_dld_dld_link=no
  9508. fi
  9509. rm -f core conftest.err conftest.$ac_objext \
  9510. conftest$ac_exeext conftest.$ac_ext
  9511. LIBS=$ac_check_lib_save_LIBS
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9514. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9515. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9516. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9517. fi
  9518. fi
  9519. fi
  9520. fi
  9521. fi
  9522. fi
  9523. ;;
  9524. esac
  9525. if test "x$lt_cv_dlopen" != xno; then
  9526. enable_dlopen=yes
  9527. else
  9528. enable_dlopen=no
  9529. fi
  9530. case $lt_cv_dlopen in
  9531. dlopen)
  9532. save_CPPFLAGS="$CPPFLAGS"
  9533. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9534. save_LDFLAGS="$LDFLAGS"
  9535. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9536. save_LIBS="$LIBS"
  9537. LIBS="$lt_cv_dlopen_libs $LIBS"
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9539. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9540. if ${lt_cv_dlopen_self+:} false; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. if test "$cross_compiling" = yes; then :
  9544. lt_cv_dlopen_self=cross
  9545. else
  9546. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9547. lt_status=$lt_dlunknown
  9548. cat > conftest.$ac_ext <<_LT_EOF
  9549. #line $LINENO "configure"
  9550. #include "confdefs.h"
  9551. #if HAVE_DLFCN_H
  9552. #include <dlfcn.h>
  9553. #endif
  9554. #include <stdio.h>
  9555. #ifdef RTLD_GLOBAL
  9556. # define LT_DLGLOBAL RTLD_GLOBAL
  9557. #else
  9558. # ifdef DL_GLOBAL
  9559. # define LT_DLGLOBAL DL_GLOBAL
  9560. # else
  9561. # define LT_DLGLOBAL 0
  9562. # endif
  9563. #endif
  9564. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9565. find out it does not work in some platform. */
  9566. #ifndef LT_DLLAZY_OR_NOW
  9567. # ifdef RTLD_LAZY
  9568. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9569. # else
  9570. # ifdef DL_LAZY
  9571. # define LT_DLLAZY_OR_NOW DL_LAZY
  9572. # else
  9573. # ifdef RTLD_NOW
  9574. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9575. # else
  9576. # ifdef DL_NOW
  9577. # define LT_DLLAZY_OR_NOW DL_NOW
  9578. # else
  9579. # define LT_DLLAZY_OR_NOW 0
  9580. # endif
  9581. # endif
  9582. # endif
  9583. # endif
  9584. #endif
  9585. /* When -fvisbility=hidden is used, assume the code has been annotated
  9586. correspondingly for the symbols needed. */
  9587. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9588. int fnord () __attribute__((visibility("default")));
  9589. #endif
  9590. int fnord () { return 42; }
  9591. int main ()
  9592. {
  9593. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9594. int status = $lt_dlunknown;
  9595. if (self)
  9596. {
  9597. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9598. else
  9599. {
  9600. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9601. else puts (dlerror ());
  9602. }
  9603. /* dlclose (self); */
  9604. }
  9605. else
  9606. puts (dlerror ());
  9607. return status;
  9608. }
  9609. _LT_EOF
  9610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9611. (eval $ac_link) 2>&5
  9612. ac_status=$?
  9613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9614. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9615. (./conftest; exit; ) >&5 2>/dev/null
  9616. lt_status=$?
  9617. case x$lt_status in
  9618. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9619. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9620. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9621. esac
  9622. else :
  9623. # compilation failed
  9624. lt_cv_dlopen_self=no
  9625. fi
  9626. fi
  9627. rm -fr conftest*
  9628. fi
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9630. $as_echo "$lt_cv_dlopen_self" >&6; }
  9631. if test "x$lt_cv_dlopen_self" = xyes; then
  9632. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9634. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9635. if ${lt_cv_dlopen_self_static+:} false; then :
  9636. $as_echo_n "(cached) " >&6
  9637. else
  9638. if test "$cross_compiling" = yes; then :
  9639. lt_cv_dlopen_self_static=cross
  9640. else
  9641. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9642. lt_status=$lt_dlunknown
  9643. cat > conftest.$ac_ext <<_LT_EOF
  9644. #line $LINENO "configure"
  9645. #include "confdefs.h"
  9646. #if HAVE_DLFCN_H
  9647. #include <dlfcn.h>
  9648. #endif
  9649. #include <stdio.h>
  9650. #ifdef RTLD_GLOBAL
  9651. # define LT_DLGLOBAL RTLD_GLOBAL
  9652. #else
  9653. # ifdef DL_GLOBAL
  9654. # define LT_DLGLOBAL DL_GLOBAL
  9655. # else
  9656. # define LT_DLGLOBAL 0
  9657. # endif
  9658. #endif
  9659. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9660. find out it does not work in some platform. */
  9661. #ifndef LT_DLLAZY_OR_NOW
  9662. # ifdef RTLD_LAZY
  9663. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9664. # else
  9665. # ifdef DL_LAZY
  9666. # define LT_DLLAZY_OR_NOW DL_LAZY
  9667. # else
  9668. # ifdef RTLD_NOW
  9669. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9670. # else
  9671. # ifdef DL_NOW
  9672. # define LT_DLLAZY_OR_NOW DL_NOW
  9673. # else
  9674. # define LT_DLLAZY_OR_NOW 0
  9675. # endif
  9676. # endif
  9677. # endif
  9678. # endif
  9679. #endif
  9680. /* When -fvisbility=hidden is used, assume the code has been annotated
  9681. correspondingly for the symbols needed. */
  9682. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9683. int fnord () __attribute__((visibility("default")));
  9684. #endif
  9685. int fnord () { return 42; }
  9686. int main ()
  9687. {
  9688. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9689. int status = $lt_dlunknown;
  9690. if (self)
  9691. {
  9692. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9693. else
  9694. {
  9695. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9696. else puts (dlerror ());
  9697. }
  9698. /* dlclose (self); */
  9699. }
  9700. else
  9701. puts (dlerror ());
  9702. return status;
  9703. }
  9704. _LT_EOF
  9705. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9706. (eval $ac_link) 2>&5
  9707. ac_status=$?
  9708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9709. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9710. (./conftest; exit; ) >&5 2>/dev/null
  9711. lt_status=$?
  9712. case x$lt_status in
  9713. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9714. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9715. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9716. esac
  9717. else :
  9718. # compilation failed
  9719. lt_cv_dlopen_self_static=no
  9720. fi
  9721. fi
  9722. rm -fr conftest*
  9723. fi
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9725. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9726. fi
  9727. CPPFLAGS="$save_CPPFLAGS"
  9728. LDFLAGS="$save_LDFLAGS"
  9729. LIBS="$save_LIBS"
  9730. ;;
  9731. esac
  9732. case $lt_cv_dlopen_self in
  9733. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9734. *) enable_dlopen_self=unknown ;;
  9735. esac
  9736. case $lt_cv_dlopen_self_static in
  9737. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9738. *) enable_dlopen_self_static=unknown ;;
  9739. esac
  9740. fi
  9741. striplib=
  9742. old_striplib=
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9744. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9745. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9746. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9747. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9749. $as_echo "yes" >&6; }
  9750. else
  9751. # FIXME - insert some real tests, host_os isn't really good enough
  9752. case $host_os in
  9753. darwin*)
  9754. if test -n "$STRIP" ; then
  9755. striplib="$STRIP -x"
  9756. old_striplib="$STRIP -S"
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9758. $as_echo "yes" >&6; }
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9761. $as_echo "no" >&6; }
  9762. fi
  9763. ;;
  9764. *)
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9766. $as_echo "no" >&6; }
  9767. ;;
  9768. esac
  9769. fi
  9770. # Report which library types will actually be built
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9772. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9774. $as_echo "$can_build_shared" >&6; }
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9776. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9777. test "$can_build_shared" = "no" && enable_shared=no
  9778. # On AIX, shared libraries and static libraries use the same namespace, and
  9779. # are all built from PIC.
  9780. case $host_os in
  9781. aix3*)
  9782. test "$enable_shared" = yes && enable_static=no
  9783. if test -n "$RANLIB"; then
  9784. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9785. postinstall_cmds='$RANLIB $lib'
  9786. fi
  9787. ;;
  9788. aix[4-9]*)
  9789. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9790. test "$enable_shared" = yes && enable_static=no
  9791. fi
  9792. ;;
  9793. esac
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9795. $as_echo "$enable_shared" >&6; }
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9797. $as_echo_n "checking whether to build static libraries... " >&6; }
  9798. # Make sure either enable_shared or enable_static is yes.
  9799. test "$enable_shared" = yes || enable_static=yes
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9801. $as_echo "$enable_static" >&6; }
  9802. fi
  9803. ac_ext=c
  9804. ac_cpp='$CPP $CPPFLAGS'
  9805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9808. CC="$lt_save_CC"
  9809. ac_config_commands="$ac_config_commands libtool"
  9810. # Only expand once:
  9811. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9812. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9813. LT_REVISION=$SDL_INTERFACE_AGE
  9814. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9815. ac_ext=c
  9816. ac_cpp='$CPP $CPPFLAGS'
  9817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9820. if test -n "$ac_tool_prefix"; then
  9821. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9822. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9824. $as_echo_n "checking for $ac_word... " >&6; }
  9825. if ${ac_cv_prog_CC+:} false; then :
  9826. $as_echo_n "(cached) " >&6
  9827. else
  9828. if test -n "$CC"; then
  9829. ac_cv_prog_CC="$CC" # Let the user override the test.
  9830. else
  9831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9832. for as_dir in $PATH
  9833. do
  9834. IFS=$as_save_IFS
  9835. test -z "$as_dir" && as_dir=.
  9836. for ac_exec_ext in '' $ac_executable_extensions; do
  9837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9838. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9840. break 2
  9841. fi
  9842. done
  9843. done
  9844. IFS=$as_save_IFS
  9845. fi
  9846. fi
  9847. CC=$ac_cv_prog_CC
  9848. if test -n "$CC"; then
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9850. $as_echo "$CC" >&6; }
  9851. else
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9853. $as_echo "no" >&6; }
  9854. fi
  9855. fi
  9856. if test -z "$ac_cv_prog_CC"; then
  9857. ac_ct_CC=$CC
  9858. # Extract the first word of "gcc", so it can be a program name with args.
  9859. set dummy gcc; ac_word=$2
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9861. $as_echo_n "checking for $ac_word... " >&6; }
  9862. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9863. $as_echo_n "(cached) " >&6
  9864. else
  9865. if test -n "$ac_ct_CC"; then
  9866. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9867. else
  9868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9869. for as_dir in $PATH
  9870. do
  9871. IFS=$as_save_IFS
  9872. test -z "$as_dir" && as_dir=.
  9873. for ac_exec_ext in '' $ac_executable_extensions; do
  9874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9875. ac_cv_prog_ac_ct_CC="gcc"
  9876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9877. break 2
  9878. fi
  9879. done
  9880. done
  9881. IFS=$as_save_IFS
  9882. fi
  9883. fi
  9884. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9885. if test -n "$ac_ct_CC"; then
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9887. $as_echo "$ac_ct_CC" >&6; }
  9888. else
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9890. $as_echo "no" >&6; }
  9891. fi
  9892. if test "x$ac_ct_CC" = x; then
  9893. CC=""
  9894. else
  9895. case $cross_compiling:$ac_tool_warned in
  9896. yes:)
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9898. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9899. ac_tool_warned=yes ;;
  9900. esac
  9901. CC=$ac_ct_CC
  9902. fi
  9903. else
  9904. CC="$ac_cv_prog_CC"
  9905. fi
  9906. if test -z "$CC"; then
  9907. if test -n "$ac_tool_prefix"; then
  9908. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9909. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9911. $as_echo_n "checking for $ac_word... " >&6; }
  9912. if ${ac_cv_prog_CC+:} false; then :
  9913. $as_echo_n "(cached) " >&6
  9914. else
  9915. if test -n "$CC"; then
  9916. ac_cv_prog_CC="$CC" # Let the user override the test.
  9917. else
  9918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9919. for as_dir in $PATH
  9920. do
  9921. IFS=$as_save_IFS
  9922. test -z "$as_dir" && as_dir=.
  9923. for ac_exec_ext in '' $ac_executable_extensions; do
  9924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9925. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9927. break 2
  9928. fi
  9929. done
  9930. done
  9931. IFS=$as_save_IFS
  9932. fi
  9933. fi
  9934. CC=$ac_cv_prog_CC
  9935. if test -n "$CC"; then
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9937. $as_echo "$CC" >&6; }
  9938. else
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9940. $as_echo "no" >&6; }
  9941. fi
  9942. fi
  9943. fi
  9944. if test -z "$CC"; then
  9945. # Extract the first word of "cc", so it can be a program name with args.
  9946. set dummy cc; ac_word=$2
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9948. $as_echo_n "checking for $ac_word... " >&6; }
  9949. if ${ac_cv_prog_CC+:} false; then :
  9950. $as_echo_n "(cached) " >&6
  9951. else
  9952. if test -n "$CC"; then
  9953. ac_cv_prog_CC="$CC" # Let the user override the test.
  9954. else
  9955. ac_prog_rejected=no
  9956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9957. for as_dir in $PATH
  9958. do
  9959. IFS=$as_save_IFS
  9960. test -z "$as_dir" && as_dir=.
  9961. for ac_exec_ext in '' $ac_executable_extensions; do
  9962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9963. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9964. ac_prog_rejected=yes
  9965. continue
  9966. fi
  9967. ac_cv_prog_CC="cc"
  9968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9969. break 2
  9970. fi
  9971. done
  9972. done
  9973. IFS=$as_save_IFS
  9974. if test $ac_prog_rejected = yes; then
  9975. # We found a bogon in the path, so make sure we never use it.
  9976. set dummy $ac_cv_prog_CC
  9977. shift
  9978. if test $# != 0; then
  9979. # We chose a different compiler from the bogus one.
  9980. # However, it has the same basename, so the bogon will be chosen
  9981. # first if we set CC to just the basename; use the full file name.
  9982. shift
  9983. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9984. fi
  9985. fi
  9986. fi
  9987. fi
  9988. CC=$ac_cv_prog_CC
  9989. if test -n "$CC"; then
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9991. $as_echo "$CC" >&6; }
  9992. else
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9994. $as_echo "no" >&6; }
  9995. fi
  9996. fi
  9997. if test -z "$CC"; then
  9998. if test -n "$ac_tool_prefix"; then
  9999. for ac_prog in cl.exe
  10000. do
  10001. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10002. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10004. $as_echo_n "checking for $ac_word... " >&6; }
  10005. if ${ac_cv_prog_CC+:} false; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. if test -n "$CC"; then
  10009. ac_cv_prog_CC="$CC" # Let the user override the test.
  10010. else
  10011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10012. for as_dir in $PATH
  10013. do
  10014. IFS=$as_save_IFS
  10015. test -z "$as_dir" && as_dir=.
  10016. for ac_exec_ext in '' $ac_executable_extensions; do
  10017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10018. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10020. break 2
  10021. fi
  10022. done
  10023. done
  10024. IFS=$as_save_IFS
  10025. fi
  10026. fi
  10027. CC=$ac_cv_prog_CC
  10028. if test -n "$CC"; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10030. $as_echo "$CC" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. test -n "$CC" && break
  10036. done
  10037. fi
  10038. if test -z "$CC"; then
  10039. ac_ct_CC=$CC
  10040. for ac_prog in cl.exe
  10041. do
  10042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10043. set dummy $ac_prog; ac_word=$2
  10044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10045. $as_echo_n "checking for $ac_word... " >&6; }
  10046. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10047. $as_echo_n "(cached) " >&6
  10048. else
  10049. if test -n "$ac_ct_CC"; then
  10050. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10051. else
  10052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10053. for as_dir in $PATH
  10054. do
  10055. IFS=$as_save_IFS
  10056. test -z "$as_dir" && as_dir=.
  10057. for ac_exec_ext in '' $ac_executable_extensions; do
  10058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10059. ac_cv_prog_ac_ct_CC="$ac_prog"
  10060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10061. break 2
  10062. fi
  10063. done
  10064. done
  10065. IFS=$as_save_IFS
  10066. fi
  10067. fi
  10068. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10069. if test -n "$ac_ct_CC"; then
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10071. $as_echo "$ac_ct_CC" >&6; }
  10072. else
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10074. $as_echo "no" >&6; }
  10075. fi
  10076. test -n "$ac_ct_CC" && break
  10077. done
  10078. if test "x$ac_ct_CC" = x; then
  10079. CC=""
  10080. else
  10081. case $cross_compiling:$ac_tool_warned in
  10082. yes:)
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10084. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10085. ac_tool_warned=yes ;;
  10086. esac
  10087. CC=$ac_ct_CC
  10088. fi
  10089. fi
  10090. fi
  10091. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10092. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10093. as_fn_error $? "no acceptable C compiler found in \$PATH
  10094. See \`config.log' for more details" "$LINENO" 5; }
  10095. # Provide some information about the compiler.
  10096. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10097. set X $ac_compile
  10098. ac_compiler=$2
  10099. for ac_option in --version -v -V -qversion; do
  10100. { { ac_try="$ac_compiler $ac_option >&5"
  10101. case "(($ac_try" in
  10102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10103. *) ac_try_echo=$ac_try;;
  10104. esac
  10105. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10106. $as_echo "$ac_try_echo"; } >&5
  10107. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10108. ac_status=$?
  10109. if test -s conftest.err; then
  10110. sed '10a\
  10111. ... rest of stderr output deleted ...
  10112. 10q' conftest.err >conftest.er1
  10113. cat conftest.er1 >&5
  10114. fi
  10115. rm -f conftest.er1 conftest.err
  10116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10117. test $ac_status = 0; }
  10118. done
  10119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10120. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10121. if ${ac_cv_c_compiler_gnu+:} false; then :
  10122. $as_echo_n "(cached) " >&6
  10123. else
  10124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10125. /* end confdefs.h. */
  10126. int
  10127. main ()
  10128. {
  10129. #ifndef __GNUC__
  10130. choke me
  10131. #endif
  10132. ;
  10133. return 0;
  10134. }
  10135. _ACEOF
  10136. if ac_fn_c_try_compile "$LINENO"; then :
  10137. ac_compiler_gnu=yes
  10138. else
  10139. ac_compiler_gnu=no
  10140. fi
  10141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10142. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10143. fi
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10145. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10146. if test $ac_compiler_gnu = yes; then
  10147. GCC=yes
  10148. else
  10149. GCC=
  10150. fi
  10151. ac_test_CFLAGS=${CFLAGS+set}
  10152. ac_save_CFLAGS=$CFLAGS
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10154. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10155. if ${ac_cv_prog_cc_g+:} false; then :
  10156. $as_echo_n "(cached) " >&6
  10157. else
  10158. ac_save_c_werror_flag=$ac_c_werror_flag
  10159. ac_c_werror_flag=yes
  10160. ac_cv_prog_cc_g=no
  10161. CFLAGS="-g"
  10162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10163. /* end confdefs.h. */
  10164. int
  10165. main ()
  10166. {
  10167. ;
  10168. return 0;
  10169. }
  10170. _ACEOF
  10171. if ac_fn_c_try_compile "$LINENO"; then :
  10172. ac_cv_prog_cc_g=yes
  10173. else
  10174. CFLAGS=""
  10175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10176. /* end confdefs.h. */
  10177. int
  10178. main ()
  10179. {
  10180. ;
  10181. return 0;
  10182. }
  10183. _ACEOF
  10184. if ac_fn_c_try_compile "$LINENO"; then :
  10185. else
  10186. ac_c_werror_flag=$ac_save_c_werror_flag
  10187. CFLAGS="-g"
  10188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10189. /* end confdefs.h. */
  10190. int
  10191. main ()
  10192. {
  10193. ;
  10194. return 0;
  10195. }
  10196. _ACEOF
  10197. if ac_fn_c_try_compile "$LINENO"; then :
  10198. ac_cv_prog_cc_g=yes
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10203. fi
  10204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10205. ac_c_werror_flag=$ac_save_c_werror_flag
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10208. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10209. if test "$ac_test_CFLAGS" = set; then
  10210. CFLAGS=$ac_save_CFLAGS
  10211. elif test $ac_cv_prog_cc_g = yes; then
  10212. if test "$GCC" = yes; then
  10213. CFLAGS="-g -O2"
  10214. else
  10215. CFLAGS="-g"
  10216. fi
  10217. else
  10218. if test "$GCC" = yes; then
  10219. CFLAGS="-O2"
  10220. else
  10221. CFLAGS=
  10222. fi
  10223. fi
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10225. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10226. if ${ac_cv_prog_cc_c89+:} false; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. ac_cv_prog_cc_c89=no
  10230. ac_save_CC=$CC
  10231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10232. /* end confdefs.h. */
  10233. #include <stdarg.h>
  10234. #include <stdio.h>
  10235. struct stat;
  10236. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10237. struct buf { int x; };
  10238. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10239. static char *e (p, i)
  10240. char **p;
  10241. int i;
  10242. {
  10243. return p[i];
  10244. }
  10245. static char *f (char * (*g) (char **, int), char **p, ...)
  10246. {
  10247. char *s;
  10248. va_list v;
  10249. va_start (v,p);
  10250. s = g (p, va_arg (v,int));
  10251. va_end (v);
  10252. return s;
  10253. }
  10254. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10255. function prototypes and stuff, but not '\xHH' hex character constants.
  10256. These don't provoke an error unfortunately, instead are silently treated
  10257. as 'x'. The following induces an error, until -std is added to get
  10258. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10259. array size at least. It's necessary to write '\x00'==0 to get something
  10260. that's true only with -std. */
  10261. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10262. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10263. inside strings and character constants. */
  10264. #define FOO(x) 'x'
  10265. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10266. int test (int i, double x);
  10267. struct s1 {int (*f) (int a);};
  10268. struct s2 {int (*f) (double a);};
  10269. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10270. int argc;
  10271. char **argv;
  10272. int
  10273. main ()
  10274. {
  10275. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10276. ;
  10277. return 0;
  10278. }
  10279. _ACEOF
  10280. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10281. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10282. do
  10283. CC="$ac_save_CC $ac_arg"
  10284. if ac_fn_c_try_compile "$LINENO"; then :
  10285. ac_cv_prog_cc_c89=$ac_arg
  10286. fi
  10287. rm -f core conftest.err conftest.$ac_objext
  10288. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10289. done
  10290. rm -f conftest.$ac_ext
  10291. CC=$ac_save_CC
  10292. fi
  10293. # AC_CACHE_VAL
  10294. case "x$ac_cv_prog_cc_c89" in
  10295. x)
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10297. $as_echo "none needed" >&6; } ;;
  10298. xno)
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10300. $as_echo "unsupported" >&6; } ;;
  10301. *)
  10302. CC="$CC $ac_cv_prog_cc_c89"
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10304. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10305. esac
  10306. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10307. fi
  10308. ac_ext=c
  10309. ac_cpp='$CPP $CPPFLAGS'
  10310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10313. ac_ext=cpp
  10314. ac_cpp='$CXXCPP $CPPFLAGS'
  10315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10318. if test -z "$CXX"; then
  10319. if test -n "$CCC"; then
  10320. CXX=$CCC
  10321. else
  10322. if test -n "$ac_tool_prefix"; then
  10323. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10324. do
  10325. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10326. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if ${ac_cv_prog_CXX+:} false; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$CXX"; then
  10333. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10342. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. CXX=$ac_cv_prog_CXX
  10352. if test -n "$CXX"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10354. $as_echo "$CXX" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. test -n "$CXX" && break
  10360. done
  10361. fi
  10362. if test -z "$CXX"; then
  10363. ac_ct_CXX=$CXX
  10364. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10365. do
  10366. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10367. set dummy $ac_prog; ac_word=$2
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10369. $as_echo_n "checking for $ac_word... " >&6; }
  10370. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10371. $as_echo_n "(cached) " >&6
  10372. else
  10373. if test -n "$ac_ct_CXX"; then
  10374. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10375. else
  10376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10377. for as_dir in $PATH
  10378. do
  10379. IFS=$as_save_IFS
  10380. test -z "$as_dir" && as_dir=.
  10381. for ac_exec_ext in '' $ac_executable_extensions; do
  10382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10383. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10385. break 2
  10386. fi
  10387. done
  10388. done
  10389. IFS=$as_save_IFS
  10390. fi
  10391. fi
  10392. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10393. if test -n "$ac_ct_CXX"; then
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10395. $as_echo "$ac_ct_CXX" >&6; }
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. fi
  10400. test -n "$ac_ct_CXX" && break
  10401. done
  10402. if test "x$ac_ct_CXX" = x; then
  10403. CXX="g++"
  10404. else
  10405. case $cross_compiling:$ac_tool_warned in
  10406. yes:)
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10409. ac_tool_warned=yes ;;
  10410. esac
  10411. CXX=$ac_ct_CXX
  10412. fi
  10413. fi
  10414. fi
  10415. fi
  10416. # Provide some information about the compiler.
  10417. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10418. set X $ac_compile
  10419. ac_compiler=$2
  10420. for ac_option in --version -v -V -qversion; do
  10421. { { ac_try="$ac_compiler $ac_option >&5"
  10422. case "(($ac_try" in
  10423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10424. *) ac_try_echo=$ac_try;;
  10425. esac
  10426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10427. $as_echo "$ac_try_echo"; } >&5
  10428. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10429. ac_status=$?
  10430. if test -s conftest.err; then
  10431. sed '10a\
  10432. ... rest of stderr output deleted ...
  10433. 10q' conftest.err >conftest.er1
  10434. cat conftest.er1 >&5
  10435. fi
  10436. rm -f conftest.er1 conftest.err
  10437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10438. test $ac_status = 0; }
  10439. done
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10441. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10442. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10443. $as_echo_n "(cached) " >&6
  10444. else
  10445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10446. /* end confdefs.h. */
  10447. int
  10448. main ()
  10449. {
  10450. #ifndef __GNUC__
  10451. choke me
  10452. #endif
  10453. ;
  10454. return 0;
  10455. }
  10456. _ACEOF
  10457. if ac_fn_cxx_try_compile "$LINENO"; then :
  10458. ac_compiler_gnu=yes
  10459. else
  10460. ac_compiler_gnu=no
  10461. fi
  10462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10463. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10466. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10467. if test $ac_compiler_gnu = yes; then
  10468. GXX=yes
  10469. else
  10470. GXX=
  10471. fi
  10472. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10473. ac_save_CXXFLAGS=$CXXFLAGS
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10475. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10476. if ${ac_cv_prog_cxx_g+:} false; then :
  10477. $as_echo_n "(cached) " >&6
  10478. else
  10479. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10480. ac_cxx_werror_flag=yes
  10481. ac_cv_prog_cxx_g=no
  10482. CXXFLAGS="-g"
  10483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10484. /* end confdefs.h. */
  10485. int
  10486. main ()
  10487. {
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. if ac_fn_cxx_try_compile "$LINENO"; then :
  10493. ac_cv_prog_cxx_g=yes
  10494. else
  10495. CXXFLAGS=""
  10496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10497. /* end confdefs.h. */
  10498. int
  10499. main ()
  10500. {
  10501. ;
  10502. return 0;
  10503. }
  10504. _ACEOF
  10505. if ac_fn_cxx_try_compile "$LINENO"; then :
  10506. else
  10507. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10508. CXXFLAGS="-g"
  10509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10510. /* end confdefs.h. */
  10511. int
  10512. main ()
  10513. {
  10514. ;
  10515. return 0;
  10516. }
  10517. _ACEOF
  10518. if ac_fn_cxx_try_compile "$LINENO"; then :
  10519. ac_cv_prog_cxx_g=yes
  10520. fi
  10521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10524. fi
  10525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10526. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10527. fi
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10529. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10530. if test "$ac_test_CXXFLAGS" = set; then
  10531. CXXFLAGS=$ac_save_CXXFLAGS
  10532. elif test $ac_cv_prog_cxx_g = yes; then
  10533. if test "$GXX" = yes; then
  10534. CXXFLAGS="-g -O2"
  10535. else
  10536. CXXFLAGS="-g"
  10537. fi
  10538. else
  10539. if test "$GXX" = yes; then
  10540. CXXFLAGS="-O2"
  10541. else
  10542. CXXFLAGS=
  10543. fi
  10544. fi
  10545. ac_ext=c
  10546. ac_cpp='$CPP $CPPFLAGS'
  10547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10550. func_stripname_cnf ()
  10551. {
  10552. case ${2} in
  10553. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10554. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10555. esac
  10556. } # func_stripname_cnf
  10557. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10558. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10559. (test "X$CXX" != "Xg++"))) ; then
  10560. ac_ext=cpp
  10561. ac_cpp='$CXXCPP $CPPFLAGS'
  10562. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10563. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10564. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10566. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10567. if test -z "$CXXCPP"; then
  10568. if ${ac_cv_prog_CXXCPP+:} false; then :
  10569. $as_echo_n "(cached) " >&6
  10570. else
  10571. # Double quotes because CXXCPP needs to be expanded
  10572. for CXXCPP in "$CXX -E" "/lib/cpp"
  10573. do
  10574. ac_preproc_ok=false
  10575. for ac_cxx_preproc_warn_flag in '' yes
  10576. do
  10577. # Use a header file that comes with gcc, so configuring glibc
  10578. # with a fresh cross-compiler works.
  10579. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10580. # <limits.h> exists even on freestanding compilers.
  10581. # On the NeXT, cc -E runs the code through the compiler's parser,
  10582. # not just through cpp. "Syntax error" is here to catch this case.
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. #ifdef __STDC__
  10586. # include <limits.h>
  10587. #else
  10588. # include <assert.h>
  10589. #endif
  10590. Syntax error
  10591. _ACEOF
  10592. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10593. else
  10594. # Broken: fails on valid input.
  10595. continue
  10596. fi
  10597. rm -f conftest.err conftest.i conftest.$ac_ext
  10598. # OK, works on sane cases. Now check whether nonexistent headers
  10599. # can be detected and how.
  10600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10601. /* end confdefs.h. */
  10602. #include <ac_nonexistent.h>
  10603. _ACEOF
  10604. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10605. # Broken: success on invalid input.
  10606. continue
  10607. else
  10608. # Passes both tests.
  10609. ac_preproc_ok=:
  10610. break
  10611. fi
  10612. rm -f conftest.err conftest.i conftest.$ac_ext
  10613. done
  10614. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10615. rm -f conftest.i conftest.err conftest.$ac_ext
  10616. if $ac_preproc_ok; then :
  10617. break
  10618. fi
  10619. done
  10620. ac_cv_prog_CXXCPP=$CXXCPP
  10621. fi
  10622. CXXCPP=$ac_cv_prog_CXXCPP
  10623. else
  10624. ac_cv_prog_CXXCPP=$CXXCPP
  10625. fi
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10627. $as_echo "$CXXCPP" >&6; }
  10628. ac_preproc_ok=false
  10629. for ac_cxx_preproc_warn_flag in '' yes
  10630. do
  10631. # Use a header file that comes with gcc, so configuring glibc
  10632. # with a fresh cross-compiler works.
  10633. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10634. # <limits.h> exists even on freestanding compilers.
  10635. # On the NeXT, cc -E runs the code through the compiler's parser,
  10636. # not just through cpp. "Syntax error" is here to catch this case.
  10637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10638. /* end confdefs.h. */
  10639. #ifdef __STDC__
  10640. # include <limits.h>
  10641. #else
  10642. # include <assert.h>
  10643. #endif
  10644. Syntax error
  10645. _ACEOF
  10646. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10647. else
  10648. # Broken: fails on valid input.
  10649. continue
  10650. fi
  10651. rm -f conftest.err conftest.i conftest.$ac_ext
  10652. # OK, works on sane cases. Now check whether nonexistent headers
  10653. # can be detected and how.
  10654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10655. /* end confdefs.h. */
  10656. #include <ac_nonexistent.h>
  10657. _ACEOF
  10658. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10659. # Broken: success on invalid input.
  10660. continue
  10661. else
  10662. # Passes both tests.
  10663. ac_preproc_ok=:
  10664. break
  10665. fi
  10666. rm -f conftest.err conftest.i conftest.$ac_ext
  10667. done
  10668. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10669. rm -f conftest.i conftest.err conftest.$ac_ext
  10670. if $ac_preproc_ok; then :
  10671. else
  10672. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10673. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10674. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10675. See \`config.log' for more details" "$LINENO" 5; }
  10676. fi
  10677. ac_ext=c
  10678. ac_cpp='$CPP $CPPFLAGS'
  10679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10682. else
  10683. _lt_caught_CXX_error=yes
  10684. fi
  10685. ac_ext=cpp
  10686. ac_cpp='$CXXCPP $CPPFLAGS'
  10687. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10688. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10689. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10690. archive_cmds_need_lc_CXX=no
  10691. allow_undefined_flag_CXX=
  10692. always_export_symbols_CXX=no
  10693. archive_expsym_cmds_CXX=
  10694. compiler_needs_object_CXX=no
  10695. export_dynamic_flag_spec_CXX=
  10696. hardcode_direct_CXX=no
  10697. hardcode_direct_absolute_CXX=no
  10698. hardcode_libdir_flag_spec_CXX=
  10699. hardcode_libdir_separator_CXX=
  10700. hardcode_minus_L_CXX=no
  10701. hardcode_shlibpath_var_CXX=unsupported
  10702. hardcode_automatic_CXX=no
  10703. inherit_rpath_CXX=no
  10704. module_cmds_CXX=
  10705. module_expsym_cmds_CXX=
  10706. link_all_deplibs_CXX=unknown
  10707. old_archive_cmds_CXX=$old_archive_cmds
  10708. reload_flag_CXX=$reload_flag
  10709. reload_cmds_CXX=$reload_cmds
  10710. no_undefined_flag_CXX=
  10711. whole_archive_flag_spec_CXX=
  10712. enable_shared_with_static_runtimes_CXX=no
  10713. # Source file extension for C++ test sources.
  10714. ac_ext=cpp
  10715. # Object file extension for compiled C++ test sources.
  10716. objext=o
  10717. objext_CXX=$objext
  10718. # No sense in running all these tests if we already determined that
  10719. # the CXX compiler isn't working. Some variables (like enable_shared)
  10720. # are currently assumed to apply to all compilers on this platform,
  10721. # and will be corrupted by setting them based on a non-working compiler.
  10722. if test "$_lt_caught_CXX_error" != yes; then
  10723. # Code to be used in simple compile tests
  10724. lt_simple_compile_test_code="int some_variable = 0;"
  10725. # Code to be used in simple link tests
  10726. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10727. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10728. # If no C compiler was specified, use CC.
  10729. LTCC=${LTCC-"$CC"}
  10730. # If no C compiler flags were specified, use CFLAGS.
  10731. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10732. # Allow CC to be a program name with arguments.
  10733. compiler=$CC
  10734. # save warnings/boilerplate of simple test code
  10735. ac_outfile=conftest.$ac_objext
  10736. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10737. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10738. _lt_compiler_boilerplate=`cat conftest.err`
  10739. $RM conftest*
  10740. ac_outfile=conftest.$ac_objext
  10741. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10742. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10743. _lt_linker_boilerplate=`cat conftest.err`
  10744. $RM -r conftest*
  10745. # Allow CC to be a program name with arguments.
  10746. lt_save_CC=$CC
  10747. lt_save_CFLAGS=$CFLAGS
  10748. lt_save_LD=$LD
  10749. lt_save_GCC=$GCC
  10750. GCC=$GXX
  10751. lt_save_with_gnu_ld=$with_gnu_ld
  10752. lt_save_path_LD=$lt_cv_path_LD
  10753. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10754. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10755. else
  10756. $as_unset lt_cv_prog_gnu_ld
  10757. fi
  10758. if test -n "${lt_cv_path_LDCXX+set}"; then
  10759. lt_cv_path_LD=$lt_cv_path_LDCXX
  10760. else
  10761. $as_unset lt_cv_path_LD
  10762. fi
  10763. test -z "${LDCXX+set}" || LD=$LDCXX
  10764. CC=${CXX-"c++"}
  10765. CFLAGS=$CXXFLAGS
  10766. compiler=$CC
  10767. compiler_CXX=$CC
  10768. for cc_temp in $compiler""; do
  10769. case $cc_temp in
  10770. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10771. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10772. \-*) ;;
  10773. *) break;;
  10774. esac
  10775. done
  10776. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10777. if test -n "$compiler"; then
  10778. # We don't want -fno-exception when compiling C++ code, so set the
  10779. # no_builtin_flag separately
  10780. if test "$GXX" = yes; then
  10781. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10782. else
  10783. lt_prog_compiler_no_builtin_flag_CXX=
  10784. fi
  10785. if test "$GXX" = yes; then
  10786. # Set up default GNU C++ configuration
  10787. # Check whether --with-gnu-ld was given.
  10788. if test "${with_gnu_ld+set}" = set; then :
  10789. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10790. else
  10791. with_gnu_ld=no
  10792. fi
  10793. ac_prog=ld
  10794. if test "$GCC" = yes; then
  10795. # Check if gcc -print-prog-name=ld gives a path.
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10797. $as_echo_n "checking for ld used by $CC... " >&6; }
  10798. case $host in
  10799. *-*-mingw*)
  10800. # gcc leaves a trailing carriage return which upsets mingw
  10801. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10802. *)
  10803. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10804. esac
  10805. case $ac_prog in
  10806. # Accept absolute paths.
  10807. [\\/]* | ?:[\\/]*)
  10808. re_direlt='/[^/][^/]*/\.\./'
  10809. # Canonicalize the pathname of ld
  10810. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10811. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10812. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10813. done
  10814. test -z "$LD" && LD="$ac_prog"
  10815. ;;
  10816. "")
  10817. # If it fails, then pretend we aren't using GCC.
  10818. ac_prog=ld
  10819. ;;
  10820. *)
  10821. # If it is relative, then search for the first ld in PATH.
  10822. with_gnu_ld=unknown
  10823. ;;
  10824. esac
  10825. elif test "$with_gnu_ld" = yes; then
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10827. $as_echo_n "checking for GNU ld... " >&6; }
  10828. else
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10830. $as_echo_n "checking for non-GNU ld... " >&6; }
  10831. fi
  10832. if ${lt_cv_path_LD+:} false; then :
  10833. $as_echo_n "(cached) " >&6
  10834. else
  10835. if test -z "$LD"; then
  10836. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10837. for ac_dir in $PATH; do
  10838. IFS="$lt_save_ifs"
  10839. test -z "$ac_dir" && ac_dir=.
  10840. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10841. lt_cv_path_LD="$ac_dir/$ac_prog"
  10842. # Check to see if the program is GNU ld. I'd rather use --version,
  10843. # but apparently some variants of GNU ld only accept -v.
  10844. # Break only if it was the GNU/non-GNU ld that we prefer.
  10845. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10846. *GNU* | *'with BFD'*)
  10847. test "$with_gnu_ld" != no && break
  10848. ;;
  10849. *)
  10850. test "$with_gnu_ld" != yes && break
  10851. ;;
  10852. esac
  10853. fi
  10854. done
  10855. IFS="$lt_save_ifs"
  10856. else
  10857. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10858. fi
  10859. fi
  10860. LD="$lt_cv_path_LD"
  10861. if test -n "$LD"; then
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10863. $as_echo "$LD" >&6; }
  10864. else
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10866. $as_echo "no" >&6; }
  10867. fi
  10868. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10870. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10871. if ${lt_cv_prog_gnu_ld+:} false; then :
  10872. $as_echo_n "(cached) " >&6
  10873. else
  10874. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10875. case `$LD -v 2>&1 </dev/null` in
  10876. *GNU* | *'with BFD'*)
  10877. lt_cv_prog_gnu_ld=yes
  10878. ;;
  10879. *)
  10880. lt_cv_prog_gnu_ld=no
  10881. ;;
  10882. esac
  10883. fi
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10885. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10886. with_gnu_ld=$lt_cv_prog_gnu_ld
  10887. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10888. # archiving commands below assume that GNU ld is being used.
  10889. if test "$with_gnu_ld" = yes; then
  10890. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10891. 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'
  10892. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10893. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10894. # If archive_cmds runs LD, not CC, wlarc should be empty
  10895. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10896. # investigate it a little bit more. (MM)
  10897. wlarc='${wl}'
  10898. # ancient GNU ld didn't support --whole-archive et. al.
  10899. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10900. $GREP 'no-whole-archive' > /dev/null; then
  10901. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10902. else
  10903. whole_archive_flag_spec_CXX=
  10904. fi
  10905. else
  10906. with_gnu_ld=no
  10907. wlarc=
  10908. # A generic and very simple default shared library creation
  10909. # command for GNU C++ for the case where it uses the native
  10910. # linker, instead of GNU ld. If possible, this setting should
  10911. # overridden to take advantage of the native linker features on
  10912. # the platform it is being used on.
  10913. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10914. fi
  10915. # Commands to make compiler produce verbose output that lists
  10916. # what "hidden" libraries, object files and flags are used when
  10917. # linking a shared library.
  10918. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10919. else
  10920. GXX=no
  10921. with_gnu_ld=no
  10922. wlarc=
  10923. fi
  10924. # PORTME: fill in a description of your system's C++ link characteristics
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10926. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10927. ld_shlibs_CXX=yes
  10928. case $host_os in
  10929. aix3*)
  10930. # FIXME: insert proper C++ library support
  10931. ld_shlibs_CXX=no
  10932. ;;
  10933. aix[4-9]*)
  10934. if test "$host_cpu" = ia64; then
  10935. # On IA64, the linker does run time linking by default, so we don't
  10936. # have to do anything special.
  10937. aix_use_runtimelinking=no
  10938. exp_sym_flag='-Bexport'
  10939. no_entry_flag=""
  10940. else
  10941. aix_use_runtimelinking=no
  10942. # Test if we are trying to use run time linking or normal
  10943. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10944. # need to do runtime linking.
  10945. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10946. for ld_flag in $LDFLAGS; do
  10947. case $ld_flag in
  10948. *-brtl*)
  10949. aix_use_runtimelinking=yes
  10950. break
  10951. ;;
  10952. esac
  10953. done
  10954. ;;
  10955. esac
  10956. exp_sym_flag='-bexport'
  10957. no_entry_flag='-bnoentry'
  10958. fi
  10959. # When large executables or shared objects are built, AIX ld can
  10960. # have problems creating the table of contents. If linking a library
  10961. # or program results in "error TOC overflow" add -mminimal-toc to
  10962. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10963. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10964. archive_cmds_CXX=''
  10965. hardcode_direct_CXX=yes
  10966. hardcode_direct_absolute_CXX=yes
  10967. hardcode_libdir_separator_CXX=':'
  10968. link_all_deplibs_CXX=yes
  10969. file_list_spec_CXX='${wl}-f,'
  10970. if test "$GXX" = yes; then
  10971. case $host_os in aix4.[012]|aix4.[012].*)
  10972. # We only want to do this on AIX 4.2 and lower, the check
  10973. # below for broken collect2 doesn't work under 4.3+
  10974. collect2name=`${CC} -print-prog-name=collect2`
  10975. if test -f "$collect2name" &&
  10976. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10977. then
  10978. # We have reworked collect2
  10979. :
  10980. else
  10981. # We have old collect2
  10982. hardcode_direct_CXX=unsupported
  10983. # It fails to find uninstalled libraries when the uninstalled
  10984. # path is not listed in the libpath. Setting hardcode_minus_L
  10985. # to unsupported forces relinking
  10986. hardcode_minus_L_CXX=yes
  10987. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10988. hardcode_libdir_separator_CXX=
  10989. fi
  10990. esac
  10991. shared_flag='-shared'
  10992. if test "$aix_use_runtimelinking" = yes; then
  10993. shared_flag="$shared_flag "'${wl}-G'
  10994. fi
  10995. else
  10996. # not using gcc
  10997. if test "$host_cpu" = ia64; then
  10998. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10999. # chokes on -Wl,-G. The following line is correct:
  11000. shared_flag='-G'
  11001. else
  11002. if test "$aix_use_runtimelinking" = yes; then
  11003. shared_flag='${wl}-G'
  11004. else
  11005. shared_flag='${wl}-bM:SRE'
  11006. fi
  11007. fi
  11008. fi
  11009. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11010. # It seems that -bexpall does not export symbols beginning with
  11011. # underscore (_), so it is better to generate a list of symbols to
  11012. # export.
  11013. always_export_symbols_CXX=yes
  11014. if test "$aix_use_runtimelinking" = yes; then
  11015. # Warning - without using the other runtime loading flags (-brtl),
  11016. # -berok will link without error, but may produce a broken library.
  11017. allow_undefined_flag_CXX='-berok'
  11018. # Determine the default libpath from the value encoded in an empty
  11019. # executable.
  11020. if test "${lt_cv_aix_libpath+set}" = set; then
  11021. aix_libpath=$lt_cv_aix_libpath
  11022. else
  11023. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11024. $as_echo_n "(cached) " >&6
  11025. else
  11026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11027. /* end confdefs.h. */
  11028. int
  11029. main ()
  11030. {
  11031. ;
  11032. return 0;
  11033. }
  11034. _ACEOF
  11035. if ac_fn_cxx_try_link "$LINENO"; then :
  11036. lt_aix_libpath_sed='
  11037. /Import File Strings/,/^$/ {
  11038. /^0/ {
  11039. s/^0 *\([^ ]*\) *$/\1/
  11040. p
  11041. }
  11042. }'
  11043. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11044. # Check for a 64-bit object if we didn't find anything.
  11045. if test -z "$lt_cv_aix_libpath__CXX"; then
  11046. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11047. fi
  11048. fi
  11049. rm -f core conftest.err conftest.$ac_objext \
  11050. conftest$ac_exeext conftest.$ac_ext
  11051. if test -z "$lt_cv_aix_libpath__CXX"; then
  11052. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11053. fi
  11054. fi
  11055. aix_libpath=$lt_cv_aix_libpath__CXX
  11056. fi
  11057. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11058. 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"
  11059. else
  11060. if test "$host_cpu" = ia64; then
  11061. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11062. allow_undefined_flag_CXX="-z nodefs"
  11063. 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"
  11064. else
  11065. # Determine the default libpath from the value encoded in an
  11066. # empty executable.
  11067. if test "${lt_cv_aix_libpath+set}" = set; then
  11068. aix_libpath=$lt_cv_aix_libpath
  11069. else
  11070. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11074. /* end confdefs.h. */
  11075. int
  11076. main ()
  11077. {
  11078. ;
  11079. return 0;
  11080. }
  11081. _ACEOF
  11082. if ac_fn_cxx_try_link "$LINENO"; then :
  11083. lt_aix_libpath_sed='
  11084. /Import File Strings/,/^$/ {
  11085. /^0/ {
  11086. s/^0 *\([^ ]*\) *$/\1/
  11087. p
  11088. }
  11089. }'
  11090. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11091. # Check for a 64-bit object if we didn't find anything.
  11092. if test -z "$lt_cv_aix_libpath__CXX"; then
  11093. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11094. fi
  11095. fi
  11096. rm -f core conftest.err conftest.$ac_objext \
  11097. conftest$ac_exeext conftest.$ac_ext
  11098. if test -z "$lt_cv_aix_libpath__CXX"; then
  11099. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11100. fi
  11101. fi
  11102. aix_libpath=$lt_cv_aix_libpath__CXX
  11103. fi
  11104. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11105. # Warning - without using the other run time loading flags,
  11106. # -berok will link without error, but may produce a broken library.
  11107. no_undefined_flag_CXX=' ${wl}-bernotok'
  11108. allow_undefined_flag_CXX=' ${wl}-berok'
  11109. if test "$with_gnu_ld" = yes; then
  11110. # We only use this code for GNU lds that support --whole-archive.
  11111. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11112. else
  11113. # Exported symbols can be pulled into shared objects from archives
  11114. whole_archive_flag_spec_CXX='$convenience'
  11115. fi
  11116. archive_cmds_need_lc_CXX=yes
  11117. # This is similar to how AIX traditionally builds its shared
  11118. # libraries.
  11119. 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'
  11120. fi
  11121. fi
  11122. ;;
  11123. beos*)
  11124. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11125. allow_undefined_flag_CXX=unsupported
  11126. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11127. # support --undefined. This deserves some investigation. FIXME
  11128. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11129. else
  11130. ld_shlibs_CXX=no
  11131. fi
  11132. ;;
  11133. chorus*)
  11134. case $cc_basename in
  11135. *)
  11136. # FIXME: insert proper C++ library support
  11137. ld_shlibs_CXX=no
  11138. ;;
  11139. esac
  11140. ;;
  11141. cygwin* | mingw* | pw32* | cegcc*)
  11142. case $GXX,$cc_basename in
  11143. ,cl* | no,cl*)
  11144. # Native MSVC
  11145. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11146. # no search path for DLLs.
  11147. hardcode_libdir_flag_spec_CXX=' '
  11148. allow_undefined_flag_CXX=unsupported
  11149. always_export_symbols_CXX=yes
  11150. file_list_spec_CXX='@'
  11151. # Tell ltmain to make .lib files, not .a files.
  11152. libext=lib
  11153. # Tell ltmain to make .dll files, not .so files.
  11154. shrext_cmds=".dll"
  11155. # FIXME: Setting linknames here is a bad hack.
  11156. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11157. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11158. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11159. else
  11160. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11161. fi~
  11162. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11163. linknames='
  11164. # The linker will not automatically build a static lib if we build a DLL.
  11165. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11166. enable_shared_with_static_runtimes_CXX=yes
  11167. # Don't use ranlib
  11168. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11169. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11170. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11171. case $lt_outputfile in
  11172. *.exe|*.EXE) ;;
  11173. *)
  11174. lt_outputfile="$lt_outputfile.exe"
  11175. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11176. ;;
  11177. esac~
  11178. func_to_tool_file "$lt_outputfile"~
  11179. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11180. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11181. $RM "$lt_outputfile.manifest";
  11182. fi'
  11183. ;;
  11184. *)
  11185. # g++
  11186. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11187. # as there is no search path for DLLs.
  11188. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11189. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11190. allow_undefined_flag_CXX=unsupported
  11191. always_export_symbols_CXX=no
  11192. enable_shared_with_static_runtimes_CXX=yes
  11193. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11194. 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'
  11195. # If the export-symbols file already is a .def file (1st line
  11196. # is EXPORTS), use it as is; otherwise, prepend...
  11197. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11198. cp $export_symbols $output_objdir/$soname.def;
  11199. else
  11200. echo EXPORTS > $output_objdir/$soname.def;
  11201. cat $export_symbols >> $output_objdir/$soname.def;
  11202. fi~
  11203. $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'
  11204. else
  11205. ld_shlibs_CXX=no
  11206. fi
  11207. ;;
  11208. esac
  11209. ;;
  11210. darwin* | rhapsody*)
  11211. archive_cmds_need_lc_CXX=no
  11212. hardcode_direct_CXX=no
  11213. hardcode_automatic_CXX=yes
  11214. hardcode_shlibpath_var_CXX=unsupported
  11215. if test "$lt_cv_ld_force_load" = "yes"; then
  11216. 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\"`'
  11217. else
  11218. whole_archive_flag_spec_CXX=''
  11219. fi
  11220. link_all_deplibs_CXX=yes
  11221. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11222. case $cc_basename in
  11223. ifort*) _lt_dar_can_shared=yes ;;
  11224. *) _lt_dar_can_shared=$GCC ;;
  11225. esac
  11226. if test "$_lt_dar_can_shared" = "yes"; then
  11227. output_verbose_link_cmd=func_echo_all
  11228. 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}"
  11229. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11230. 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}"
  11231. 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}"
  11232. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11233. 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}"
  11234. 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}"
  11235. fi
  11236. else
  11237. ld_shlibs_CXX=no
  11238. fi
  11239. ;;
  11240. dgux*)
  11241. case $cc_basename in
  11242. ec++*)
  11243. # FIXME: insert proper C++ library support
  11244. ld_shlibs_CXX=no
  11245. ;;
  11246. ghcx*)
  11247. # Green Hills C++ Compiler
  11248. # FIXME: insert proper C++ library support
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. *)
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. esac
  11256. ;;
  11257. freebsd2.*)
  11258. # C++ shared libraries reported to be fairly broken before
  11259. # switch to ELF
  11260. ld_shlibs_CXX=no
  11261. ;;
  11262. freebsd-elf*)
  11263. archive_cmds_need_lc_CXX=no
  11264. ;;
  11265. freebsd* | dragonfly*)
  11266. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11267. # conventions
  11268. ld_shlibs_CXX=yes
  11269. ;;
  11270. gnu*)
  11271. ;;
  11272. haiku*)
  11273. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11274. link_all_deplibs_CXX=yes
  11275. ;;
  11276. hpux9*)
  11277. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11278. hardcode_libdir_separator_CXX=:
  11279. export_dynamic_flag_spec_CXX='${wl}-E'
  11280. hardcode_direct_CXX=yes
  11281. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11282. # but as the default
  11283. # location of the library.
  11284. case $cc_basename in
  11285. CC*)
  11286. # FIXME: insert proper C++ library support
  11287. ld_shlibs_CXX=no
  11288. ;;
  11289. aCC*)
  11290. 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'
  11291. # Commands to make compiler produce verbose output that lists
  11292. # what "hidden" libraries, object files and flags are used when
  11293. # linking a shared library.
  11294. #
  11295. # There doesn't appear to be a way to prevent this compiler from
  11296. # explicitly linking system object files so we need to strip them
  11297. # from the output so that they don't get included in the library
  11298. # dependencies.
  11299. 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"'
  11300. ;;
  11301. *)
  11302. if test "$GXX" = yes; then
  11303. 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'
  11304. else
  11305. # FIXME: insert proper C++ library support
  11306. ld_shlibs_CXX=no
  11307. fi
  11308. ;;
  11309. esac
  11310. ;;
  11311. hpux10*|hpux11*)
  11312. if test $with_gnu_ld = no; then
  11313. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11314. hardcode_libdir_separator_CXX=:
  11315. case $host_cpu in
  11316. hppa*64*|ia64*)
  11317. ;;
  11318. *)
  11319. export_dynamic_flag_spec_CXX='${wl}-E'
  11320. ;;
  11321. esac
  11322. fi
  11323. case $host_cpu in
  11324. hppa*64*|ia64*)
  11325. hardcode_direct_CXX=no
  11326. hardcode_shlibpath_var_CXX=no
  11327. ;;
  11328. *)
  11329. hardcode_direct_CXX=yes
  11330. hardcode_direct_absolute_CXX=yes
  11331. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11332. # but as the default
  11333. # location of the library.
  11334. ;;
  11335. esac
  11336. case $cc_basename in
  11337. CC*)
  11338. # FIXME: insert proper C++ library support
  11339. ld_shlibs_CXX=no
  11340. ;;
  11341. aCC*)
  11342. case $host_cpu in
  11343. hppa*64*)
  11344. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11345. ;;
  11346. ia64*)
  11347. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11348. ;;
  11349. *)
  11350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11351. ;;
  11352. esac
  11353. # Commands to make compiler produce verbose output that lists
  11354. # what "hidden" libraries, object files and flags are used when
  11355. # linking a shared library.
  11356. #
  11357. # There doesn't appear to be a way to prevent this compiler from
  11358. # explicitly linking system object files so we need to strip them
  11359. # from the output so that they don't get included in the library
  11360. # dependencies.
  11361. 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"'
  11362. ;;
  11363. *)
  11364. if test "$GXX" = yes; then
  11365. if test $with_gnu_ld = no; then
  11366. case $host_cpu in
  11367. hppa*64*)
  11368. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11369. ;;
  11370. ia64*)
  11371. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11372. ;;
  11373. *)
  11374. 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'
  11375. ;;
  11376. esac
  11377. fi
  11378. else
  11379. # FIXME: insert proper C++ library support
  11380. ld_shlibs_CXX=no
  11381. fi
  11382. ;;
  11383. esac
  11384. ;;
  11385. interix[3-9]*)
  11386. hardcode_direct_CXX=no
  11387. hardcode_shlibpath_var_CXX=no
  11388. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11389. export_dynamic_flag_spec_CXX='${wl}-E'
  11390. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11391. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11392. # default) and relocated if they conflict, which is a slow very memory
  11393. # consuming and fragmenting process. To avoid this, we pick a random,
  11394. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11395. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11396. 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'
  11397. 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'
  11398. ;;
  11399. irix5* | irix6*)
  11400. case $cc_basename in
  11401. CC*)
  11402. # SGI C++
  11403. 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'
  11404. # Archives containing C++ object files must be created using
  11405. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11406. # necessary to make sure instantiated templates are included
  11407. # in the archive.
  11408. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11409. ;;
  11410. *)
  11411. if test "$GXX" = yes; then
  11412. if test "$with_gnu_ld" = no; then
  11413. 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'
  11414. else
  11415. 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'
  11416. fi
  11417. fi
  11418. link_all_deplibs_CXX=yes
  11419. ;;
  11420. esac
  11421. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11422. hardcode_libdir_separator_CXX=:
  11423. inherit_rpath_CXX=yes
  11424. ;;
  11425. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11426. case $cc_basename in
  11427. KCC*)
  11428. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11429. # KCC will only create a shared library if the output file
  11430. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11431. # to its proper name (with version) after linking.
  11432. 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'
  11433. 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'
  11434. # Commands to make compiler produce verbose output that lists
  11435. # what "hidden" libraries, object files and flags are used when
  11436. # linking a shared library.
  11437. #
  11438. # There doesn't appear to be a way to prevent this compiler from
  11439. # explicitly linking system object files so we need to strip them
  11440. # from the output so that they don't get included in the library
  11441. # dependencies.
  11442. 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"'
  11443. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11444. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11445. # Archives containing C++ object files must be created using
  11446. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11447. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11448. ;;
  11449. icpc* | ecpc* )
  11450. # Intel C++
  11451. with_gnu_ld=yes
  11452. # version 8.0 and above of icpc choke on multiply defined symbols
  11453. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11454. # earlier do not add the objects themselves.
  11455. case `$CC -V 2>&1` in
  11456. *"Version 7."*)
  11457. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11458. 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'
  11459. ;;
  11460. *) # Version 8.0 or newer
  11461. tmp_idyn=
  11462. case $host_cpu in
  11463. ia64*) tmp_idyn=' -i_dynamic';;
  11464. esac
  11465. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11466. 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'
  11467. ;;
  11468. esac
  11469. archive_cmds_need_lc_CXX=no
  11470. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11471. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11472. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11473. ;;
  11474. pgCC* | pgcpp*)
  11475. # Portland Group C++ compiler
  11476. case `$CC -V` in
  11477. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11478. prelink_cmds_CXX='tpldir=Template.dir~
  11479. rm -rf $tpldir~
  11480. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11481. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11482. old_archive_cmds_CXX='tpldir=Template.dir~
  11483. rm -rf $tpldir~
  11484. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11485. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11486. $RANLIB $oldlib'
  11487. archive_cmds_CXX='tpldir=Template.dir~
  11488. rm -rf $tpldir~
  11489. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11490. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11491. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11492. rm -rf $tpldir~
  11493. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11494. $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'
  11495. ;;
  11496. *) # Version 6 and above use weak symbols
  11497. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11498. 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'
  11499. ;;
  11500. esac
  11501. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11502. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11503. 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'
  11504. ;;
  11505. cxx*)
  11506. # Compaq C++
  11507. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11508. 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'
  11509. runpath_var=LD_RUN_PATH
  11510. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11511. hardcode_libdir_separator_CXX=:
  11512. # Commands to make compiler produce verbose output that lists
  11513. # what "hidden" libraries, object files and flags are used when
  11514. # linking a shared library.
  11515. #
  11516. # There doesn't appear to be a way to prevent this compiler from
  11517. # explicitly linking system object files so we need to strip them
  11518. # from the output so that they don't get included in the library
  11519. # dependencies.
  11520. 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'
  11521. ;;
  11522. xl* | mpixl* | bgxl*)
  11523. # IBM XL 8.0 on PPC, with GNU ld
  11524. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11525. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11526. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11527. if test "x$supports_anon_versioning" = xyes; then
  11528. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11529. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11530. echo "local: *; };" >> $output_objdir/$libname.ver~
  11531. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11532. fi
  11533. ;;
  11534. *)
  11535. case `$CC -V 2>&1 | sed 5q` in
  11536. *Sun\ C*)
  11537. # Sun C++ 5.9
  11538. no_undefined_flag_CXX=' -zdefs'
  11539. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11540. 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'
  11541. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11542. 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'
  11543. compiler_needs_object_CXX=yes
  11544. # Not sure whether something based on
  11545. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11546. # would be better.
  11547. output_verbose_link_cmd='func_echo_all'
  11548. # Archives containing C++ object files must be created using
  11549. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11550. # necessary to make sure instantiated templates are included
  11551. # in the archive.
  11552. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11553. ;;
  11554. esac
  11555. ;;
  11556. esac
  11557. ;;
  11558. lynxos*)
  11559. # FIXME: insert proper C++ library support
  11560. ld_shlibs_CXX=no
  11561. ;;
  11562. m88k*)
  11563. # FIXME: insert proper C++ library support
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. mvs*)
  11567. case $cc_basename in
  11568. cxx*)
  11569. # FIXME: insert proper C++ library support
  11570. ld_shlibs_CXX=no
  11571. ;;
  11572. *)
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. ;;
  11576. esac
  11577. ;;
  11578. netbsd*)
  11579. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11580. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11581. wlarc=
  11582. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11583. hardcode_direct_CXX=yes
  11584. hardcode_shlibpath_var_CXX=no
  11585. fi
  11586. # Workaround some broken pre-1.5 toolchains
  11587. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11588. ;;
  11589. *nto* | *qnx*)
  11590. ld_shlibs_CXX=yes
  11591. ;;
  11592. openbsd2*)
  11593. # C++ shared libraries are fairly broken
  11594. ld_shlibs_CXX=no
  11595. ;;
  11596. openbsd*)
  11597. if test -f /usr/libexec/ld.so; then
  11598. hardcode_direct_CXX=yes
  11599. hardcode_shlibpath_var_CXX=no
  11600. hardcode_direct_absolute_CXX=yes
  11601. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11602. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11603. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11604. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11605. export_dynamic_flag_spec_CXX='${wl}-E'
  11606. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11607. fi
  11608. output_verbose_link_cmd=func_echo_all
  11609. else
  11610. ld_shlibs_CXX=no
  11611. fi
  11612. ;;
  11613. osf3* | osf4* | osf5*)
  11614. case $cc_basename in
  11615. KCC*)
  11616. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11617. # KCC will only create a shared library if the output file
  11618. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11619. # to its proper name (with version) after linking.
  11620. 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'
  11621. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11622. hardcode_libdir_separator_CXX=:
  11623. # Archives containing C++ object files must be created using
  11624. # the KAI C++ compiler.
  11625. case $host in
  11626. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11627. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11628. esac
  11629. ;;
  11630. RCC*)
  11631. # Rational C++ 2.4.1
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. ;;
  11635. cxx*)
  11636. case $host in
  11637. osf3*)
  11638. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11639. 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'
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11641. ;;
  11642. *)
  11643. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11644. 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'
  11645. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11646. echo "-hidden">> $lib.exp~
  11647. $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~
  11648. $RM $lib.exp'
  11649. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11650. ;;
  11651. esac
  11652. hardcode_libdir_separator_CXX=:
  11653. # Commands to make compiler produce verbose output that lists
  11654. # what "hidden" libraries, object files and flags are used when
  11655. # linking a shared library.
  11656. #
  11657. # There doesn't appear to be a way to prevent this compiler from
  11658. # explicitly linking system object files so we need to strip them
  11659. # from the output so that they don't get included in the library
  11660. # dependencies.
  11661. 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"'
  11662. ;;
  11663. *)
  11664. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11665. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11666. case $host in
  11667. osf3*)
  11668. 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'
  11669. ;;
  11670. *)
  11671. 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'
  11672. ;;
  11673. esac
  11674. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11675. hardcode_libdir_separator_CXX=:
  11676. # Commands to make compiler produce verbose output that lists
  11677. # what "hidden" libraries, object files and flags are used when
  11678. # linking a shared library.
  11679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11680. else
  11681. # FIXME: insert proper C++ library support
  11682. ld_shlibs_CXX=no
  11683. fi
  11684. ;;
  11685. esac
  11686. ;;
  11687. psos*)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. sunos4*)
  11692. case $cc_basename in
  11693. CC*)
  11694. # Sun C++ 4.x
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. lcc*)
  11699. # Lucid
  11700. # FIXME: insert proper C++ library support
  11701. ld_shlibs_CXX=no
  11702. ;;
  11703. *)
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. ;;
  11707. esac
  11708. ;;
  11709. solaris*)
  11710. case $cc_basename in
  11711. CC* | sunCC*)
  11712. # Sun C++ 4.2, 5.x and Centerline C++
  11713. archive_cmds_need_lc_CXX=yes
  11714. no_undefined_flag_CXX=' -zdefs'
  11715. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11716. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11717. $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'
  11718. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11719. hardcode_shlibpath_var_CXX=no
  11720. case $host_os in
  11721. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11722. *)
  11723. # The compiler driver will combine and reorder linker options,
  11724. # but understands `-z linker_flag'.
  11725. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11726. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11727. ;;
  11728. esac
  11729. link_all_deplibs_CXX=yes
  11730. output_verbose_link_cmd='func_echo_all'
  11731. # Archives containing C++ object files must be created using
  11732. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11733. # necessary to make sure instantiated templates are included
  11734. # in the archive.
  11735. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11736. ;;
  11737. gcx*)
  11738. # Green Hills C++ Compiler
  11739. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11740. # The C++ compiler must be used to create the archive.
  11741. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11742. ;;
  11743. *)
  11744. # GNU C++ compiler with Solaris linker
  11745. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11746. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11747. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11748. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11749. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11750. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11751. # Commands to make compiler produce verbose output that lists
  11752. # what "hidden" libraries, object files and flags are used when
  11753. # linking a shared library.
  11754. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11755. else
  11756. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11757. # platform.
  11758. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11759. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11760. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11761. # Commands to make compiler produce verbose output that lists
  11762. # what "hidden" libraries, object files and flags are used when
  11763. # linking a shared library.
  11764. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11765. fi
  11766. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11767. case $host_os in
  11768. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11769. *)
  11770. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11771. ;;
  11772. esac
  11773. fi
  11774. ;;
  11775. esac
  11776. ;;
  11777. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11778. no_undefined_flag_CXX='${wl}-z,text'
  11779. archive_cmds_need_lc_CXX=no
  11780. hardcode_shlibpath_var_CXX=no
  11781. runpath_var='LD_RUN_PATH'
  11782. case $cc_basename in
  11783. CC*)
  11784. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11785. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11786. ;;
  11787. *)
  11788. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11790. ;;
  11791. esac
  11792. ;;
  11793. sysv5* | sco3.2v5* | sco5v6*)
  11794. # Note: We can NOT use -z defs as we might desire, because we do not
  11795. # link with -lc, and that would cause any symbols used from libc to
  11796. # always be unresolved, which means just about no library would
  11797. # ever link correctly. If we're not using GNU ld we use -z text
  11798. # though, which does catch some bad symbols but isn't as heavy-handed
  11799. # as -z defs.
  11800. no_undefined_flag_CXX='${wl}-z,text'
  11801. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11802. archive_cmds_need_lc_CXX=no
  11803. hardcode_shlibpath_var_CXX=no
  11804. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11805. hardcode_libdir_separator_CXX=':'
  11806. link_all_deplibs_CXX=yes
  11807. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11808. runpath_var='LD_RUN_PATH'
  11809. case $cc_basename in
  11810. CC*)
  11811. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11812. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11813. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11814. '"$old_archive_cmds_CXX"
  11815. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11816. '"$reload_cmds_CXX"
  11817. ;;
  11818. *)
  11819. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11820. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11821. ;;
  11822. esac
  11823. ;;
  11824. tandem*)
  11825. case $cc_basename in
  11826. NCC*)
  11827. # NonStop-UX NCC 3.20
  11828. # FIXME: insert proper C++ library support
  11829. ld_shlibs_CXX=no
  11830. ;;
  11831. *)
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. esac
  11836. ;;
  11837. vxworks*)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. *)
  11842. # FIXME: insert proper C++ library support
  11843. ld_shlibs_CXX=no
  11844. ;;
  11845. esac
  11846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11847. $as_echo "$ld_shlibs_CXX" >&6; }
  11848. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11849. GCC_CXX="$GXX"
  11850. LD_CXX="$LD"
  11851. ## CAVEAT EMPTOR:
  11852. ## There is no encapsulation within the following macros, do not change
  11853. ## the running order or otherwise move them around unless you know exactly
  11854. ## what you are doing...
  11855. # Dependencies to place before and after the object being linked:
  11856. predep_objects_CXX=
  11857. postdep_objects_CXX=
  11858. predeps_CXX=
  11859. postdeps_CXX=
  11860. compiler_lib_search_path_CXX=
  11861. cat > conftest.$ac_ext <<_LT_EOF
  11862. class Foo
  11863. {
  11864. public:
  11865. Foo (void) { a = 0; }
  11866. private:
  11867. int a;
  11868. };
  11869. _LT_EOF
  11870. _lt_libdeps_save_CFLAGS=$CFLAGS
  11871. case "$CC $CFLAGS " in #(
  11872. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11873. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11874. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11875. esac
  11876. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11877. (eval $ac_compile) 2>&5
  11878. ac_status=$?
  11879. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11880. test $ac_status = 0; }; then
  11881. # Parse the compiler output and extract the necessary
  11882. # objects, libraries and library flags.
  11883. # Sentinel used to keep track of whether or not we are before
  11884. # the conftest object file.
  11885. pre_test_object_deps_done=no
  11886. for p in `eval "$output_verbose_link_cmd"`; do
  11887. case ${prev}${p} in
  11888. -L* | -R* | -l*)
  11889. # Some compilers place space between "-{L,R}" and the path.
  11890. # Remove the space.
  11891. if test $p = "-L" ||
  11892. test $p = "-R"; then
  11893. prev=$p
  11894. continue
  11895. fi
  11896. # Expand the sysroot to ease extracting the directories later.
  11897. if test -z "$prev"; then
  11898. case $p in
  11899. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11900. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11901. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11902. esac
  11903. fi
  11904. case $p in
  11905. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11906. esac
  11907. if test "$pre_test_object_deps_done" = no; then
  11908. case ${prev} in
  11909. -L | -R)
  11910. # Internal compiler library paths should come after those
  11911. # provided the user. The postdeps already come after the
  11912. # user supplied libs so there is no need to process them.
  11913. if test -z "$compiler_lib_search_path_CXX"; then
  11914. compiler_lib_search_path_CXX="${prev}${p}"
  11915. else
  11916. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11917. fi
  11918. ;;
  11919. # The "-l" case would never come before the object being
  11920. # linked, so don't bother handling this case.
  11921. esac
  11922. else
  11923. if test -z "$postdeps_CXX"; then
  11924. postdeps_CXX="${prev}${p}"
  11925. else
  11926. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11927. fi
  11928. fi
  11929. prev=
  11930. ;;
  11931. *.lto.$objext) ;; # Ignore GCC LTO objects
  11932. *.$objext)
  11933. # This assumes that the test object file only shows up
  11934. # once in the compiler output.
  11935. if test "$p" = "conftest.$objext"; then
  11936. pre_test_object_deps_done=yes
  11937. continue
  11938. fi
  11939. if test "$pre_test_object_deps_done" = no; then
  11940. if test -z "$predep_objects_CXX"; then
  11941. predep_objects_CXX="$p"
  11942. else
  11943. predep_objects_CXX="$predep_objects_CXX $p"
  11944. fi
  11945. else
  11946. if test -z "$postdep_objects_CXX"; then
  11947. postdep_objects_CXX="$p"
  11948. else
  11949. postdep_objects_CXX="$postdep_objects_CXX $p"
  11950. fi
  11951. fi
  11952. ;;
  11953. *) ;; # Ignore the rest.
  11954. esac
  11955. done
  11956. # Clean up.
  11957. rm -f a.out a.exe
  11958. else
  11959. echo "libtool.m4: error: problem compiling CXX test program"
  11960. fi
  11961. $RM -f confest.$objext
  11962. CFLAGS=$_lt_libdeps_save_CFLAGS
  11963. # PORTME: override above test on systems where it is broken
  11964. case $host_os in
  11965. interix[3-9]*)
  11966. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11967. # hack all around it, let's just trust "g++" to DTRT.
  11968. predep_objects_CXX=
  11969. postdep_objects_CXX=
  11970. postdeps_CXX=
  11971. ;;
  11972. linux*)
  11973. case `$CC -V 2>&1 | sed 5q` in
  11974. *Sun\ C*)
  11975. # Sun C++ 5.9
  11976. # The more standards-conforming stlport4 library is
  11977. # incompatible with the Cstd library. Avoid specifying
  11978. # it if it's in CXXFLAGS. Ignore libCrun as
  11979. # -library=stlport4 depends on it.
  11980. case " $CXX $CXXFLAGS " in
  11981. *" -library=stlport4 "*)
  11982. solaris_use_stlport4=yes
  11983. ;;
  11984. esac
  11985. if test "$solaris_use_stlport4" != yes; then
  11986. postdeps_CXX='-library=Cstd -library=Crun'
  11987. fi
  11988. ;;
  11989. esac
  11990. ;;
  11991. solaris*)
  11992. case $cc_basename in
  11993. CC* | sunCC*)
  11994. # The more standards-conforming stlport4 library is
  11995. # incompatible with the Cstd library. Avoid specifying
  11996. # it if it's in CXXFLAGS. Ignore libCrun as
  11997. # -library=stlport4 depends on it.
  11998. case " $CXX $CXXFLAGS " in
  11999. *" -library=stlport4 "*)
  12000. solaris_use_stlport4=yes
  12001. ;;
  12002. esac
  12003. # Adding this requires a known-good setup of shared libraries for
  12004. # Sun compiler versions before 5.6, else PIC objects from an old
  12005. # archive will be linked into the output, leading to subtle bugs.
  12006. if test "$solaris_use_stlport4" != yes; then
  12007. postdeps_CXX='-library=Cstd -library=Crun'
  12008. fi
  12009. ;;
  12010. esac
  12011. ;;
  12012. esac
  12013. case " $postdeps_CXX " in
  12014. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12015. esac
  12016. compiler_lib_search_dirs_CXX=
  12017. if test -n "${compiler_lib_search_path_CXX}"; then
  12018. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12019. fi
  12020. lt_prog_compiler_wl_CXX=
  12021. lt_prog_compiler_pic_CXX=
  12022. lt_prog_compiler_static_CXX=
  12023. # C++ specific cases for pic, static, wl, etc.
  12024. if test "$GXX" = yes; then
  12025. lt_prog_compiler_wl_CXX='-Wl,'
  12026. lt_prog_compiler_static_CXX='-static'
  12027. case $host_os in
  12028. aix*)
  12029. # All AIX code is PIC.
  12030. if test "$host_cpu" = ia64; then
  12031. # AIX 5 now supports IA64 processor
  12032. lt_prog_compiler_static_CXX='-Bstatic'
  12033. fi
  12034. ;;
  12035. amigaos*)
  12036. case $host_cpu in
  12037. powerpc)
  12038. # see comment about AmigaOS4 .so support
  12039. lt_prog_compiler_pic_CXX='-fPIC'
  12040. ;;
  12041. m68k)
  12042. # FIXME: we need at least 68020 code to build shared libraries, but
  12043. # adding the `-m68020' flag to GCC prevents building anything better,
  12044. # like `-m68040'.
  12045. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12046. ;;
  12047. esac
  12048. ;;
  12049. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12050. # PIC is the default for these OSes.
  12051. ;;
  12052. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12053. # This hack is so that the source file can tell whether it is being
  12054. # built for inclusion in a dll (and should export symbols for example).
  12055. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12056. # (--disable-auto-import) libraries
  12057. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12058. ;;
  12059. darwin* | rhapsody*)
  12060. # PIC is the default on this platform
  12061. # Common symbols not allowed in MH_DYLIB files
  12062. lt_prog_compiler_pic_CXX='-fno-common'
  12063. ;;
  12064. *djgpp*)
  12065. # DJGPP does not support shared libraries at all
  12066. lt_prog_compiler_pic_CXX=
  12067. ;;
  12068. haiku*)
  12069. # PIC is the default for Haiku.
  12070. # The "-static" flag exists, but is broken.
  12071. lt_prog_compiler_static_CXX=
  12072. ;;
  12073. interix[3-9]*)
  12074. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12075. # Instead, we relocate shared libraries at runtime.
  12076. ;;
  12077. sysv4*MP*)
  12078. if test -d /usr/nec; then
  12079. lt_prog_compiler_pic_CXX=-Kconform_pic
  12080. fi
  12081. ;;
  12082. hpux*)
  12083. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12084. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12085. # sets the default TLS model and affects inlining.
  12086. case $host_cpu in
  12087. hppa*64*)
  12088. ;;
  12089. *)
  12090. lt_prog_compiler_pic_CXX='-fPIC'
  12091. ;;
  12092. esac
  12093. ;;
  12094. *qnx* | *nto*)
  12095. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12096. # it will coredump.
  12097. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12098. ;;
  12099. *)
  12100. lt_prog_compiler_pic_CXX='-fPIC'
  12101. ;;
  12102. esac
  12103. else
  12104. case $host_os in
  12105. aix[4-9]*)
  12106. # All AIX code is PIC.
  12107. if test "$host_cpu" = ia64; then
  12108. # AIX 5 now supports IA64 processor
  12109. lt_prog_compiler_static_CXX='-Bstatic'
  12110. else
  12111. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12112. fi
  12113. ;;
  12114. chorus*)
  12115. case $cc_basename in
  12116. cxch68*)
  12117. # Green Hills C++ Compiler
  12118. # _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"
  12119. ;;
  12120. esac
  12121. ;;
  12122. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12123. # This hack is so that the source file can tell whether it is being
  12124. # built for inclusion in a dll (and should export symbols for example).
  12125. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12126. ;;
  12127. dgux*)
  12128. case $cc_basename in
  12129. ec++*)
  12130. lt_prog_compiler_pic_CXX='-KPIC'
  12131. ;;
  12132. ghcx*)
  12133. # Green Hills C++ Compiler
  12134. lt_prog_compiler_pic_CXX='-pic'
  12135. ;;
  12136. *)
  12137. ;;
  12138. esac
  12139. ;;
  12140. freebsd* | dragonfly*)
  12141. # FreeBSD uses GNU C++
  12142. ;;
  12143. hpux9* | hpux10* | hpux11*)
  12144. case $cc_basename in
  12145. CC*)
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12148. if test "$host_cpu" != ia64; then
  12149. lt_prog_compiler_pic_CXX='+Z'
  12150. fi
  12151. ;;
  12152. aCC*)
  12153. lt_prog_compiler_wl_CXX='-Wl,'
  12154. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12155. case $host_cpu in
  12156. hppa*64*|ia64*)
  12157. # +Z the default
  12158. ;;
  12159. *)
  12160. lt_prog_compiler_pic_CXX='+Z'
  12161. ;;
  12162. esac
  12163. ;;
  12164. *)
  12165. ;;
  12166. esac
  12167. ;;
  12168. interix*)
  12169. # This is c89, which is MS Visual C++ (no shared libs)
  12170. # Anyone wants to do a port?
  12171. ;;
  12172. irix5* | irix6* | nonstopux*)
  12173. case $cc_basename in
  12174. CC*)
  12175. lt_prog_compiler_wl_CXX='-Wl,'
  12176. lt_prog_compiler_static_CXX='-non_shared'
  12177. # CC pic flag -KPIC is the default.
  12178. ;;
  12179. *)
  12180. ;;
  12181. esac
  12182. ;;
  12183. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12184. case $cc_basename in
  12185. KCC*)
  12186. # KAI C++ Compiler
  12187. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12188. lt_prog_compiler_pic_CXX='-fPIC'
  12189. ;;
  12190. ecpc* )
  12191. # old Intel C++ for x86_64 which still supported -KPIC.
  12192. lt_prog_compiler_wl_CXX='-Wl,'
  12193. lt_prog_compiler_pic_CXX='-KPIC'
  12194. lt_prog_compiler_static_CXX='-static'
  12195. ;;
  12196. icpc* )
  12197. # Intel C++, used to be incompatible with GCC.
  12198. # ICC 10 doesn't accept -KPIC any more.
  12199. lt_prog_compiler_wl_CXX='-Wl,'
  12200. lt_prog_compiler_pic_CXX='-fPIC'
  12201. lt_prog_compiler_static_CXX='-static'
  12202. ;;
  12203. pgCC* | pgcpp*)
  12204. # Portland Group C++ compiler
  12205. lt_prog_compiler_wl_CXX='-Wl,'
  12206. lt_prog_compiler_pic_CXX='-fpic'
  12207. lt_prog_compiler_static_CXX='-Bstatic'
  12208. ;;
  12209. cxx*)
  12210. # Compaq C++
  12211. # Make sure the PIC flag is empty. It appears that all Alpha
  12212. # Linux and Compaq Tru64 Unix objects are PIC.
  12213. lt_prog_compiler_pic_CXX=
  12214. lt_prog_compiler_static_CXX='-non_shared'
  12215. ;;
  12216. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12217. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12218. lt_prog_compiler_wl_CXX='-Wl,'
  12219. lt_prog_compiler_pic_CXX='-qpic'
  12220. lt_prog_compiler_static_CXX='-qstaticlink'
  12221. ;;
  12222. *)
  12223. case `$CC -V 2>&1 | sed 5q` in
  12224. *Sun\ C*)
  12225. # Sun C++ 5.9
  12226. lt_prog_compiler_pic_CXX='-KPIC'
  12227. lt_prog_compiler_static_CXX='-Bstatic'
  12228. lt_prog_compiler_wl_CXX='-Qoption ld '
  12229. ;;
  12230. esac
  12231. ;;
  12232. esac
  12233. ;;
  12234. lynxos*)
  12235. ;;
  12236. m88k*)
  12237. ;;
  12238. mvs*)
  12239. case $cc_basename in
  12240. cxx*)
  12241. lt_prog_compiler_pic_CXX='-W c,exportall'
  12242. ;;
  12243. *)
  12244. ;;
  12245. esac
  12246. ;;
  12247. netbsd*)
  12248. ;;
  12249. *qnx* | *nto*)
  12250. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12251. # it will coredump.
  12252. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12253. ;;
  12254. osf3* | osf4* | osf5*)
  12255. case $cc_basename in
  12256. KCC*)
  12257. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12258. ;;
  12259. RCC*)
  12260. # Rational C++ 2.4.1
  12261. lt_prog_compiler_pic_CXX='-pic'
  12262. ;;
  12263. cxx*)
  12264. # Digital/Compaq C++
  12265. lt_prog_compiler_wl_CXX='-Wl,'
  12266. # Make sure the PIC flag is empty. It appears that all Alpha
  12267. # Linux and Compaq Tru64 Unix objects are PIC.
  12268. lt_prog_compiler_pic_CXX=
  12269. lt_prog_compiler_static_CXX='-non_shared'
  12270. ;;
  12271. *)
  12272. ;;
  12273. esac
  12274. ;;
  12275. psos*)
  12276. ;;
  12277. solaris*)
  12278. case $cc_basename in
  12279. CC* | sunCC*)
  12280. # Sun C++ 4.2, 5.x and Centerline C++
  12281. lt_prog_compiler_pic_CXX='-KPIC'
  12282. lt_prog_compiler_static_CXX='-Bstatic'
  12283. lt_prog_compiler_wl_CXX='-Qoption ld '
  12284. ;;
  12285. gcx*)
  12286. # Green Hills C++ Compiler
  12287. lt_prog_compiler_pic_CXX='-PIC'
  12288. ;;
  12289. *)
  12290. ;;
  12291. esac
  12292. ;;
  12293. sunos4*)
  12294. case $cc_basename in
  12295. CC*)
  12296. # Sun C++ 4.x
  12297. lt_prog_compiler_pic_CXX='-pic'
  12298. lt_prog_compiler_static_CXX='-Bstatic'
  12299. ;;
  12300. lcc*)
  12301. # Lucid
  12302. lt_prog_compiler_pic_CXX='-pic'
  12303. ;;
  12304. *)
  12305. ;;
  12306. esac
  12307. ;;
  12308. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12309. case $cc_basename in
  12310. CC*)
  12311. lt_prog_compiler_wl_CXX='-Wl,'
  12312. lt_prog_compiler_pic_CXX='-KPIC'
  12313. lt_prog_compiler_static_CXX='-Bstatic'
  12314. ;;
  12315. esac
  12316. ;;
  12317. tandem*)
  12318. case $cc_basename in
  12319. NCC*)
  12320. # NonStop-UX NCC 3.20
  12321. lt_prog_compiler_pic_CXX='-KPIC'
  12322. ;;
  12323. *)
  12324. ;;
  12325. esac
  12326. ;;
  12327. vxworks*)
  12328. ;;
  12329. *)
  12330. lt_prog_compiler_can_build_shared_CXX=no
  12331. ;;
  12332. esac
  12333. fi
  12334. case $host_os in
  12335. # For platforms which do not support PIC, -DPIC is meaningless:
  12336. *djgpp*)
  12337. lt_prog_compiler_pic_CXX=
  12338. ;;
  12339. *)
  12340. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12341. ;;
  12342. esac
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12344. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12345. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12346. $as_echo_n "(cached) " >&6
  12347. else
  12348. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12349. fi
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12351. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12352. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12353. #
  12354. # Check to make sure the PIC flag actually works.
  12355. #
  12356. if test -n "$lt_prog_compiler_pic_CXX"; then
  12357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12358. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12359. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12360. $as_echo_n "(cached) " >&6
  12361. else
  12362. lt_cv_prog_compiler_pic_works_CXX=no
  12363. ac_outfile=conftest.$ac_objext
  12364. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12365. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12366. # Insert the option either (1) after the last *FLAGS variable, or
  12367. # (2) before a word containing "conftest.", or (3) at the end.
  12368. # Note that $ac_compile itself does not contain backslashes and begins
  12369. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12370. # The option is referenced via a variable to avoid confusing sed.
  12371. lt_compile=`echo "$ac_compile" | $SED \
  12372. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12373. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12374. -e 's:$: $lt_compiler_flag:'`
  12375. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12376. (eval "$lt_compile" 2>conftest.err)
  12377. ac_status=$?
  12378. cat conftest.err >&5
  12379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12380. if (exit $ac_status) && test -s "$ac_outfile"; then
  12381. # The compiler can only warn and ignore the option if not recognized
  12382. # So say no if there are warnings other than the usual output.
  12383. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12384. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12385. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12386. lt_cv_prog_compiler_pic_works_CXX=yes
  12387. fi
  12388. fi
  12389. $RM conftest*
  12390. fi
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12392. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12393. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12394. case $lt_prog_compiler_pic_CXX in
  12395. "" | " "*) ;;
  12396. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12397. esac
  12398. else
  12399. lt_prog_compiler_pic_CXX=
  12400. lt_prog_compiler_can_build_shared_CXX=no
  12401. fi
  12402. fi
  12403. #
  12404. # Check to make sure the static flag actually works.
  12405. #
  12406. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12408. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12409. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12410. $as_echo_n "(cached) " >&6
  12411. else
  12412. lt_cv_prog_compiler_static_works_CXX=no
  12413. save_LDFLAGS="$LDFLAGS"
  12414. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12415. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12416. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12417. # The linker can only warn and ignore the option if not recognized
  12418. # So say no if there are warnings
  12419. if test -s conftest.err; then
  12420. # Append any errors to the config.log.
  12421. cat conftest.err 1>&5
  12422. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12423. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12424. if diff conftest.exp conftest.er2 >/dev/null; then
  12425. lt_cv_prog_compiler_static_works_CXX=yes
  12426. fi
  12427. else
  12428. lt_cv_prog_compiler_static_works_CXX=yes
  12429. fi
  12430. fi
  12431. $RM -r conftest*
  12432. LDFLAGS="$save_LDFLAGS"
  12433. fi
  12434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12435. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12436. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12437. :
  12438. else
  12439. lt_prog_compiler_static_CXX=
  12440. fi
  12441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12442. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12443. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12444. $as_echo_n "(cached) " >&6
  12445. else
  12446. lt_cv_prog_compiler_c_o_CXX=no
  12447. $RM -r conftest 2>/dev/null
  12448. mkdir conftest
  12449. cd conftest
  12450. mkdir out
  12451. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12452. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12453. # Insert the option either (1) after the last *FLAGS variable, or
  12454. # (2) before a word containing "conftest.", or (3) at the end.
  12455. # Note that $ac_compile itself does not contain backslashes and begins
  12456. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12457. lt_compile=`echo "$ac_compile" | $SED \
  12458. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12459. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12460. -e 's:$: $lt_compiler_flag:'`
  12461. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12462. (eval "$lt_compile" 2>out/conftest.err)
  12463. ac_status=$?
  12464. cat out/conftest.err >&5
  12465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12466. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12467. then
  12468. # The compiler can only warn and ignore the option if not recognized
  12469. # So say no if there are warnings
  12470. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12471. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12472. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12473. lt_cv_prog_compiler_c_o_CXX=yes
  12474. fi
  12475. fi
  12476. chmod u+w . 2>&5
  12477. $RM conftest*
  12478. # SGI C++ compiler will create directory out/ii_files/ for
  12479. # template instantiation
  12480. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12481. $RM out/* && rmdir out
  12482. cd ..
  12483. $RM -r conftest
  12484. $RM conftest*
  12485. fi
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12487. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12489. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12490. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12491. $as_echo_n "(cached) " >&6
  12492. else
  12493. lt_cv_prog_compiler_c_o_CXX=no
  12494. $RM -r conftest 2>/dev/null
  12495. mkdir conftest
  12496. cd conftest
  12497. mkdir out
  12498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12499. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12500. # Insert the option either (1) after the last *FLAGS variable, or
  12501. # (2) before a word containing "conftest.", or (3) at the end.
  12502. # Note that $ac_compile itself does not contain backslashes and begins
  12503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12504. lt_compile=`echo "$ac_compile" | $SED \
  12505. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12506. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12507. -e 's:$: $lt_compiler_flag:'`
  12508. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12509. (eval "$lt_compile" 2>out/conftest.err)
  12510. ac_status=$?
  12511. cat out/conftest.err >&5
  12512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12513. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12514. then
  12515. # The compiler can only warn and ignore the option if not recognized
  12516. # So say no if there are warnings
  12517. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12518. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12519. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12520. lt_cv_prog_compiler_c_o_CXX=yes
  12521. fi
  12522. fi
  12523. chmod u+w . 2>&5
  12524. $RM conftest*
  12525. # SGI C++ compiler will create directory out/ii_files/ for
  12526. # template instantiation
  12527. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12528. $RM out/* && rmdir out
  12529. cd ..
  12530. $RM -r conftest
  12531. $RM conftest*
  12532. fi
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12534. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12535. hard_links="nottested"
  12536. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12537. # do not overwrite the value of need_locks provided by the user
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12539. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12540. hard_links=yes
  12541. $RM conftest*
  12542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12543. touch conftest.a
  12544. ln conftest.a conftest.b 2>&5 || hard_links=no
  12545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12547. $as_echo "$hard_links" >&6; }
  12548. if test "$hard_links" = no; then
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12550. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12551. need_locks=warn
  12552. fi
  12553. else
  12554. need_locks=no
  12555. fi
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12557. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12558. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12559. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12560. case $host_os in
  12561. aix[4-9]*)
  12562. # If we're using GNU nm, then we don't want the "-C" option.
  12563. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12564. # Also, AIX nm treats weak defined symbols like other global defined
  12565. # symbols, whereas GNU nm marks them as "W".
  12566. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12567. 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'
  12568. else
  12569. 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'
  12570. fi
  12571. ;;
  12572. pw32*)
  12573. export_symbols_cmds_CXX="$ltdll_cmds"
  12574. ;;
  12575. cygwin* | mingw* | cegcc*)
  12576. case $cc_basename in
  12577. cl*)
  12578. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12579. ;;
  12580. *)
  12581. 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'
  12582. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12583. ;;
  12584. esac
  12585. ;;
  12586. *)
  12587. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12588. ;;
  12589. esac
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12591. $as_echo "$ld_shlibs_CXX" >&6; }
  12592. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12593. with_gnu_ld_CXX=$with_gnu_ld
  12594. #
  12595. # Do we need to explicitly link libc?
  12596. #
  12597. case "x$archive_cmds_need_lc_CXX" in
  12598. x|xyes)
  12599. # Assume -lc should be added
  12600. archive_cmds_need_lc_CXX=yes
  12601. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12602. case $archive_cmds_CXX in
  12603. *'~'*)
  12604. # FIXME: we may have to deal with multi-command sequences.
  12605. ;;
  12606. '$CC '*)
  12607. # Test whether the compiler implicitly links with -lc since on some
  12608. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12609. # to ld, don't add -lc before -lgcc.
  12610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12611. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12612. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12613. $as_echo_n "(cached) " >&6
  12614. else
  12615. $RM conftest*
  12616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12617. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12618. (eval $ac_compile) 2>&5
  12619. ac_status=$?
  12620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12621. test $ac_status = 0; } 2>conftest.err; then
  12622. soname=conftest
  12623. lib=conftest
  12624. libobjs=conftest.$ac_objext
  12625. deplibs=
  12626. wl=$lt_prog_compiler_wl_CXX
  12627. pic_flag=$lt_prog_compiler_pic_CXX
  12628. compiler_flags=-v
  12629. linker_flags=-v
  12630. verstring=
  12631. output_objdir=.
  12632. libname=conftest
  12633. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12634. allow_undefined_flag_CXX=
  12635. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12636. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12637. ac_status=$?
  12638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12639. test $ac_status = 0; }
  12640. then
  12641. lt_cv_archive_cmds_need_lc_CXX=no
  12642. else
  12643. lt_cv_archive_cmds_need_lc_CXX=yes
  12644. fi
  12645. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12646. else
  12647. cat conftest.err 1>&5
  12648. fi
  12649. $RM conftest*
  12650. fi
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12652. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12653. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12654. ;;
  12655. esac
  12656. fi
  12657. ;;
  12658. esac
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12660. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12661. library_names_spec=
  12662. libname_spec='lib$name'
  12663. soname_spec=
  12664. shrext_cmds=".so"
  12665. postinstall_cmds=
  12666. postuninstall_cmds=
  12667. finish_cmds=
  12668. finish_eval=
  12669. shlibpath_var=
  12670. shlibpath_overrides_runpath=unknown
  12671. version_type=none
  12672. dynamic_linker="$host_os ld.so"
  12673. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12674. need_lib_prefix=unknown
  12675. hardcode_into_libs=no
  12676. # when you set need_version to no, make sure it does not cause -set_version
  12677. # flags to be left without arguments
  12678. need_version=unknown
  12679. case $host_os in
  12680. aix3*)
  12681. version_type=linux # correct to gnu/linux during the next big refactor
  12682. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12683. shlibpath_var=LIBPATH
  12684. # AIX 3 has no versioning support, so we append a major version to the name.
  12685. soname_spec='${libname}${release}${shared_ext}$major'
  12686. ;;
  12687. aix[4-9]*)
  12688. version_type=linux # correct to gnu/linux during the next big refactor
  12689. need_lib_prefix=no
  12690. need_version=no
  12691. hardcode_into_libs=yes
  12692. if test "$host_cpu" = ia64; then
  12693. # AIX 5 supports IA64
  12694. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12695. shlibpath_var=LD_LIBRARY_PATH
  12696. else
  12697. # With GCC up to 2.95.x, collect2 would create an import file
  12698. # for dependence libraries. The import file would start with
  12699. # the line `#! .'. This would cause the generated library to
  12700. # depend on `.', always an invalid library. This was fixed in
  12701. # development snapshots of GCC prior to 3.0.
  12702. case $host_os in
  12703. aix4 | aix4.[01] | aix4.[01].*)
  12704. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12705. echo ' yes '
  12706. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12707. :
  12708. else
  12709. can_build_shared=no
  12710. fi
  12711. ;;
  12712. esac
  12713. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12714. # soname into executable. Probably we can add versioning support to
  12715. # collect2, so additional links can be useful in future.
  12716. if test "$aix_use_runtimelinking" = yes; then
  12717. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12718. # instead of lib<name>.a to let people know that these are not
  12719. # typical AIX shared libraries.
  12720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12721. else
  12722. # We preserve .a as extension for shared libraries through AIX4.2
  12723. # and later when we are not doing run time linking.
  12724. library_names_spec='${libname}${release}.a $libname.a'
  12725. soname_spec='${libname}${release}${shared_ext}$major'
  12726. fi
  12727. shlibpath_var=LIBPATH
  12728. fi
  12729. ;;
  12730. amigaos*)
  12731. case $host_cpu in
  12732. powerpc)
  12733. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12734. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12736. ;;
  12737. m68k)
  12738. library_names_spec='$libname.ixlibrary $libname.a'
  12739. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12740. 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'
  12741. ;;
  12742. esac
  12743. ;;
  12744. beos*)
  12745. library_names_spec='${libname}${shared_ext}'
  12746. dynamic_linker="$host_os ld.so"
  12747. shlibpath_var=LIBRARY_PATH
  12748. ;;
  12749. bsdi[45]*)
  12750. version_type=linux # correct to gnu/linux during the next big refactor
  12751. need_version=no
  12752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12753. soname_spec='${libname}${release}${shared_ext}$major'
  12754. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12755. shlibpath_var=LD_LIBRARY_PATH
  12756. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12757. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12758. # the default ld.so.conf also contains /usr/contrib/lib and
  12759. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12760. # libtool to hard-code these into programs
  12761. ;;
  12762. cygwin* | mingw* | pw32* | cegcc*)
  12763. version_type=windows
  12764. shrext_cmds=".dll"
  12765. need_version=no
  12766. need_lib_prefix=no
  12767. case $GCC,$cc_basename in
  12768. yes,*)
  12769. # gcc
  12770. library_names_spec='$libname.dll.a'
  12771. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12772. postinstall_cmds='base_file=`basename \${file}`~
  12773. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12774. dldir=$destdir/`dirname \$dlpath`~
  12775. test -d \$dldir || mkdir -p \$dldir~
  12776. $install_prog $dir/$dlname \$dldir/$dlname~
  12777. chmod a+x \$dldir/$dlname~
  12778. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12779. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12780. fi'
  12781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12782. dlpath=$dir/\$dldll~
  12783. $RM \$dlpath'
  12784. shlibpath_overrides_runpath=yes
  12785. case $host_os in
  12786. cygwin*)
  12787. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12788. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12789. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12790. ;;
  12791. mingw* | cegcc*)
  12792. # MinGW DLLs use traditional 'lib' prefix
  12793. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12794. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12795. ;;
  12796. pw32*)
  12797. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12798. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12799. ;;
  12800. esac
  12801. dynamic_linker='Win32 ld.exe'
  12802. ;;
  12803. *,cl*)
  12804. # Native MSVC
  12805. libname_spec='$name'
  12806. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12807. library_names_spec='${libname}.dll.lib'
  12808. case $build_os in
  12809. mingw*)
  12810. sys_lib_search_path_spec=
  12811. lt_save_ifs=$IFS
  12812. IFS=';'
  12813. for lt_path in $LIB
  12814. do
  12815. IFS=$lt_save_ifs
  12816. # Let DOS variable expansion print the short 8.3 style file name.
  12817. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12818. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12819. done
  12820. IFS=$lt_save_ifs
  12821. # Convert to MSYS style.
  12822. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12823. ;;
  12824. cygwin*)
  12825. # Convert to unix form, then to dos form, then back to unix form
  12826. # but this time dos style (no spaces!) so that the unix form looks
  12827. # like /cygdrive/c/PROGRA~1:/cygdr...
  12828. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12829. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12830. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12831. ;;
  12832. *)
  12833. sys_lib_search_path_spec="$LIB"
  12834. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12835. # It is most probably a Windows format PATH.
  12836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12837. else
  12838. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12839. fi
  12840. # FIXME: find the short name or the path components, as spaces are
  12841. # common. (e.g. "Program Files" -> "PROGRA~1")
  12842. ;;
  12843. esac
  12844. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12845. postinstall_cmds='base_file=`basename \${file}`~
  12846. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12847. dldir=$destdir/`dirname \$dlpath`~
  12848. test -d \$dldir || mkdir -p \$dldir~
  12849. $install_prog $dir/$dlname \$dldir/$dlname'
  12850. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12851. dlpath=$dir/\$dldll~
  12852. $RM \$dlpath'
  12853. shlibpath_overrides_runpath=yes
  12854. dynamic_linker='Win32 link.exe'
  12855. ;;
  12856. *)
  12857. # Assume MSVC wrapper
  12858. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12859. dynamic_linker='Win32 ld.exe'
  12860. ;;
  12861. esac
  12862. # FIXME: first we should search . and the directory the executable is in
  12863. shlibpath_var=PATH
  12864. ;;
  12865. darwin* | rhapsody*)
  12866. dynamic_linker="$host_os dyld"
  12867. version_type=darwin
  12868. need_lib_prefix=no
  12869. need_version=no
  12870. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12871. soname_spec='${libname}${release}${major}$shared_ext'
  12872. shlibpath_overrides_runpath=yes
  12873. shlibpath_var=DYLD_LIBRARY_PATH
  12874. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12875. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12876. ;;
  12877. dgux*)
  12878. version_type=linux # correct to gnu/linux during the next big refactor
  12879. need_lib_prefix=no
  12880. need_version=no
  12881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12882. soname_spec='${libname}${release}${shared_ext}$major'
  12883. shlibpath_var=LD_LIBRARY_PATH
  12884. ;;
  12885. freebsd* | dragonfly*)
  12886. # DragonFly does not have aout. When/if they implement a new
  12887. # versioning mechanism, adjust this.
  12888. if test -x /usr/bin/objformat; then
  12889. objformat=`/usr/bin/objformat`
  12890. else
  12891. case $host_os in
  12892. freebsd[23].*) objformat=aout ;;
  12893. *) objformat=elf ;;
  12894. esac
  12895. fi
  12896. version_type=freebsd-$objformat
  12897. case $version_type in
  12898. freebsd-elf*)
  12899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12900. need_version=no
  12901. need_lib_prefix=no
  12902. ;;
  12903. freebsd-*)
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12905. need_version=yes
  12906. ;;
  12907. esac
  12908. shlibpath_var=LD_LIBRARY_PATH
  12909. case $host_os in
  12910. freebsd2.*)
  12911. shlibpath_overrides_runpath=yes
  12912. ;;
  12913. freebsd3.[01]* | freebsdelf3.[01]*)
  12914. shlibpath_overrides_runpath=yes
  12915. hardcode_into_libs=yes
  12916. ;;
  12917. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12918. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12919. shlibpath_overrides_runpath=no
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. *) # from 4.6 on, and DragonFly
  12923. shlibpath_overrides_runpath=yes
  12924. hardcode_into_libs=yes
  12925. ;;
  12926. esac
  12927. ;;
  12928. gnu*)
  12929. version_type=linux # correct to gnu/linux during the next big refactor
  12930. need_lib_prefix=no
  12931. need_version=no
  12932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12933. soname_spec='${libname}${release}${shared_ext}$major'
  12934. shlibpath_var=LD_LIBRARY_PATH
  12935. shlibpath_overrides_runpath=no
  12936. hardcode_into_libs=yes
  12937. ;;
  12938. haiku*)
  12939. version_type=linux # correct to gnu/linux during the next big refactor
  12940. need_lib_prefix=no
  12941. need_version=no
  12942. dynamic_linker="$host_os runtime_loader"
  12943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12944. soname_spec='${libname}${release}${shared_ext}$major'
  12945. shlibpath_var=LIBRARY_PATH
  12946. shlibpath_overrides_runpath=yes
  12947. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12948. hardcode_into_libs=yes
  12949. ;;
  12950. hpux9* | hpux10* | hpux11*)
  12951. # Give a soname corresponding to the major version so that dld.sl refuses to
  12952. # link against other versions.
  12953. version_type=sunos
  12954. need_lib_prefix=no
  12955. need_version=no
  12956. case $host_cpu in
  12957. ia64*)
  12958. shrext_cmds='.so'
  12959. hardcode_into_libs=yes
  12960. dynamic_linker="$host_os dld.so"
  12961. shlibpath_var=LD_LIBRARY_PATH
  12962. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12964. soname_spec='${libname}${release}${shared_ext}$major'
  12965. if test "X$HPUX_IA64_MODE" = X32; then
  12966. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12967. else
  12968. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12969. fi
  12970. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12971. ;;
  12972. hppa*64*)
  12973. shrext_cmds='.sl'
  12974. hardcode_into_libs=yes
  12975. dynamic_linker="$host_os dld.sl"
  12976. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12977. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12981. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12982. ;;
  12983. *)
  12984. shrext_cmds='.sl'
  12985. dynamic_linker="$host_os dld.sl"
  12986. shlibpath_var=SHLIB_PATH
  12987. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. ;;
  12991. esac
  12992. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12993. postinstall_cmds='chmod 555 $lib'
  12994. # or fails outright, so override atomically:
  12995. install_override_mode=555
  12996. ;;
  12997. interix[3-9]*)
  12998. version_type=linux # correct to gnu/linux during the next big refactor
  12999. need_lib_prefix=no
  13000. need_version=no
  13001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13002. soname_spec='${libname}${release}${shared_ext}$major'
  13003. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. shlibpath_overrides_runpath=no
  13006. hardcode_into_libs=yes
  13007. ;;
  13008. irix5* | irix6* | nonstopux*)
  13009. case $host_os in
  13010. nonstopux*) version_type=nonstopux ;;
  13011. *)
  13012. if test "$lt_cv_prog_gnu_ld" = yes; then
  13013. version_type=linux # correct to gnu/linux during the next big refactor
  13014. else
  13015. version_type=irix
  13016. fi ;;
  13017. esac
  13018. need_lib_prefix=no
  13019. need_version=no
  13020. soname_spec='${libname}${release}${shared_ext}$major'
  13021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13022. case $host_os in
  13023. irix5* | nonstopux*)
  13024. libsuff= shlibsuff=
  13025. ;;
  13026. *)
  13027. case $LD in # libtool.m4 will add one of these switches to LD
  13028. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13029. libsuff= shlibsuff= libmagic=32-bit;;
  13030. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13031. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13032. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13033. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13034. *) libsuff= shlibsuff= libmagic=never-match;;
  13035. esac
  13036. ;;
  13037. esac
  13038. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13039. shlibpath_overrides_runpath=no
  13040. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13041. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13042. hardcode_into_libs=yes
  13043. ;;
  13044. # No shared lib support for Linux oldld, aout, or coff.
  13045. linux*oldld* | linux*aout* | linux*coff*)
  13046. dynamic_linker=no
  13047. ;;
  13048. # This must be glibc/ELF.
  13049. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13050. version_type=linux # correct to gnu/linux during the next big refactor
  13051. need_lib_prefix=no
  13052. need_version=no
  13053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13054. soname_spec='${libname}${release}${shared_ext}$major'
  13055. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13056. shlibpath_var=LD_LIBRARY_PATH
  13057. shlibpath_overrides_runpath=no
  13058. # Some binutils ld are patched to set DT_RUNPATH
  13059. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13060. $as_echo_n "(cached) " >&6
  13061. else
  13062. lt_cv_shlibpath_overrides_runpath=no
  13063. save_LDFLAGS=$LDFLAGS
  13064. save_libdir=$libdir
  13065. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13066. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13068. /* end confdefs.h. */
  13069. int
  13070. main ()
  13071. {
  13072. ;
  13073. return 0;
  13074. }
  13075. _ACEOF
  13076. if ac_fn_cxx_try_link "$LINENO"; then :
  13077. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13078. lt_cv_shlibpath_overrides_runpath=yes
  13079. fi
  13080. fi
  13081. rm -f core conftest.err conftest.$ac_objext \
  13082. conftest$ac_exeext conftest.$ac_ext
  13083. LDFLAGS=$save_LDFLAGS
  13084. libdir=$save_libdir
  13085. fi
  13086. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13087. # This implies no fast_install, which is unacceptable.
  13088. # Some rework will be needed to allow for fast_install
  13089. # before this can be enabled.
  13090. hardcode_into_libs=yes
  13091. # Append ld.so.conf contents to the search path
  13092. if test -f /etc/ld.so.conf; then
  13093. 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' ' '`
  13094. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13095. fi
  13096. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13097. # powerpc, because MkLinux only supported shared libraries with the
  13098. # GNU dynamic linker. Since this was broken with cross compilers,
  13099. # most powerpc-linux boxes support dynamic linking these days and
  13100. # people can always --disable-shared, the test was removed, and we
  13101. # assume the GNU/Linux dynamic linker is in use.
  13102. dynamic_linker='GNU/Linux ld.so'
  13103. ;;
  13104. netbsd*)
  13105. version_type=sunos
  13106. need_lib_prefix=no
  13107. need_version=no
  13108. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13110. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13111. dynamic_linker='NetBSD (a.out) ld.so'
  13112. else
  13113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13114. soname_spec='${libname}${release}${shared_ext}$major'
  13115. dynamic_linker='NetBSD ld.elf_so'
  13116. fi
  13117. shlibpath_var=LD_LIBRARY_PATH
  13118. shlibpath_overrides_runpath=yes
  13119. hardcode_into_libs=yes
  13120. ;;
  13121. newsos6)
  13122. version_type=linux # correct to gnu/linux during the next big refactor
  13123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. shlibpath_overrides_runpath=yes
  13126. ;;
  13127. *nto* | *qnx*)
  13128. version_type=qnx
  13129. need_lib_prefix=no
  13130. need_version=no
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. shlibpath_overrides_runpath=no
  13135. hardcode_into_libs=yes
  13136. dynamic_linker='ldqnx.so'
  13137. ;;
  13138. openbsd*)
  13139. version_type=sunos
  13140. sys_lib_dlsearch_path_spec="/usr/lib"
  13141. need_lib_prefix=no
  13142. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13143. case $host_os in
  13144. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13145. *) need_version=no ;;
  13146. esac
  13147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13148. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13149. shlibpath_var=LD_LIBRARY_PATH
  13150. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13151. case $host_os in
  13152. openbsd2.[89] | openbsd2.[89].*)
  13153. shlibpath_overrides_runpath=no
  13154. ;;
  13155. *)
  13156. shlibpath_overrides_runpath=yes
  13157. ;;
  13158. esac
  13159. else
  13160. shlibpath_overrides_runpath=yes
  13161. fi
  13162. ;;
  13163. os2*)
  13164. libname_spec='$name'
  13165. shrext_cmds=".dll"
  13166. need_lib_prefix=no
  13167. library_names_spec='$libname${shared_ext} $libname.a'
  13168. dynamic_linker='OS/2 ld.exe'
  13169. shlibpath_var=LIBPATH
  13170. ;;
  13171. osf3* | osf4* | osf5*)
  13172. version_type=osf
  13173. need_lib_prefix=no
  13174. need_version=no
  13175. soname_spec='${libname}${release}${shared_ext}$major'
  13176. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13177. shlibpath_var=LD_LIBRARY_PATH
  13178. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13179. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13180. ;;
  13181. rdos*)
  13182. dynamic_linker=no
  13183. ;;
  13184. solaris*)
  13185. version_type=linux # correct to gnu/linux during the next big refactor
  13186. need_lib_prefix=no
  13187. need_version=no
  13188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13189. soname_spec='${libname}${release}${shared_ext}$major'
  13190. shlibpath_var=LD_LIBRARY_PATH
  13191. shlibpath_overrides_runpath=yes
  13192. hardcode_into_libs=yes
  13193. # ldd complains unless libraries are executable
  13194. postinstall_cmds='chmod +x $lib'
  13195. ;;
  13196. sunos4*)
  13197. version_type=sunos
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13199. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13200. shlibpath_var=LD_LIBRARY_PATH
  13201. shlibpath_overrides_runpath=yes
  13202. if test "$with_gnu_ld" = yes; then
  13203. need_lib_prefix=no
  13204. fi
  13205. need_version=yes
  13206. ;;
  13207. sysv4 | sysv4.3*)
  13208. version_type=linux # correct to gnu/linux during the next big refactor
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. case $host_vendor in
  13213. sni)
  13214. shlibpath_overrides_runpath=no
  13215. need_lib_prefix=no
  13216. runpath_var=LD_RUN_PATH
  13217. ;;
  13218. siemens)
  13219. need_lib_prefix=no
  13220. ;;
  13221. motorola)
  13222. need_lib_prefix=no
  13223. need_version=no
  13224. shlibpath_overrides_runpath=no
  13225. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13226. ;;
  13227. esac
  13228. ;;
  13229. sysv4*MP*)
  13230. if test -d /usr/nec ;then
  13231. version_type=linux # correct to gnu/linux during the next big refactor
  13232. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13233. soname_spec='$libname${shared_ext}.$major'
  13234. shlibpath_var=LD_LIBRARY_PATH
  13235. fi
  13236. ;;
  13237. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13238. version_type=freebsd-elf
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13242. soname_spec='${libname}${release}${shared_ext}$major'
  13243. shlibpath_var=LD_LIBRARY_PATH
  13244. shlibpath_overrides_runpath=yes
  13245. hardcode_into_libs=yes
  13246. if test "$with_gnu_ld" = yes; then
  13247. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13248. else
  13249. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13250. case $host_os in
  13251. sco3.2v5*)
  13252. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13253. ;;
  13254. esac
  13255. fi
  13256. sys_lib_dlsearch_path_spec='/usr/lib'
  13257. ;;
  13258. tpf*)
  13259. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13260. version_type=linux # correct to gnu/linux during the next big refactor
  13261. need_lib_prefix=no
  13262. need_version=no
  13263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13264. shlibpath_var=LD_LIBRARY_PATH
  13265. shlibpath_overrides_runpath=no
  13266. hardcode_into_libs=yes
  13267. ;;
  13268. uts4*)
  13269. version_type=linux # correct to gnu/linux during the next big refactor
  13270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13271. soname_spec='${libname}${release}${shared_ext}$major'
  13272. shlibpath_var=LD_LIBRARY_PATH
  13273. ;;
  13274. *)
  13275. dynamic_linker=no
  13276. ;;
  13277. esac
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13279. $as_echo "$dynamic_linker" >&6; }
  13280. test "$dynamic_linker" = no && can_build_shared=no
  13281. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13282. if test "$GCC" = yes; then
  13283. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13284. fi
  13285. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13286. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13287. fi
  13288. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13289. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13290. fi
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13292. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13293. hardcode_action_CXX=
  13294. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13295. test -n "$runpath_var_CXX" ||
  13296. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13297. # We can hardcode non-existent directories.
  13298. if test "$hardcode_direct_CXX" != no &&
  13299. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13300. # have to relink, otherwise we might link with an installed library
  13301. # when we should be linking with a yet-to-be-installed one
  13302. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13303. test "$hardcode_minus_L_CXX" != no; then
  13304. # Linking always hardcodes the temporary library directory.
  13305. hardcode_action_CXX=relink
  13306. else
  13307. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13308. hardcode_action_CXX=immediate
  13309. fi
  13310. else
  13311. # We cannot hardcode anything, or else we can only hardcode existing
  13312. # directories.
  13313. hardcode_action_CXX=unsupported
  13314. fi
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13316. $as_echo "$hardcode_action_CXX" >&6; }
  13317. if test "$hardcode_action_CXX" = relink ||
  13318. test "$inherit_rpath_CXX" = yes; then
  13319. # Fast installation is not supported
  13320. enable_fast_install=no
  13321. elif test "$shlibpath_overrides_runpath" = yes ||
  13322. test "$enable_shared" = no; then
  13323. # Fast installation is not necessary
  13324. enable_fast_install=needless
  13325. fi
  13326. fi # test -n "$compiler"
  13327. CC=$lt_save_CC
  13328. CFLAGS=$lt_save_CFLAGS
  13329. LDCXX=$LD
  13330. LD=$lt_save_LD
  13331. GCC=$lt_save_GCC
  13332. with_gnu_ld=$lt_save_with_gnu_ld
  13333. lt_cv_path_LDCXX=$lt_cv_path_LD
  13334. lt_cv_path_LD=$lt_save_path_LD
  13335. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13336. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13337. fi # test "$_lt_caught_CXX_error" != yes
  13338. ac_ext=c
  13339. ac_cpp='$CPP $CPPFLAGS'
  13340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13343. # Find a good install program. We prefer a C program (faster),
  13344. # so one script is as good as another. But avoid the broken or
  13345. # incompatible versions:
  13346. # SysV /etc/install, /usr/sbin/install
  13347. # SunOS /usr/etc/install
  13348. # IRIX /sbin/install
  13349. # AIX /bin/install
  13350. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13351. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13352. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13353. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13354. # OS/2's system install, which has a completely different semantic
  13355. # ./install, which can be erroneously created by make from ./install.sh.
  13356. # Reject install programs that cannot install multiple files.
  13357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13358. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13359. if test -z "$INSTALL"; then
  13360. if ${ac_cv_path_install+:} false; then :
  13361. $as_echo_n "(cached) " >&6
  13362. else
  13363. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13364. for as_dir in $PATH
  13365. do
  13366. IFS=$as_save_IFS
  13367. test -z "$as_dir" && as_dir=.
  13368. # Account for people who put trailing slashes in PATH elements.
  13369. case $as_dir/ in #((
  13370. ./ | .// | /[cC]/* | \
  13371. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13372. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13373. /usr/ucb/* ) ;;
  13374. *)
  13375. # OSF1 and SCO ODT 3.0 have their own names for install.
  13376. # Don't use installbsd from OSF since it installs stuff as root
  13377. # by default.
  13378. for ac_prog in ginstall scoinst install; do
  13379. for ac_exec_ext in '' $ac_executable_extensions; do
  13380. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13381. if test $ac_prog = install &&
  13382. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13383. # AIX install. It has an incompatible calling convention.
  13384. :
  13385. elif test $ac_prog = install &&
  13386. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13387. # program-specific install script used by HP pwplus--don't use.
  13388. :
  13389. else
  13390. rm -rf conftest.one conftest.two conftest.dir
  13391. echo one > conftest.one
  13392. echo two > conftest.two
  13393. mkdir conftest.dir
  13394. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13395. test -s conftest.one && test -s conftest.two &&
  13396. test -s conftest.dir/conftest.one &&
  13397. test -s conftest.dir/conftest.two
  13398. then
  13399. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13400. break 3
  13401. fi
  13402. fi
  13403. fi
  13404. done
  13405. done
  13406. ;;
  13407. esac
  13408. done
  13409. IFS=$as_save_IFS
  13410. rm -rf conftest.one conftest.two conftest.dir
  13411. fi
  13412. if test "${ac_cv_path_install+set}" = set; then
  13413. INSTALL=$ac_cv_path_install
  13414. else
  13415. # As a last resort, use the slow shell script. Don't cache a
  13416. # value for INSTALL within a source directory, because that will
  13417. # break other packages using the cache if that directory is
  13418. # removed, or if the value is a relative name.
  13419. INSTALL=$ac_install_sh
  13420. fi
  13421. fi
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13423. $as_echo "$INSTALL" >&6; }
  13424. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13425. # It thinks the first close brace ends the variable substitution.
  13426. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13427. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13428. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13430. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13431. set x ${MAKE-make}
  13432. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13433. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. cat >conftest.make <<\_ACEOF
  13437. SHELL = /bin/sh
  13438. all:
  13439. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13440. _ACEOF
  13441. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13442. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13443. *@@@%%%=?*=@@@%%%*)
  13444. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13445. *)
  13446. eval ac_cv_prog_make_${ac_make}_set=no;;
  13447. esac
  13448. rm -f conftest.make
  13449. fi
  13450. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13452. $as_echo "yes" >&6; }
  13453. SET_MAKE=
  13454. else
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13456. $as_echo "no" >&6; }
  13457. SET_MAKE="MAKE=${MAKE-make}"
  13458. fi
  13459. if test -n "$ac_tool_prefix"; then
  13460. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13461. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13463. $as_echo_n "checking for $ac_word... " >&6; }
  13464. if ${ac_cv_prog_WINDRES+:} false; then :
  13465. $as_echo_n "(cached) " >&6
  13466. else
  13467. if test -n "$WINDRES"; then
  13468. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13469. else
  13470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13471. for as_dir in $PATH
  13472. do
  13473. IFS=$as_save_IFS
  13474. test -z "$as_dir" && as_dir=.
  13475. for ac_exec_ext in '' $ac_executable_extensions; do
  13476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13477. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13479. break 2
  13480. fi
  13481. done
  13482. done
  13483. IFS=$as_save_IFS
  13484. fi
  13485. fi
  13486. WINDRES=$ac_cv_prog_WINDRES
  13487. if test -n "$WINDRES"; then
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13489. $as_echo "$WINDRES" >&6; }
  13490. else
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13492. $as_echo "no" >&6; }
  13493. fi
  13494. fi
  13495. if test -z "$ac_cv_prog_WINDRES"; then
  13496. ac_ct_WINDRES=$WINDRES
  13497. # Extract the first word of "windres", so it can be a program name with args.
  13498. set dummy windres; ac_word=$2
  13499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13500. $as_echo_n "checking for $ac_word... " >&6; }
  13501. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13502. $as_echo_n "(cached) " >&6
  13503. else
  13504. if test -n "$ac_ct_WINDRES"; then
  13505. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13506. else
  13507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13508. for as_dir in $PATH
  13509. do
  13510. IFS=$as_save_IFS
  13511. test -z "$as_dir" && as_dir=.
  13512. for ac_exec_ext in '' $ac_executable_extensions; do
  13513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13514. ac_cv_prog_ac_ct_WINDRES="windres"
  13515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13516. break 2
  13517. fi
  13518. done
  13519. done
  13520. IFS=$as_save_IFS
  13521. fi
  13522. fi
  13523. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13524. if test -n "$ac_ct_WINDRES"; then
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13526. $as_echo "$ac_ct_WINDRES" >&6; }
  13527. else
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13529. $as_echo "no" >&6; }
  13530. fi
  13531. if test "x$ac_ct_WINDRES" = x; then
  13532. WINDRES=":"
  13533. else
  13534. case $cross_compiling:$ac_tool_warned in
  13535. yes:)
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13538. ac_tool_warned=yes ;;
  13539. esac
  13540. WINDRES=$ac_ct_WINDRES
  13541. fi
  13542. else
  13543. WINDRES="$ac_cv_prog_WINDRES"
  13544. fi
  13545. case "$host" in
  13546. *-*-mingw32*)
  13547. # Except on msys, where make can't handle full pathnames (bug 1972)
  13548. ;;
  13549. *)
  13550. srcdir=`cd $srcdir && pwd`
  13551. ;;
  13552. esac
  13553. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13554. if test x$srcdir != x.; then
  13555. INCLUDE="-Iinclude $INCLUDE"
  13556. elif test -d .hg; then
  13557. as_fn_error $? "
  13558. *** When building from Mercurial you should configure and build in a
  13559. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13560. " "$LINENO" 5
  13561. fi
  13562. BASE_CFLAGS=""
  13563. BASE_LDFLAGS=""
  13564. case "$host" in
  13565. *-*-cygwin*)
  13566. # We build SDL on cygwin without the UNIX emulation layer
  13567. save_CFLAGS="$CFLAGS"
  13568. have_no_cygwin=no
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13570. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13571. CFLAGS="$save_CFLAGS -mno-cygwin"
  13572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13573. /* end confdefs.h. */
  13574. int
  13575. main ()
  13576. {
  13577. ;
  13578. return 0;
  13579. }
  13580. _ACEOF
  13581. if ac_fn_c_try_compile "$LINENO"; then :
  13582. have_no_cygwin=yes
  13583. fi
  13584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13586. $as_echo "$have_no_cygwin" >&6; }
  13587. CFLAGS="$save_CFLAGS"
  13588. if test x$have_no_cygwin = xyes; then
  13589. BASE_CFLAGS="-mno-cygwin"
  13590. BASE_LDFLAGS="-mno-cygwin"
  13591. fi
  13592. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13593. ;;
  13594. esac
  13595. # Uncomment the following line if you want to force SDL and applications
  13596. # built with it to be compiled for a particular architecture.
  13597. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13598. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13599. # The default optimization for SDL is -O3 (Bug #31)
  13600. if test "x$orig_CFLAGS" = x; then
  13601. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13602. fi
  13603. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13604. BUILD_LDFLAGS="$LDFLAGS"
  13605. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13606. ## These are common directories to find software packages
  13607. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13608. # if test -d $path/include; then
  13609. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13610. # fi
  13611. # if test -d $path/lib; then
  13612. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13613. # fi
  13614. #done
  13615. SDL_CFLAGS="$BASE_CFLAGS"
  13616. SDL_LIBS="-lSDL2"
  13617. if test "x$BASE_LDFLAGS" != x; then
  13618. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13619. fi
  13620. if test "x$EXTRA_CFLAGS" != x; then
  13621. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13622. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13623. fi
  13624. if test "x$EXTRA_LDFLAGS" != x; then
  13625. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13626. fi
  13627. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13628. find_lib()
  13629. {
  13630. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13631. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13632. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13633. if test "$cross_compiling" = yes; then
  13634. host_lib_path=""
  13635. else
  13636. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13637. fi
  13638. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13639. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13640. if test x$lib != x; then
  13641. echo $lib
  13642. return
  13643. fi
  13644. done
  13645. }
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13647. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13648. if ${ac_cv_c_const+:} false; then :
  13649. $as_echo_n "(cached) " >&6
  13650. else
  13651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13652. /* end confdefs.h. */
  13653. int
  13654. main ()
  13655. {
  13656. #ifndef __cplusplus
  13657. /* Ultrix mips cc rejects this sort of thing. */
  13658. typedef int charset[2];
  13659. const charset cs = { 0, 0 };
  13660. /* SunOS 4.1.1 cc rejects this. */
  13661. char const *const *pcpcc;
  13662. char **ppc;
  13663. /* NEC SVR4.0.2 mips cc rejects this. */
  13664. struct point {int x, y;};
  13665. static struct point const zero = {0,0};
  13666. /* AIX XL C 1.02.0.0 rejects this.
  13667. It does not let you subtract one const X* pointer from another in
  13668. an arm of an if-expression whose if-part is not a constant
  13669. expression */
  13670. const char *g = "string";
  13671. pcpcc = &g + (g ? g-g : 0);
  13672. /* HPUX 7.0 cc rejects these. */
  13673. ++pcpcc;
  13674. ppc = (char**) pcpcc;
  13675. pcpcc = (char const *const *) ppc;
  13676. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13677. char tx;
  13678. char *t = &tx;
  13679. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13680. *t++ = 0;
  13681. if (s) return 0;
  13682. }
  13683. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13684. int x[] = {25, 17};
  13685. const int *foo = &x[0];
  13686. ++foo;
  13687. }
  13688. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13689. typedef const int *iptr;
  13690. iptr p = 0;
  13691. ++p;
  13692. }
  13693. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13694. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13695. struct s { int j; const int *ap[3]; } bx;
  13696. struct s *b = &bx; b->j = 5;
  13697. }
  13698. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13699. const int foo = 10;
  13700. if (!foo) return 0;
  13701. }
  13702. return !cs[0] && !zero.x;
  13703. #endif
  13704. ;
  13705. return 0;
  13706. }
  13707. _ACEOF
  13708. if ac_fn_c_try_compile "$LINENO"; then :
  13709. ac_cv_c_const=yes
  13710. else
  13711. ac_cv_c_const=no
  13712. fi
  13713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13716. $as_echo "$ac_cv_c_const" >&6; }
  13717. if test $ac_cv_c_const = no; then
  13718. $as_echo "#define const /**/" >>confdefs.h
  13719. fi
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13721. $as_echo_n "checking for inline... " >&6; }
  13722. if ${ac_cv_c_inline+:} false; then :
  13723. $as_echo_n "(cached) " >&6
  13724. else
  13725. ac_cv_c_inline=no
  13726. for ac_kw in inline __inline__ __inline; do
  13727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13728. /* end confdefs.h. */
  13729. #ifndef __cplusplus
  13730. typedef int foo_t;
  13731. static $ac_kw foo_t static_foo () {return 0; }
  13732. $ac_kw foo_t foo () {return 0; }
  13733. #endif
  13734. _ACEOF
  13735. if ac_fn_c_try_compile "$LINENO"; then :
  13736. ac_cv_c_inline=$ac_kw
  13737. fi
  13738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13739. test "$ac_cv_c_inline" != no && break
  13740. done
  13741. fi
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13743. $as_echo "$ac_cv_c_inline" >&6; }
  13744. case $ac_cv_c_inline in
  13745. inline | yes) ;;
  13746. *)
  13747. case $ac_cv_c_inline in
  13748. no) ac_val=;;
  13749. *) ac_val=$ac_cv_c_inline;;
  13750. esac
  13751. cat >>confdefs.h <<_ACEOF
  13752. #ifndef __cplusplus
  13753. #define inline $ac_val
  13754. #endif
  13755. _ACEOF
  13756. ;;
  13757. esac
  13758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13759. $as_echo_n "checking for working volatile... " >&6; }
  13760. if ${ac_cv_c_volatile+:} false; then :
  13761. $as_echo_n "(cached) " >&6
  13762. else
  13763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13764. /* end confdefs.h. */
  13765. int
  13766. main ()
  13767. {
  13768. volatile int x;
  13769. int * volatile y = (int *) 0;
  13770. return !x && !y;
  13771. ;
  13772. return 0;
  13773. }
  13774. _ACEOF
  13775. if ac_fn_c_try_compile "$LINENO"; then :
  13776. ac_cv_c_volatile=yes
  13777. else
  13778. ac_cv_c_volatile=no
  13779. fi
  13780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13783. $as_echo "$ac_cv_c_volatile" >&6; }
  13784. if test $ac_cv_c_volatile = no; then
  13785. $as_echo "#define volatile /**/" >>confdefs.h
  13786. fi
  13787. # Check whether --enable-assertions was given.
  13788. if test "${enable_assertions+set}" = set; then :
  13789. enableval=$enable_assertions;
  13790. else
  13791. enable_assertions=auto
  13792. fi
  13793. case "$enable_assertions" in
  13794. auto) # Use optimization settings to determine assertion level
  13795. ;;
  13796. disabled)
  13797. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13798. ;;
  13799. release)
  13800. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13801. ;;
  13802. enabled)
  13803. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13804. ;;
  13805. paranoid)
  13806. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13807. ;;
  13808. *)
  13809. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13810. ;;
  13811. esac
  13812. # Check whether --enable-dependency-tracking was given.
  13813. if test "${enable_dependency_tracking+set}" = set; then :
  13814. enableval=$enable_dependency_tracking;
  13815. else
  13816. enable_dependency_tracking=yes
  13817. fi
  13818. if test x$enable_dependency_tracking = xyes; then
  13819. have_gcc_mmd_mt=no
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13821. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #if !defined(__GNUC__) || __GNUC__ < 3
  13825. #error Dependency tracking requires GCC 3.0 or newer
  13826. #endif
  13827. int
  13828. main ()
  13829. {
  13830. ;
  13831. return 0;
  13832. }
  13833. _ACEOF
  13834. if ac_fn_c_try_compile "$LINENO"; then :
  13835. have_gcc_mmd_mt=yes
  13836. fi
  13837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13839. $as_echo "$have_gcc_mmd_mt" >&6; }
  13840. if test x$have_gcc_mmd_mt = xyes; then
  13841. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13842. fi
  13843. fi
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13845. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13846. have_no_undefined=no
  13847. case "$host" in
  13848. *-*-openbsd*)
  13849. ;;
  13850. *)
  13851. save_LDFLAGS="$LDFLAGS"
  13852. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13854. /* end confdefs.h. */
  13855. int
  13856. main ()
  13857. {
  13858. ;
  13859. return 0;
  13860. }
  13861. _ACEOF
  13862. if ac_fn_c_try_link "$LINENO"; then :
  13863. have_no_undefined=yes
  13864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext \
  13867. conftest$ac_exeext conftest.$ac_ext
  13868. LDFLAGS="$save_LDFLAGS"
  13869. ;;
  13870. esac
  13871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13872. $as_echo "$have_no_undefined" >&6; }
  13873. # Check whether --enable-libc was given.
  13874. if test "${enable_libc+set}" = set; then :
  13875. enableval=$enable_libc;
  13876. else
  13877. enable_libc=yes
  13878. fi
  13879. if test x$enable_libc = xyes; then
  13880. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13882. $as_echo_n "checking for ANSI C header files... " >&6; }
  13883. if ${ac_cv_header_stdc+:} false; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13887. /* end confdefs.h. */
  13888. #include <stdlib.h>
  13889. #include <stdarg.h>
  13890. #include <string.h>
  13891. #include <float.h>
  13892. int
  13893. main ()
  13894. {
  13895. ;
  13896. return 0;
  13897. }
  13898. _ACEOF
  13899. if ac_fn_c_try_compile "$LINENO"; then :
  13900. ac_cv_header_stdc=yes
  13901. else
  13902. ac_cv_header_stdc=no
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13905. if test $ac_cv_header_stdc = yes; then
  13906. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. #include <string.h>
  13910. _ACEOF
  13911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13912. $EGREP "memchr" >/dev/null 2>&1; then :
  13913. else
  13914. ac_cv_header_stdc=no
  13915. fi
  13916. rm -f conftest*
  13917. fi
  13918. if test $ac_cv_header_stdc = yes; then
  13919. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13921. /* end confdefs.h. */
  13922. #include <stdlib.h>
  13923. _ACEOF
  13924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13925. $EGREP "free" >/dev/null 2>&1; then :
  13926. else
  13927. ac_cv_header_stdc=no
  13928. fi
  13929. rm -f conftest*
  13930. fi
  13931. if test $ac_cv_header_stdc = yes; then
  13932. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13933. if test "$cross_compiling" = yes; then :
  13934. :
  13935. else
  13936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13937. /* end confdefs.h. */
  13938. #include <ctype.h>
  13939. #include <stdlib.h>
  13940. #if ((' ' & 0x0FF) == 0x020)
  13941. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13942. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13943. #else
  13944. # define ISLOWER(c) \
  13945. (('a' <= (c) && (c) <= 'i') \
  13946. || ('j' <= (c) && (c) <= 'r') \
  13947. || ('s' <= (c) && (c) <= 'z'))
  13948. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13949. #endif
  13950. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13951. int
  13952. main ()
  13953. {
  13954. int i;
  13955. for (i = 0; i < 256; i++)
  13956. if (XOR (islower (i), ISLOWER (i))
  13957. || toupper (i) != TOUPPER (i))
  13958. return 2;
  13959. return 0;
  13960. }
  13961. _ACEOF
  13962. if ac_fn_c_try_run "$LINENO"; then :
  13963. else
  13964. ac_cv_header_stdc=no
  13965. fi
  13966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13967. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13968. fi
  13969. fi
  13970. fi
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13972. $as_echo "$ac_cv_header_stdc" >&6; }
  13973. if test $ac_cv_header_stdc = yes; then
  13974. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13975. fi
  13976. 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
  13977. do :
  13978. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13979. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13980. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13981. cat >>confdefs.h <<_ACEOF
  13982. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13983. _ACEOF
  13984. fi
  13985. done
  13986. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13987. if test "x$ac_cv_type_size_t" = xyes; then :
  13988. else
  13989. cat >>confdefs.h <<_ACEOF
  13990. #define size_t unsigned int
  13991. _ACEOF
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13994. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13995. if ${ac_cv_define_M_PI+:} false; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13999. /* end confdefs.h. */
  14000. #include <math.h>
  14001. #ifdef M_PI
  14002. YES_IS_DEFINED
  14003. #endif
  14004. _ACEOF
  14005. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14006. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14007. ac_cv_define_M_PI=yes
  14008. else
  14009. ac_cv_define_M_PI=no
  14010. fi
  14011. rm -f conftest*
  14012. fi
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14014. $as_echo "$ac_cv_define_M_PI" >&6; }
  14015. if test "$ac_cv_define_M_PI" = "yes" ; then
  14016. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14017. fi
  14018. case "$host" in
  14019. *-*-cygwin* | *-*-mingw32*)
  14020. ;;
  14021. *)
  14022. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14023. # for constant arguments. Useless!
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14025. $as_echo_n "checking for working alloca.h... " >&6; }
  14026. if ${ac_cv_working_alloca_h+:} false; then :
  14027. $as_echo_n "(cached) " >&6
  14028. else
  14029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14030. /* end confdefs.h. */
  14031. #include <alloca.h>
  14032. int
  14033. main ()
  14034. {
  14035. char *p = (char *) alloca (2 * sizeof (int));
  14036. if (p) return 0;
  14037. ;
  14038. return 0;
  14039. }
  14040. _ACEOF
  14041. if ac_fn_c_try_link "$LINENO"; then :
  14042. ac_cv_working_alloca_h=yes
  14043. else
  14044. ac_cv_working_alloca_h=no
  14045. fi
  14046. rm -f core conftest.err conftest.$ac_objext \
  14047. conftest$ac_exeext conftest.$ac_ext
  14048. fi
  14049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14050. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14051. if test $ac_cv_working_alloca_h = yes; then
  14052. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14055. $as_echo_n "checking for alloca... " >&6; }
  14056. if ${ac_cv_func_alloca_works+:} false; then :
  14057. $as_echo_n "(cached) " >&6
  14058. else
  14059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14060. /* end confdefs.h. */
  14061. #ifdef __GNUC__
  14062. # define alloca __builtin_alloca
  14063. #else
  14064. # ifdef _MSC_VER
  14065. # include <malloc.h>
  14066. # define alloca _alloca
  14067. # else
  14068. # ifdef HAVE_ALLOCA_H
  14069. # include <alloca.h>
  14070. # else
  14071. # ifdef _AIX
  14072. #pragma alloca
  14073. # else
  14074. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14075. void *alloca (size_t);
  14076. # endif
  14077. # endif
  14078. # endif
  14079. # endif
  14080. #endif
  14081. int
  14082. main ()
  14083. {
  14084. char *p = (char *) alloca (1);
  14085. if (p) return 0;
  14086. ;
  14087. return 0;
  14088. }
  14089. _ACEOF
  14090. if ac_fn_c_try_link "$LINENO"; then :
  14091. ac_cv_func_alloca_works=yes
  14092. else
  14093. ac_cv_func_alloca_works=no
  14094. fi
  14095. rm -f core conftest.err conftest.$ac_objext \
  14096. conftest$ac_exeext conftest.$ac_ext
  14097. fi
  14098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14099. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14100. if test $ac_cv_func_alloca_works = yes; then
  14101. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14102. else
  14103. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14104. # that cause trouble. Some versions do not even contain alloca or
  14105. # contain a buggy version. If you still want to use their alloca,
  14106. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14107. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14108. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14110. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14111. if ${ac_cv_os_cray+:} false; then :
  14112. $as_echo_n "(cached) " >&6
  14113. else
  14114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14115. /* end confdefs.h. */
  14116. #if defined CRAY && ! defined CRAY2
  14117. webecray
  14118. #else
  14119. wenotbecray
  14120. #endif
  14121. _ACEOF
  14122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14123. $EGREP "webecray" >/dev/null 2>&1; then :
  14124. ac_cv_os_cray=yes
  14125. else
  14126. ac_cv_os_cray=no
  14127. fi
  14128. rm -f conftest*
  14129. fi
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14131. $as_echo "$ac_cv_os_cray" >&6; }
  14132. if test $ac_cv_os_cray = yes; then
  14133. for ac_func in _getb67 GETB67 getb67; do
  14134. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14135. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14136. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14137. cat >>confdefs.h <<_ACEOF
  14138. #define CRAY_STACKSEG_END $ac_func
  14139. _ACEOF
  14140. break
  14141. fi
  14142. done
  14143. fi
  14144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14145. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14146. if ${ac_cv_c_stack_direction+:} false; then :
  14147. $as_echo_n "(cached) " >&6
  14148. else
  14149. if test "$cross_compiling" = yes; then :
  14150. ac_cv_c_stack_direction=0
  14151. else
  14152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14153. /* end confdefs.h. */
  14154. $ac_includes_default
  14155. int
  14156. find_stack_direction (int *addr, int depth)
  14157. {
  14158. int dir, dummy = 0;
  14159. if (! addr)
  14160. addr = &dummy;
  14161. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14162. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14163. return dir + dummy;
  14164. }
  14165. int
  14166. main (int argc, char **argv)
  14167. {
  14168. return find_stack_direction (0, argc + !argv + 20) < 0;
  14169. }
  14170. _ACEOF
  14171. if ac_fn_c_try_run "$LINENO"; then :
  14172. ac_cv_c_stack_direction=1
  14173. else
  14174. ac_cv_c_stack_direction=-1
  14175. fi
  14176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14177. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14178. fi
  14179. fi
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14181. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14182. cat >>confdefs.h <<_ACEOF
  14183. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14184. _ACEOF
  14185. fi
  14186. ;;
  14187. esac
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14189. $as_echo_n "checking for working memcmp... " >&6; }
  14190. if ${ac_cv_func_memcmp_working+:} false; then :
  14191. $as_echo_n "(cached) " >&6
  14192. else
  14193. if test "$cross_compiling" = yes; then :
  14194. ac_cv_func_memcmp_working=no
  14195. else
  14196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14197. /* end confdefs.h. */
  14198. $ac_includes_default
  14199. int
  14200. main ()
  14201. {
  14202. /* Some versions of memcmp are not 8-bit clean. */
  14203. char c0 = '\100', c1 = '\200', c2 = '\201';
  14204. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14205. return 1;
  14206. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14207. or more and with at least one buffer not starting on a 4-byte boundary.
  14208. William Lewis provided this test program. */
  14209. {
  14210. char foo[21];
  14211. char bar[21];
  14212. int i;
  14213. for (i = 0; i < 4; i++)
  14214. {
  14215. char *a = foo + i;
  14216. char *b = bar + i;
  14217. strcpy (a, "--------01111111");
  14218. strcpy (b, "--------10000000");
  14219. if (memcmp (a, b, 16) >= 0)
  14220. return 1;
  14221. }
  14222. return 0;
  14223. }
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_run "$LINENO"; then :
  14229. ac_cv_func_memcmp_working=yes
  14230. else
  14231. ac_cv_func_memcmp_working=no
  14232. fi
  14233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14235. fi
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14238. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14239. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14240. *" memcmp.$ac_objext "* ) ;;
  14241. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14242. ;;
  14243. esac
  14244. if test x$ac_cv_func_memcmp_working = xyes; then
  14245. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14246. fi
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14248. $as_echo_n "checking for working strtod... " >&6; }
  14249. if ${ac_cv_func_strtod+:} false; then :
  14250. $as_echo_n "(cached) " >&6
  14251. else
  14252. if test "$cross_compiling" = yes; then :
  14253. ac_cv_func_strtod=no
  14254. else
  14255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14256. /* end confdefs.h. */
  14257. $ac_includes_default
  14258. #ifndef strtod
  14259. double strtod ();
  14260. #endif
  14261. int
  14262. main()
  14263. {
  14264. {
  14265. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14266. char *string = " +69";
  14267. char *term;
  14268. double value;
  14269. value = strtod (string, &term);
  14270. if (value != 69 || term != (string + 4))
  14271. return 1;
  14272. }
  14273. {
  14274. /* Under Solaris 2.4, strtod returns the wrong value for the
  14275. terminating character under some conditions. */
  14276. char *string = "NaN";
  14277. char *term;
  14278. strtod (string, &term);
  14279. if (term != string && *(term - 1) == 0)
  14280. return 1;
  14281. }
  14282. return 0;
  14283. }
  14284. _ACEOF
  14285. if ac_fn_c_try_run "$LINENO"; then :
  14286. ac_cv_func_strtod=yes
  14287. else
  14288. ac_cv_func_strtod=no
  14289. fi
  14290. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14291. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14292. fi
  14293. fi
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14295. $as_echo "$ac_cv_func_strtod" >&6; }
  14296. if test $ac_cv_func_strtod = no; then
  14297. case " $LIBOBJS " in
  14298. *" strtod.$ac_objext "* ) ;;
  14299. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14300. ;;
  14301. esac
  14302. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14303. if test "x$ac_cv_func_pow" = xyes; then :
  14304. fi
  14305. if test $ac_cv_func_pow = no; then
  14306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14307. $as_echo_n "checking for pow in -lm... " >&6; }
  14308. if ${ac_cv_lib_m_pow+:} false; then :
  14309. $as_echo_n "(cached) " >&6
  14310. else
  14311. ac_check_lib_save_LIBS=$LIBS
  14312. LIBS="-lm $LIBS"
  14313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14314. /* end confdefs.h. */
  14315. /* Override any GCC internal prototype to avoid an error.
  14316. Use char because int might match the return type of a GCC
  14317. builtin and then its argument prototype would still apply. */
  14318. #ifdef __cplusplus
  14319. extern "C"
  14320. #endif
  14321. char pow ();
  14322. int
  14323. main ()
  14324. {
  14325. return pow ();
  14326. ;
  14327. return 0;
  14328. }
  14329. _ACEOF
  14330. if ac_fn_c_try_link "$LINENO"; then :
  14331. ac_cv_lib_m_pow=yes
  14332. else
  14333. ac_cv_lib_m_pow=no
  14334. fi
  14335. rm -f core conftest.err conftest.$ac_objext \
  14336. conftest$ac_exeext conftest.$ac_ext
  14337. LIBS=$ac_check_lib_save_LIBS
  14338. fi
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14340. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14341. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14342. POW_LIB=-lm
  14343. else
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14345. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14346. fi
  14347. fi
  14348. fi
  14349. if test x$ac_cv_func_strtod = xyes; then
  14350. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14351. fi
  14352. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14353. if test "x$ac_cv_func_mprotect" = xyes; then :
  14354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14355. /* end confdefs.h. */
  14356. #include <sys/types.h>
  14357. #include <sys/mman.h>
  14358. int
  14359. main ()
  14360. {
  14361. ;
  14362. return 0;
  14363. }
  14364. _ACEOF
  14365. if ac_fn_c_try_compile "$LINENO"; then :
  14366. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14367. fi
  14368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14369. fi
  14370. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr 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
  14371. do :
  14372. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14373. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14374. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14375. cat >>confdefs.h <<_ACEOF
  14376. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14377. _ACEOF
  14378. fi
  14379. done
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14381. $as_echo_n "checking for pow in -lm... " >&6; }
  14382. if ${ac_cv_lib_m_pow+:} false; then :
  14383. $as_echo_n "(cached) " >&6
  14384. else
  14385. ac_check_lib_save_LIBS=$LIBS
  14386. LIBS="-lm $LIBS"
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. /* Override any GCC internal prototype to avoid an error.
  14390. Use char because int might match the return type of a GCC
  14391. builtin and then its argument prototype would still apply. */
  14392. #ifdef __cplusplus
  14393. extern "C"
  14394. #endif
  14395. char pow ();
  14396. int
  14397. main ()
  14398. {
  14399. return pow ();
  14400. ;
  14401. return 0;
  14402. }
  14403. _ACEOF
  14404. if ac_fn_c_try_link "$LINENO"; then :
  14405. ac_cv_lib_m_pow=yes
  14406. else
  14407. ac_cv_lib_m_pow=no
  14408. fi
  14409. rm -f core conftest.err conftest.$ac_objext \
  14410. conftest$ac_exeext conftest.$ac_ext
  14411. LIBS=$ac_check_lib_save_LIBS
  14412. fi
  14413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14414. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14415. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14416. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14417. fi
  14418. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14419. do :
  14420. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14421. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14422. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14423. cat >>confdefs.h <<_ACEOF
  14424. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14425. _ACEOF
  14426. fi
  14427. done
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14429. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14430. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14431. $as_echo_n "(cached) " >&6
  14432. else
  14433. ac_check_lib_save_LIBS=$LIBS
  14434. LIBS="-liconv $LIBS"
  14435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14436. /* end confdefs.h. */
  14437. /* Override any GCC internal prototype to avoid an error.
  14438. Use char because int might match the return type of a GCC
  14439. builtin and then its argument prototype would still apply. */
  14440. #ifdef __cplusplus
  14441. extern "C"
  14442. #endif
  14443. char iconv_open ();
  14444. int
  14445. main ()
  14446. {
  14447. return iconv_open ();
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. if ac_fn_c_try_link "$LINENO"; then :
  14453. ac_cv_lib_iconv_iconv_open=yes
  14454. else
  14455. ac_cv_lib_iconv_iconv_open=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. LIBS=$ac_check_lib_save_LIBS
  14460. fi
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14462. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14463. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14464. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14465. fi
  14466. for ac_func in iconv
  14467. do :
  14468. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14469. if test "x$ac_cv_func_iconv" = xyes; then :
  14470. cat >>confdefs.h <<_ACEOF
  14471. #define HAVE_ICONV 1
  14472. _ACEOF
  14473. fi
  14474. done
  14475. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14476. "
  14477. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14478. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14479. fi
  14480. for ac_header in libunwind.h
  14481. do :
  14482. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14483. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14484. cat >>confdefs.h <<_ACEOF
  14485. #define HAVE_LIBUNWIND_H 1
  14486. _ACEOF
  14487. fi
  14488. done
  14489. fi
  14490. # Check whether --enable-gcc-atomics was given.
  14491. if test "${enable_gcc_atomics+set}" = set; then :
  14492. enableval=$enable_gcc_atomics;
  14493. else
  14494. enable_gcc_atomics=yes
  14495. fi
  14496. if test x$enable_gcc_atomics = xyes; then
  14497. have_gcc_atomics=no
  14498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14499. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14501. /* end confdefs.h. */
  14502. int
  14503. main ()
  14504. {
  14505. int a;
  14506. void *x, *y, *z;
  14507. __sync_lock_test_and_set(&a, 4);
  14508. __sync_lock_test_and_set(&x, y);
  14509. __sync_fetch_and_add(&a, 1);
  14510. __sync_bool_compare_and_swap(&a, 5, 10);
  14511. __sync_bool_compare_and_swap(&x, y, z);
  14512. ;
  14513. return 0;
  14514. }
  14515. _ACEOF
  14516. if ac_fn_c_try_link "$LINENO"; then :
  14517. have_gcc_atomics=yes
  14518. fi
  14519. rm -f core conftest.err conftest.$ac_objext \
  14520. conftest$ac_exeext conftest.$ac_ext
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14522. $as_echo "$have_gcc_atomics" >&6; }
  14523. if test x$have_gcc_atomics = xyes; then
  14524. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14525. else
  14526. # See if we have the minimum operation needed for GCC atomics
  14527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14528. /* end confdefs.h. */
  14529. int
  14530. main ()
  14531. {
  14532. int a;
  14533. __sync_lock_test_and_set(&a, 1);
  14534. __sync_lock_release(&a);
  14535. ;
  14536. return 0;
  14537. }
  14538. _ACEOF
  14539. if ac_fn_c_try_link "$LINENO"; then :
  14540. have_gcc_sync_lock_test_and_set=yes
  14541. fi
  14542. rm -f core conftest.err conftest.$ac_objext \
  14543. conftest$ac_exeext conftest.$ac_ext
  14544. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14545. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14546. fi
  14547. fi
  14548. fi
  14549. # Standard C sources
  14550. SOURCES="$SOURCES $srcdir/src/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14552. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14554. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14560. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14561. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14562. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14563. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14564. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14565. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14566. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14567. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14568. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14569. # Check whether --enable-atomic was given.
  14570. if test "${enable_atomic+set}" = set; then :
  14571. enableval=$enable_atomic;
  14572. else
  14573. enable_atomic=yes
  14574. fi
  14575. if test x$enable_atomic != xyes; then
  14576. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14577. else
  14578. SUMMARY_modules="${SUMMARY_modules} atomic"
  14579. fi
  14580. # Check whether --enable-audio was given.
  14581. if test "${enable_audio+set}" = set; then :
  14582. enableval=$enable_audio;
  14583. else
  14584. enable_audio=yes
  14585. fi
  14586. if test x$enable_audio != xyes; then
  14587. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14588. else
  14589. SUMMARY_modules="${SUMMARY_modules} audio"
  14590. fi
  14591. # Check whether --enable-video was given.
  14592. if test "${enable_video+set}" = set; then :
  14593. enableval=$enable_video;
  14594. else
  14595. enable_video=yes
  14596. fi
  14597. if test x$enable_video != xyes; then
  14598. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14599. else
  14600. SUMMARY_modules="${SUMMARY_modules} video"
  14601. fi
  14602. # Check whether --enable-render was given.
  14603. if test "${enable_render+set}" = set; then :
  14604. enableval=$enable_render;
  14605. else
  14606. enable_render=yes
  14607. fi
  14608. if test x$enable_render != xyes; then
  14609. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14610. else
  14611. SUMMARY_modules="${SUMMARY_modules} render"
  14612. fi
  14613. # Check whether --enable-events was given.
  14614. if test "${enable_events+set}" = set; then :
  14615. enableval=$enable_events;
  14616. else
  14617. enable_events=yes
  14618. fi
  14619. if test x$enable_events != xyes; then
  14620. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14621. else
  14622. SUMMARY_modules="${SUMMARY_modules} events"
  14623. fi
  14624. # Check whether --enable-joystick was given.
  14625. if test "${enable_joystick+set}" = set; then :
  14626. enableval=$enable_joystick;
  14627. else
  14628. enable_joystick=yes
  14629. fi
  14630. if test x$enable_joystick != xyes; then
  14631. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14632. else
  14633. SUMMARY_modules="${SUMMARY_modules} joystick"
  14634. fi
  14635. # Check whether --enable-haptic was given.
  14636. if test "${enable_haptic+set}" = set; then :
  14637. enableval=$enable_haptic;
  14638. else
  14639. enable_haptic=yes
  14640. fi
  14641. if test x$enable_haptic != xyes; then
  14642. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14643. else
  14644. SUMMARY_modules="${SUMMARY_modules} haptic"
  14645. fi
  14646. # Check whether --enable-power was given.
  14647. if test "${enable_power+set}" = set; then :
  14648. enableval=$enable_power;
  14649. else
  14650. enable_power=yes
  14651. fi
  14652. if test x$enable_power != xyes; then
  14653. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14654. else
  14655. SUMMARY_modules="${SUMMARY_modules} power"
  14656. fi
  14657. # Check whether --enable-filesystem was given.
  14658. if test "${enable_filesystem+set}" = set; then :
  14659. enableval=$enable_filesystem;
  14660. else
  14661. enable_filesystem=yes
  14662. fi
  14663. if test x$enable_filesystem != xyes; then
  14664. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14665. else
  14666. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14667. fi
  14668. # Check whether --enable-threads was given.
  14669. if test "${enable_threads+set}" = set; then :
  14670. enableval=$enable_threads;
  14671. else
  14672. enable_threads=yes
  14673. fi
  14674. if test x$enable_threads != xyes; then
  14675. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14676. else
  14677. SUMMARY_modules="${SUMMARY_modules} threads"
  14678. fi
  14679. # Check whether --enable-timers was given.
  14680. if test "${enable_timers+set}" = set; then :
  14681. enableval=$enable_timers;
  14682. else
  14683. enable_timers=yes
  14684. fi
  14685. if test x$enable_timers != xyes; then
  14686. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14687. else
  14688. SUMMARY_modules="${SUMMARY_modules} timers"
  14689. fi
  14690. # Check whether --enable-file was given.
  14691. if test "${enable_file+set}" = set; then :
  14692. enableval=$enable_file;
  14693. else
  14694. enable_file=yes
  14695. fi
  14696. if test x$enable_file != xyes; then
  14697. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14698. else
  14699. SUMMARY_modules="${SUMMARY_modules} file"
  14700. fi
  14701. # Check whether --enable-loadso was given.
  14702. if test "${enable_loadso+set}" = set; then :
  14703. enableval=$enable_loadso;
  14704. else
  14705. enable_loadso=yes
  14706. fi
  14707. if test x$enable_loadso != xyes; then
  14708. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14709. else
  14710. SUMMARY_modules="${SUMMARY_modules} loadso"
  14711. fi
  14712. # Check whether --enable-cpuinfo was given.
  14713. if test "${enable_cpuinfo+set}" = set; then :
  14714. enableval=$enable_cpuinfo;
  14715. else
  14716. enable_cpuinfo=yes
  14717. fi
  14718. if test x$enable_cpuinfo != xyes; then
  14719. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14720. else
  14721. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14722. fi
  14723. # Check whether --enable-assembly was given.
  14724. if test "${enable_assembly+set}" = set; then :
  14725. enableval=$enable_assembly;
  14726. else
  14727. enable_assembly=yes
  14728. fi
  14729. if test x$enable_assembly = xyes; then
  14730. SUMMARY_modules="${SUMMARY_modules} assembly"
  14731. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14732. # Make sure that we don't generate floating point code that would
  14733. # cause illegal instruction exceptions on older processors
  14734. case "$host" in
  14735. *-*-darwin*)
  14736. # Don't need to worry about Apple hardware, it's all SSE capable
  14737. default_ssemath=yes
  14738. ;;
  14739. *64-*-*)
  14740. # x86 64-bit architectures all have SSE instructions
  14741. default_ssemath=yes
  14742. ;;
  14743. *)
  14744. default_ssemath=no
  14745. ;;
  14746. esac
  14747. # Check whether --enable-ssemath was given.
  14748. if test "${enable_ssemath+set}" = set; then :
  14749. enableval=$enable_ssemath;
  14750. else
  14751. enable_ssemath=$default_ssemath
  14752. fi
  14753. if test x$enable_ssemath = xno; then
  14754. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14755. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14756. fi
  14757. fi
  14758. # Check whether --enable-mmx was given.
  14759. if test "${enable_mmx+set}" = set; then :
  14760. enableval=$enable_mmx;
  14761. else
  14762. enable_mmx=yes
  14763. fi
  14764. if test x$enable_mmx = xyes; then
  14765. save_CFLAGS="$CFLAGS"
  14766. have_gcc_mmx=no
  14767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14768. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14769. mmx_CFLAGS="-mmmx"
  14770. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14772. /* end confdefs.h. */
  14773. #ifdef __MINGW32__
  14774. #include <_mingw.h>
  14775. #ifdef __MINGW64_VERSION_MAJOR
  14776. #include <intrin.h>
  14777. #else
  14778. #include <mmintrin.h>
  14779. #endif
  14780. #else
  14781. #include <mmintrin.h>
  14782. #endif
  14783. #ifndef __MMX__
  14784. #error Assembler CPP flag not enabled
  14785. #endif
  14786. int
  14787. main ()
  14788. {
  14789. ;
  14790. return 0;
  14791. }
  14792. _ACEOF
  14793. if ac_fn_c_try_compile "$LINENO"; then :
  14794. have_gcc_mmx=yes
  14795. fi
  14796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14798. $as_echo "$have_gcc_mmx" >&6; }
  14799. CFLAGS="$save_CFLAGS"
  14800. if test x$have_gcc_mmx = xyes; then
  14801. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14802. SUMMARY_math="${SUMMARY_math} mmx"
  14803. fi
  14804. fi
  14805. # Check whether --enable-3dnow was given.
  14806. if test "${enable_3dnow+set}" = set; then :
  14807. enableval=$enable_3dnow;
  14808. else
  14809. enable_3dnow=yes
  14810. fi
  14811. if test x$enable_3dnow = xyes; then
  14812. save_CFLAGS="$CFLAGS"
  14813. have_gcc_3dnow=no
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14815. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14816. amd3dnow_CFLAGS="-m3dnow"
  14817. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14819. /* end confdefs.h. */
  14820. #include <mm3dnow.h>
  14821. #ifndef __3dNOW__
  14822. #error Assembler CPP flag not enabled
  14823. #endif
  14824. int
  14825. main ()
  14826. {
  14827. void *p = 0;
  14828. _m_prefetch(p);
  14829. ;
  14830. return 0;
  14831. }
  14832. _ACEOF
  14833. if ac_fn_c_try_link "$LINENO"; then :
  14834. have_gcc_3dnow=yes
  14835. fi
  14836. rm -f core conftest.err conftest.$ac_objext \
  14837. conftest$ac_exeext conftest.$ac_ext
  14838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14839. $as_echo "$have_gcc_3dnow" >&6; }
  14840. CFLAGS="$save_CFLAGS"
  14841. if test x$have_gcc_3dnow = xyes; then
  14842. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14843. SUMMARY_math="${SUMMARY_math} 3dnow"
  14844. fi
  14845. fi
  14846. # Check whether --enable-sse was given.
  14847. if test "${enable_sse+set}" = set; then :
  14848. enableval=$enable_sse;
  14849. else
  14850. enable_sse=yes
  14851. fi
  14852. if test x$enable_sse = xyes; then
  14853. save_CFLAGS="$CFLAGS"
  14854. have_gcc_sse=no
  14855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14856. $as_echo_n "checking for GCC -msse option... " >&6; }
  14857. sse_CFLAGS="-msse"
  14858. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14860. /* end confdefs.h. */
  14861. #ifdef __MINGW32__
  14862. #include <_mingw.h>
  14863. #ifdef __MINGW64_VERSION_MAJOR
  14864. #include <intrin.h>
  14865. #else
  14866. #include <xmmintrin.h>
  14867. #endif
  14868. #else
  14869. #include <xmmintrin.h>
  14870. #endif
  14871. #ifndef __SSE__
  14872. #error Assembler CPP flag not enabled
  14873. #endif
  14874. int
  14875. main ()
  14876. {
  14877. ;
  14878. return 0;
  14879. }
  14880. _ACEOF
  14881. if ac_fn_c_try_compile "$LINENO"; then :
  14882. have_gcc_sse=yes
  14883. fi
  14884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14886. $as_echo "$have_gcc_sse" >&6; }
  14887. CFLAGS="$save_CFLAGS"
  14888. if test x$have_gcc_sse = xyes; then
  14889. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14890. SUMMARY_math="${SUMMARY_math} sse"
  14891. fi
  14892. fi
  14893. # Check whether --enable-sse2 was given.
  14894. if test "${enable_sse2+set}" = set; then :
  14895. enableval=$enable_sse2;
  14896. else
  14897. enable_sse2=$default_ssemath
  14898. fi
  14899. if test x$enable_sse2 = xyes; then
  14900. save_CFLAGS="$CFLAGS"
  14901. have_gcc_sse2=no
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14903. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14904. sse2_CFLAGS="-msse2"
  14905. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14907. /* end confdefs.h. */
  14908. #ifdef __MINGW32__
  14909. #include <_mingw.h>
  14910. #ifdef __MINGW64_VERSION_MAJOR
  14911. #include <intrin.h>
  14912. #else
  14913. #include <emmintrin.h>
  14914. #endif
  14915. #else
  14916. #include <emmintrin.h>
  14917. #endif
  14918. #ifndef __SSE2__
  14919. #error Assembler CPP flag not enabled
  14920. #endif
  14921. int
  14922. main ()
  14923. {
  14924. ;
  14925. return 0;
  14926. }
  14927. _ACEOF
  14928. if ac_fn_c_try_compile "$LINENO"; then :
  14929. have_gcc_sse2=yes
  14930. fi
  14931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14933. $as_echo "$have_gcc_sse2" >&6; }
  14934. CFLAGS="$save_CFLAGS"
  14935. if test x$have_gcc_sse2 = xyes; then
  14936. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14937. SUMMARY_math="${SUMMARY_math} sse2"
  14938. fi
  14939. fi
  14940. # Check whether --enable-sse3 was given.
  14941. if test "${enable_sse3+set}" = set; then :
  14942. enableval=$enable_sse3;
  14943. else
  14944. enable_sse3=$default_ssemath
  14945. fi
  14946. if test x$enable_sse3 = xyes; then
  14947. save_CFLAGS="$CFLAGS"
  14948. have_gcc_sse3=no
  14949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14950. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14951. sse3_CFLAGS="-msse3"
  14952. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14954. /* end confdefs.h. */
  14955. #ifdef __MINGW32__
  14956. #include <_mingw.h>
  14957. #ifdef __MINGW64_VERSION_MAJOR
  14958. #include <intrin.h>
  14959. #else
  14960. #include <pmmintrin.h>
  14961. #endif
  14962. #else
  14963. #include <pmmintrin.h>
  14964. #endif
  14965. #ifndef __SSE2__
  14966. #error Assembler CPP flag not enabled
  14967. #endif
  14968. int
  14969. main ()
  14970. {
  14971. ;
  14972. return 0;
  14973. }
  14974. _ACEOF
  14975. if ac_fn_c_try_compile "$LINENO"; then :
  14976. have_gcc_sse3=yes
  14977. fi
  14978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14980. $as_echo "$have_gcc_sse3" >&6; }
  14981. CFLAGS="$save_CFLAGS"
  14982. if test x$have_gcc_sse3 = xyes; then
  14983. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14984. SUMMARY_math="${SUMMARY_math} sse3"
  14985. fi
  14986. fi
  14987. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  14988. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  14989. have_immintrin_h_hdr=yes
  14990. else
  14991. have_immintrin_h_hdr=no
  14992. fi
  14993. if test x$have_immintrin_h_hdr = xyes; then
  14994. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  14995. fi
  14996. # Check whether --enable-altivec was given.
  14997. if test "${enable_altivec+set}" = set; then :
  14998. enableval=$enable_altivec;
  14999. else
  15000. enable_altivec=yes
  15001. fi
  15002. if test x$enable_altivec = xyes; then
  15003. save_CFLAGS="$CFLAGS"
  15004. have_gcc_altivec=no
  15005. have_altivec_h_hdr=no
  15006. altivec_CFLAGS="-maltivec"
  15007. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15009. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15011. /* end confdefs.h. */
  15012. #include <altivec.h>
  15013. vector unsigned int vzero() {
  15014. return vec_splat_u32(0);
  15015. }
  15016. int
  15017. main ()
  15018. {
  15019. ;
  15020. return 0;
  15021. }
  15022. _ACEOF
  15023. if ac_fn_c_try_compile "$LINENO"; then :
  15024. have_gcc_altivec=yes
  15025. have_altivec_h_hdr=yes
  15026. fi
  15027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15029. $as_echo "$have_gcc_altivec" >&6; }
  15030. if test x$have_gcc_altivec = xno; then
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15032. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. vector unsigned int vzero() {
  15036. return vec_splat_u32(0);
  15037. }
  15038. int
  15039. main ()
  15040. {
  15041. ;
  15042. return 0;
  15043. }
  15044. _ACEOF
  15045. if ac_fn_c_try_compile "$LINENO"; then :
  15046. have_gcc_altivec=yes
  15047. fi
  15048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15050. $as_echo "$have_gcc_altivec" >&6; }
  15051. fi
  15052. if test x$have_gcc_altivec = xno; then
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15054. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15055. altivec_CFLAGS="-faltivec"
  15056. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15058. /* end confdefs.h. */
  15059. #include <altivec.h>
  15060. vector unsigned int vzero() {
  15061. return vec_splat_u32(0);
  15062. }
  15063. int
  15064. main ()
  15065. {
  15066. ;
  15067. return 0;
  15068. }
  15069. _ACEOF
  15070. if ac_fn_c_try_compile "$LINENO"; then :
  15071. have_gcc_altivec=yes
  15072. have_altivec_h_hdr=yes
  15073. fi
  15074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15076. $as_echo "$have_gcc_altivec" >&6; }
  15077. fi
  15078. if test x$have_gcc_altivec = xno; then
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15080. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15082. /* end confdefs.h. */
  15083. vector unsigned int vzero() {
  15084. return vec_splat_u32(0);
  15085. }
  15086. int
  15087. main ()
  15088. {
  15089. ;
  15090. return 0;
  15091. }
  15092. _ACEOF
  15093. if ac_fn_c_try_compile "$LINENO"; then :
  15094. have_gcc_altivec=yes
  15095. fi
  15096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15098. $as_echo "$have_gcc_altivec" >&6; }
  15099. fi
  15100. CFLAGS="$save_CFLAGS"
  15101. if test x$have_gcc_altivec = xyes; then
  15102. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15103. if test x$have_altivec_h_hdr = xyes; then
  15104. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15105. fi
  15106. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15107. SUMMARY_math="${SUMMARY_math} altivec"
  15108. fi
  15109. fi
  15110. fi
  15111. CheckOSS()
  15112. {
  15113. # Check whether --enable-oss was given.
  15114. if test "${enable_oss+set}" = set; then :
  15115. enableval=$enable_oss;
  15116. else
  15117. enable_oss=maybe
  15118. fi
  15119. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15120. # use sndio instead. So on there, we default to disabled. You can force
  15121. # it on if you really want, though.
  15122. if test x$enable_oss = xmaybe; then
  15123. enable_oss=yes
  15124. case "$host" in
  15125. *-*-openbsd*)
  15126. enable_oss=no;;
  15127. esac
  15128. fi
  15129. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15131. $as_echo_n "checking for OSS audio support... " >&6; }
  15132. have_oss=no
  15133. if test x$have_oss != xyes; then
  15134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15135. /* end confdefs.h. */
  15136. #include <sys/soundcard.h>
  15137. int
  15138. main ()
  15139. {
  15140. int arg = SNDCTL_DSP_SETFRAGMENT;
  15141. ;
  15142. return 0;
  15143. }
  15144. _ACEOF
  15145. if ac_fn_c_try_compile "$LINENO"; then :
  15146. have_oss=yes
  15147. fi
  15148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15149. fi
  15150. if test x$have_oss != xyes; then
  15151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15152. /* end confdefs.h. */
  15153. #include <soundcard.h>
  15154. int
  15155. main ()
  15156. {
  15157. int arg = SNDCTL_DSP_SETFRAGMENT;
  15158. ;
  15159. return 0;
  15160. }
  15161. _ACEOF
  15162. if ac_fn_c_try_compile "$LINENO"; then :
  15163. have_oss=yes
  15164. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15165. fi
  15166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15167. fi
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15169. $as_echo "$have_oss" >&6; }
  15170. if test x$have_oss = xyes; then
  15171. SUMMARY_audio="${SUMMARY_audio} oss"
  15172. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15173. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15174. have_audio=yes
  15175. # We may need to link with ossaudio emulation library
  15176. case "$host" in
  15177. *-*-openbsd*|*-*-netbsd*)
  15178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15179. esac
  15180. fi
  15181. fi
  15182. }
  15183. CheckALSA()
  15184. {
  15185. # Check whether --enable-alsa was given.
  15186. if test "${enable_alsa+set}" = set; then :
  15187. enableval=$enable_alsa;
  15188. else
  15189. enable_alsa=yes
  15190. fi
  15191. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15192. alsa_save_CFLAGS="$CFLAGS"
  15193. alsa_save_LDFLAGS="$LDFLAGS"
  15194. alsa_save_LIBS="$LIBS"
  15195. alsa_found=yes
  15196. # Check whether --with-alsa-prefix was given.
  15197. if test "${with_alsa_prefix+set}" = set; then :
  15198. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15199. else
  15200. alsa_prefix=""
  15201. fi
  15202. # Check whether --with-alsa-inc-prefix was given.
  15203. if test "${with_alsa_inc_prefix+set}" = set; then :
  15204. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15205. else
  15206. alsa_inc_prefix=""
  15207. fi
  15208. # Check whether --enable-alsatest was given.
  15209. if test "${enable_alsatest+set}" = set; then :
  15210. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15211. else
  15212. enable_alsatest=yes
  15213. fi
  15214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15215. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15216. if test "$alsa_inc_prefix" != "" ; then
  15217. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15218. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15219. fi
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15221. $as_echo "$ALSA_CFLAGS" >&6; }
  15222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15223. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15224. if test "$alsa_prefix" != "" ; then
  15225. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15226. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15227. fi
  15228. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15229. LIBS=`echo $LIBS | sed 's/-lm//'`
  15230. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15231. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15232. LIBS=`echo $LIBS | sed 's/ //'`
  15233. LIBS="$ALSA_LIBS $LIBS"
  15234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15235. $as_echo "$ALSA_LIBS" >&6; }
  15236. min_alsa_version=1.0.11
  15237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15238. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15239. no_alsa=""
  15240. alsa_min_major_version=`echo $min_alsa_version | \
  15241. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15242. alsa_min_minor_version=`echo $min_alsa_version | \
  15243. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15244. alsa_min_micro_version=`echo $min_alsa_version | \
  15245. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15246. ac_ext=c
  15247. ac_cpp='$CPP $CPPFLAGS'
  15248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15252. /* end confdefs.h. */
  15253. #include <alsa/asoundlib.h>
  15254. int
  15255. main ()
  15256. {
  15257. /* ensure backward compatibility */
  15258. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15259. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15260. #endif
  15261. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15262. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15263. #endif
  15264. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15265. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15266. #endif
  15267. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15268. exit(0);
  15269. # else
  15270. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15271. # error not present
  15272. # endif
  15273. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15274. exit(0);
  15275. # else
  15276. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15277. # error not present
  15278. # endif
  15279. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15280. # error not present
  15281. # endif
  15282. # endif
  15283. # endif
  15284. exit(0);
  15285. ;
  15286. return 0;
  15287. }
  15288. _ACEOF
  15289. if ac_fn_c_try_compile "$LINENO"; then :
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15291. $as_echo "found." >&6; }
  15292. else
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15294. $as_echo "not present." >&6; }
  15295. alsa_found=no
  15296. fi
  15297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15298. ac_ext=c
  15299. ac_cpp='$CPP $CPPFLAGS'
  15300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15303. if test "x$enable_alsatest" = "xyes"; then
  15304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15305. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15306. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15307. $as_echo_n "(cached) " >&6
  15308. else
  15309. ac_check_lib_save_LIBS=$LIBS
  15310. LIBS="-lasound $LIBS"
  15311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15312. /* end confdefs.h. */
  15313. /* Override any GCC internal prototype to avoid an error.
  15314. Use char because int might match the return type of a GCC
  15315. builtin and then its argument prototype would still apply. */
  15316. #ifdef __cplusplus
  15317. extern "C"
  15318. #endif
  15319. char snd_ctl_open ();
  15320. int
  15321. main ()
  15322. {
  15323. return snd_ctl_open ();
  15324. ;
  15325. return 0;
  15326. }
  15327. _ACEOF
  15328. if ac_fn_c_try_link "$LINENO"; then :
  15329. ac_cv_lib_asound_snd_ctl_open=yes
  15330. else
  15331. ac_cv_lib_asound_snd_ctl_open=no
  15332. fi
  15333. rm -f core conftest.err conftest.$ac_objext \
  15334. conftest$ac_exeext conftest.$ac_ext
  15335. LIBS=$ac_check_lib_save_LIBS
  15336. fi
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15338. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15339. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15340. cat >>confdefs.h <<_ACEOF
  15341. #define HAVE_LIBASOUND 1
  15342. _ACEOF
  15343. LIBS="-lasound $LIBS"
  15344. else
  15345. alsa_found=no
  15346. fi
  15347. fi
  15348. if test "x$alsa_found" = "xyes" ; then
  15349. have_alsa=yes
  15350. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15351. LIBS=`echo $LIBS | sed 's/ //'`
  15352. LIBS="-lasound $LIBS"
  15353. fi
  15354. if test "x$alsa_found" = "xno" ; then
  15355. have_alsa=no
  15356. CFLAGS="$alsa_save_CFLAGS"
  15357. LDFLAGS="$alsa_save_LDFLAGS"
  15358. LIBS="$alsa_save_LIBS"
  15359. ALSA_CFLAGS=""
  15360. ALSA_LIBS=""
  15361. fi
  15362. # Restore all flags from before the ALSA detection runs
  15363. CFLAGS="$alsa_save_CFLAGS"
  15364. LDFLAGS="$alsa_save_LDFLAGS"
  15365. LIBS="$alsa_save_LIBS"
  15366. if test x$have_alsa = xyes; then
  15367. # Check whether --enable-alsa-shared was given.
  15368. if test "${enable_alsa_shared+set}" = set; then :
  15369. enableval=$enable_alsa_shared;
  15370. else
  15371. enable_alsa_shared=yes
  15372. fi
  15373. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15374. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15375. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15376. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15377. if test x$have_loadso != xyes && \
  15378. test x$enable_alsa_shared = xyes; then
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15380. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15381. fi
  15382. if test x$have_loadso = xyes && \
  15383. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15384. echo "-- dynamic libasound -> $alsa_lib"
  15385. cat >>confdefs.h <<_ACEOF
  15386. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15387. _ACEOF
  15388. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15389. else
  15390. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15391. SUMMARY_audio="${SUMMARY_audio} alsa"
  15392. fi
  15393. have_audio=yes
  15394. fi
  15395. fi
  15396. }
  15397. CheckJACK()
  15398. {
  15399. # Check whether --enable-jack was given.
  15400. if test "${enable_jack+set}" = set; then :
  15401. enableval=$enable_jack;
  15402. else
  15403. enable_jack=yes
  15404. fi
  15405. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15406. audio_jack=no
  15407. JACK_REQUIRED_VERSION=0.125
  15408. # Extract the first word of "pkg-config", so it can be a program name with args.
  15409. set dummy pkg-config; ac_word=$2
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15411. $as_echo_n "checking for $ac_word... " >&6; }
  15412. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15413. $as_echo_n "(cached) " >&6
  15414. else
  15415. case $PKG_CONFIG in
  15416. [\\/]* | ?:[\\/]*)
  15417. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15418. ;;
  15419. *)
  15420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15421. for as_dir in $PATH
  15422. do
  15423. IFS=$as_save_IFS
  15424. test -z "$as_dir" && as_dir=.
  15425. for ac_exec_ext in '' $ac_executable_extensions; do
  15426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15427. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15429. break 2
  15430. fi
  15431. done
  15432. done
  15433. IFS=$as_save_IFS
  15434. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15435. ;;
  15436. esac
  15437. fi
  15438. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15439. if test -n "$PKG_CONFIG"; then
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15441. $as_echo "$PKG_CONFIG" >&6; }
  15442. else
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15444. $as_echo "no" >&6; }
  15445. fi
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15447. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15448. if test x$PKG_CONFIG != xno; then
  15449. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15450. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15451. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15452. audio_jack=yes
  15453. fi
  15454. fi
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15456. $as_echo "$audio_jack" >&6; }
  15457. if test x$audio_jack = xyes; then
  15458. # Check whether --enable-jack-shared was given.
  15459. if test "${enable_jack_shared+set}" = set; then :
  15460. enableval=$enable_jack_shared;
  15461. else
  15462. enable_jack_shared=yes
  15463. fi
  15464. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15465. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15466. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15467. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15468. if test x$have_loadso != xyes && \
  15469. test x$enable_jack_shared = xyes; then
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15471. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15472. fi
  15473. if test x$have_loadso = xyes && \
  15474. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15475. echo "-- dynamic libjack -> $jack_lib"
  15476. cat >>confdefs.h <<_ACEOF
  15477. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15478. _ACEOF
  15479. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15480. case "$host" in
  15481. # On Solaris, jack must be linked deferred explicitly
  15482. # to prevent undefined symbol failures.
  15483. *-*-solaris*)
  15484. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15485. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15486. esac
  15487. else
  15488. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15489. SUMMARY_audio="${SUMMARY_audio} jack"
  15490. fi
  15491. have_audio=yes
  15492. fi
  15493. fi
  15494. }
  15495. CheckESD()
  15496. {
  15497. # Check whether --enable-esd was given.
  15498. if test "${enable_esd+set}" = set; then :
  15499. enableval=$enable_esd;
  15500. else
  15501. enable_esd=yes
  15502. fi
  15503. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15504. # Check whether --with-esd-prefix was given.
  15505. if test "${with_esd_prefix+set}" = set; then :
  15506. withval=$with_esd_prefix; esd_prefix="$withval"
  15507. else
  15508. esd_prefix=""
  15509. fi
  15510. # Check whether --with-esd-exec-prefix was given.
  15511. if test "${with_esd_exec_prefix+set}" = set; then :
  15512. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15513. else
  15514. esd_exec_prefix=""
  15515. fi
  15516. # Check whether --enable-esdtest was given.
  15517. if test "${enable_esdtest+set}" = set; then :
  15518. enableval=$enable_esdtest;
  15519. else
  15520. enable_esdtest=yes
  15521. fi
  15522. if test x$esd_exec_prefix != x ; then
  15523. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15524. if test x${ESD_CONFIG+set} != xset ; then
  15525. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15526. fi
  15527. fi
  15528. if test x$esd_prefix != x ; then
  15529. esd_args="$esd_args --prefix=$esd_prefix"
  15530. if test x${ESD_CONFIG+set} != xset ; then
  15531. ESD_CONFIG=$esd_prefix/bin/esd-config
  15532. fi
  15533. fi
  15534. # Extract the first word of "esd-config", so it can be a program name with args.
  15535. set dummy esd-config; ac_word=$2
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15537. $as_echo_n "checking for $ac_word... " >&6; }
  15538. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15539. $as_echo_n "(cached) " >&6
  15540. else
  15541. case $ESD_CONFIG in
  15542. [\\/]* | ?:[\\/]*)
  15543. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15544. ;;
  15545. *)
  15546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15547. for as_dir in $PATH
  15548. do
  15549. IFS=$as_save_IFS
  15550. test -z "$as_dir" && as_dir=.
  15551. for ac_exec_ext in '' $ac_executable_extensions; do
  15552. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15553. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15554. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15555. break 2
  15556. fi
  15557. done
  15558. done
  15559. IFS=$as_save_IFS
  15560. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15561. ;;
  15562. esac
  15563. fi
  15564. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15565. if test -n "$ESD_CONFIG"; then
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15567. $as_echo "$ESD_CONFIG" >&6; }
  15568. else
  15569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15570. $as_echo "no" >&6; }
  15571. fi
  15572. min_esd_version=0.2.8
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15574. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15575. no_esd=""
  15576. if test "$ESD_CONFIG" = "no" ; then
  15577. no_esd=yes
  15578. else
  15579. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15580. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15581. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15582. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15583. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15584. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15585. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15586. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15587. if test "x$enable_esdtest" = "xyes" ; then
  15588. ac_save_CFLAGS="$CFLAGS"
  15589. ac_save_LIBS="$LIBS"
  15590. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15591. LIBS="$LIBS $ESD_LIBS"
  15592. rm -f conf.esdtest
  15593. if test "$cross_compiling" = yes; then :
  15594. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15595. else
  15596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15597. /* end confdefs.h. */
  15598. #include <stdio.h>
  15599. #include <stdlib.h>
  15600. #include <string.h>
  15601. #include <esd.h>
  15602. char*
  15603. my_strdup (char *str)
  15604. {
  15605. char *new_str;
  15606. if (str)
  15607. {
  15608. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15609. strcpy (new_str, str);
  15610. }
  15611. else
  15612. new_str = NULL;
  15613. return new_str;
  15614. }
  15615. int main ()
  15616. {
  15617. int major, minor, micro;
  15618. char *tmp_version;
  15619. system ("touch conf.esdtest");
  15620. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15621. tmp_version = my_strdup("$min_esd_version");
  15622. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15623. printf("%s, bad version string\n", "$min_esd_version");
  15624. exit(1);
  15625. }
  15626. if (($esd_major_version > major) ||
  15627. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15628. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15629. {
  15630. return 0;
  15631. }
  15632. else
  15633. {
  15634. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15635. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15636. printf("*** best to upgrade to the required version.\n");
  15637. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15638. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15639. printf("*** config.cache before re-running configure\n");
  15640. return 1;
  15641. }
  15642. }
  15643. _ACEOF
  15644. if ac_fn_c_try_run "$LINENO"; then :
  15645. else
  15646. no_esd=yes
  15647. fi
  15648. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15649. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15650. fi
  15651. CFLAGS="$ac_save_CFLAGS"
  15652. LIBS="$ac_save_LIBS"
  15653. fi
  15654. fi
  15655. if test "x$no_esd" = x ; then
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15657. $as_echo "yes" >&6; }
  15658. have_esd=yes
  15659. else
  15660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15661. $as_echo "no" >&6; }
  15662. if test "$ESD_CONFIG" = "no" ; then
  15663. echo "*** The esd-config script installed by ESD could not be found"
  15664. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15665. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15666. echo "*** full path to esd-config."
  15667. else
  15668. if test -f conf.esdtest ; then
  15669. :
  15670. else
  15671. echo "*** Could not run ESD test program, checking why..."
  15672. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15673. LIBS="$LIBS $ESD_LIBS"
  15674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15675. /* end confdefs.h. */
  15676. #include <stdio.h>
  15677. #include <esd.h>
  15678. int
  15679. main ()
  15680. {
  15681. return 0;
  15682. ;
  15683. return 0;
  15684. }
  15685. _ACEOF
  15686. if ac_fn_c_try_link "$LINENO"; then :
  15687. echo "*** The test program compiled, but did not run. This usually means"
  15688. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15689. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15690. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15691. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15692. echo "*** is required on your system"
  15693. echo "***"
  15694. echo "*** If you have an old version installed, it is best to remove it, although"
  15695. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15696. else
  15697. echo "*** The test program failed to compile or link. See the file config.log for the"
  15698. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15699. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15700. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15701. fi
  15702. rm -f core conftest.err conftest.$ac_objext \
  15703. conftest$ac_exeext conftest.$ac_ext
  15704. CFLAGS="$ac_save_CFLAGS"
  15705. LIBS="$ac_save_LIBS"
  15706. fi
  15707. fi
  15708. ESD_CFLAGS=""
  15709. ESD_LIBS=""
  15710. have_esd=no
  15711. fi
  15712. rm -f conf.esdtest
  15713. if test x$have_esd = xyes; then
  15714. # Check whether --enable-esd-shared was given.
  15715. if test "${enable_esd_shared+set}" = set; then :
  15716. enableval=$enable_esd_shared;
  15717. else
  15718. enable_esd_shared=yes
  15719. fi
  15720. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15721. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15722. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15723. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15724. if test x$have_loadso != xyes && \
  15725. test x$enable_esd_shared = xyes; then
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15727. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15728. fi
  15729. if test x$have_loadso = xyes && \
  15730. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15731. echo "-- dynamic libesd -> $esd_lib"
  15732. cat >>confdefs.h <<_ACEOF
  15733. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15734. _ACEOF
  15735. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15736. else
  15737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15738. SUMMARY_audio="${SUMMARY_audio} esd"
  15739. fi
  15740. have_audio=yes
  15741. fi
  15742. fi
  15743. }
  15744. CheckPulseAudio()
  15745. {
  15746. # Check whether --enable-pulseaudio was given.
  15747. if test "${enable_pulseaudio+set}" = set; then :
  15748. enableval=$enable_pulseaudio;
  15749. else
  15750. enable_pulseaudio=yes
  15751. fi
  15752. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15753. audio_pulseaudio=no
  15754. PULSEAUDIO_REQUIRED_VERSION=0.9
  15755. # Extract the first word of "pkg-config", so it can be a program name with args.
  15756. set dummy pkg-config; ac_word=$2
  15757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15758. $as_echo_n "checking for $ac_word... " >&6; }
  15759. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15760. $as_echo_n "(cached) " >&6
  15761. else
  15762. case $PKG_CONFIG in
  15763. [\\/]* | ?:[\\/]*)
  15764. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15765. ;;
  15766. *)
  15767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15768. for as_dir in $PATH
  15769. do
  15770. IFS=$as_save_IFS
  15771. test -z "$as_dir" && as_dir=.
  15772. for ac_exec_ext in '' $ac_executable_extensions; do
  15773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15774. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15776. break 2
  15777. fi
  15778. done
  15779. done
  15780. IFS=$as_save_IFS
  15781. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15782. ;;
  15783. esac
  15784. fi
  15785. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15786. if test -n "$PKG_CONFIG"; then
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15788. $as_echo "$PKG_CONFIG" >&6; }
  15789. else
  15790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15791. $as_echo "no" >&6; }
  15792. fi
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15794. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15795. if test x$PKG_CONFIG != xno; then
  15796. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15797. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15798. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15799. audio_pulseaudio=yes
  15800. fi
  15801. fi
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15803. $as_echo "$audio_pulseaudio" >&6; }
  15804. if test x$audio_pulseaudio = xyes; then
  15805. # Check whether --enable-pulseaudio-shared was given.
  15806. if test "${enable_pulseaudio_shared+set}" = set; then :
  15807. enableval=$enable_pulseaudio_shared;
  15808. else
  15809. enable_pulseaudio_shared=yes
  15810. fi
  15811. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15812. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15813. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15814. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15815. if test x$have_loadso != xyes && \
  15816. test x$enable_pulseaudio_shared = xyes; then
  15817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15818. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15819. fi
  15820. if test x$have_loadso = xyes && \
  15821. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15822. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15823. cat >>confdefs.h <<_ACEOF
  15824. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15825. _ACEOF
  15826. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15827. case "$host" in
  15828. # On Solaris, pulseaudio must be linked deferred explicitly
  15829. # to prevent undefined symbol failures.
  15830. *-*-solaris*)
  15831. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15833. esac
  15834. else
  15835. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15836. SUMMARY_audio="${SUMMARY_audio} pulse"
  15837. fi
  15838. have_audio=yes
  15839. fi
  15840. fi
  15841. }
  15842. CheckARTSC()
  15843. {
  15844. # Check whether --enable-arts was given.
  15845. if test "${enable_arts+set}" = set; then :
  15846. enableval=$enable_arts;
  15847. else
  15848. enable_arts=yes
  15849. fi
  15850. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15851. # Extract the first word of "artsc-config", so it can be a program name with args.
  15852. set dummy artsc-config; ac_word=$2
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15854. $as_echo_n "checking for $ac_word... " >&6; }
  15855. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15856. $as_echo_n "(cached) " >&6
  15857. else
  15858. case $ARTSCONFIG in
  15859. [\\/]* | ?:[\\/]*)
  15860. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15861. ;;
  15862. *)
  15863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15864. for as_dir in $PATH
  15865. do
  15866. IFS=$as_save_IFS
  15867. test -z "$as_dir" && as_dir=.
  15868. for ac_exec_ext in '' $ac_executable_extensions; do
  15869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15870. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15872. break 2
  15873. fi
  15874. done
  15875. done
  15876. IFS=$as_save_IFS
  15877. ;;
  15878. esac
  15879. fi
  15880. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15881. if test -n "$ARTSCONFIG"; then
  15882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15883. $as_echo "$ARTSCONFIG" >&6; }
  15884. else
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15886. $as_echo "no" >&6; }
  15887. fi
  15888. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15889. : # arts isn't installed
  15890. else
  15891. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15892. ARTS_LIBS=`$ARTSCONFIG --libs`
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15894. $as_echo_n "checking for aRts development environment... " >&6; }
  15895. audio_arts=no
  15896. save_CFLAGS="$CFLAGS"
  15897. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15899. /* end confdefs.h. */
  15900. #include <artsc.h>
  15901. int
  15902. main ()
  15903. {
  15904. arts_stream_t stream;
  15905. ;
  15906. return 0;
  15907. }
  15908. _ACEOF
  15909. if ac_fn_c_try_compile "$LINENO"; then :
  15910. audio_arts=yes
  15911. fi
  15912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15913. CFLAGS="$save_CFLAGS"
  15914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15915. $as_echo "$audio_arts" >&6; }
  15916. if test x$audio_arts = xyes; then
  15917. # Check whether --enable-arts-shared was given.
  15918. if test "${enable_arts_shared+set}" = set; then :
  15919. enableval=$enable_arts_shared;
  15920. else
  15921. enable_arts_shared=yes
  15922. fi
  15923. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15924. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15925. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15926. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15927. if test x$have_loadso != xyes && \
  15928. test x$enable_arts_shared = xyes; then
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15930. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15931. fi
  15932. if test x$have_loadso = xyes && \
  15933. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15934. echo "-- dynamic libartsc -> $arts_lib"
  15935. cat >>confdefs.h <<_ACEOF
  15936. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15937. _ACEOF
  15938. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15939. else
  15940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15941. SUMMARY_audio="${SUMMARY_audio} arts"
  15942. fi
  15943. have_audio=yes
  15944. fi
  15945. fi
  15946. fi
  15947. }
  15948. CheckNAS()
  15949. {
  15950. # Check whether --enable-nas was given.
  15951. if test "${enable_nas+set}" = set; then :
  15952. enableval=$enable_nas;
  15953. else
  15954. enable_nas=yes
  15955. fi
  15956. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15957. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15958. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15959. have_nas_hdr=yes
  15960. fi
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15962. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15963. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15964. $as_echo_n "(cached) " >&6
  15965. else
  15966. ac_check_lib_save_LIBS=$LIBS
  15967. LIBS="-laudio $LIBS"
  15968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15969. /* end confdefs.h. */
  15970. /* Override any GCC internal prototype to avoid an error.
  15971. Use char because int might match the return type of a GCC
  15972. builtin and then its argument prototype would still apply. */
  15973. #ifdef __cplusplus
  15974. extern "C"
  15975. #endif
  15976. char AuOpenServer ();
  15977. int
  15978. main ()
  15979. {
  15980. return AuOpenServer ();
  15981. ;
  15982. return 0;
  15983. }
  15984. _ACEOF
  15985. if ac_fn_c_try_link "$LINENO"; then :
  15986. ac_cv_lib_audio_AuOpenServer=yes
  15987. else
  15988. ac_cv_lib_audio_AuOpenServer=no
  15989. fi
  15990. rm -f core conftest.err conftest.$ac_objext \
  15991. conftest$ac_exeext conftest.$ac_ext
  15992. LIBS=$ac_check_lib_save_LIBS
  15993. fi
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15995. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15996. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15997. have_nas_lib=yes
  15998. fi
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16000. $as_echo_n "checking for NAS audio support... " >&6; }
  16001. have_nas=no
  16002. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16003. have_nas=yes
  16004. NAS_LIBS="-laudio"
  16005. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16006. have_nas=yes
  16007. NAS_CFLAGS="-I/usr/X11R6/include/"
  16008. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16009. fi
  16010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16011. $as_echo "$have_nas" >&6; }
  16012. if test x$have_nas = xyes; then
  16013. # Check whether --enable-nas-shared was given.
  16014. if test "${enable_nas_shared+set}" = set; then :
  16015. enableval=$enable_nas_shared;
  16016. else
  16017. enable_nas_shared=yes
  16018. fi
  16019. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16020. if test x$have_loadso != xyes && \
  16021. test x$enable_nas_shared = xyes; then
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16023. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16024. fi
  16025. if test x$have_loadso = xyes && \
  16026. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16027. echo "-- dynamic libaudio -> $nas_lib"
  16028. cat >>confdefs.h <<_ACEOF
  16029. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16030. _ACEOF
  16031. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16032. else
  16033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16034. SUMMARY_audio="${SUMMARY_audio} nas"
  16035. fi
  16036. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16037. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16038. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16039. have_audio=yes
  16040. fi
  16041. fi
  16042. }
  16043. CheckSNDIO()
  16044. {
  16045. # Check whether --enable-sndio was given.
  16046. if test "${enable_sndio+set}" = set; then :
  16047. enableval=$enable_sndio;
  16048. else
  16049. enable_sndio=yes
  16050. fi
  16051. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16052. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16053. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16054. have_sndio_hdr=yes
  16055. fi
  16056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16057. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16058. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16059. $as_echo_n "(cached) " >&6
  16060. else
  16061. ac_check_lib_save_LIBS=$LIBS
  16062. LIBS="-lsndio $LIBS"
  16063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16064. /* end confdefs.h. */
  16065. /* Override any GCC internal prototype to avoid an error.
  16066. Use char because int might match the return type of a GCC
  16067. builtin and then its argument prototype would still apply. */
  16068. #ifdef __cplusplus
  16069. extern "C"
  16070. #endif
  16071. char sio_open ();
  16072. int
  16073. main ()
  16074. {
  16075. return sio_open ();
  16076. ;
  16077. return 0;
  16078. }
  16079. _ACEOF
  16080. if ac_fn_c_try_link "$LINENO"; then :
  16081. ac_cv_lib_sndio_sio_open=yes
  16082. else
  16083. ac_cv_lib_sndio_sio_open=no
  16084. fi
  16085. rm -f core conftest.err conftest.$ac_objext \
  16086. conftest$ac_exeext conftest.$ac_ext
  16087. LIBS=$ac_check_lib_save_LIBS
  16088. fi
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16090. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16091. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16092. have_sndio_lib=yes
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16095. $as_echo_n "checking for sndio audio support... " >&6; }
  16096. have_sndio=no
  16097. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16098. have_sndio=yes
  16099. SNDIO_LIBS="-lsndio"
  16100. fi
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16102. $as_echo "$have_sndio" >&6; }
  16103. if test x$have_sndio = xyes; then
  16104. # Check whether --enable-sndio-shared was given.
  16105. if test "${enable_sndio_shared+set}" = set; then :
  16106. enableval=$enable_sndio_shared;
  16107. else
  16108. enable_sndio_shared=yes
  16109. fi
  16110. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16111. if test x$have_loadso != xyes && \
  16112. test x$enable_sndio_shared = xyes; then
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16114. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16115. fi
  16116. if test x$have_loadso = xyes && \
  16117. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16118. echo "-- dynamic libsndio -> $sndio_lib"
  16119. cat >>confdefs.h <<_ACEOF
  16120. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16121. _ACEOF
  16122. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16123. else
  16124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16125. SUMMARY_audio="${SUMMARY_audio} sndio"
  16126. fi
  16127. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16128. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16129. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16130. have_audio=yes
  16131. fi
  16132. fi
  16133. }
  16134. CheckFusionSound()
  16135. {
  16136. # Check whether --enable-fusionsound was given.
  16137. if test "${enable_fusionsound+set}" = set; then :
  16138. enableval=$enable_fusionsound;
  16139. else
  16140. enable_fusionsound=no
  16141. fi
  16142. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16143. fusionsound=no
  16144. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16145. # Extract the first word of "pkg-config", so it can be a program name with args.
  16146. set dummy pkg-config; ac_word=$2
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16148. $as_echo_n "checking for $ac_word... " >&6; }
  16149. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16150. $as_echo_n "(cached) " >&6
  16151. else
  16152. case $PKG_CONFIG in
  16153. [\\/]* | ?:[\\/]*)
  16154. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16155. ;;
  16156. *)
  16157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16158. for as_dir in $PATH
  16159. do
  16160. IFS=$as_save_IFS
  16161. test -z "$as_dir" && as_dir=.
  16162. for ac_exec_ext in '' $ac_executable_extensions; do
  16163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16164. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16166. break 2
  16167. fi
  16168. done
  16169. done
  16170. IFS=$as_save_IFS
  16171. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16172. ;;
  16173. esac
  16174. fi
  16175. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16176. if test -n "$PKG_CONFIG"; then
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16178. $as_echo "$PKG_CONFIG" >&6; }
  16179. else
  16180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16181. $as_echo "no" >&6; }
  16182. fi
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16184. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16185. if test x$PKG_CONFIG != xno; then
  16186. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16187. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16188. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16189. fusionsound=yes
  16190. fi
  16191. fi
  16192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16193. $as_echo "$fusionsound" >&6; }
  16194. if test x$fusionsound = xyes; then
  16195. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16196. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16197. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16198. # Check whether --enable-fusionsound-shared was given.
  16199. if test "${enable_fusionsound_shared+set}" = set; then :
  16200. enableval=$enable_fusionsound_shared;
  16201. else
  16202. enable_fusionsound_shared=yes
  16203. fi
  16204. fusionsound_shared=no
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16206. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16207. if test x$have_loadso != xyes && \
  16208. test x$enable_fusionsound_shared = xyes; then
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16210. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16211. fi
  16212. if test x$have_loadso = xyes && \
  16213. test x$enable_fusionsound_shared = xyes; then
  16214. cat >>confdefs.h <<_ACEOF
  16215. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16216. _ACEOF
  16217. fusionsound_shared=yes
  16218. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16219. else
  16220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16221. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16222. fi
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16224. $as_echo "$fusionsound_shared" >&6; }
  16225. have_audio=yes
  16226. fi
  16227. fi
  16228. }
  16229. CheckDiskAudio()
  16230. {
  16231. # Check whether --enable-diskaudio was given.
  16232. if test "${enable_diskaudio+set}" = set; then :
  16233. enableval=$enable_diskaudio;
  16234. else
  16235. enable_diskaudio=yes
  16236. fi
  16237. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16238. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16239. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16240. SUMMARY_audio="${SUMMARY_audio} disk"
  16241. fi
  16242. }
  16243. CheckDummyAudio()
  16244. {
  16245. # Check whether --enable-dummyaudio was given.
  16246. if test "${enable_dummyaudio+set}" = set; then :
  16247. enableval=$enable_dummyaudio;
  16248. else
  16249. enable_dummyaudio=yes
  16250. fi
  16251. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16252. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16253. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16254. SUMMARY_audio="${SUMMARY_audio} dummy"
  16255. fi
  16256. }
  16257. CheckLibSampleRate()
  16258. {
  16259. # Check whether --enable-libsamplerate was given.
  16260. if test "${enable_libsamplerate+set}" = set; then :
  16261. enableval=$enable_libsamplerate;
  16262. else
  16263. enable_libsamplerate=yes
  16264. fi
  16265. if test x$enable_libsamplerate = xyes; then
  16266. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16267. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16268. have_samplerate_h_hdr=yes
  16269. else
  16270. have_samplerate_h_hdr=no
  16271. fi
  16272. if test x$have_samplerate_h_hdr = xyes; then
  16273. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16274. # Check whether --enable-libsamplerate-shared was given.
  16275. if test "${enable_libsamplerate_shared+set}" = set; then :
  16276. enableval=$enable_libsamplerate_shared;
  16277. else
  16278. enable_libsamplerate_shared=yes
  16279. fi
  16280. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16281. if test x$have_loadso != xyes && \
  16282. test x$enable_libsamplerate_shared = xyes; then
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16284. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16285. fi
  16286. if test x$have_loadso = xyes && \
  16287. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16288. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16289. cat >>confdefs.h <<_ACEOF
  16290. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16291. _ACEOF
  16292. else
  16293. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16294. fi
  16295. fi
  16296. fi
  16297. }
  16298. CheckVisibilityHidden()
  16299. {
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16301. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16302. have_gcc_fvisibility=no
  16303. visibility_CFLAGS="-fvisibility=hidden"
  16304. save_CFLAGS="$CFLAGS"
  16305. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16307. /* end confdefs.h. */
  16308. #if !defined(__GNUC__) || __GNUC__ < 4
  16309. #error SDL only uses visibility attributes in GCC 4 or newer
  16310. #endif
  16311. int
  16312. main ()
  16313. {
  16314. ;
  16315. return 0;
  16316. }
  16317. _ACEOF
  16318. if ac_fn_c_try_compile "$LINENO"; then :
  16319. have_gcc_fvisibility=yes
  16320. fi
  16321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16323. $as_echo "$have_gcc_fvisibility" >&6; }
  16324. CFLAGS="$save_CFLAGS"
  16325. if test x$have_gcc_fvisibility = xyes; then
  16326. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16327. fi
  16328. }
  16329. CheckStackBoundary()
  16330. {
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16332. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16333. have_gcc_preferred_stack_boundary=no
  16334. save_CFLAGS="$CFLAGS"
  16335. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16337. /* end confdefs.h. */
  16338. int x = 0;
  16339. int
  16340. main ()
  16341. {
  16342. ;
  16343. return 0;
  16344. }
  16345. _ACEOF
  16346. if ac_fn_c_try_compile "$LINENO"; then :
  16347. have_gcc_preferred_stack_boundary=yes
  16348. fi
  16349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16351. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16352. CFLAGS="$save_CFLAGS"
  16353. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16354. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16355. fi
  16356. }
  16357. CheckDeclarationAfterStatement()
  16358. {
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16360. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16361. have_gcc_declaration_after_statement=no
  16362. save_CFLAGS="$CFLAGS"
  16363. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. int x = 0;
  16367. int
  16368. main ()
  16369. {
  16370. ;
  16371. return 0;
  16372. }
  16373. _ACEOF
  16374. if ac_fn_c_try_compile "$LINENO"; then :
  16375. have_gcc_declaration_after_statement=yes
  16376. fi
  16377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16379. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16380. CFLAGS="$save_CFLAGS"
  16381. if test x$have_gcc_declaration_after_statement = xyes; then
  16382. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16383. fi
  16384. }
  16385. CheckWarnAll()
  16386. {
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16388. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16389. have_gcc_Wall=no
  16390. save_CFLAGS="$CFLAGS"
  16391. CFLAGS="$save_CFLAGS -Wall"
  16392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16393. /* end confdefs.h. */
  16394. int x = 0;
  16395. int
  16396. main ()
  16397. {
  16398. ;
  16399. return 0;
  16400. }
  16401. _ACEOF
  16402. if ac_fn_c_try_compile "$LINENO"; then :
  16403. have_gcc_Wall=yes
  16404. fi
  16405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16407. $as_echo "$have_gcc_Wall" >&6; }
  16408. CFLAGS="$save_CFLAGS"
  16409. if test x$have_gcc_Wall = xyes; then
  16410. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16412. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16413. need_gcc_Wno_multichar=no
  16414. case "$host" in
  16415. *-*-haiku*)
  16416. need_gcc_Wno_multichar=yes
  16417. ;;
  16418. esac
  16419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16420. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16421. if test x$need_gcc_Wno_multichar = xyes; then
  16422. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16423. fi
  16424. fi
  16425. }
  16426. CheckWayland()
  16427. {
  16428. # Check whether --enable-video-wayland was given.
  16429. if test "${enable_video_wayland+set}" = set; then :
  16430. enableval=$enable_video_wayland;
  16431. else
  16432. enable_video_wayland=yes
  16433. fi
  16434. # Check whether --enable-video-wayland-qt-touch was given.
  16435. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16436. enableval=$enable_video_wayland_qt_touch;
  16437. else
  16438. enable_video_wayland_qt_touch=yes
  16439. fi
  16440. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16441. # Extract the first word of "pkg-config", so it can be a program name with args.
  16442. set dummy pkg-config; ac_word=$2
  16443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16444. $as_echo_n "checking for $ac_word... " >&6; }
  16445. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16446. $as_echo_n "(cached) " >&6
  16447. else
  16448. case $PKG_CONFIG in
  16449. [\\/]* | ?:[\\/]*)
  16450. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16451. ;;
  16452. *)
  16453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16454. for as_dir in $PATH
  16455. do
  16456. IFS=$as_save_IFS
  16457. test -z "$as_dir" && as_dir=.
  16458. for ac_exec_ext in '' $ac_executable_extensions; do
  16459. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16460. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16461. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16462. break 2
  16463. fi
  16464. done
  16465. done
  16466. IFS=$as_save_IFS
  16467. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16468. ;;
  16469. esac
  16470. fi
  16471. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16472. if test -n "$PKG_CONFIG"; then
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16474. $as_echo "$PKG_CONFIG" >&6; }
  16475. else
  16476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16477. $as_echo "no" >&6; }
  16478. fi
  16479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16480. $as_echo_n "checking for Wayland support... " >&6; }
  16481. video_wayland=no
  16482. if test x$PKG_CONFIG != xno && \
  16483. test x$video_opengl_egl = xyes && \
  16484. test x$video_opengles_v2 = xyes; then
  16485. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16486. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16487. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16488. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16489. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16490. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16491. video_wayland=yes
  16492. fi
  16493. fi
  16494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16495. $as_echo "$video_wayland" >&6; }
  16496. if test x$video_wayland = xyes; then
  16497. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16498. if test x$enable_video_wayland_qt_touch = xyes; then
  16499. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16500. fi
  16501. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1 xdg-shell-unstable-v6"
  16502. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16503. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16504. # Check whether --enable-wayland-shared was given.
  16505. if test "${enable_wayland_shared+set}" = set; then :
  16506. enableval=$enable_wayland_shared;
  16507. else
  16508. enable_wayland_shared=maybe
  16509. fi
  16510. case "$host" in
  16511. *)
  16512. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16513. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16514. if test x$wayland_egl_lib = x; then
  16515. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16516. fi
  16517. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16518. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16519. ;;
  16520. esac
  16521. if test x$enable_wayland_shared = xmaybe; then
  16522. enable_wayland_shared=yes
  16523. fi
  16524. if test x$have_loadso != xyes && \
  16525. test x$enable_wayland_shared = xyes; then
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16527. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16528. enable_wayland_shared=no
  16529. fi
  16530. if test x$have_loadso = xyes && \
  16531. test x$enable_wayland_shared = xyes && \
  16532. test x$wayland_client_lib != x && \
  16533. test x$wayland_egl_lib != x && \
  16534. test x$wayland_cursor_lib != x && \
  16535. test x$xkbcommon_lib != x; then
  16536. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16537. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16538. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16539. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16540. cat >>confdefs.h <<_ACEOF
  16541. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16542. _ACEOF
  16543. cat >>confdefs.h <<_ACEOF
  16544. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16545. _ACEOF
  16546. cat >>confdefs.h <<_ACEOF
  16547. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16548. _ACEOF
  16549. cat >>confdefs.h <<_ACEOF
  16550. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16551. _ACEOF
  16552. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16553. else
  16554. enable_wayland_shared=no
  16555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16556. SUMMARY_video="${SUMMARY_video} wayland"
  16557. fi
  16558. have_video=yes
  16559. fi
  16560. fi
  16561. }
  16562. CheckMir()
  16563. {
  16564. # Check whether --enable-video-mir was given.
  16565. if test "${enable_video_mir+set}" = set; then :
  16566. enableval=$enable_video_mir;
  16567. else
  16568. enable_video_mir=no
  16569. fi
  16570. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16571. # Extract the first word of "pkg-config", so it can be a program name with args.
  16572. set dummy pkg-config; ac_word=$2
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16574. $as_echo_n "checking for $ac_word... " >&6; }
  16575. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16576. $as_echo_n "(cached) " >&6
  16577. else
  16578. case $PKG_CONFIG in
  16579. [\\/]* | ?:[\\/]*)
  16580. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16581. ;;
  16582. *)
  16583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16584. for as_dir in $PATH
  16585. do
  16586. IFS=$as_save_IFS
  16587. test -z "$as_dir" && as_dir=.
  16588. for ac_exec_ext in '' $ac_executable_extensions; do
  16589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16590. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16592. break 2
  16593. fi
  16594. done
  16595. done
  16596. IFS=$as_save_IFS
  16597. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16598. ;;
  16599. esac
  16600. fi
  16601. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16602. if test -n "$PKG_CONFIG"; then
  16603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16604. $as_echo "$PKG_CONFIG" >&6; }
  16605. else
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16607. $as_echo "no" >&6; }
  16608. fi
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16610. $as_echo_n "checking for Mir support... " >&6; }
  16611. video_mir=no
  16612. if test x$PKG_CONFIG != xno; then
  16613. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16614. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16615. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16616. save_CFLAGS="$CFLAGS"
  16617. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16619. /* end confdefs.h. */
  16620. #include <mir_toolkit/mir_client_library.h>
  16621. int
  16622. main ()
  16623. {
  16624. MirWindowAttrib attrib = mir_window_attrib_state
  16625. ;
  16626. return 0;
  16627. }
  16628. _ACEOF
  16629. if ac_fn_c_try_compile "$LINENO"; then :
  16630. video_mir=yes
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16633. CFLAGS="$save_CFLAGS"
  16634. fi
  16635. fi
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16637. $as_echo "$video_mir" >&6; }
  16638. if test x$video_mir = xyes; then
  16639. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16640. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16641. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16642. # Check whether --enable-mir-shared was given.
  16643. if test "${enable_mir_shared+set}" = set; then :
  16644. enableval=$enable_mir_shared;
  16645. else
  16646. enable_mir_shared=maybe
  16647. fi
  16648. case "$host" in
  16649. *)
  16650. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16651. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16652. ;;
  16653. esac
  16654. if test x$enable_mir_shared = xmaybe; then
  16655. enable_mir_shared=yes
  16656. fi
  16657. if test x$have_loadso != xyes && \
  16658. test x$enable_mir_shared = xyes; then
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16660. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16661. enable_mir_shared=no
  16662. fi
  16663. if test x$have_loadso = xyes && \
  16664. test x$enable_mir_shared = xyes && \
  16665. test x$mirclient_lib != x && \
  16666. test x$xkbcommon_lib != x; then
  16667. echo "-- dynamic libmirclient -> $mirclient_lib"
  16668. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16669. cat >>confdefs.h <<_ACEOF
  16670. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16671. _ACEOF
  16672. cat >>confdefs.h <<_ACEOF
  16673. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16674. _ACEOF
  16675. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16676. else
  16677. enable_mir_shared=no
  16678. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16679. SUMMARY_video="${SUMMARY_video} mir"
  16680. fi
  16681. have_video=yes
  16682. fi
  16683. fi
  16684. }
  16685. CheckNativeClient()
  16686. {
  16687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16688. /* end confdefs.h. */
  16689. #if !defined(__native_client__)
  16690. #error "NO NACL"
  16691. #endif
  16692. int
  16693. main ()
  16694. {
  16695. ;
  16696. return 0;
  16697. }
  16698. _ACEOF
  16699. if ac_fn_c_try_compile "$LINENO"; then :
  16700. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16701. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16702. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16703. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16704. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16705. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16706. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16707. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16708. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16709. SUMMARY_audio="${SUMMARY_audio} nacl"
  16710. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16711. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16712. fi
  16713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16714. }
  16715. CheckRPI()
  16716. {
  16717. # Check whether --enable-video-rpi was given.
  16718. if test "${enable_video_rpi+set}" = set; then :
  16719. enableval=$enable_video_rpi;
  16720. else
  16721. enable_video_rpi=yes
  16722. fi
  16723. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16724. # Extract the first word of "pkg-config", so it can be a program name with args.
  16725. set dummy pkg-config; ac_word=$2
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16727. $as_echo_n "checking for $ac_word... " >&6; }
  16728. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16729. $as_echo_n "(cached) " >&6
  16730. else
  16731. case $PKG_CONFIG in
  16732. [\\/]* | ?:[\\/]*)
  16733. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16734. ;;
  16735. *)
  16736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16737. for as_dir in $PATH
  16738. do
  16739. IFS=$as_save_IFS
  16740. test -z "$as_dir" && as_dir=.
  16741. for ac_exec_ext in '' $ac_executable_extensions; do
  16742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16743. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16745. break 2
  16746. fi
  16747. done
  16748. done
  16749. IFS=$as_save_IFS
  16750. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16751. ;;
  16752. esac
  16753. fi
  16754. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16755. if test -n "$PKG_CONFIG"; then
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16757. $as_echo "$PKG_CONFIG" >&6; }
  16758. else
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16760. $as_echo "no" >&6; }
  16761. fi
  16762. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16763. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16764. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16765. elif test x$ARCH = xnetbsd; then
  16766. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16767. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16768. else
  16769. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16770. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16771. fi
  16772. # Save the original compiler flags and libraries
  16773. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16774. # Add the Raspberry Pi compiler flags and libraries
  16775. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16777. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16778. have_video_rpi=no
  16779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16780. /* end confdefs.h. */
  16781. #include <bcm_host.h>
  16782. int
  16783. main ()
  16784. {
  16785. bcm_host_init();
  16786. ;
  16787. return 0;
  16788. }
  16789. _ACEOF
  16790. if ac_fn_c_try_link "$LINENO"; then :
  16791. have_video_rpi=yes
  16792. fi
  16793. rm -f core conftest.err conftest.$ac_objext \
  16794. conftest$ac_exeext conftest.$ac_ext
  16795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16796. $as_echo "$have_video_rpi" >&6; }
  16797. # Restore the compiler flags and libraries
  16798. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16799. if test x$have_video_rpi = xyes; then
  16800. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16801. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16802. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16803. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16804. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16805. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16806. SUMMARY_video="${SUMMARY_video} rpi"
  16807. fi
  16808. fi
  16809. }
  16810. CheckX11()
  16811. {
  16812. # Check whether --enable-video-x11 was given.
  16813. if test "${enable_video_x11+set}" = set; then :
  16814. enableval=$enable_video_x11;
  16815. else
  16816. enable_video_x11=yes
  16817. fi
  16818. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16819. case "$host" in
  16820. *-*-darwin*)
  16821. # This isn't necessary for X11, but fixes GLX detection
  16822. if test "x$x_includes" = xNONE && \
  16823. test "x$x_libraries" = xNONE && \
  16824. test -d /usr/X11R6/include && \
  16825. test -d /usr/X11R6/lib; then
  16826. x_includes="/usr/X11R6/include"
  16827. x_libraries="/usr/X11R6/lib"
  16828. fi
  16829. ;;
  16830. esac
  16831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16832. $as_echo_n "checking for X... " >&6; }
  16833. # Check whether --with-x was given.
  16834. if test "${with_x+set}" = set; then :
  16835. withval=$with_x;
  16836. fi
  16837. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16838. if test "x$with_x" = xno; then
  16839. # The user explicitly disabled X.
  16840. have_x=disabled
  16841. else
  16842. case $x_includes,$x_libraries in #(
  16843. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16844. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16845. $as_echo_n "(cached) " >&6
  16846. else
  16847. # One or both of the vars are not set, and there is no cached value.
  16848. ac_x_includes=no ac_x_libraries=no
  16849. rm -f -r conftest.dir
  16850. if mkdir conftest.dir; then
  16851. cd conftest.dir
  16852. cat >Imakefile <<'_ACEOF'
  16853. incroot:
  16854. @echo incroot='${INCROOT}'
  16855. usrlibdir:
  16856. @echo usrlibdir='${USRLIBDIR}'
  16857. libdir:
  16858. @echo libdir='${LIBDIR}'
  16859. _ACEOF
  16860. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16861. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16862. for ac_var in incroot usrlibdir libdir; do
  16863. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16864. done
  16865. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16866. for ac_extension in a so sl dylib la dll; do
  16867. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16868. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16869. ac_im_usrlibdir=$ac_im_libdir; break
  16870. fi
  16871. done
  16872. # Screen out bogus values from the imake configuration. They are
  16873. # bogus both because they are the default anyway, and because
  16874. # using them would break gcc on systems where it needs fixed includes.
  16875. case $ac_im_incroot in
  16876. /usr/include) ac_x_includes= ;;
  16877. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16878. esac
  16879. case $ac_im_usrlibdir in
  16880. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16881. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16882. esac
  16883. fi
  16884. cd ..
  16885. rm -f -r conftest.dir
  16886. fi
  16887. # Standard set of common directories for X headers.
  16888. # Check X11 before X11Rn because it is often a symlink to the current release.
  16889. ac_x_header_dirs='
  16890. /usr/X11/include
  16891. /usr/X11R7/include
  16892. /usr/X11R6/include
  16893. /usr/X11R5/include
  16894. /usr/X11R4/include
  16895. /usr/include/X11
  16896. /usr/include/X11R7
  16897. /usr/include/X11R6
  16898. /usr/include/X11R5
  16899. /usr/include/X11R4
  16900. /usr/local/X11/include
  16901. /usr/local/X11R7/include
  16902. /usr/local/X11R6/include
  16903. /usr/local/X11R5/include
  16904. /usr/local/X11R4/include
  16905. /usr/local/include/X11
  16906. /usr/local/include/X11R7
  16907. /usr/local/include/X11R6
  16908. /usr/local/include/X11R5
  16909. /usr/local/include/X11R4
  16910. /usr/X386/include
  16911. /usr/x386/include
  16912. /usr/XFree86/include/X11
  16913. /usr/include
  16914. /usr/local/include
  16915. /usr/unsupported/include
  16916. /usr/athena/include
  16917. /usr/local/x11r5/include
  16918. /usr/lpp/Xamples/include
  16919. /usr/openwin/include
  16920. /usr/openwin/share/include'
  16921. if test "$ac_x_includes" = no; then
  16922. # Guess where to find include files, by looking for Xlib.h.
  16923. # First, try using that file with no special directory specified.
  16924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16925. /* end confdefs.h. */
  16926. #include <X11/Xlib.h>
  16927. _ACEOF
  16928. if ac_fn_c_try_cpp "$LINENO"; then :
  16929. # We can compile using X headers with no special include directory.
  16930. ac_x_includes=
  16931. else
  16932. for ac_dir in $ac_x_header_dirs; do
  16933. if test -r "$ac_dir/X11/Xlib.h"; then
  16934. ac_x_includes=$ac_dir
  16935. break
  16936. fi
  16937. done
  16938. fi
  16939. rm -f conftest.err conftest.i conftest.$ac_ext
  16940. fi # $ac_x_includes = no
  16941. if test "$ac_x_libraries" = no; then
  16942. # Check for the libraries.
  16943. # See if we find them without any special options.
  16944. # Don't add to $LIBS permanently.
  16945. ac_save_LIBS=$LIBS
  16946. LIBS="-lX11 $LIBS"
  16947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16948. /* end confdefs.h. */
  16949. #include <X11/Xlib.h>
  16950. int
  16951. main ()
  16952. {
  16953. XrmInitialize ()
  16954. ;
  16955. return 0;
  16956. }
  16957. _ACEOF
  16958. if ac_fn_c_try_link "$LINENO"; then :
  16959. LIBS=$ac_save_LIBS
  16960. # We can link X programs with no special library path.
  16961. ac_x_libraries=
  16962. else
  16963. LIBS=$ac_save_LIBS
  16964. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16965. do
  16966. # Don't even attempt the hair of trying to link an X program!
  16967. for ac_extension in a so sl dylib la dll; do
  16968. if test -r "$ac_dir/libX11.$ac_extension"; then
  16969. ac_x_libraries=$ac_dir
  16970. break 2
  16971. fi
  16972. done
  16973. done
  16974. fi
  16975. rm -f core conftest.err conftest.$ac_objext \
  16976. conftest$ac_exeext conftest.$ac_ext
  16977. fi # $ac_x_libraries = no
  16978. case $ac_x_includes,$ac_x_libraries in #(
  16979. no,* | *,no | *\'*)
  16980. # Didn't find X, or a directory has "'" in its name.
  16981. ac_cv_have_x="have_x=no";; #(
  16982. *)
  16983. # Record where we found X for the cache.
  16984. ac_cv_have_x="have_x=yes\
  16985. ac_x_includes='$ac_x_includes'\
  16986. ac_x_libraries='$ac_x_libraries'"
  16987. esac
  16988. fi
  16989. ;; #(
  16990. *) have_x=yes;;
  16991. esac
  16992. eval "$ac_cv_have_x"
  16993. fi # $with_x != no
  16994. if test "$have_x" != yes; then
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16996. $as_echo "$have_x" >&6; }
  16997. no_x=yes
  16998. else
  16999. # If each of the values was on the command line, it overrides each guess.
  17000. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17001. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17002. # Update the cache value to reflect the command line values.
  17003. ac_cv_have_x="have_x=yes\
  17004. ac_x_includes='$x_includes'\
  17005. ac_x_libraries='$x_libraries'"
  17006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17007. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17008. fi
  17009. if test "$no_x" = yes; then
  17010. # Not all programs may use this symbol, but it does not hurt to define it.
  17011. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17012. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17013. else
  17014. if test -n "$x_includes"; then
  17015. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17016. fi
  17017. # It would also be nice to do this for all -L options, not just this one.
  17018. if test -n "$x_libraries"; then
  17019. X_LIBS="$X_LIBS -L$x_libraries"
  17020. # For Solaris; some versions of Sun CC require a space after -R and
  17021. # others require no space. Words are not sufficient . . . .
  17022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17023. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17024. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17025. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17026. ac_c_werror_flag=yes
  17027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17028. /* end confdefs.h. */
  17029. int
  17030. main ()
  17031. {
  17032. ;
  17033. return 0;
  17034. }
  17035. _ACEOF
  17036. if ac_fn_c_try_link "$LINENO"; then :
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17038. $as_echo "no" >&6; }
  17039. X_LIBS="$X_LIBS -R$x_libraries"
  17040. else
  17041. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17043. /* end confdefs.h. */
  17044. int
  17045. main ()
  17046. {
  17047. ;
  17048. return 0;
  17049. }
  17050. _ACEOF
  17051. if ac_fn_c_try_link "$LINENO"; then :
  17052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17053. $as_echo "yes" >&6; }
  17054. X_LIBS="$X_LIBS -R $x_libraries"
  17055. else
  17056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17057. $as_echo "neither works" >&6; }
  17058. fi
  17059. rm -f core conftest.err conftest.$ac_objext \
  17060. conftest$ac_exeext conftest.$ac_ext
  17061. fi
  17062. rm -f core conftest.err conftest.$ac_objext \
  17063. conftest$ac_exeext conftest.$ac_ext
  17064. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17065. LIBS=$ac_xsave_LIBS
  17066. fi
  17067. # Check for system-dependent libraries X programs must link with.
  17068. # Do this before checking for the system-independent R6 libraries
  17069. # (-lICE), since we may need -lsocket or whatever for X linking.
  17070. if test "$ISC" = yes; then
  17071. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17072. else
  17073. # Martyn Johnson says this is needed for Ultrix, if the X
  17074. # libraries were built with DECnet support. And Karl Berry says
  17075. # the Alpha needs dnet_stub (dnet does not exist).
  17076. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17078. /* end confdefs.h. */
  17079. /* Override any GCC internal prototype to avoid an error.
  17080. Use char because int might match the return type of a GCC
  17081. builtin and then its argument prototype would still apply. */
  17082. #ifdef __cplusplus
  17083. extern "C"
  17084. #endif
  17085. char XOpenDisplay ();
  17086. int
  17087. main ()
  17088. {
  17089. return XOpenDisplay ();
  17090. ;
  17091. return 0;
  17092. }
  17093. _ACEOF
  17094. if ac_fn_c_try_link "$LINENO"; then :
  17095. else
  17096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17097. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17098. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17099. $as_echo_n "(cached) " >&6
  17100. else
  17101. ac_check_lib_save_LIBS=$LIBS
  17102. LIBS="-ldnet $LIBS"
  17103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17104. /* end confdefs.h. */
  17105. /* Override any GCC internal prototype to avoid an error.
  17106. Use char because int might match the return type of a GCC
  17107. builtin and then its argument prototype would still apply. */
  17108. #ifdef __cplusplus
  17109. extern "C"
  17110. #endif
  17111. char dnet_ntoa ();
  17112. int
  17113. main ()
  17114. {
  17115. return dnet_ntoa ();
  17116. ;
  17117. return 0;
  17118. }
  17119. _ACEOF
  17120. if ac_fn_c_try_link "$LINENO"; then :
  17121. ac_cv_lib_dnet_dnet_ntoa=yes
  17122. else
  17123. ac_cv_lib_dnet_dnet_ntoa=no
  17124. fi
  17125. rm -f core conftest.err conftest.$ac_objext \
  17126. conftest$ac_exeext conftest.$ac_ext
  17127. LIBS=$ac_check_lib_save_LIBS
  17128. fi
  17129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17130. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17131. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17132. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17133. fi
  17134. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17136. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17137. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17138. $as_echo_n "(cached) " >&6
  17139. else
  17140. ac_check_lib_save_LIBS=$LIBS
  17141. LIBS="-ldnet_stub $LIBS"
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. /* Override any GCC internal prototype to avoid an error.
  17145. Use char because int might match the return type of a GCC
  17146. builtin and then its argument prototype would still apply. */
  17147. #ifdef __cplusplus
  17148. extern "C"
  17149. #endif
  17150. char dnet_ntoa ();
  17151. int
  17152. main ()
  17153. {
  17154. return dnet_ntoa ();
  17155. ;
  17156. return 0;
  17157. }
  17158. _ACEOF
  17159. if ac_fn_c_try_link "$LINENO"; then :
  17160. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17161. else
  17162. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17163. fi
  17164. rm -f core conftest.err conftest.$ac_objext \
  17165. conftest$ac_exeext conftest.$ac_ext
  17166. LIBS=$ac_check_lib_save_LIBS
  17167. fi
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17169. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17170. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17171. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17172. fi
  17173. fi
  17174. fi
  17175. rm -f core conftest.err conftest.$ac_objext \
  17176. conftest$ac_exeext conftest.$ac_ext
  17177. LIBS="$ac_xsave_LIBS"
  17178. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17179. # to get the SysV transport functions.
  17180. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17181. # needs -lnsl.
  17182. # The nsl library prevents programs from opening the X display
  17183. # on Irix 5.2, according to T.E. Dickey.
  17184. # The functions gethostbyname, getservbyname, and inet_addr are
  17185. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17186. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17187. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17188. fi
  17189. if test $ac_cv_func_gethostbyname = no; then
  17190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17191. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17192. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17193. $as_echo_n "(cached) " >&6
  17194. else
  17195. ac_check_lib_save_LIBS=$LIBS
  17196. LIBS="-lnsl $LIBS"
  17197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17198. /* end confdefs.h. */
  17199. /* Override any GCC internal prototype to avoid an error.
  17200. Use char because int might match the return type of a GCC
  17201. builtin and then its argument prototype would still apply. */
  17202. #ifdef __cplusplus
  17203. extern "C"
  17204. #endif
  17205. char gethostbyname ();
  17206. int
  17207. main ()
  17208. {
  17209. return gethostbyname ();
  17210. ;
  17211. return 0;
  17212. }
  17213. _ACEOF
  17214. if ac_fn_c_try_link "$LINENO"; then :
  17215. ac_cv_lib_nsl_gethostbyname=yes
  17216. else
  17217. ac_cv_lib_nsl_gethostbyname=no
  17218. fi
  17219. rm -f core conftest.err conftest.$ac_objext \
  17220. conftest$ac_exeext conftest.$ac_ext
  17221. LIBS=$ac_check_lib_save_LIBS
  17222. fi
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17224. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17225. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17226. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17227. fi
  17228. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17230. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17231. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17232. $as_echo_n "(cached) " >&6
  17233. else
  17234. ac_check_lib_save_LIBS=$LIBS
  17235. LIBS="-lbsd $LIBS"
  17236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17237. /* end confdefs.h. */
  17238. /* Override any GCC internal prototype to avoid an error.
  17239. Use char because int might match the return type of a GCC
  17240. builtin and then its argument prototype would still apply. */
  17241. #ifdef __cplusplus
  17242. extern "C"
  17243. #endif
  17244. char gethostbyname ();
  17245. int
  17246. main ()
  17247. {
  17248. return gethostbyname ();
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_link "$LINENO"; then :
  17254. ac_cv_lib_bsd_gethostbyname=yes
  17255. else
  17256. ac_cv_lib_bsd_gethostbyname=no
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext \
  17259. conftest$ac_exeext conftest.$ac_ext
  17260. LIBS=$ac_check_lib_save_LIBS
  17261. fi
  17262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17263. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17264. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17265. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17266. fi
  17267. fi
  17268. fi
  17269. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17270. # socket/setsockopt and other routines are undefined under SCO ODT
  17271. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17272. # on later versions), says Simon Leinen: it contains gethostby*
  17273. # variants that don't use the name server (or something). -lsocket
  17274. # must be given before -lnsl if both are needed. We assume that
  17275. # if connect needs -lnsl, so does gethostbyname.
  17276. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17277. if test "x$ac_cv_func_connect" = xyes; then :
  17278. fi
  17279. if test $ac_cv_func_connect = no; then
  17280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17281. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17282. if ${ac_cv_lib_socket_connect+:} false; then :
  17283. $as_echo_n "(cached) " >&6
  17284. else
  17285. ac_check_lib_save_LIBS=$LIBS
  17286. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17288. /* end confdefs.h. */
  17289. /* Override any GCC internal prototype to avoid an error.
  17290. Use char because int might match the return type of a GCC
  17291. builtin and then its argument prototype would still apply. */
  17292. #ifdef __cplusplus
  17293. extern "C"
  17294. #endif
  17295. char connect ();
  17296. int
  17297. main ()
  17298. {
  17299. return connect ();
  17300. ;
  17301. return 0;
  17302. }
  17303. _ACEOF
  17304. if ac_fn_c_try_link "$LINENO"; then :
  17305. ac_cv_lib_socket_connect=yes
  17306. else
  17307. ac_cv_lib_socket_connect=no
  17308. fi
  17309. rm -f core conftest.err conftest.$ac_objext \
  17310. conftest$ac_exeext conftest.$ac_ext
  17311. LIBS=$ac_check_lib_save_LIBS
  17312. fi
  17313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17314. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17315. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17316. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17317. fi
  17318. fi
  17319. # Guillermo Gomez says -lposix is necessary on A/UX.
  17320. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17321. if test "x$ac_cv_func_remove" = xyes; then :
  17322. fi
  17323. if test $ac_cv_func_remove = no; then
  17324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17325. $as_echo_n "checking for remove in -lposix... " >&6; }
  17326. if ${ac_cv_lib_posix_remove+:} false; then :
  17327. $as_echo_n "(cached) " >&6
  17328. else
  17329. ac_check_lib_save_LIBS=$LIBS
  17330. LIBS="-lposix $LIBS"
  17331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17332. /* end confdefs.h. */
  17333. /* Override any GCC internal prototype to avoid an error.
  17334. Use char because int might match the return type of a GCC
  17335. builtin and then its argument prototype would still apply. */
  17336. #ifdef __cplusplus
  17337. extern "C"
  17338. #endif
  17339. char remove ();
  17340. int
  17341. main ()
  17342. {
  17343. return remove ();
  17344. ;
  17345. return 0;
  17346. }
  17347. _ACEOF
  17348. if ac_fn_c_try_link "$LINENO"; then :
  17349. ac_cv_lib_posix_remove=yes
  17350. else
  17351. ac_cv_lib_posix_remove=no
  17352. fi
  17353. rm -f core conftest.err conftest.$ac_objext \
  17354. conftest$ac_exeext conftest.$ac_ext
  17355. LIBS=$ac_check_lib_save_LIBS
  17356. fi
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17358. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17359. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17360. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17361. fi
  17362. fi
  17363. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17364. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17365. if test "x$ac_cv_func_shmat" = xyes; then :
  17366. fi
  17367. if test $ac_cv_func_shmat = no; then
  17368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17369. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17370. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17371. $as_echo_n "(cached) " >&6
  17372. else
  17373. ac_check_lib_save_LIBS=$LIBS
  17374. LIBS="-lipc $LIBS"
  17375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17376. /* end confdefs.h. */
  17377. /* Override any GCC internal prototype to avoid an error.
  17378. Use char because int might match the return type of a GCC
  17379. builtin and then its argument prototype would still apply. */
  17380. #ifdef __cplusplus
  17381. extern "C"
  17382. #endif
  17383. char shmat ();
  17384. int
  17385. main ()
  17386. {
  17387. return shmat ();
  17388. ;
  17389. return 0;
  17390. }
  17391. _ACEOF
  17392. if ac_fn_c_try_link "$LINENO"; then :
  17393. ac_cv_lib_ipc_shmat=yes
  17394. else
  17395. ac_cv_lib_ipc_shmat=no
  17396. fi
  17397. rm -f core conftest.err conftest.$ac_objext \
  17398. conftest$ac_exeext conftest.$ac_ext
  17399. LIBS=$ac_check_lib_save_LIBS
  17400. fi
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17402. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17403. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17404. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17405. fi
  17406. fi
  17407. fi
  17408. # Check for libraries that X11R6 Xt/Xaw programs need.
  17409. ac_save_LDFLAGS=$LDFLAGS
  17410. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17411. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17412. # check for ICE first), but we must link in the order -lSM -lICE or
  17413. # we get undefined symbols. So assume we have SM if we have ICE.
  17414. # These have to be linked with before -lX11, unlike the other
  17415. # libraries we check for below, so use a different variable.
  17416. # John Interrante, Karl Berry
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17418. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17419. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17420. $as_echo_n "(cached) " >&6
  17421. else
  17422. ac_check_lib_save_LIBS=$LIBS
  17423. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17425. /* end confdefs.h. */
  17426. /* Override any GCC internal prototype to avoid an error.
  17427. Use char because int might match the return type of a GCC
  17428. builtin and then its argument prototype would still apply. */
  17429. #ifdef __cplusplus
  17430. extern "C"
  17431. #endif
  17432. char IceConnectionNumber ();
  17433. int
  17434. main ()
  17435. {
  17436. return IceConnectionNumber ();
  17437. ;
  17438. return 0;
  17439. }
  17440. _ACEOF
  17441. if ac_fn_c_try_link "$LINENO"; then :
  17442. ac_cv_lib_ICE_IceConnectionNumber=yes
  17443. else
  17444. ac_cv_lib_ICE_IceConnectionNumber=no
  17445. fi
  17446. rm -f core conftest.err conftest.$ac_objext \
  17447. conftest$ac_exeext conftest.$ac_ext
  17448. LIBS=$ac_check_lib_save_LIBS
  17449. fi
  17450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17451. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17452. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17453. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17454. fi
  17455. LDFLAGS=$ac_save_LDFLAGS
  17456. fi
  17457. if test x$have_x = xyes; then
  17458. # Check whether --enable-x11-shared was given.
  17459. if test "${enable_x11_shared+set}" = set; then :
  17460. enableval=$enable_x11_shared;
  17461. else
  17462. enable_x11_shared=maybe
  17463. fi
  17464. case "$host" in
  17465. *-*-darwin*)
  17466. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17467. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17468. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17469. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17470. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17471. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17472. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17473. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17474. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17475. ;;
  17476. *-*-openbsd*)
  17477. x11_lib='libX11.so'
  17478. x11ext_lib='libXext.so'
  17479. xcursor_lib='libXcursor.so'
  17480. xinerama_lib='libXinerama.so'
  17481. xinput_lib='libXi.so'
  17482. xrandr_lib='libXrandr.so'
  17483. xrender_lib='libXrender.so'
  17484. xss_lib='libXss.so'
  17485. xvidmode_lib='libXxf86vm.so'
  17486. ;;
  17487. *)
  17488. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17489. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17490. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17491. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17492. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17493. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17494. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17495. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17496. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17497. ;;
  17498. esac
  17499. if test x$ac_cv_func_shmat != xyes; then
  17500. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17501. fi
  17502. CFLAGS="$CFLAGS $X_CFLAGS"
  17503. LDFLAGS="$LDFLAGS $X_LIBS"
  17504. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17505. #include <X11/Xproto.h>
  17506. "
  17507. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17508. have_xext_h_hdr=yes
  17509. else
  17510. have_xext_h_hdr=no
  17511. fi
  17512. if test x$have_xext_h_hdr != xyes; then
  17513. as_fn_error $? "
  17514. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17515. " "$LINENO" 5
  17516. fi
  17517. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17518. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17519. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17520. # Needed so SDL applications can include SDL_syswm.h
  17521. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17522. if test x$enable_x11_shared = xmaybe; then
  17523. enable_x11_shared=yes
  17524. fi
  17525. if test x$have_loadso != xyes && \
  17526. test x$enable_x11_shared = xyes; then
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17528. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17529. enable_x11_shared=no
  17530. fi
  17531. if test x$have_loadso = xyes && \
  17532. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17533. echo "-- dynamic libX11 -> $x11_lib"
  17534. echo "-- dynamic libX11ext -> $x11ext_lib"
  17535. cat >>confdefs.h <<_ACEOF
  17536. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17537. _ACEOF
  17538. cat >>confdefs.h <<_ACEOF
  17539. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17540. _ACEOF
  17541. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17542. else
  17543. enable_x11_shared=no
  17544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17545. SUMMARY_video="${SUMMARY_video} x11"
  17546. fi
  17547. have_video=yes
  17548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17549. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17550. have_const_param_XextAddDisplay=no
  17551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17552. /* end confdefs.h. */
  17553. #include <X11/Xlib.h>
  17554. #include <X11/Xproto.h>
  17555. #include <X11/extensions/Xext.h>
  17556. #include <X11/extensions/extutil.h>
  17557. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17558. int
  17559. main ()
  17560. {
  17561. ;
  17562. return 0;
  17563. }
  17564. _ACEOF
  17565. if ac_fn_c_try_compile "$LINENO"; then :
  17566. have_const_param_XextAddDisplay=yes
  17567. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17568. fi
  17569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17571. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17573. $as_echo_n "checking for XGenericEvent... " >&6; }
  17574. have_XGenericEvent=no
  17575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17576. /* end confdefs.h. */
  17577. #include <X11/Xlib.h>
  17578. int
  17579. main ()
  17580. {
  17581. Display *display;
  17582. XEvent event;
  17583. XGenericEventCookie *cookie = &event.xcookie;
  17584. XNextEvent(display, &event);
  17585. XGetEventData(display, cookie);
  17586. XFreeEventData(display, cookie);
  17587. ;
  17588. return 0;
  17589. }
  17590. _ACEOF
  17591. if ac_fn_c_try_compile "$LINENO"; then :
  17592. have_XGenericEvent=yes
  17593. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17594. fi
  17595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17597. $as_echo "$have_XGenericEvent" >&6; }
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17599. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17600. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17601. $as_echo_n "(cached) " >&6
  17602. else
  17603. ac_check_lib_save_LIBS=$LIBS
  17604. LIBS="-lX11 $LIBS"
  17605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17606. /* end confdefs.h. */
  17607. /* Override any GCC internal prototype to avoid an error.
  17608. Use char because int might match the return type of a GCC
  17609. builtin and then its argument prototype would still apply. */
  17610. #ifdef __cplusplus
  17611. extern "C"
  17612. #endif
  17613. char XkbKeycodeToKeysym ();
  17614. int
  17615. main ()
  17616. {
  17617. return XkbKeycodeToKeysym ();
  17618. ;
  17619. return 0;
  17620. }
  17621. _ACEOF
  17622. if ac_fn_c_try_link "$LINENO"; then :
  17623. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17624. else
  17625. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17626. fi
  17627. rm -f core conftest.err conftest.$ac_objext \
  17628. conftest$ac_exeext conftest.$ac_ext
  17629. LIBS=$ac_check_lib_save_LIBS
  17630. fi
  17631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17632. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17633. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17634. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17635. fi
  17636. # Check whether --enable-video-x11-xcursor was given.
  17637. if test "${enable_video_x11_xcursor+set}" = set; then :
  17638. enableval=$enable_video_x11_xcursor;
  17639. else
  17640. enable_video_x11_xcursor=yes
  17641. fi
  17642. if test x$enable_video_x11_xcursor = xyes; then
  17643. definitely_enable_video_x11_xcursor=no
  17644. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17645. "
  17646. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17647. have_xcursor_h_hdr=yes
  17648. else
  17649. have_xcursor_h_hdr=no
  17650. fi
  17651. if test x$have_xcursor_h_hdr = xyes; then
  17652. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17653. echo "-- dynamic libXcursor -> $xcursor_lib"
  17654. cat >>confdefs.h <<_ACEOF
  17655. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17656. _ACEOF
  17657. definitely_enable_video_x11_xcursor=yes
  17658. else
  17659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17660. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17661. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17662. $as_echo_n "(cached) " >&6
  17663. else
  17664. ac_check_lib_save_LIBS=$LIBS
  17665. LIBS="-lXcursor $LIBS"
  17666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17667. /* end confdefs.h. */
  17668. /* Override any GCC internal prototype to avoid an error.
  17669. Use char because int might match the return type of a GCC
  17670. builtin and then its argument prototype would still apply. */
  17671. #ifdef __cplusplus
  17672. extern "C"
  17673. #endif
  17674. char XcursorImageCreate ();
  17675. int
  17676. main ()
  17677. {
  17678. return XcursorImageCreate ();
  17679. ;
  17680. return 0;
  17681. }
  17682. _ACEOF
  17683. if ac_fn_c_try_link "$LINENO"; then :
  17684. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17685. else
  17686. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17687. fi
  17688. rm -f core conftest.err conftest.$ac_objext \
  17689. conftest$ac_exeext conftest.$ac_ext
  17690. LIBS=$ac_check_lib_save_LIBS
  17691. fi
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17693. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17694. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17695. have_xcursor_lib=yes
  17696. fi
  17697. if test x$have_xcursor_lib = xyes ; then
  17698. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17699. definitely_enable_video_x11_xcursor=yes
  17700. fi
  17701. fi
  17702. fi
  17703. fi
  17704. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17705. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17706. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17707. fi
  17708. # Check whether --enable-video-x11-xdbe was given.
  17709. if test "${enable_video_x11_xdbe+set}" = set; then :
  17710. enableval=$enable_video_x11_xdbe;
  17711. else
  17712. enable_video_x11_xdbe=yes
  17713. fi
  17714. if test x$enable_video_x11_xdbe = xyes; then
  17715. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17716. "
  17717. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17718. have_dbe_h_hdr=yes
  17719. else
  17720. have_dbe_h_hdr=no
  17721. fi
  17722. if test x$have_dbe_h_hdr = xyes; then
  17723. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17724. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17725. fi
  17726. fi
  17727. # Check whether --enable-video-x11-xinerama was given.
  17728. if test "${enable_video_x11_xinerama+set}" = set; then :
  17729. enableval=$enable_video_x11_xinerama;
  17730. else
  17731. enable_video_x11_xinerama=yes
  17732. fi
  17733. if test x$enable_video_x11_xinerama = xyes; then
  17734. definitely_enable_video_x11_xinerama=no
  17735. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17736. "
  17737. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17738. have_xinerama_h_hdr=yes
  17739. else
  17740. have_xinerama_h_hdr=no
  17741. fi
  17742. if test x$have_xinerama_h_hdr = xyes; then
  17743. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17744. echo "-- dynamic libXinerama -> $xinerama_lib"
  17745. cat >>confdefs.h <<_ACEOF
  17746. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17747. _ACEOF
  17748. definitely_enable_video_x11_xinerama=yes
  17749. else
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17751. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17752. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17753. $as_echo_n "(cached) " >&6
  17754. else
  17755. ac_check_lib_save_LIBS=$LIBS
  17756. LIBS="-lXinerama $LIBS"
  17757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17758. /* end confdefs.h. */
  17759. /* Override any GCC internal prototype to avoid an error.
  17760. Use char because int might match the return type of a GCC
  17761. builtin and then its argument prototype would still apply. */
  17762. #ifdef __cplusplus
  17763. extern "C"
  17764. #endif
  17765. char XineramaQueryExtension ();
  17766. int
  17767. main ()
  17768. {
  17769. return XineramaQueryExtension ();
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_link "$LINENO"; then :
  17775. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17776. else
  17777. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17778. fi
  17779. rm -f core conftest.err conftest.$ac_objext \
  17780. conftest$ac_exeext conftest.$ac_ext
  17781. LIBS=$ac_check_lib_save_LIBS
  17782. fi
  17783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17784. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17785. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17786. have_xinerama_lib=yes
  17787. fi
  17788. if test x$have_xinerama_lib = xyes ; then
  17789. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17790. definitely_enable_video_x11_xinerama=yes
  17791. fi
  17792. fi
  17793. fi
  17794. fi
  17795. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17796. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17797. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17798. fi
  17799. # Check whether --enable-video-x11-xinput was given.
  17800. if test "${enable_video_x11_xinput+set}" = set; then :
  17801. enableval=$enable_video_x11_xinput;
  17802. else
  17803. enable_video_x11_xinput=yes
  17804. fi
  17805. if test x$enable_video_x11_xinput = xyes; then
  17806. definitely_enable_video_x11_xinput=no
  17807. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17808. "
  17809. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17810. have_xinput_h_hdr=yes
  17811. else
  17812. have_xinput_h_hdr=no
  17813. fi
  17814. if test x$have_xinput_h_hdr = xyes; then
  17815. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17816. echo "-- dynamic libXi -> $xinput_lib"
  17817. cat >>confdefs.h <<_ACEOF
  17818. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17819. _ACEOF
  17820. definitely_enable_video_x11_xinput=yes
  17821. else
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17823. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17824. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17825. $as_echo_n "(cached) " >&6
  17826. else
  17827. ac_check_lib_save_LIBS=$LIBS
  17828. LIBS="-lXi $LIBS"
  17829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17830. /* end confdefs.h. */
  17831. /* Override any GCC internal prototype to avoid an error.
  17832. Use char because int might match the return type of a GCC
  17833. builtin and then its argument prototype would still apply. */
  17834. #ifdef __cplusplus
  17835. extern "C"
  17836. #endif
  17837. char XOpenDevice ();
  17838. int
  17839. main ()
  17840. {
  17841. return XOpenDevice ();
  17842. ;
  17843. return 0;
  17844. }
  17845. _ACEOF
  17846. if ac_fn_c_try_link "$LINENO"; then :
  17847. ac_cv_lib_Xi_XOpenDevice=yes
  17848. else
  17849. ac_cv_lib_Xi_XOpenDevice=no
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext \
  17852. conftest$ac_exeext conftest.$ac_ext
  17853. LIBS=$ac_check_lib_save_LIBS
  17854. fi
  17855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17856. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17857. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17858. have_xinput_lib=yes
  17859. fi
  17860. if test x$have_xinput_lib = xyes ; then
  17861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17862. definitely_enable_video_x11_xinput=yes
  17863. fi
  17864. fi
  17865. fi
  17866. fi
  17867. if test x$definitely_enable_video_x11_xinput = xyes; then
  17868. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17869. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17871. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17872. have_xinput2_multitouch=no
  17873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17874. /* end confdefs.h. */
  17875. #include <X11/Xlib.h>
  17876. #include <X11/Xproto.h>
  17877. #include <X11/extensions/XInput2.h>
  17878. int
  17879. main ()
  17880. {
  17881. int event_type = XI_TouchBegin;
  17882. XITouchClassInfo *t;
  17883. ;
  17884. return 0;
  17885. }
  17886. _ACEOF
  17887. if ac_fn_c_try_compile "$LINENO"; then :
  17888. have_xinput2_multitouch=yes
  17889. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17890. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17891. fi
  17892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17894. $as_echo "$have_xinput2_multitouch" >&6; }
  17895. fi
  17896. # Check whether --enable-video-x11-xrandr was given.
  17897. if test "${enable_video_x11_xrandr+set}" = set; then :
  17898. enableval=$enable_video_x11_xrandr;
  17899. else
  17900. enable_video_x11_xrandr=yes
  17901. fi
  17902. if test x$enable_video_x11_xrandr = xyes; then
  17903. definitely_enable_video_x11_xrandr=no
  17904. have_xrandr_h_hdr=no
  17905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17906. /* end confdefs.h. */
  17907. #include <X11/Xlib.h>
  17908. #include <X11/extensions/Xrandr.h>
  17909. int
  17910. main ()
  17911. {
  17912. XRRScreenResources *res = NULL;
  17913. ;
  17914. return 0;
  17915. }
  17916. _ACEOF
  17917. if ac_fn_c_try_compile "$LINENO"; then :
  17918. have_xrandr_h_hdr=yes
  17919. fi
  17920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17921. if test x$have_xrandr_h_hdr = xyes; then
  17922. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17923. echo "-- dynamic libXrandr -> $xrandr_lib"
  17924. cat >>confdefs.h <<_ACEOF
  17925. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17926. _ACEOF
  17927. definitely_enable_video_x11_xrandr=yes
  17928. else
  17929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17930. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17931. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17932. $as_echo_n "(cached) " >&6
  17933. else
  17934. ac_check_lib_save_LIBS=$LIBS
  17935. LIBS="-lXrandr $LIBS"
  17936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17937. /* end confdefs.h. */
  17938. /* Override any GCC internal prototype to avoid an error.
  17939. Use char because int might match the return type of a GCC
  17940. builtin and then its argument prototype would still apply. */
  17941. #ifdef __cplusplus
  17942. extern "C"
  17943. #endif
  17944. char XRRQueryExtension ();
  17945. int
  17946. main ()
  17947. {
  17948. return XRRQueryExtension ();
  17949. ;
  17950. return 0;
  17951. }
  17952. _ACEOF
  17953. if ac_fn_c_try_link "$LINENO"; then :
  17954. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17955. else
  17956. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17957. fi
  17958. rm -f core conftest.err conftest.$ac_objext \
  17959. conftest$ac_exeext conftest.$ac_ext
  17960. LIBS=$ac_check_lib_save_LIBS
  17961. fi
  17962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17963. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17964. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17965. have_xrandr_lib=yes
  17966. fi
  17967. if test x$have_xrandr_lib = xyes ; then
  17968. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17969. definitely_enable_video_x11_xrandr=yes
  17970. fi
  17971. fi
  17972. fi
  17973. fi
  17974. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17975. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17976. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17977. fi
  17978. # Check whether --enable-video-x11-scrnsaver was given.
  17979. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17980. enableval=$enable_video_x11_scrnsaver;
  17981. else
  17982. enable_video_x11_scrnsaver=yes
  17983. fi
  17984. if test x$enable_video_x11_scrnsaver = xyes; then
  17985. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17986. "
  17987. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17988. have_scrnsaver_h_hdr=yes
  17989. else
  17990. have_scrnsaver_h_hdr=no
  17991. fi
  17992. if test x$have_scrnsaver_h_hdr = xyes; then
  17993. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17994. echo "-- dynamic libXss -> $xss_lib"
  17995. cat >>confdefs.h <<_ACEOF
  17996. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17997. _ACEOF
  17998. definitely_enable_video_x11_scrnsaver=yes
  17999. else
  18000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18001. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18002. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18003. $as_echo_n "(cached) " >&6
  18004. else
  18005. ac_check_lib_save_LIBS=$LIBS
  18006. LIBS="-lXss $LIBS"
  18007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18008. /* end confdefs.h. */
  18009. /* Override any GCC internal prototype to avoid an error.
  18010. Use char because int might match the return type of a GCC
  18011. builtin and then its argument prototype would still apply. */
  18012. #ifdef __cplusplus
  18013. extern "C"
  18014. #endif
  18015. char XScreenSaverSuspend ();
  18016. int
  18017. main ()
  18018. {
  18019. return XScreenSaverSuspend ();
  18020. ;
  18021. return 0;
  18022. }
  18023. _ACEOF
  18024. if ac_fn_c_try_link "$LINENO"; then :
  18025. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18026. else
  18027. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18028. fi
  18029. rm -f core conftest.err conftest.$ac_objext \
  18030. conftest$ac_exeext conftest.$ac_ext
  18031. LIBS=$ac_check_lib_save_LIBS
  18032. fi
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18034. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18035. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18036. have_xss_lib=yes
  18037. fi
  18038. if test x$have_xss_lib = xyes ; then
  18039. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18040. definitely_enable_video_x11_scrnsaver=yes
  18041. fi
  18042. fi
  18043. fi
  18044. fi
  18045. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18046. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18047. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18048. fi
  18049. # Check whether --enable-video-x11-xshape was given.
  18050. if test "${enable_video_x11_xshape+set}" = set; then :
  18051. enableval=$enable_video_x11_xshape;
  18052. else
  18053. enable_video_x11_xshape=yes
  18054. fi
  18055. if test x$enable_video_x11_xshape = xyes; then
  18056. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18057. "
  18058. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18059. have_shape_h_hdr=yes
  18060. else
  18061. have_shape_h_hdr=no
  18062. fi
  18063. if test x$have_shape_h_hdr = xyes; then
  18064. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18065. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18066. fi
  18067. fi
  18068. # Check whether --enable-video-x11-vm was given.
  18069. if test "${enable_video_x11_vm+set}" = set; then :
  18070. enableval=$enable_video_x11_vm;
  18071. else
  18072. enable_video_x11_vm=yes
  18073. fi
  18074. if test x$enable_video_x11_vm = xyes; then
  18075. definitely_enable_video_x11_vm=no
  18076. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18077. "
  18078. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18079. have_vm_h_hdr=yes
  18080. else
  18081. have_vm_h_hdr=no
  18082. fi
  18083. if test x$have_vm_h_hdr = xyes; then
  18084. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18085. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18086. cat >>confdefs.h <<_ACEOF
  18087. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18088. _ACEOF
  18089. definitely_enable_video_x11_vm=yes
  18090. else
  18091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18092. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18093. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18094. $as_echo_n "(cached) " >&6
  18095. else
  18096. ac_check_lib_save_LIBS=$LIBS
  18097. LIBS="-lXxf86vm $LIBS"
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. /* Override any GCC internal prototype to avoid an error.
  18101. Use char because int might match the return type of a GCC
  18102. builtin and then its argument prototype would still apply. */
  18103. #ifdef __cplusplus
  18104. extern "C"
  18105. #endif
  18106. char XF86VidModeQueryVersion ();
  18107. int
  18108. main ()
  18109. {
  18110. return XF86VidModeQueryVersion ();
  18111. ;
  18112. return 0;
  18113. }
  18114. _ACEOF
  18115. if ac_fn_c_try_link "$LINENO"; then :
  18116. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18117. else
  18118. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18119. fi
  18120. rm -f core conftest.err conftest.$ac_objext \
  18121. conftest$ac_exeext conftest.$ac_ext
  18122. LIBS=$ac_check_lib_save_LIBS
  18123. fi
  18124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18125. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18126. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18127. have_vm_lib=yes
  18128. fi
  18129. if test x$have_vm_lib = xyes ; then
  18130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18131. definitely_enable_video_x11_vm=yes
  18132. fi
  18133. fi
  18134. fi
  18135. fi
  18136. if test x$definitely_enable_video_x11_vm = xyes; then
  18137. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18138. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18139. fi
  18140. fi
  18141. fi
  18142. }
  18143. CheckVivanteVideo()
  18144. {
  18145. # Check whether --enable-video-vivante was given.
  18146. if test "${enable_video_vivante+set}" = set; then :
  18147. enableval=$enable_video_vivante;
  18148. else
  18149. enable_video_vivante=yes
  18150. fi
  18151. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18153. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18154. have_vivante_vdk=no
  18155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18156. /* end confdefs.h. */
  18157. #define LINUX
  18158. #define EGL_API_FB
  18159. #include <gc_vdk.h>
  18160. int
  18161. main ()
  18162. {
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. if ac_fn_c_try_compile "$LINENO"; then :
  18168. have_vivante_vdk=yes
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18172. $as_echo "$have_vivante_vdk" >&6; }
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18174. $as_echo_n "checking for Vivante FB API... " >&6; }
  18175. have_vivante_egl=no
  18176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18177. /* end confdefs.h. */
  18178. #define LINUX
  18179. #define EGL_API_FB
  18180. #include <EGL/eglvivante.h>
  18181. int
  18182. main ()
  18183. {
  18184. ;
  18185. return 0;
  18186. }
  18187. _ACEOF
  18188. if ac_fn_c_try_compile "$LINENO"; then :
  18189. have_vivante_egl=yes
  18190. fi
  18191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18193. $as_echo "$have_vivante_egl" >&6; }
  18194. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18195. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18196. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18197. if test x$have_vivante_vdk = xyes; then
  18198. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18200. fi
  18201. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18202. SUMMARY_video="${SUMMARY_video} vivante"
  18203. have_video=yes
  18204. fi
  18205. fi
  18206. }
  18207. CheckHaikuVideo()
  18208. {
  18209. if test x$enable_video = xyes; then
  18210. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18211. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18212. have_video=yes
  18213. SUMMARY_video="${SUMMARY_video} haiku"
  18214. fi
  18215. }
  18216. CheckCOCOA()
  18217. {
  18218. # Check whether --enable-video-cocoa was given.
  18219. if test "${enable_video_cocoa+set}" = set; then :
  18220. enableval=$enable_video_cocoa;
  18221. else
  18222. enable_video_cocoa=yes
  18223. fi
  18224. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18225. save_CFLAGS="$CFLAGS"
  18226. CFLAGS="$CFLAGS -x objective-c"
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18228. $as_echo_n "checking for Cocoa framework... " >&6; }
  18229. have_cocoa=no
  18230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18231. /* end confdefs.h. */
  18232. #import <Cocoa/Cocoa.h>
  18233. int
  18234. main ()
  18235. {
  18236. ;
  18237. return 0;
  18238. }
  18239. _ACEOF
  18240. if ac_fn_c_try_compile "$LINENO"; then :
  18241. have_cocoa=yes
  18242. fi
  18243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18245. $as_echo "$have_cocoa" >&6; }
  18246. CFLAGS="$save_CFLAGS"
  18247. if test x$have_cocoa = xyes; then
  18248. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18249. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18250. SUMMARY_video="${SUMMARY_video} cocoa"
  18251. have_video=yes
  18252. fi
  18253. fi
  18254. }
  18255. CheckMETAL()
  18256. {
  18257. # Check whether --enable-render-metal was given.
  18258. if test "${enable_render_metal+set}" = set; then :
  18259. enableval=$enable_render_metal;
  18260. else
  18261. enable_render_metal=yes
  18262. fi
  18263. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18264. save_CFLAGS="$CFLAGS"
  18265. CFLAGS="$CFLAGS -x objective-c"
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18267. $as_echo_n "checking for Metal framework... " >&6; }
  18268. have_metal=no
  18269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18270. /* end confdefs.h. */
  18271. #import <Cocoa/Cocoa.h>
  18272. #import <Metal/Metal.h>
  18273. #import <QuartzCore/CAMetalLayer.h>
  18274. #if !TARGET_CPU_X86_64
  18275. #error Metal doesn't work on this configuration
  18276. #endif
  18277. int
  18278. main ()
  18279. {
  18280. ;
  18281. return 0;
  18282. }
  18283. _ACEOF
  18284. if ac_fn_c_try_compile "$LINENO"; then :
  18285. have_metal=yes
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18288. CFLAGS="$save_CFLAGS"
  18289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18290. $as_echo "$have_metal" >&6; }
  18291. if test x$have_metal = xyes; then
  18292. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18293. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18294. SUMMARY_video="${SUMMARY_video} metal"
  18295. else
  18296. enable_render_metal=no
  18297. fi
  18298. fi
  18299. }
  18300. CheckDirectFB()
  18301. {
  18302. # Check whether --enable-video-directfb was given.
  18303. if test "${enable_video_directfb+set}" = set; then :
  18304. enableval=$enable_video_directfb;
  18305. else
  18306. enable_video_directfb=no
  18307. fi
  18308. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18309. video_directfb=no
  18310. DIRECTFB_REQUIRED_VERSION=1.0.0
  18311. for ac_prog in directfb-config
  18312. do
  18313. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18314. set dummy $ac_prog; ac_word=$2
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18316. $as_echo_n "checking for $ac_word... " >&6; }
  18317. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18318. $as_echo_n "(cached) " >&6
  18319. else
  18320. case $DIRECTFBCONFIG in
  18321. [\\/]* | ?:[\\/]*)
  18322. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18323. ;;
  18324. *)
  18325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18326. as_dummy="$prefix/bin:$PATH"
  18327. for as_dir in $as_dummy
  18328. do
  18329. IFS=$as_save_IFS
  18330. test -z "$as_dir" && as_dir=.
  18331. for ac_exec_ext in '' $ac_executable_extensions; do
  18332. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18333. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18335. break 2
  18336. fi
  18337. done
  18338. done
  18339. IFS=$as_save_IFS
  18340. ;;
  18341. esac
  18342. fi
  18343. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18344. if test -n "$DIRECTFBCONFIG"; then
  18345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18346. $as_echo "$DIRECTFBCONFIG" >&6; }
  18347. else
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18349. $as_echo "no" >&6; }
  18350. fi
  18351. test -n "$DIRECTFBCONFIG" && break
  18352. done
  18353. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18354. if test x$DIRECTFBCONFIG = xno; then
  18355. # Extract the first word of "pkg-config", so it can be a program name with args.
  18356. set dummy pkg-config; ac_word=$2
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18358. $as_echo_n "checking for $ac_word... " >&6; }
  18359. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18360. $as_echo_n "(cached) " >&6
  18361. else
  18362. case $PKG_CONFIG in
  18363. [\\/]* | ?:[\\/]*)
  18364. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18365. ;;
  18366. *)
  18367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18368. for as_dir in $PATH
  18369. do
  18370. IFS=$as_save_IFS
  18371. test -z "$as_dir" && as_dir=.
  18372. for ac_exec_ext in '' $ac_executable_extensions; do
  18373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18374. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18376. break 2
  18377. fi
  18378. done
  18379. done
  18380. IFS=$as_save_IFS
  18381. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18382. ;;
  18383. esac
  18384. fi
  18385. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18386. if test -n "$PKG_CONFIG"; then
  18387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18388. $as_echo "$PKG_CONFIG" >&6; }
  18389. else
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18391. $as_echo "no" >&6; }
  18392. fi
  18393. if test x$PKG_CONFIG != xno; then
  18394. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18395. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18396. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18397. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18398. video_directfb=yes
  18399. fi
  18400. fi
  18401. else
  18402. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18403. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18404. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18405. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18406. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18407. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18408. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18409. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18410. video_directfb=yes
  18411. fi
  18412. fi
  18413. if test x$video_directfb = xyes; then
  18414. # SuSE 11.1 installs directfb-config without directfb-devel
  18415. save_CPPFLAGS="$CPPFLAGS"
  18416. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18417. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18418. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18419. have_directfb_hdr=yes
  18420. else
  18421. have_directfb_hdr=no
  18422. fi
  18423. CPPFLAGS="$save_CPPFLAGS"
  18424. video_directfb=$have_directfb_hdr
  18425. fi
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18427. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18429. $as_echo "$video_directfb" >&6; }
  18430. if test x$video_directfb = xyes; then
  18431. # Check whether --enable-directfb-shared was given.
  18432. if test "${enable_directfb_shared+set}" = set; then :
  18433. enableval=$enable_directfb_shared;
  18434. else
  18435. enable_directfb_shared=yes
  18436. fi
  18437. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18438. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18439. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18441. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18442. directfb_shared=no
  18443. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18444. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18446. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18447. if test x$have_loadso != xyes && \
  18448. test x$enable_directfb_shared = xyes; then
  18449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18450. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18451. fi
  18452. if test x$have_loadso = xyes && \
  18453. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18454. directfb_shared=yes
  18455. echo "-- $directfb_lib_spec -> $directfb_lib"
  18456. cat >>confdefs.h <<_ACEOF
  18457. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18458. _ACEOF
  18459. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18460. else
  18461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18462. SUMMARY_video="${SUMMARY_video} directfb"
  18463. fi
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18465. $as_echo "$directfb_shared" >&6; }
  18466. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18467. have_video=yes
  18468. fi
  18469. fi
  18470. }
  18471. CheckKMSDRM()
  18472. {
  18473. # Check whether --enable-video-kmsdrm was given.
  18474. if test "${enable_video_kmsdrm+set}" = set; then :
  18475. enableval=$enable_video_kmsdrm;
  18476. else
  18477. enable_video_kmsdrm=no
  18478. fi
  18479. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18480. video_kmsdrm=no
  18481. libdrm_avail=no
  18482. libgbm_avail=no
  18483. LIBDRM_REQUIRED_VERSION=2.4.46
  18484. LIBGBM_REQUIRED_VERSION=9.0.0
  18485. # Extract the first word of "pkg-config", so it can be a program name with args.
  18486. set dummy pkg-config; ac_word=$2
  18487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18488. $as_echo_n "checking for $ac_word... " >&6; }
  18489. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18490. $as_echo_n "(cached) " >&6
  18491. else
  18492. case $PKG_CONFIG in
  18493. [\\/]* | ?:[\\/]*)
  18494. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18495. ;;
  18496. *)
  18497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18498. for as_dir in $PATH
  18499. do
  18500. IFS=$as_save_IFS
  18501. test -z "$as_dir" && as_dir=.
  18502. for ac_exec_ext in '' $ac_executable_extensions; do
  18503. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18504. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18506. break 2
  18507. fi
  18508. done
  18509. done
  18510. IFS=$as_save_IFS
  18511. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18512. ;;
  18513. esac
  18514. fi
  18515. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18516. if test -n "$PKG_CONFIG"; then
  18517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18518. $as_echo "$PKG_CONFIG" >&6; }
  18519. else
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18521. $as_echo "no" >&6; }
  18522. fi
  18523. if test x$PKG_CONFIG != xno; then
  18524. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18525. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18526. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18527. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18528. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18529. libdrm_avail=yes
  18530. fi
  18531. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18532. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18533. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18534. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18535. libgbm_avail=yes
  18536. fi
  18537. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18538. video_kmsdrm=yes
  18539. fi
  18540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18541. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18543. $as_echo "$libdrm_avail" >&6; }
  18544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18545. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18547. $as_echo "$libgbm_avail" >&6; }
  18548. if test x$video_kmsdrm = xyes; then
  18549. # Check whether --enable-kmsdrm-shared was given.
  18550. if test "${enable_kmsdrm_shared+set}" = set; then :
  18551. enableval=$enable_kmsdrm_shared;
  18552. else
  18553. enable_kmsdrm_shared=yes
  18554. fi
  18555. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18556. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18557. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18559. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18560. kmsdrm_shared=no
  18561. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18562. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18563. if test x$have_loadso != xyes && \
  18564. test x$enable_kmsdrm_shared = xyes; then
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18566. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18567. fi
  18568. if test x$have_loadso = xyes && \
  18569. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18570. kmsdrm_shared=yes
  18571. cat >>confdefs.h <<_ACEOF
  18572. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18573. _ACEOF
  18574. cat >>confdefs.h <<_ACEOF
  18575. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18576. _ACEOF
  18577. cat >>confdefs.h <<_ACEOF
  18578. #define HAVE_KMSDRM_SHARED "TRUE"
  18579. _ACEOF
  18580. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18581. else
  18582. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18583. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18584. fi
  18585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18586. $as_echo "$kmsdrm_shared" >&6; }
  18587. have_video=yes
  18588. fi
  18589. fi
  18590. fi
  18591. fi
  18592. }
  18593. CheckDummyVideo()
  18594. {
  18595. # Check whether --enable-video-dummy was given.
  18596. if test "${enable_video_dummy+set}" = set; then :
  18597. enableval=$enable_video_dummy;
  18598. else
  18599. enable_video_dummy=yes
  18600. fi
  18601. if test x$enable_video_dummy = xyes; then
  18602. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18603. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18604. have_video=yes
  18605. SUMMARY_video="${SUMMARY_video} dummy"
  18606. fi
  18607. }
  18608. CheckQNXVideo()
  18609. {
  18610. if test x$enable_video = xyes; then
  18611. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18612. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18613. have_video=yes
  18614. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18615. SUMMARY_video="${SUMMARY_video} qnx"
  18616. fi
  18617. }
  18618. CheckQNXAudio()
  18619. {
  18620. if test x$enable_audio = xyes; then
  18621. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18622. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18623. have_audio=yes
  18624. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18625. SUMMARY_audio="${SUMMARY_audio} qsa"
  18626. fi
  18627. }
  18628. # Check whether --enable-video-opengl was given.
  18629. if test "${enable_video_opengl+set}" = set; then :
  18630. enableval=$enable_video_opengl;
  18631. else
  18632. enable_video_opengl=yes
  18633. fi
  18634. CheckOpenGLX11()
  18635. {
  18636. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18638. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18639. video_opengl=no
  18640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18641. /* end confdefs.h. */
  18642. #include <GL/gl.h>
  18643. #include <GL/glx.h>
  18644. int
  18645. main ()
  18646. {
  18647. ;
  18648. return 0;
  18649. }
  18650. _ACEOF
  18651. if ac_fn_c_try_compile "$LINENO"; then :
  18652. video_opengl=yes
  18653. fi
  18654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18656. $as_echo "$video_opengl" >&6; }
  18657. if test x$video_opengl = xyes; then
  18658. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18659. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18660. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18661. SUMMARY_video="${SUMMARY_video} opengl"
  18662. fi
  18663. fi
  18664. }
  18665. # Check whether --enable-video-opengles was given.
  18666. if test "${enable_video_opengles+set}" = set; then :
  18667. enableval=$enable_video_opengles;
  18668. else
  18669. enable_video_opengles=yes
  18670. fi
  18671. # Check whether --enable-video-opengles1 was given.
  18672. if test "${enable_video_opengles1+set}" = set; then :
  18673. enableval=$enable_video_opengles1;
  18674. else
  18675. enable_video_opengles1=yes
  18676. fi
  18677. # Check whether --enable-video-opengles2 was given.
  18678. if test "${enable_video_opengles2+set}" = set; then :
  18679. enableval=$enable_video_opengles2;
  18680. else
  18681. enable_video_opengles2=yes
  18682. fi
  18683. CheckOpenGLESX11()
  18684. {
  18685. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18687. $as_echo_n "checking for EGL support... " >&6; }
  18688. video_opengl_egl=no
  18689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18690. /* end confdefs.h. */
  18691. #define LINUX
  18692. #define EGL_API_FB
  18693. #include <EGL/egl.h>
  18694. #include <EGL/eglext.h>
  18695. int
  18696. main ()
  18697. {
  18698. ;
  18699. return 0;
  18700. }
  18701. _ACEOF
  18702. if ac_fn_c_try_compile "$LINENO"; then :
  18703. video_opengl_egl=yes
  18704. fi
  18705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18707. $as_echo "$video_opengl_egl" >&6; }
  18708. if test x$video_opengl_egl = xyes; then
  18709. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18710. fi
  18711. if test x$enable_video_opengles1 = xyes; then
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18713. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18714. video_opengles_v1=no
  18715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18716. /* end confdefs.h. */
  18717. #include <GLES/gl.h>
  18718. #include <GLES/glext.h>
  18719. int
  18720. main ()
  18721. {
  18722. ;
  18723. return 0;
  18724. }
  18725. _ACEOF
  18726. if ac_fn_c_try_compile "$LINENO"; then :
  18727. video_opengles_v1=yes
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18731. $as_echo "$video_opengles_v1" >&6; }
  18732. if test x$video_opengles_v1 = xyes; then
  18733. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18734. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18735. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18736. fi
  18737. fi
  18738. if test x$enable_video_opengles2 = xyes; then
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18740. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18741. video_opengles_v2=no
  18742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18743. /* end confdefs.h. */
  18744. #include <GLES2/gl2.h>
  18745. #include <GLES2/gl2ext.h>
  18746. int
  18747. main ()
  18748. {
  18749. ;
  18750. return 0;
  18751. }
  18752. _ACEOF
  18753. if ac_fn_c_try_compile "$LINENO"; then :
  18754. video_opengles_v2=yes
  18755. fi
  18756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18758. $as_echo "$video_opengles_v2" >&6; }
  18759. if test x$video_opengles_v2 = xyes; then
  18760. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18761. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18762. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18763. fi
  18764. fi
  18765. fi
  18766. }
  18767. CheckWINDOWSGL()
  18768. {
  18769. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18770. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18771. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18772. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18773. SUMMARY_video="${SUMMARY_video} opengl"
  18774. fi
  18775. }
  18776. CheckWINDOWSGLES()
  18777. {
  18778. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18780. $as_echo_n "checking for EGL support... " >&6; }
  18781. video_opengl_egl=no
  18782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18783. /* end confdefs.h. */
  18784. #include <EGL/egl.h>
  18785. int
  18786. main ()
  18787. {
  18788. ;
  18789. return 0;
  18790. }
  18791. _ACEOF
  18792. if ac_fn_c_try_compile "$LINENO"; then :
  18793. video_opengl_egl=yes
  18794. fi
  18795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18797. $as_echo "$video_opengl_egl" >&6; }
  18798. if test x$video_opengl_egl = xyes; then
  18799. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18800. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18801. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18802. fi
  18803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18804. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18805. video_opengles_v2=no
  18806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18807. /* end confdefs.h. */
  18808. #include <GLES2/gl2.h>
  18809. #include <GLES2/gl2ext.h>
  18810. int
  18811. main ()
  18812. {
  18813. ;
  18814. return 0;
  18815. }
  18816. _ACEOF
  18817. if ac_fn_c_try_compile "$LINENO"; then :
  18818. video_opengles_v2=yes
  18819. fi
  18820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18822. $as_echo "$video_opengles_v2" >&6; }
  18823. if test x$video_opengles_v2 = xyes; then
  18824. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18825. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18826. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18827. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18828. fi
  18829. fi
  18830. }
  18831. CheckHaikuGL()
  18832. {
  18833. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18834. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18835. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18836. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18838. SUMMARY_video="${SUMMARY_video} opengl"
  18839. fi
  18840. }
  18841. CheckMacGL()
  18842. {
  18843. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18844. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18845. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18846. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18847. SUMMARY_video="${SUMMARY_video} opengl"
  18848. fi
  18849. }
  18850. CheckMacGLES()
  18851. {
  18852. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18853. video_opengl_egl=yes
  18854. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18855. video_opengles_v2=yes
  18856. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18857. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18858. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18859. fi
  18860. }
  18861. CheckEmscriptenGLES()
  18862. {
  18863. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18865. $as_echo_n "checking for EGL support... " >&6; }
  18866. video_opengl_egl=no
  18867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18868. /* end confdefs.h. */
  18869. #include <EGL/egl.h>
  18870. int
  18871. main ()
  18872. {
  18873. ;
  18874. return 0;
  18875. }
  18876. _ACEOF
  18877. if ac_fn_c_try_compile "$LINENO"; then :
  18878. video_opengl_egl=yes
  18879. fi
  18880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18882. $as_echo "$video_opengl_egl" >&6; }
  18883. if test x$video_opengl_egl = xyes; then
  18884. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18885. fi
  18886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18887. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18888. video_opengles_v2=no
  18889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18890. /* end confdefs.h. */
  18891. #include <GLES2/gl2.h>
  18892. #include <GLES2/gl2ext.h>
  18893. int
  18894. main ()
  18895. {
  18896. ;
  18897. return 0;
  18898. }
  18899. _ACEOF
  18900. if ac_fn_c_try_compile "$LINENO"; then :
  18901. video_opengles_v2=yes
  18902. fi
  18903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18905. $as_echo "$video_opengles_v2" >&6; }
  18906. if test x$video_opengles_v2 = xyes; then
  18907. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18908. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18909. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18910. fi
  18911. fi
  18912. }
  18913. # Check whether --enable-video-vulkan was given.
  18914. if test "${enable_video_vulkan+set}" = set; then :
  18915. enableval=$enable_video_vulkan;
  18916. else
  18917. enable_video_vulkan=yes
  18918. fi
  18919. CheckVulkan()
  18920. {
  18921. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18922. case "$host" in
  18923. *-*-android*)
  18924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18925. /* end confdefs.h. */
  18926. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18927. #error Vulkan doesn't work on this configuration
  18928. #endif
  18929. int
  18930. main ()
  18931. {
  18932. ;
  18933. return 0;
  18934. }
  18935. _ACEOF
  18936. if ac_fn_c_try_compile "$LINENO"; then :
  18937. else
  18938. enable_video_vulkan=no
  18939. fi
  18940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18941. ;;
  18942. *-*-darwin*)
  18943. save_CFLAGS="$CFLAGS"
  18944. CFLAGS="$CFLAGS -x objective-c"
  18945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18946. /* end confdefs.h. */
  18947. #include <Cocoa/Cocoa.h>
  18948. #include <Metal/Metal.h>
  18949. #include <QuartzCore/CAMetalLayer.h>
  18950. #if !TARGET_CPU_X86_64
  18951. #error Vulkan doesn't work on this configuration
  18952. #endif
  18953. int
  18954. main ()
  18955. {
  18956. ;
  18957. return 0;
  18958. }
  18959. _ACEOF
  18960. if ac_fn_c_try_compile "$LINENO"; then :
  18961. else
  18962. enable_video_vulkan=no
  18963. fi
  18964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18965. CFLAGS="$save_CFLAGS"
  18966. ;;
  18967. *)
  18968. ;;
  18969. esac
  18970. if test x$enable_video_vulkan = xno; then
  18971. # For reasons I am totally unable to see, I get an undefined macro error if
  18972. # I put this in the AC_TRY_COMPILE.
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18974. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18975. fi
  18976. fi
  18977. if test x$enable_video_vulkan = xyes; then
  18978. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18979. SUMMARY_video="${SUMMARY_video} vulkan"
  18980. fi
  18981. }
  18982. CheckInputEvents()
  18983. {
  18984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18985. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18986. use_input_events=no
  18987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18988. /* end confdefs.h. */
  18989. #include <linux/input.h>
  18990. int
  18991. main ()
  18992. {
  18993. #ifndef EVIOCGNAME
  18994. #error EVIOCGNAME() ioctl not available
  18995. #endif
  18996. ;
  18997. return 0;
  18998. }
  18999. _ACEOF
  19000. if ac_fn_c_try_compile "$LINENO"; then :
  19001. use_input_events=yes
  19002. fi
  19003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19005. $as_echo "$use_input_events" >&6; }
  19006. if test x$use_input_events = xyes; then
  19007. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19008. SUMMARY_input="${SUMMARY_input} linuxev"
  19009. fi
  19010. }
  19011. CheckInputKD()
  19012. {
  19013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19014. $as_echo_n "checking for Linux kd.h... " >&6; }
  19015. use_input_kd=no
  19016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19017. /* end confdefs.h. */
  19018. #include <linux/kd.h>
  19019. #include <linux/keyboard.h>
  19020. int
  19021. main ()
  19022. {
  19023. struct kbentry kbe;
  19024. kbe.kb_table = KG_CTRL;
  19025. ioctl(0, KDGKBENT, &kbe);
  19026. ;
  19027. return 0;
  19028. }
  19029. _ACEOF
  19030. if ac_fn_c_try_compile "$LINENO"; then :
  19031. use_input_kd=yes
  19032. fi
  19033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19035. $as_echo "$use_input_kd" >&6; }
  19036. if test x$use_input_kd = xyes; then
  19037. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19038. SUMMARY_input="${SUMMARY_input} linuxkd"
  19039. fi
  19040. }
  19041. CheckLibUDev()
  19042. {
  19043. # Check whether --enable-libudev was given.
  19044. if test "${enable_libudev+set}" = set; then :
  19045. enableval=$enable_libudev;
  19046. else
  19047. enable_libudev=yes
  19048. fi
  19049. if test x$enable_libudev = xyes; then
  19050. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19051. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19052. have_libudev_h_hdr=yes
  19053. else
  19054. have_libudev_h_hdr=no
  19055. fi
  19056. if test x$have_libudev_h_hdr = xyes; then
  19057. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19058. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19059. if test x$udev_lib != x; then
  19060. echo "-- dynamic udev -> $udev_lib"
  19061. cat >>confdefs.h <<_ACEOF
  19062. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19063. _ACEOF
  19064. fi
  19065. fi
  19066. fi
  19067. }
  19068. CheckDBus()
  19069. {
  19070. # Check whether --enable-dbus was given.
  19071. if test "${enable_dbus+set}" = set; then :
  19072. enableval=$enable_dbus;
  19073. else
  19074. enable_dbus=yes
  19075. fi
  19076. if test x$enable_dbus = xyes; then
  19077. # Extract the first word of "pkg-config", so it can be a program name with args.
  19078. set dummy pkg-config; ac_word=$2
  19079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19080. $as_echo_n "checking for $ac_word... " >&6; }
  19081. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19082. $as_echo_n "(cached) " >&6
  19083. else
  19084. case $PKG_CONFIG in
  19085. [\\/]* | ?:[\\/]*)
  19086. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19087. ;;
  19088. *)
  19089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19090. for as_dir in $PATH
  19091. do
  19092. IFS=$as_save_IFS
  19093. test -z "$as_dir" && as_dir=.
  19094. for ac_exec_ext in '' $ac_executable_extensions; do
  19095. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19096. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19098. break 2
  19099. fi
  19100. done
  19101. done
  19102. IFS=$as_save_IFS
  19103. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19104. ;;
  19105. esac
  19106. fi
  19107. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19108. if test -n "$PKG_CONFIG"; then
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19110. $as_echo "$PKG_CONFIG" >&6; }
  19111. else
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19113. $as_echo "no" >&6; }
  19114. fi
  19115. if test x$PKG_CONFIG != xno; then
  19116. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19117. save_CFLAGS="$CFLAGS"
  19118. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19119. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19120. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19121. have_dbus_dbus_h_hdr=yes
  19122. else
  19123. have_dbus_dbus_h_hdr=no
  19124. fi
  19125. CFLAGS="$save_CFLAGS"
  19126. if test x$have_dbus_dbus_h_hdr = xyes; then
  19127. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19128. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19129. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19130. fi
  19131. fi
  19132. fi
  19133. }
  19134. CheckIME()
  19135. {
  19136. # Check whether --enable-ime was given.
  19137. if test "${enable_ime+set}" = set; then :
  19138. enableval=$enable_ime;
  19139. else
  19140. enable_ime=yes
  19141. fi
  19142. if test x$enable_ime = xyes; then
  19143. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19144. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19145. fi
  19146. }
  19147. CheckIBus()
  19148. {
  19149. # Check whether --enable-ibus was given.
  19150. if test "${enable_ibus+set}" = set; then :
  19151. enableval=$enable_ibus;
  19152. else
  19153. enable_ibus=yes
  19154. fi
  19155. if test x$enable_ibus = xyes; then
  19156. # Extract the first word of "pkg-config", so it can be a program name with args.
  19157. set dummy pkg-config; ac_word=$2
  19158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19159. $as_echo_n "checking for $ac_word... " >&6; }
  19160. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19161. $as_echo_n "(cached) " >&6
  19162. else
  19163. case $PKG_CONFIG in
  19164. [\\/]* | ?:[\\/]*)
  19165. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19166. ;;
  19167. *)
  19168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19169. for as_dir in $PATH
  19170. do
  19171. IFS=$as_save_IFS
  19172. test -z "$as_dir" && as_dir=.
  19173. for ac_exec_ext in '' $ac_executable_extensions; do
  19174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19175. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19177. break 2
  19178. fi
  19179. done
  19180. done
  19181. IFS=$as_save_IFS
  19182. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19183. ;;
  19184. esac
  19185. fi
  19186. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19187. if test -n "$PKG_CONFIG"; then
  19188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19189. $as_echo "$PKG_CONFIG" >&6; }
  19190. else
  19191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19192. $as_echo "no" >&6; }
  19193. fi
  19194. if test x$PKG_CONFIG != xno; then
  19195. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19196. save_CFLAGS="$CFLAGS"
  19197. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19198. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19199. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19200. have_ibus_ibus_h_hdr=yes
  19201. else
  19202. have_ibus_ibus_h_hdr=no
  19203. fi
  19204. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19205. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19206. have_inotify_inotify_h_hdr=yes
  19207. else
  19208. have_inotify_inotify_h_hdr=no
  19209. fi
  19210. CFLAGS="$save_CFLAGS"
  19211. if test x$have_ibus_ibus_h_hdr = xyes; then
  19212. if test x$enable_ime != xyes; then
  19213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19214. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19215. have_ibus_ibus_h_hdr=no
  19216. elif test x$enable_dbus != xyes; then
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19218. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19219. have_ibus_ibus_h_hdr=no
  19220. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19222. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19223. have_ibus_ibus_h_hdr=no
  19224. else
  19225. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19226. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19227. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19228. fi
  19229. fi
  19230. fi
  19231. fi
  19232. }
  19233. CheckFcitx()
  19234. {
  19235. # Check whether --enable-fcitx was given.
  19236. if test "${enable_fcitx+set}" = set; then :
  19237. enableval=$enable_fcitx;
  19238. else
  19239. enable_fcitx=yes
  19240. fi
  19241. if test x$enable_fcitx = xyes; then
  19242. # Extract the first word of "pkg-config", so it can be a program name with args.
  19243. set dummy pkg-config; ac_word=$2
  19244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19245. $as_echo_n "checking for $ac_word... " >&6; }
  19246. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19247. $as_echo_n "(cached) " >&6
  19248. else
  19249. case $PKG_CONFIG in
  19250. [\\/]* | ?:[\\/]*)
  19251. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19252. ;;
  19253. *)
  19254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19255. for as_dir in $PATH
  19256. do
  19257. IFS=$as_save_IFS
  19258. test -z "$as_dir" && as_dir=.
  19259. for ac_exec_ext in '' $ac_executable_extensions; do
  19260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19261. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19263. break 2
  19264. fi
  19265. done
  19266. done
  19267. IFS=$as_save_IFS
  19268. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19269. ;;
  19270. esac
  19271. fi
  19272. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19273. if test -n "$PKG_CONFIG"; then
  19274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19275. $as_echo "$PKG_CONFIG" >&6; }
  19276. else
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19278. $as_echo "no" >&6; }
  19279. fi
  19280. if test x$PKG_CONFIG != xno; then
  19281. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19282. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19283. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19284. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19285. have_fcitx_frontend_h_hdr=yes
  19286. else
  19287. have_fcitx_frontend_h_hdr=no
  19288. fi
  19289. CFLAGS="$save_CFLAGS"
  19290. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19291. if test x$enable_ime != xyes; then
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19293. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19294. have_fcitx_frontend_h_hdr=no
  19295. elif test x$enable_dbus != xyes; then
  19296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19297. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19298. have_fcitx_frontend_h_hdr=no
  19299. else
  19300. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19301. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19302. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19303. fi
  19304. fi
  19305. fi
  19306. fi
  19307. }
  19308. CheckTslib()
  19309. {
  19310. # Check whether --enable-input-tslib was given.
  19311. if test "${enable_input_tslib+set}" = set; then :
  19312. enableval=$enable_input_tslib;
  19313. else
  19314. enable_input_tslib=yes
  19315. fi
  19316. if test x$enable_input_tslib = xyes; then
  19317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19318. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19319. enable_input_tslib=no
  19320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19321. /* end confdefs.h. */
  19322. #include "tslib.h"
  19323. int
  19324. main ()
  19325. {
  19326. ;
  19327. return 0;
  19328. }
  19329. _ACEOF
  19330. if ac_fn_c_try_compile "$LINENO"; then :
  19331. enable_input_tslib=yes
  19332. fi
  19333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19335. $as_echo "$enable_input_tslib" >&6; }
  19336. if test x$enable_input_tslib = xyes; then
  19337. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19339. SUMMARY_input="${SUMMARY_input} ts"
  19340. fi
  19341. fi
  19342. }
  19343. CheckPTHREAD()
  19344. {
  19345. # Check whether --enable-pthreads was given.
  19346. if test "${enable_pthreads+set}" = set; then :
  19347. enableval=$enable_pthreads;
  19348. else
  19349. enable_pthreads=yes
  19350. fi
  19351. # Check whether --enable-pthread-sem was given.
  19352. if test "${enable_pthread_sem+set}" = set; then :
  19353. enableval=$enable_pthread_sem;
  19354. else
  19355. enable_pthread_sem=yes
  19356. fi
  19357. case "$host" in
  19358. *-*-android*)
  19359. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19360. pthread_lib=""
  19361. ;;
  19362. *-*-linux*|*-*-uclinux*)
  19363. pthread_cflags="-D_REENTRANT"
  19364. pthread_lib="-lpthread"
  19365. ;;
  19366. *-*-bsdi*)
  19367. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19368. pthread_lib=""
  19369. ;;
  19370. *-*-darwin*)
  19371. pthread_cflags="-D_THREAD_SAFE"
  19372. # causes Carbon.p complaints?
  19373. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19374. ;;
  19375. *-*-freebsd*|*-*-dragonfly*)
  19376. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19377. pthread_lib="-pthread"
  19378. ;;
  19379. *-*-netbsd*)
  19380. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19381. pthread_lib="-lpthread"
  19382. ;;
  19383. *-*-openbsd*)
  19384. pthread_cflags="-D_REENTRANT"
  19385. pthread_lib="-pthread"
  19386. ;;
  19387. *-*-solaris2.9)
  19388. # From Solaris 9+, posix4's preferred name is rt.
  19389. pthread_cflags="-D_REENTRANT"
  19390. pthread_lib="-lpthread -lrt"
  19391. ;;
  19392. *-*-solaris2.10)
  19393. # Solaris 10+ merged pthread into libc.
  19394. pthread_cflags="-D_REENTRANT"
  19395. pthread_lib="-lrt"
  19396. ;;
  19397. *-*-solaris*)
  19398. # Solaris 11+ merged rt into libc.
  19399. pthread_cflags="-D_REENTRANT"
  19400. pthread_lib=""
  19401. ;;
  19402. *-*-sysv5*)
  19403. pthread_cflags="-D_REENTRANT -Kthread"
  19404. pthread_lib=""
  19405. ;;
  19406. *-*-aix*)
  19407. pthread_cflags="-D_REENTRANT -mthreads"
  19408. pthread_lib="-lpthread"
  19409. ;;
  19410. *-*-hpux11*)
  19411. pthread_cflags="-D_REENTRANT"
  19412. pthread_lib="-L/usr/lib -lpthread"
  19413. ;;
  19414. *-*-haiku*)
  19415. pthread_cflags="-D_REENTRANT"
  19416. pthread_lib=""
  19417. ;;
  19418. *-*-nto*)
  19419. pthread_cflags="-D_REENTRANT"
  19420. pthread_lib=""
  19421. ;;
  19422. *)
  19423. pthread_cflags="-D_REENTRANT"
  19424. pthread_lib="-lpthread"
  19425. ;;
  19426. esac
  19427. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19428. # Save the original compiler flags and libraries
  19429. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19430. # Add the pthread compiler flags and libraries
  19431. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19432. # Check to see if we have pthread support on this system
  19433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19434. $as_echo_n "checking for pthreads... " >&6; }
  19435. use_pthreads=no
  19436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19437. /* end confdefs.h. */
  19438. #include <pthread.h>
  19439. int
  19440. main ()
  19441. {
  19442. pthread_attr_t type;
  19443. pthread_attr_init(&type);
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. if ac_fn_c_try_link "$LINENO"; then :
  19449. use_pthreads=yes
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext \
  19452. conftest$ac_exeext conftest.$ac_ext
  19453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19454. $as_echo "$use_pthreads" >&6; }
  19455. # Restore the compiler flags and libraries
  19456. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19457. # Do futher testing if we have pthread support...
  19458. if test x$use_pthreads = xyes; then
  19459. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19460. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19461. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19462. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19463. # Save the original compiler flags and libraries
  19464. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19465. # Add the pthread compiler flags and libraries
  19466. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19467. # Check to see if recursive mutexes are available
  19468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19469. $as_echo_n "checking for recursive mutexes... " >&6; }
  19470. has_recursive_mutexes=no
  19471. if test x$has_recursive_mutexes = xno; then
  19472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19473. /* end confdefs.h. */
  19474. #define _GNU_SOURCE 1
  19475. #include <pthread.h>
  19476. int
  19477. main ()
  19478. {
  19479. pthread_mutexattr_t attr;
  19480. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19481. ;
  19482. return 0;
  19483. }
  19484. _ACEOF
  19485. if ac_fn_c_try_link "$LINENO"; then :
  19486. has_recursive_mutexes=yes
  19487. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19488. fi
  19489. rm -f core conftest.err conftest.$ac_objext \
  19490. conftest$ac_exeext conftest.$ac_ext
  19491. fi
  19492. if test x$has_recursive_mutexes = xno; then
  19493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19494. /* end confdefs.h. */
  19495. #define _GNU_SOURCE 1
  19496. #include <pthread.h>
  19497. int
  19498. main ()
  19499. {
  19500. pthread_mutexattr_t attr;
  19501. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19502. ;
  19503. return 0;
  19504. }
  19505. _ACEOF
  19506. if ac_fn_c_try_link "$LINENO"; then :
  19507. has_recursive_mutexes=yes
  19508. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19509. fi
  19510. rm -f core conftest.err conftest.$ac_objext \
  19511. conftest$ac_exeext conftest.$ac_ext
  19512. fi
  19513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19514. $as_echo "$has_recursive_mutexes" >&6; }
  19515. # Check to see if pthread semaphore support is missing
  19516. if test x$enable_pthread_sem = xyes; then
  19517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19518. $as_echo_n "checking for pthread semaphores... " >&6; }
  19519. have_pthread_sem=no
  19520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19521. /* end confdefs.h. */
  19522. #include <pthread.h>
  19523. #include <semaphore.h>
  19524. int
  19525. main ()
  19526. {
  19527. ;
  19528. return 0;
  19529. }
  19530. _ACEOF
  19531. if ac_fn_c_try_compile "$LINENO"; then :
  19532. have_pthread_sem=yes
  19533. fi
  19534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19536. $as_echo "$have_pthread_sem" >&6; }
  19537. fi
  19538. if test x$have_pthread_sem = xyes; then
  19539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19540. $as_echo_n "checking for sem_timedwait... " >&6; }
  19541. have_sem_timedwait=no
  19542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19543. /* end confdefs.h. */
  19544. #include <pthread.h>
  19545. #include <semaphore.h>
  19546. int
  19547. main ()
  19548. {
  19549. sem_timedwait(NULL, NULL);
  19550. ;
  19551. return 0;
  19552. }
  19553. _ACEOF
  19554. if ac_fn_c_try_link "$LINENO"; then :
  19555. have_sem_timedwait=yes
  19556. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19557. fi
  19558. rm -f core conftest.err conftest.$ac_objext \
  19559. conftest$ac_exeext conftest.$ac_ext
  19560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19561. $as_echo "$have_sem_timedwait" >&6; }
  19562. fi
  19563. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19564. "
  19565. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19566. have_pthread_np_h=yes
  19567. else
  19568. have_pthread_np_h=no
  19569. fi
  19570. if test x$have_pthread_np_h = xyes; then
  19571. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19572. fi
  19573. # Check to see if pthread naming is available
  19574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19575. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19577. /* end confdefs.h. */
  19578. /* Override any GCC internal prototype to avoid an error.
  19579. Use char because int might match the return type of a GCC
  19580. builtin and then its argument prototype would still apply. */
  19581. #ifdef __cplusplus
  19582. extern "C"
  19583. #endif
  19584. char pthread_setname_np ();
  19585. int
  19586. main ()
  19587. {
  19588. return pthread_setname_np ();
  19589. ;
  19590. return 0;
  19591. }
  19592. _ACEOF
  19593. if ac_fn_c_try_link "$LINENO"; then :
  19594. has_pthread_setname_np=yes
  19595. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19596. else
  19597. has_pthread_setname_np=no
  19598. fi
  19599. rm -f core conftest.err conftest.$ac_objext \
  19600. conftest$ac_exeext conftest.$ac_ext
  19601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19602. $as_echo "$has_pthread_setname_np" >&6; }
  19603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19604. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. /* Override any GCC internal prototype to avoid an error.
  19608. Use char because int might match the return type of a GCC
  19609. builtin and then its argument prototype would still apply. */
  19610. #ifdef __cplusplus
  19611. extern "C"
  19612. #endif
  19613. char pthread_set_name_np ();
  19614. int
  19615. main ()
  19616. {
  19617. return pthread_set_name_np ();
  19618. ;
  19619. return 0;
  19620. }
  19621. _ACEOF
  19622. if ac_fn_c_try_link "$LINENO"; then :
  19623. has_pthread_set_name_np=yes
  19624. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19625. else
  19626. has_pthread_set_name_np=no
  19627. fi
  19628. rm -f core conftest.err conftest.$ac_objext \
  19629. conftest$ac_exeext conftest.$ac_ext
  19630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19631. $as_echo "$has_pthread_set_name_np" >&6; }
  19632. # Restore the compiler flags and libraries
  19633. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19634. # Basic thread creation functions
  19635. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19636. # Semaphores
  19637. # We can fake these with mutexes and condition variables if necessary
  19638. if test x$have_pthread_sem = xyes; then
  19639. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19640. else
  19641. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19642. fi
  19643. # Mutexes
  19644. # We can fake these with semaphores if necessary
  19645. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19646. # Condition variables
  19647. # We can fake these with semaphores and mutexes if necessary
  19648. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19649. # Thread local storage
  19650. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19651. have_threads=yes
  19652. fi
  19653. fi
  19654. }
  19655. CheckWINDOWS()
  19656. {
  19657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19658. $as_echo_n "checking Windows compiler... " >&6; }
  19659. have_win32_gcc=no
  19660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19661. /* end confdefs.h. */
  19662. #include <windows.h>
  19663. int
  19664. main ()
  19665. {
  19666. ;
  19667. return 0;
  19668. }
  19669. _ACEOF
  19670. if ac_fn_c_try_compile "$LINENO"; then :
  19671. have_win32_gcc=yes
  19672. fi
  19673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19675. $as_echo "$have_win32_gcc" >&6; }
  19676. if test x$have_win32_gcc != xyes; then
  19677. as_fn_error $? "
  19678. *** Your compiler ($CC) does not produce Windows executables!
  19679. " "$LINENO" 5
  19680. fi
  19681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19682. $as_echo_n "checking Windows CE... " >&6; }
  19683. have_wince=no
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19687. #error This is not Windows CE
  19688. #endif
  19689. int
  19690. main ()
  19691. {
  19692. ;
  19693. return 0;
  19694. }
  19695. _ACEOF
  19696. if ac_fn_c_try_compile "$LINENO"; then :
  19697. have_wince=yes
  19698. as_fn_error $? "
  19699. *** Sorry, Windows CE is no longer supported.
  19700. " "$LINENO" 5
  19701. fi
  19702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19704. $as_echo "$have_wince" >&6; }
  19705. # This fixes Windows stack alignment with newer GCC
  19706. CheckStackBoundary
  19707. }
  19708. CheckDIRECTX()
  19709. {
  19710. # Check whether --enable-directx was given.
  19711. if test "${enable_directx+set}" = set; then :
  19712. enableval=$enable_directx;
  19713. else
  19714. enable_directx=yes
  19715. fi
  19716. if test x$enable_directx = xyes; then
  19717. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19718. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19719. have_d3d=yes
  19720. fi
  19721. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19722. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19723. have_d3d11=yes
  19724. fi
  19725. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19726. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19727. have_ddraw=yes
  19728. fi
  19729. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19730. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19731. have_dsound=yes
  19732. fi
  19733. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19734. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19735. have_dinput=yes
  19736. fi
  19737. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19738. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19739. have_dxgi=yes
  19740. fi
  19741. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19742. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19743. have_xinput=yes
  19744. fi
  19745. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19746. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19747. have_wasapi=yes
  19748. fi
  19749. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19750. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19751. else
  19752. have_wasapi=no
  19753. fi
  19754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19755. /* end confdefs.h. */
  19756. #include <windows.h>
  19757. #include <xinput.h>
  19758. XINPUT_GAMEPAD_EX x1;
  19759. int
  19760. main ()
  19761. {
  19762. ;
  19763. return 0;
  19764. }
  19765. _ACEOF
  19766. if ac_fn_c_try_compile "$LINENO"; then :
  19767. have_xinput_gamepadex=yes
  19768. fi
  19769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19771. /* end confdefs.h. */
  19772. #include <windows.h>
  19773. #include <xinput.h>
  19774. XINPUT_STATE_EX s1;
  19775. int
  19776. main ()
  19777. {
  19778. ;
  19779. return 0;
  19780. }
  19781. _ACEOF
  19782. if ac_fn_c_try_compile "$LINENO"; then :
  19783. have_xinput_stateex=yes
  19784. fi
  19785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19786. if test x$have_ddraw = xyes; then
  19787. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19788. fi
  19789. if test x$have_dinput = xyes; then
  19790. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19791. fi
  19792. if test x$have_dsound = xyes; then
  19793. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19794. fi
  19795. if test x$have_dxgi = xyes; then
  19796. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19797. fi
  19798. if test x$have_xinput = xyes; then
  19799. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19800. fi
  19801. if test x$have_xinput_gamepadex = xyes; then
  19802. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19803. fi
  19804. if test x$have_xinput_stateex = xyes; then
  19805. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19806. fi
  19807. SUMMARY_video="${SUMMARY_video} directx"
  19808. SUMMARY_audio="${SUMMARY_audio} directx"
  19809. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19810. # FIXME: ...so force it off for now.
  19811. case "$host" in
  19812. *-*-cygwin*)
  19813. have_dinput=false
  19814. ;;
  19815. esac
  19816. fi
  19817. }
  19818. CheckDLOPEN()
  19819. {
  19820. # Check whether --enable-sdl-dlopen was given.
  19821. if test "${enable_sdl_dlopen+set}" = set; then :
  19822. enableval=$enable_sdl_dlopen;
  19823. else
  19824. enable_sdl_dlopen=yes
  19825. fi
  19826. if test x$enable_sdl_dlopen = xyes; then
  19827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19828. $as_echo_n "checking for dlopen... " >&6; }
  19829. have_dlopen=no
  19830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19831. /* end confdefs.h. */
  19832. #include <dlfcn.h>
  19833. int
  19834. main ()
  19835. {
  19836. void *handle = dlopen("", RTLD_NOW);
  19837. const char *loaderror = (char *) dlerror();
  19838. ;
  19839. return 0;
  19840. }
  19841. _ACEOF
  19842. if ac_fn_c_try_compile "$LINENO"; then :
  19843. have_dlopen=yes
  19844. fi
  19845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19847. $as_echo "$have_dlopen" >&6; }
  19848. if test x$have_dlopen = xyes; then
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19850. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19851. if ${ac_cv_lib_c_dlopen+:} false; then :
  19852. $as_echo_n "(cached) " >&6
  19853. else
  19854. ac_check_lib_save_LIBS=$LIBS
  19855. LIBS="-lc $LIBS"
  19856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19857. /* end confdefs.h. */
  19858. /* Override any GCC internal prototype to avoid an error.
  19859. Use char because int might match the return type of a GCC
  19860. builtin and then its argument prototype would still apply. */
  19861. #ifdef __cplusplus
  19862. extern "C"
  19863. #endif
  19864. char dlopen ();
  19865. int
  19866. main ()
  19867. {
  19868. return dlopen ();
  19869. ;
  19870. return 0;
  19871. }
  19872. _ACEOF
  19873. if ac_fn_c_try_link "$LINENO"; then :
  19874. ac_cv_lib_c_dlopen=yes
  19875. else
  19876. ac_cv_lib_c_dlopen=no
  19877. fi
  19878. rm -f core conftest.err conftest.$ac_objext \
  19879. conftest$ac_exeext conftest.$ac_ext
  19880. LIBS=$ac_check_lib_save_LIBS
  19881. fi
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19883. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19884. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19885. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19886. else
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19888. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19889. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19890. $as_echo_n "(cached) " >&6
  19891. else
  19892. ac_check_lib_save_LIBS=$LIBS
  19893. LIBS="-ldl $LIBS"
  19894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19895. /* end confdefs.h. */
  19896. /* Override any GCC internal prototype to avoid an error.
  19897. Use char because int might match the return type of a GCC
  19898. builtin and then its argument prototype would still apply. */
  19899. #ifdef __cplusplus
  19900. extern "C"
  19901. #endif
  19902. char dlopen ();
  19903. int
  19904. main ()
  19905. {
  19906. return dlopen ();
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. if ac_fn_c_try_link "$LINENO"; then :
  19912. ac_cv_lib_dl_dlopen=yes
  19913. else
  19914. ac_cv_lib_dl_dlopen=no
  19915. fi
  19916. rm -f core conftest.err conftest.$ac_objext \
  19917. conftest$ac_exeext conftest.$ac_ext
  19918. LIBS=$ac_check_lib_save_LIBS
  19919. fi
  19920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19921. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19922. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19924. else
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19926. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19927. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19928. $as_echo_n "(cached) " >&6
  19929. else
  19930. ac_check_lib_save_LIBS=$LIBS
  19931. LIBS="-lltdl $LIBS"
  19932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19933. /* end confdefs.h. */
  19934. /* Override any GCC internal prototype to avoid an error.
  19935. Use char because int might match the return type of a GCC
  19936. builtin and then its argument prototype would still apply. */
  19937. #ifdef __cplusplus
  19938. extern "C"
  19939. #endif
  19940. char dlopen ();
  19941. int
  19942. main ()
  19943. {
  19944. return dlopen ();
  19945. ;
  19946. return 0;
  19947. }
  19948. _ACEOF
  19949. if ac_fn_c_try_link "$LINENO"; then :
  19950. ac_cv_lib_ltdl_dlopen=yes
  19951. else
  19952. ac_cv_lib_ltdl_dlopen=no
  19953. fi
  19954. rm -f core conftest.err conftest.$ac_objext \
  19955. conftest$ac_exeext conftest.$ac_ext
  19956. LIBS=$ac_check_lib_save_LIBS
  19957. fi
  19958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19959. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19960. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19961. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19962. fi
  19963. fi
  19964. fi
  19965. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19966. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19967. have_loadso=yes
  19968. fi
  19969. fi
  19970. }
  19971. CheckUSBHID()
  19972. {
  19973. case "$host" in
  19974. *-*-*bsd*)
  19975. if test x$enable_joystick = xyes; then
  19976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19977. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19978. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19979. $as_echo_n "(cached) " >&6
  19980. else
  19981. ac_check_lib_save_LIBS=$LIBS
  19982. LIBS="-lusbhid $LIBS"
  19983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19984. /* end confdefs.h. */
  19985. /* Override any GCC internal prototype to avoid an error.
  19986. Use char because int might match the return type of a GCC
  19987. builtin and then its argument prototype would still apply. */
  19988. #ifdef __cplusplus
  19989. extern "C"
  19990. #endif
  19991. char hid_init ();
  19992. int
  19993. main ()
  19994. {
  19995. return hid_init ();
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_link "$LINENO"; then :
  20001. ac_cv_lib_usbhid_hid_init=yes
  20002. else
  20003. ac_cv_lib_usbhid_hid_init=no
  20004. fi
  20005. rm -f core conftest.err conftest.$ac_objext \
  20006. conftest$ac_exeext conftest.$ac_ext
  20007. LIBS=$ac_check_lib_save_LIBS
  20008. fi
  20009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20010. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20011. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20012. have_libusbhid=yes
  20013. fi
  20014. if test x$have_libusbhid = xyes; then
  20015. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20016. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20017. USB_CFLAGS="-DHAVE_USBHID_H"
  20018. fi
  20019. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20020. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20021. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20022. fi
  20023. USB_LIBS="$USB_LIBS -lusbhid"
  20024. else
  20025. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20026. if test "x$ac_cv_header_usb_h" = xyes; then :
  20027. USB_CFLAGS="-DHAVE_USB_H"
  20028. fi
  20029. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20030. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20031. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20032. fi
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20034. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20035. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20036. $as_echo_n "(cached) " >&6
  20037. else
  20038. ac_check_lib_save_LIBS=$LIBS
  20039. LIBS="-lusb $LIBS"
  20040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20041. /* end confdefs.h. */
  20042. /* Override any GCC internal prototype to avoid an error.
  20043. Use char because int might match the return type of a GCC
  20044. builtin and then its argument prototype would still apply. */
  20045. #ifdef __cplusplus
  20046. extern "C"
  20047. #endif
  20048. char hid_init ();
  20049. int
  20050. main ()
  20051. {
  20052. return hid_init ();
  20053. ;
  20054. return 0;
  20055. }
  20056. _ACEOF
  20057. if ac_fn_c_try_link "$LINENO"; then :
  20058. ac_cv_lib_usb_hid_init=yes
  20059. else
  20060. ac_cv_lib_usb_hid_init=no
  20061. fi
  20062. rm -f core conftest.err conftest.$ac_objext \
  20063. conftest$ac_exeext conftest.$ac_ext
  20064. LIBS=$ac_check_lib_save_LIBS
  20065. fi
  20066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20067. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20068. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20069. USB_LIBS="$USB_LIBS -lusb"
  20070. fi
  20071. fi
  20072. save_CFLAGS="$CFLAGS"
  20073. CFLAGS="$CFLAGS $USB_CFLAGS"
  20074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20075. $as_echo_n "checking for usbhid... " >&6; }
  20076. have_usbhid=no
  20077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20078. /* end confdefs.h. */
  20079. #include <sys/types.h>
  20080. #if defined(HAVE_USB_H)
  20081. #include <usb.h>
  20082. #endif
  20083. #ifdef __DragonFly__
  20084. # include <bus/usb/usb.h>
  20085. # include <bus/usb/usbhid.h>
  20086. #else
  20087. # include <dev/usb/usb.h>
  20088. # include <dev/usb/usbhid.h>
  20089. #endif
  20090. #if defined(HAVE_USBHID_H)
  20091. #include <usbhid.h>
  20092. #elif defined(HAVE_LIBUSB_H)
  20093. #include <libusb.h>
  20094. #elif defined(HAVE_LIBUSBHID_H)
  20095. #include <libusbhid.h>
  20096. #endif
  20097. int
  20098. main ()
  20099. {
  20100. struct report_desc *repdesc;
  20101. struct usb_ctl_report *repbuf;
  20102. hid_kind_t hidkind;
  20103. ;
  20104. return 0;
  20105. }
  20106. _ACEOF
  20107. if ac_fn_c_try_compile "$LINENO"; then :
  20108. have_usbhid=yes
  20109. fi
  20110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20112. $as_echo "$have_usbhid" >&6; }
  20113. if test x$have_usbhid = xyes; then
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20115. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20116. have_usbhid_ucr_data=no
  20117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20118. /* end confdefs.h. */
  20119. #include <sys/types.h>
  20120. #if defined(HAVE_USB_H)
  20121. #include <usb.h>
  20122. #endif
  20123. #ifdef __DragonFly__
  20124. # include <bus/usb/usb.h>
  20125. # include <bus/usb/usbhid.h>
  20126. #else
  20127. # include <dev/usb/usb.h>
  20128. # include <dev/usb/usbhid.h>
  20129. #endif
  20130. #if defined(HAVE_USBHID_H)
  20131. #include <usbhid.h>
  20132. #elif defined(HAVE_LIBUSB_H)
  20133. #include <libusb.h>
  20134. #elif defined(HAVE_LIBUSBHID_H)
  20135. #include <libusbhid.h>
  20136. #endif
  20137. int
  20138. main ()
  20139. {
  20140. struct usb_ctl_report buf;
  20141. if (buf.ucr_data) { }
  20142. ;
  20143. return 0;
  20144. }
  20145. _ACEOF
  20146. if ac_fn_c_try_compile "$LINENO"; then :
  20147. have_usbhid_ucr_data=yes
  20148. fi
  20149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20150. if test x$have_usbhid_ucr_data = xyes; then
  20151. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20152. fi
  20153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20154. $as_echo "$have_usbhid_ucr_data" >&6; }
  20155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20156. $as_echo_n "checking for new usbhid API... " >&6; }
  20157. have_usbhid_new=no
  20158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20159. /* end confdefs.h. */
  20160. #include <sys/types.h>
  20161. #if defined(HAVE_USB_H)
  20162. #include <usb.h>
  20163. #endif
  20164. #ifdef __DragonFly__
  20165. #include <bus/usb/usb.h>
  20166. #include <bus/usb/usbhid.h>
  20167. #else
  20168. #include <dev/usb/usb.h>
  20169. #include <dev/usb/usbhid.h>
  20170. #endif
  20171. #if defined(HAVE_USBHID_H)
  20172. #include <usbhid.h>
  20173. #elif defined(HAVE_LIBUSB_H)
  20174. #include <libusb.h>
  20175. #elif defined(HAVE_LIBUSBHID_H)
  20176. #include <libusbhid.h>
  20177. #endif
  20178. int
  20179. main ()
  20180. {
  20181. report_desc_t d;
  20182. hid_start_parse(d, 1, 1);
  20183. ;
  20184. return 0;
  20185. }
  20186. _ACEOF
  20187. if ac_fn_c_try_compile "$LINENO"; then :
  20188. have_usbhid_new=yes
  20189. fi
  20190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20191. if test x$have_usbhid_new = xyes; then
  20192. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20193. fi
  20194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20195. $as_echo "$have_usbhid_new" >&6; }
  20196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20197. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20198. have_machine_joystick=no
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. #include <machine/joystick.h>
  20202. int
  20203. main ()
  20204. {
  20205. struct joystick t;
  20206. ;
  20207. return 0;
  20208. }
  20209. _ACEOF
  20210. if ac_fn_c_try_compile "$LINENO"; then :
  20211. have_machine_joystick=yes
  20212. fi
  20213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20214. if test x$have_machine_joystick = xyes; then
  20215. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20216. fi
  20217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20218. $as_echo "$have_machine_joystick" >&6; }
  20219. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20220. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20221. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20222. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20223. have_joystick=yes
  20224. fi
  20225. CFLAGS="$save_CFLAGS"
  20226. fi
  20227. ;;
  20228. esac
  20229. }
  20230. CheckClockGettime()
  20231. {
  20232. # Check whether --enable-clock_gettime was given.
  20233. if test "${enable_clock_gettime+set}" = set; then :
  20234. enableval=$enable_clock_gettime;
  20235. else
  20236. enable_clock_gettime=yes
  20237. fi
  20238. if test x$enable_clock_gettime = xyes; then
  20239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20240. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20241. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20242. $as_echo_n "(cached) " >&6
  20243. else
  20244. ac_check_lib_save_LIBS=$LIBS
  20245. LIBS="-lrt $LIBS"
  20246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20247. /* end confdefs.h. */
  20248. /* Override any GCC internal prototype to avoid an error.
  20249. Use char because int might match the return type of a GCC
  20250. builtin and then its argument prototype would still apply. */
  20251. #ifdef __cplusplus
  20252. extern "C"
  20253. #endif
  20254. char clock_gettime ();
  20255. int
  20256. main ()
  20257. {
  20258. return clock_gettime ();
  20259. ;
  20260. return 0;
  20261. }
  20262. _ACEOF
  20263. if ac_fn_c_try_link "$LINENO"; then :
  20264. ac_cv_lib_rt_clock_gettime=yes
  20265. else
  20266. ac_cv_lib_rt_clock_gettime=no
  20267. fi
  20268. rm -f core conftest.err conftest.$ac_objext \
  20269. conftest$ac_exeext conftest.$ac_ext
  20270. LIBS=$ac_check_lib_save_LIBS
  20271. fi
  20272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20273. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20274. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20275. have_clock_gettime=yes
  20276. fi
  20277. if test x$have_clock_gettime = xyes; then
  20278. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20279. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20280. else
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20282. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20283. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20284. $as_echo_n "(cached) " >&6
  20285. else
  20286. ac_check_lib_save_LIBS=$LIBS
  20287. LIBS="-lc $LIBS"
  20288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20289. /* end confdefs.h. */
  20290. /* Override any GCC internal prototype to avoid an error.
  20291. Use char because int might match the return type of a GCC
  20292. builtin and then its argument prototype would still apply. */
  20293. #ifdef __cplusplus
  20294. extern "C"
  20295. #endif
  20296. char clock_gettime ();
  20297. int
  20298. main ()
  20299. {
  20300. return clock_gettime ();
  20301. ;
  20302. return 0;
  20303. }
  20304. _ACEOF
  20305. if ac_fn_c_try_link "$LINENO"; then :
  20306. ac_cv_lib_c_clock_gettime=yes
  20307. else
  20308. ac_cv_lib_c_clock_gettime=no
  20309. fi
  20310. rm -f core conftest.err conftest.$ac_objext \
  20311. conftest$ac_exeext conftest.$ac_ext
  20312. LIBS=$ac_check_lib_save_LIBS
  20313. fi
  20314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20315. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20316. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20317. have_clock_gettime=yes
  20318. fi
  20319. if test x$have_clock_gettime = xyes; then
  20320. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20321. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20322. fi
  20323. fi
  20324. fi
  20325. }
  20326. CheckLinuxVersion()
  20327. {
  20328. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20329. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20330. have_linux_version_h=yes
  20331. fi
  20332. if test x$have_linux_version_h = xyes; then
  20333. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20334. fi
  20335. }
  20336. CheckRPATH()
  20337. {
  20338. # Check whether --enable-rpath was given.
  20339. if test "${enable_rpath+set}" = set; then :
  20340. enableval=$enable_rpath;
  20341. else
  20342. enable_rpath=yes
  20343. fi
  20344. }
  20345. CheckWarnAll
  20346. case "$host" in
  20347. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20348. case "$host" in
  20349. *-*-android*)
  20350. # Android
  20351. ARCH=android
  20352. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20353. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20354. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20355. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20357. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20358. if test x$enable_video = xyes; then
  20359. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20360. # FIXME: confdefs? Not AC_DEFINE?
  20361. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20362. SUMMARY_video="${SUMMARY_video} android"
  20363. fi
  20364. ;;
  20365. *-*-linux*) ARCH=linux ;;
  20366. *-*-uclinux*) ARCH=linux ;;
  20367. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20368. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20369. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20370. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20371. *-*-bsdi*) ARCH=bsdi ;;
  20372. *-*-freebsd*) ARCH=freebsd ;;
  20373. *-*-dragonfly*) ARCH=freebsd ;;
  20374. *-*-netbsd*) ARCH=netbsd ;;
  20375. *-*-openbsd*) ARCH=openbsd ;;
  20376. *-*-sysv5*) ARCH=sysv5 ;;
  20377. *-*-solaris*) ARCH=solaris ;;
  20378. *-*-hpux*) ARCH=hpux ;;
  20379. *-*-aix*) ARCH=aix ;;
  20380. *-*-minix*) ARCH=minix ;;
  20381. *-*-nto*) ARCH=nto
  20382. CheckQNXVideo
  20383. ;;
  20384. esac
  20385. CheckVisibilityHidden
  20386. CheckDeclarationAfterStatement
  20387. CheckDummyVideo
  20388. CheckDiskAudio
  20389. CheckDummyAudio
  20390. CheckDLOPEN
  20391. CheckOSS
  20392. CheckALSA
  20393. CheckPulseAudio
  20394. CheckJACK
  20395. CheckARTSC
  20396. CheckESD
  20397. CheckNAS
  20398. CheckSNDIO
  20399. CheckFusionSound
  20400. CheckLibSampleRate
  20401. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20402. CheckRPI
  20403. CheckX11
  20404. CheckDirectFB
  20405. CheckKMSDRM
  20406. CheckOpenGLX11
  20407. CheckOpenGLESX11
  20408. CheckVulkan
  20409. CheckMir
  20410. CheckWayland
  20411. CheckLibUDev
  20412. CheckDBus
  20413. CheckIME
  20414. CheckIBus
  20415. CheckFcitx
  20416. case $ARCH in
  20417. linux)
  20418. CheckInputEvents
  20419. CheckInputKD
  20420. ;;
  20421. esac
  20422. CheckTslib
  20423. CheckUSBHID
  20424. CheckPTHREAD
  20425. CheckClockGettime
  20426. CheckLinuxVersion
  20427. CheckRPATH
  20428. CheckVivanteVideo
  20429. # Set up files for the audio library
  20430. if test x$enable_audio = xyes; then
  20431. case $ARCH in
  20432. sysv5|solaris|hpux)
  20433. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20434. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20435. SUMMARY_audio="${SUMMARY_audio} sun"
  20436. have_audio=yes
  20437. ;;
  20438. netbsd) # Don't use this on OpenBSD, it's busted.
  20439. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20440. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20441. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20442. have_audio=yes
  20443. ;;
  20444. aix)
  20445. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20446. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20447. SUMMARY_audio="${SUMMARY_audio} paudio"
  20448. have_audio=yes
  20449. ;;
  20450. android)
  20451. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20452. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20453. SUMMARY_audio="${SUMMARY_audio} android"
  20454. have_audio=yes
  20455. ;;
  20456. nto)
  20457. CheckQNXAudio
  20458. ;;
  20459. esac
  20460. fi
  20461. # Set up files for the joystick library
  20462. if test x$enable_joystick = xyes; then
  20463. case $ARCH in
  20464. linux)
  20465. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20466. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20467. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20468. have_joystick=yes
  20469. ;;
  20470. android)
  20471. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20472. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20473. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20474. have_joystick=yes
  20475. ;;
  20476. esac
  20477. fi
  20478. # Set up files for the haptic library
  20479. if test x$enable_haptic = xyes; then
  20480. case $ARCH in
  20481. linux)
  20482. if test x$use_input_events = xyes; then
  20483. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20484. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20485. have_haptic=yes
  20486. fi
  20487. ;;
  20488. android)
  20489. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20490. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20491. have_haptic=yes
  20492. ;;
  20493. esac
  20494. fi
  20495. # Set up files for the power library
  20496. if test x$enable_power = xyes; then
  20497. case $ARCH in
  20498. linux)
  20499. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20500. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20501. have_power=yes
  20502. ;;
  20503. android)
  20504. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20505. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20506. have_power=yes
  20507. ;;
  20508. esac
  20509. fi
  20510. # Set up files for the filesystem library
  20511. if test x$enable_filesystem = xyes; then
  20512. case $ARCH in
  20513. android)
  20514. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20515. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20516. have_filesystem=yes
  20517. ;;
  20518. *)
  20519. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20520. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20521. have_filesystem=yes
  20522. ;;
  20523. esac
  20524. fi
  20525. # Set up files for the timer library
  20526. if test x$enable_timers = xyes; then
  20527. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20528. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20529. have_timers=yes
  20530. fi
  20531. # Set up files for udev hotplugging support
  20532. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20533. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20534. fi
  20535. # Set up files for evdev input
  20536. if test x$use_input_events = xyes; then
  20537. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20538. fi
  20539. # Set up other core UNIX files
  20540. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20541. ;;
  20542. *-*-cygwin* | *-*-mingw32*)
  20543. ARCH=win32
  20544. if test "$build" != "$host"; then # cross-compiling
  20545. # Default cross-compile location
  20546. ac_default_prefix=/usr/local/cross-tools/$host
  20547. else
  20548. # Look for the location of the tools and install there
  20549. if test "$BUILD_PREFIX" != ""; then
  20550. ac_default_prefix=$BUILD_PREFIX
  20551. fi
  20552. fi
  20553. CheckDeclarationAfterStatement
  20554. CheckDummyVideo
  20555. CheckDiskAudio
  20556. CheckDummyAudio
  20557. CheckWINDOWS
  20558. CheckWINDOWSGL
  20559. CheckWINDOWSGLES
  20560. CheckVulkan
  20561. CheckDIRECTX
  20562. # Set up the core platform files
  20563. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20564. # Set up files for the video library
  20565. if test x$enable_video = xyes; then
  20566. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20567. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20568. have_video=yes
  20569. # Check whether --enable-render-d3d was given.
  20570. if test "${enable_render_d3d+set}" = set; then :
  20571. enableval=$enable_render_d3d;
  20572. else
  20573. enable_render_d3d=yes
  20574. fi
  20575. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20576. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20577. fi
  20578. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20579. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20580. fi
  20581. fi
  20582. # Set up files for the audio library
  20583. if test x$enable_audio = xyes; then
  20584. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20585. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20586. if test x$have_dsound = xyes; then
  20587. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20588. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20589. fi
  20590. if test x$have_wasapi = xyes; then
  20591. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20592. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20593. fi
  20594. have_audio=yes
  20595. fi
  20596. # Set up files for the joystick library
  20597. if test x$enable_joystick = xyes; then
  20598. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20599. if test x$have_xinput = xyes; then
  20600. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20601. fi
  20602. if test x$have_dinput = xyes; then
  20603. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20605. fi
  20606. else
  20607. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20608. fi
  20609. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20610. have_joystick=yes
  20611. fi
  20612. if test x$enable_haptic = xyes; then
  20613. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20614. if test x$have_xinput = xyes; then
  20615. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20616. fi
  20617. if test x$have_dinput = xyes; then
  20618. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20619. fi
  20620. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20621. have_haptic=yes
  20622. fi
  20623. fi
  20624. if test x$enable_power = xyes; then
  20625. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20626. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20627. have_power=yes
  20628. fi
  20629. if test x$enable_filesystem = xyes; then
  20630. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20631. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20632. have_filesystem=yes
  20633. fi
  20634. # Set up files for the thread library
  20635. if test x$enable_threads = xyes; then
  20636. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20637. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20638. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20639. have_threads=yes
  20640. fi
  20641. # Set up files for the timer library
  20642. if test x$enable_timers = xyes; then
  20643. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20644. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20645. have_timers=yes
  20646. fi
  20647. # Set up files for the shared object loading library
  20648. if test x$enable_loadso = xyes; then
  20649. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20650. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20651. have_loadso=yes
  20652. fi
  20653. # Set up the system libraries we need
  20654. if test -f /lib/w32api/libuuid.a; then
  20655. LIBUUID=/lib/w32api/libuuid.a
  20656. else
  20657. LIBUUID=-luuid
  20658. fi
  20659. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20660. # The Windows platform requires special setup
  20661. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20662. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20663. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20664. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20665. # Check to see if this is a mingw or cygwin build
  20666. have_mingw32=
  20667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20668. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20669. if ${ac_cv_lib_mingw32_main+:} false; then :
  20670. $as_echo_n "(cached) " >&6
  20671. else
  20672. ac_check_lib_save_LIBS=$LIBS
  20673. LIBS="-lmingw32 $LIBS"
  20674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20675. /* end confdefs.h. */
  20676. int
  20677. main ()
  20678. {
  20679. return main ();
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_link "$LINENO"; then :
  20685. ac_cv_lib_mingw32_main=yes
  20686. else
  20687. ac_cv_lib_mingw32_main=no
  20688. fi
  20689. rm -f core conftest.err conftest.$ac_objext \
  20690. conftest$ac_exeext conftest.$ac_ext
  20691. LIBS=$ac_check_lib_save_LIBS
  20692. fi
  20693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20694. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20695. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20696. have_mingw32=yes
  20697. fi
  20698. if test x$have_mingw32 = xyes; then
  20699. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20700. else
  20701. SDL_LIBS="-lcygwin $SDL_LIBS"
  20702. fi
  20703. ;;
  20704. *-*-beos*)
  20705. as_fn_error $? "
  20706. *** BeOS support has been removed as of SDL 2.0.2.
  20707. " "$LINENO" 5
  20708. ;;
  20709. *-*-haiku*)
  20710. ARCH=haiku
  20711. ac_default_prefix=/boot/system
  20712. CheckDummyVideo
  20713. CheckDiskAudio
  20714. CheckDummyAudio
  20715. CheckDLOPEN
  20716. CheckHaikuVideo
  20717. CheckHaikuGL
  20718. CheckPTHREAD
  20719. # Set up files for the audio library
  20720. if test x$enable_audio = xyes; then
  20721. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20722. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20723. SUMMARY_audio="${SUMMARY_audio} haiku"
  20724. have_audio=yes
  20725. fi
  20726. # Set up files for the joystick library
  20727. if test x$enable_joystick = xyes; then
  20728. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20729. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20730. have_joystick=yes
  20731. fi
  20732. # Set up files for the timer library
  20733. if test x$enable_timers = xyes; then
  20734. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20735. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20736. have_timers=yes
  20737. fi
  20738. # Set up files for the system power library
  20739. if test x$enable_power = xyes; then
  20740. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20741. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20742. have_power=yes
  20743. fi
  20744. # Set up files for the system filesystem library
  20745. if test x$enable_filesystem = xyes; then
  20746. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20747. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20748. have_filesystem=yes
  20749. fi
  20750. # The Haiku platform requires special setup.
  20751. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20752. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20753. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20754. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20755. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20757. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20758. if eval \${$as_ac_File+:} false; then :
  20759. $as_echo_n "(cached) " >&6
  20760. else
  20761. test "$cross_compiling" = yes &&
  20762. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20763. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20764. eval "$as_ac_File=yes"
  20765. else
  20766. eval "$as_ac_File=no"
  20767. fi
  20768. fi
  20769. eval ac_res=\$$as_ac_File
  20770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20771. $as_echo "$ac_res" >&6; }
  20772. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20773. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20774. else
  20775. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20776. fi
  20777. ;;
  20778. arm*-apple-darwin*|*-ios-*)
  20779. ARCH=ios
  20780. CheckVisibilityHidden
  20781. CheckDeclarationAfterStatement
  20782. CheckDummyVideo
  20783. CheckDiskAudio
  20784. CheckDummyAudio
  20785. CheckDLOPEN
  20786. CheckMETAL
  20787. CheckVulkan
  20788. CheckPTHREAD
  20789. # Set up files for the audio library
  20790. if test x$enable_audio = xyes; then
  20791. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20792. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20793. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20794. have_audio=yes
  20795. fi
  20796. # Set up files for the joystick library
  20797. if test x$enable_joystick = xyes; then
  20798. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20799. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20800. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20801. have_joystick=yes
  20802. fi
  20803. # Set up files for the haptic library
  20804. #if test x$enable_haptic = xyes; then
  20805. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20806. # have_haptic=yes
  20807. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20808. #fi
  20809. # Set up files for the power library
  20810. if test x$enable_power = xyes; then
  20811. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20812. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20813. have_power=yes
  20814. fi
  20815. # Set up files for the filesystem library
  20816. if test x$enable_filesystem = xyes; then
  20817. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20818. have_filesystem=yes
  20819. fi
  20820. # Set up additional files for the file library
  20821. if test x$enable_file = xyes; then
  20822. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20823. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20824. fi
  20825. # Set up files for the timer library
  20826. if test x$enable_timers = xyes; then
  20827. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20828. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20829. have_timers=yes
  20830. fi
  20831. # Set up other core UNIX files
  20832. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20833. # The iOS platform requires special setup.
  20834. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20835. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20836. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20837. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20838. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20839. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20842. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20843. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20844. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20845. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20846. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20847. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20848. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20849. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20850. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20851. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20852. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20853. fi
  20854. ;;
  20855. *-*-darwin* )
  20856. # This could be either full "Mac OS X", or plain "Darwin" which is
  20857. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20858. # Next line is broken, and a few files below require Mac OS X (full)
  20859. ARCH=macosx
  20860. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20861. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20862. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20863. CheckVisibilityHidden
  20864. CheckDeclarationAfterStatement
  20865. CheckDummyVideo
  20866. CheckDiskAudio
  20867. CheckDummyAudio
  20868. CheckDLOPEN
  20869. CheckCOCOA
  20870. CheckMETAL
  20871. CheckX11
  20872. CheckMacGL
  20873. CheckMacGLES
  20874. CheckOpenGLX11
  20875. CheckVulkan
  20876. CheckPTHREAD
  20877. # Set up files for the audio library
  20878. if test x$enable_audio = xyes; then
  20879. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20880. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20881. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20882. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20883. have_audio=yes
  20884. fi
  20885. # Set up files for the joystick library
  20886. if test x$enable_joystick = xyes; then
  20887. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20888. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20889. have_joystick=yes
  20890. fi
  20891. # Set up files for the haptic library
  20892. if test x$enable_haptic = xyes; then
  20893. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20894. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20895. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20896. have_haptic=yes
  20897. fi
  20898. # Set up files for the power library
  20899. if test x$enable_power = xyes; then
  20900. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20901. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20902. have_power=yes
  20903. fi
  20904. # Set up files for the filesystem library
  20905. if test x$enable_filesystem = xyes; then
  20906. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20907. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20908. have_filesystem=yes
  20909. fi
  20910. # Set up files for the timer library
  20911. if test x$enable_timers = xyes; then
  20912. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20913. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20914. have_timers=yes
  20915. fi
  20916. # Set up additional files for the file library
  20917. if test x$enable_file = xyes; then
  20918. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20919. fi
  20920. # Set up other core UNIX files
  20921. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20922. # The Mac OS X platform requires special setup.
  20923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20926. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20928. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  20930. fi
  20931. ;;
  20932. *-nacl|*-pnacl)
  20933. ARCH=nacl
  20934. CheckNativeClient
  20935. CheckDummyAudio
  20936. CheckDummyVideo
  20937. CheckInputEvents
  20938. CheckPTHREAD
  20939. # Set up files for the timer library
  20940. if test x$enable_timers = xyes; then
  20941. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20942. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20943. have_timers=yes
  20944. fi
  20945. if test x$enable_filesystem = xyes; then
  20946. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20947. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20948. have_filesystem=yes
  20949. fi
  20950. ;;
  20951. *-*-emscripten* )
  20952. if test x$enable_video = xyes; then
  20953. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20954. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20955. have_video=yes
  20956. SUMMARY_video="${SUMMARY_video} emscripten"
  20957. fi
  20958. if test x$enable_audio = xyes; then
  20959. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20960. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20961. have_audio=yes
  20962. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20963. fi
  20964. CheckVisibilityHidden
  20965. CheckDeclarationAfterStatement
  20966. CheckDummyVideo
  20967. CheckDiskAudio
  20968. CheckDummyAudio
  20969. CheckDLOPEN
  20970. CheckClockGettime
  20971. CheckEmscriptenGLES
  20972. # Set up files for the power library
  20973. if test x$enable_power = xyes; then
  20974. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20975. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20976. have_power=yes
  20977. fi
  20978. # Set up files for the power library
  20979. if test x$enable_joystick = xyes; then
  20980. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20981. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20982. have_joystick=yes
  20983. fi
  20984. # Set up files for the filesystem library
  20985. if test x$enable_filesystem = xyes; then
  20986. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20987. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20988. have_filesystem=yes
  20989. fi
  20990. # Set up files for the timer library
  20991. if test x$enable_timers = xyes; then
  20992. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20993. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20994. have_timers=yes
  20995. fi
  20996. ;;
  20997. *)
  20998. as_fn_error $? "
  20999. *** Unsupported host: Please add to configure.in
  21000. " "$LINENO" 5
  21001. ;;
  21002. esac
  21003. # Verify that we have all the platform specific files we need
  21004. if test x$have_joystick != xyes; then
  21005. if test x$enable_joystick = xyes; then
  21006. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  21007. fi
  21008. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21009. fi
  21010. if test x$have_haptic != xyes; then
  21011. if test x$enable_haptic = xyes; then
  21012. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  21013. fi
  21014. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21015. fi
  21016. if test x$have_threads != xyes; then
  21017. if test x$enable_threads = xyes; then
  21018. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21019. fi
  21020. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21021. fi
  21022. if test x$have_timers != xyes; then
  21023. if test x$enable_timers = xyes; then
  21024. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21025. fi
  21026. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21027. fi
  21028. if test x$have_filesystem != xyes; then
  21029. if test x$enable_filesystem = xyes; then
  21030. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21031. fi
  21032. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21033. fi
  21034. if test x$have_loadso != xyes; then
  21035. if test x$enable_loadso = xyes; then
  21036. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21037. fi
  21038. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21039. fi
  21040. if test x$SDLMAIN_SOURCES = x; then
  21041. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21042. fi
  21043. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21044. if test x$video_wayland = xyes; then
  21045. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  21046. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  21047. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  21048. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  21049. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  21050. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  21051. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  21052. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  21053. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  21054. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  21055. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  21056. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  21057. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  21058. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  21059. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  21060. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  21061. WAYLAND_CORE_PROTOCOL_OBJECT="
  21062. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  21063. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  21064. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21065. do echo ; echo \$p | sed\
  21066. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  21067. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  21068. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  21069. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21070. do echo ; echo \$p | sed\
  21071. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  21072. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  21073. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  21074. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  21075. do echo ; echo \$p | sed\
  21076. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  21077. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  21078. WAYLAND_PROTOCOLS_DEPENDS="
  21079. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  21080. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  21081. $WAYLAND_CORE_PROTOCOL_OBJECT
  21082. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  21083. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  21084. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  21085. "
  21086. fi
  21087. OBJECTS=`echo $SOURCES`
  21088. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21089. for EXT in asm cc m c S; do
  21090. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21091. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21092. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21093. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21094. done
  21095. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21096. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21097. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21098. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21099. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21100. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21101. \\$(WINDRES) \\$< \\$@,g"`
  21102. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21103. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21104. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21105. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21106. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21107. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21108. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21109. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21110. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21111. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21112. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21113. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21114. # Set runtime shared library paths as needed
  21115. if test "x$enable_rpath" = "xyes"; then
  21116. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21117. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21119. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21120. have_enable_new_dtags=no
  21121. save_LDFLAGS="$LDFLAGS"
  21122. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21124. /* end confdefs.h. */
  21125. int
  21126. main ()
  21127. {
  21128. ;
  21129. return 0;
  21130. }
  21131. _ACEOF
  21132. if ac_fn_c_try_link "$LINENO"; then :
  21133. have_enable_new_dtags=yes
  21134. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21135. fi
  21136. rm -f core conftest.err conftest.$ac_objext \
  21137. conftest$ac_exeext conftest.$ac_ext
  21138. LDFLAGS="$save_LDFLAGS"
  21139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21140. $as_echo "$have_enable_new_dtags" >&6; }
  21141. fi
  21142. if test $ARCH = solaris; then
  21143. SDL_RLD_FLAGS="-R\${libdir}"
  21144. fi
  21145. else
  21146. SDL_RLD_FLAGS=""
  21147. fi
  21148. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21149. if test x$enable_shared = xyes; then
  21150. ENABLE_SHARED_TRUE=
  21151. ENABLE_SHARED_FALSE="#"
  21152. else
  21153. ENABLE_SHARED_TRUE="#"
  21154. ENABLE_SHARED_FALSE=
  21155. fi
  21156. if test x$enable_static = xyes; then
  21157. ENABLE_STATIC_TRUE=
  21158. ENABLE_STATIC_FALSE="#"
  21159. else
  21160. ENABLE_STATIC_TRUE="#"
  21161. ENABLE_STATIC_FALSE=
  21162. fi
  21163. cat >Makefile.rules <<__EOF__
  21164. # Build rules for objects
  21165. -include \$(OBJECTS:.lo=.d)
  21166. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21167. $srcdir/src/SDL.c: update-revision
  21168. $DEPENDS
  21169. $VERSION_DEPENDS
  21170. $SDLMAIN_DEPENDS
  21171. $SDLTEST_DEPENDS
  21172. $WAYLAND_PROTOCOLS_DEPENDS
  21173. __EOF__
  21174. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21175. ac_config_commands="$ac_config_commands sdl2_config"
  21176. SUMMARY="SDL2 Configure Summary:\n"
  21177. if test x$enable_shared = xyes; then
  21178. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21179. fi
  21180. if test x$enable_static = xyes; then
  21181. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21182. fi
  21183. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21184. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21185. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21186. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21187. if test x$have_x = xyes; then
  21188. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21189. fi
  21190. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21191. if test x$have_samplerate_h_hdr = xyes; then
  21192. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21193. else
  21194. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21195. fi
  21196. if test x$have_libudev_h_hdr = xyes; then
  21197. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21198. else
  21199. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21200. fi
  21201. if test x$have_dbus_dbus_h_hdr = xyes; then
  21202. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21203. else
  21204. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21205. fi
  21206. if test x$enable_ime = xyes; then
  21207. SUMMARY="${SUMMARY}Using ime : YES\n"
  21208. else
  21209. SUMMARY="${SUMMARY}Using ime : NO\n"
  21210. fi
  21211. if test x$have_ibus_ibus_h_hdr = xyes; then
  21212. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21213. else
  21214. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21215. fi
  21216. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21217. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21218. else
  21219. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21220. fi
  21221. ac_config_commands="$ac_config_commands summary"
  21222. cat >confcache <<\_ACEOF
  21223. # This file is a shell script that caches the results of configure
  21224. # tests run on this system so they can be shared between configure
  21225. # scripts and configure runs, see configure's option --config-cache.
  21226. # It is not useful on other systems. If it contains results you don't
  21227. # want to keep, you may remove or edit it.
  21228. #
  21229. # config.status only pays attention to the cache file if you give it
  21230. # the --recheck option to rerun configure.
  21231. #
  21232. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21233. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21234. # following values.
  21235. _ACEOF
  21236. # The following way of writing the cache mishandles newlines in values,
  21237. # but we know of no workaround that is simple, portable, and efficient.
  21238. # So, we kill variables containing newlines.
  21239. # Ultrix sh set writes to stderr and can't be redirected directly,
  21240. # and sets the high bit in the cache file unless we assign to the vars.
  21241. (
  21242. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21243. eval ac_val=\$$ac_var
  21244. case $ac_val in #(
  21245. *${as_nl}*)
  21246. case $ac_var in #(
  21247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21249. esac
  21250. case $ac_var in #(
  21251. _ | IFS | as_nl) ;; #(
  21252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21253. *) { eval $ac_var=; unset $ac_var;} ;;
  21254. esac ;;
  21255. esac
  21256. done
  21257. (set) 2>&1 |
  21258. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21259. *${as_nl}ac_space=\ *)
  21260. # `set' does not quote correctly, so add quotes: double-quote
  21261. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21262. sed -n \
  21263. "s/'/'\\\\''/g;
  21264. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21265. ;; #(
  21266. *)
  21267. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21268. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21269. ;;
  21270. esac |
  21271. sort
  21272. ) |
  21273. sed '
  21274. /^ac_cv_env_/b end
  21275. t clear
  21276. :clear
  21277. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21278. t end
  21279. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21280. :end' >>confcache
  21281. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21282. if test -w "$cache_file"; then
  21283. if test "x$cache_file" != "x/dev/null"; then
  21284. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21285. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21286. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21287. cat confcache >"$cache_file"
  21288. else
  21289. case $cache_file in #(
  21290. */* | ?:*)
  21291. mv -f confcache "$cache_file"$$ &&
  21292. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21293. *)
  21294. mv -f confcache "$cache_file" ;;
  21295. esac
  21296. fi
  21297. fi
  21298. else
  21299. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21300. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21301. fi
  21302. fi
  21303. rm -f confcache
  21304. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21305. # Let make expand exec_prefix.
  21306. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21307. DEFS=-DHAVE_CONFIG_H
  21308. ac_libobjs=
  21309. ac_ltlibobjs=
  21310. U=
  21311. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21312. # 1. Remove the extension, and $U if already installed.
  21313. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21314. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21315. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21316. # will be set to the directory where LIBOBJS objects are built.
  21317. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21318. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21319. done
  21320. LIBOBJS=$ac_libobjs
  21321. LTLIBOBJS=$ac_ltlibobjs
  21322. : "${CONFIG_STATUS=./config.status}"
  21323. ac_write_fail=0
  21324. ac_clean_files_save=$ac_clean_files
  21325. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21326. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21327. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21328. as_write_fail=0
  21329. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21330. #! $SHELL
  21331. # Generated by $as_me.
  21332. # Run this file to recreate the current configuration.
  21333. # Compiler output produced by configure, useful for debugging
  21334. # configure, is in config.log if it exists.
  21335. debug=false
  21336. ac_cs_recheck=false
  21337. ac_cs_silent=false
  21338. SHELL=\${CONFIG_SHELL-$SHELL}
  21339. export SHELL
  21340. _ASEOF
  21341. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21342. ## -------------------- ##
  21343. ## M4sh Initialization. ##
  21344. ## -------------------- ##
  21345. # Be more Bourne compatible
  21346. DUALCASE=1; export DUALCASE # for MKS sh
  21347. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21348. emulate sh
  21349. NULLCMD=:
  21350. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21351. # is contrary to our usage. Disable this feature.
  21352. alias -g '${1+"$@"}'='"$@"'
  21353. setopt NO_GLOB_SUBST
  21354. else
  21355. case `(set -o) 2>/dev/null` in #(
  21356. *posix*) :
  21357. set -o posix ;; #(
  21358. *) :
  21359. ;;
  21360. esac
  21361. fi
  21362. as_nl='
  21363. '
  21364. export as_nl
  21365. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21366. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21367. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21368. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21369. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21370. # but without wasting forks for bash or zsh.
  21371. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21372. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21373. as_echo='print -r --'
  21374. as_echo_n='print -rn --'
  21375. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21376. as_echo='printf %s\n'
  21377. as_echo_n='printf %s'
  21378. else
  21379. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21380. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21381. as_echo_n='/usr/ucb/echo -n'
  21382. else
  21383. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21384. as_echo_n_body='eval
  21385. arg=$1;
  21386. case $arg in #(
  21387. *"$as_nl"*)
  21388. expr "X$arg" : "X\\(.*\\)$as_nl";
  21389. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21390. esac;
  21391. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21392. '
  21393. export as_echo_n_body
  21394. as_echo_n='sh -c $as_echo_n_body as_echo'
  21395. fi
  21396. export as_echo_body
  21397. as_echo='sh -c $as_echo_body as_echo'
  21398. fi
  21399. # The user is always right.
  21400. if test "${PATH_SEPARATOR+set}" != set; then
  21401. PATH_SEPARATOR=:
  21402. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21403. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21404. PATH_SEPARATOR=';'
  21405. }
  21406. fi
  21407. # IFS
  21408. # We need space, tab and new line, in precisely that order. Quoting is
  21409. # there to prevent editors from complaining about space-tab.
  21410. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21411. # splitting by setting IFS to empty value.)
  21412. IFS=" "" $as_nl"
  21413. # Find who we are. Look in the path if we contain no directory separator.
  21414. as_myself=
  21415. case $0 in #((
  21416. *[\\/]* ) as_myself=$0 ;;
  21417. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21418. for as_dir in $PATH
  21419. do
  21420. IFS=$as_save_IFS
  21421. test -z "$as_dir" && as_dir=.
  21422. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21423. done
  21424. IFS=$as_save_IFS
  21425. ;;
  21426. esac
  21427. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21428. # in which case we are not to be found in the path.
  21429. if test "x$as_myself" = x; then
  21430. as_myself=$0
  21431. fi
  21432. if test ! -f "$as_myself"; then
  21433. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21434. exit 1
  21435. fi
  21436. # Unset variables that we do not need and which cause bugs (e.g. in
  21437. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21438. # suppresses any "Segmentation fault" message there. '((' could
  21439. # trigger a bug in pdksh 5.2.14.
  21440. for as_var in BASH_ENV ENV MAIL MAILPATH
  21441. do eval test x\${$as_var+set} = xset \
  21442. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21443. done
  21444. PS1='$ '
  21445. PS2='> '
  21446. PS4='+ '
  21447. # NLS nuisances.
  21448. LC_ALL=C
  21449. export LC_ALL
  21450. LANGUAGE=C
  21451. export LANGUAGE
  21452. # CDPATH.
  21453. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21454. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21455. # ----------------------------------------
  21456. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21457. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21458. # script with STATUS, using 1 if that was 0.
  21459. as_fn_error ()
  21460. {
  21461. as_status=$1; test $as_status -eq 0 && as_status=1
  21462. if test "$4"; then
  21463. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21464. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21465. fi
  21466. $as_echo "$as_me: error: $2" >&2
  21467. as_fn_exit $as_status
  21468. } # as_fn_error
  21469. # as_fn_set_status STATUS
  21470. # -----------------------
  21471. # Set $? to STATUS, without forking.
  21472. as_fn_set_status ()
  21473. {
  21474. return $1
  21475. } # as_fn_set_status
  21476. # as_fn_exit STATUS
  21477. # -----------------
  21478. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21479. as_fn_exit ()
  21480. {
  21481. set +e
  21482. as_fn_set_status $1
  21483. exit $1
  21484. } # as_fn_exit
  21485. # as_fn_unset VAR
  21486. # ---------------
  21487. # Portably unset VAR.
  21488. as_fn_unset ()
  21489. {
  21490. { eval $1=; unset $1;}
  21491. }
  21492. as_unset=as_fn_unset
  21493. # as_fn_append VAR VALUE
  21494. # ----------------------
  21495. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21496. # advantage of any shell optimizations that allow amortized linear growth over
  21497. # repeated appends, instead of the typical quadratic growth present in naive
  21498. # implementations.
  21499. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21500. eval 'as_fn_append ()
  21501. {
  21502. eval $1+=\$2
  21503. }'
  21504. else
  21505. as_fn_append ()
  21506. {
  21507. eval $1=\$$1\$2
  21508. }
  21509. fi # as_fn_append
  21510. # as_fn_arith ARG...
  21511. # ------------------
  21512. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21513. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21514. # must be portable across $(()) and expr.
  21515. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21516. eval 'as_fn_arith ()
  21517. {
  21518. as_val=$(( $* ))
  21519. }'
  21520. else
  21521. as_fn_arith ()
  21522. {
  21523. as_val=`expr "$@" || test $? -eq 1`
  21524. }
  21525. fi # as_fn_arith
  21526. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21527. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21528. as_expr=expr
  21529. else
  21530. as_expr=false
  21531. fi
  21532. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21533. as_basename=basename
  21534. else
  21535. as_basename=false
  21536. fi
  21537. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21538. as_dirname=dirname
  21539. else
  21540. as_dirname=false
  21541. fi
  21542. as_me=`$as_basename -- "$0" ||
  21543. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21544. X"$0" : 'X\(//\)$' \| \
  21545. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21546. $as_echo X/"$0" |
  21547. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21548. s//\1/
  21549. q
  21550. }
  21551. /^X\/\(\/\/\)$/{
  21552. s//\1/
  21553. q
  21554. }
  21555. /^X\/\(\/\).*/{
  21556. s//\1/
  21557. q
  21558. }
  21559. s/.*/./; q'`
  21560. # Avoid depending upon Character Ranges.
  21561. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21562. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21563. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21564. as_cr_digits='0123456789'
  21565. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21566. ECHO_C= ECHO_N= ECHO_T=
  21567. case `echo -n x` in #(((((
  21568. -n*)
  21569. case `echo 'xy\c'` in
  21570. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21571. xy) ECHO_C='\c';;
  21572. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21573. ECHO_T=' ';;
  21574. esac;;
  21575. *)
  21576. ECHO_N='-n';;
  21577. esac
  21578. rm -f conf$$ conf$$.exe conf$$.file
  21579. if test -d conf$$.dir; then
  21580. rm -f conf$$.dir/conf$$.file
  21581. else
  21582. rm -f conf$$.dir
  21583. mkdir conf$$.dir 2>/dev/null
  21584. fi
  21585. if (echo >conf$$.file) 2>/dev/null; then
  21586. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21587. as_ln_s='ln -s'
  21588. # ... but there are two gotchas:
  21589. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21590. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21591. # In both cases, we have to default to `cp -pR'.
  21592. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21593. as_ln_s='cp -pR'
  21594. elif ln conf$$.file conf$$ 2>/dev/null; then
  21595. as_ln_s=ln
  21596. else
  21597. as_ln_s='cp -pR'
  21598. fi
  21599. else
  21600. as_ln_s='cp -pR'
  21601. fi
  21602. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21603. rmdir conf$$.dir 2>/dev/null
  21604. # as_fn_mkdir_p
  21605. # -------------
  21606. # Create "$as_dir" as a directory, including parents if necessary.
  21607. as_fn_mkdir_p ()
  21608. {
  21609. case $as_dir in #(
  21610. -*) as_dir=./$as_dir;;
  21611. esac
  21612. test -d "$as_dir" || eval $as_mkdir_p || {
  21613. as_dirs=
  21614. while :; do
  21615. case $as_dir in #(
  21616. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21617. *) as_qdir=$as_dir;;
  21618. esac
  21619. as_dirs="'$as_qdir' $as_dirs"
  21620. as_dir=`$as_dirname -- "$as_dir" ||
  21621. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21622. X"$as_dir" : 'X\(//\)[^/]' \| \
  21623. X"$as_dir" : 'X\(//\)$' \| \
  21624. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21625. $as_echo X"$as_dir" |
  21626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21627. s//\1/
  21628. q
  21629. }
  21630. /^X\(\/\/\)[^/].*/{
  21631. s//\1/
  21632. q
  21633. }
  21634. /^X\(\/\/\)$/{
  21635. s//\1/
  21636. q
  21637. }
  21638. /^X\(\/\).*/{
  21639. s//\1/
  21640. q
  21641. }
  21642. s/.*/./; q'`
  21643. test -d "$as_dir" && break
  21644. done
  21645. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21646. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21647. } # as_fn_mkdir_p
  21648. if mkdir -p . 2>/dev/null; then
  21649. as_mkdir_p='mkdir -p "$as_dir"'
  21650. else
  21651. test -d ./-p && rmdir ./-p
  21652. as_mkdir_p=false
  21653. fi
  21654. # as_fn_executable_p FILE
  21655. # -----------------------
  21656. # Test if FILE is an executable regular file.
  21657. as_fn_executable_p ()
  21658. {
  21659. test -f "$1" && test -x "$1"
  21660. } # as_fn_executable_p
  21661. as_test_x='test -x'
  21662. as_executable_p=as_fn_executable_p
  21663. # Sed expression to map a string onto a valid CPP name.
  21664. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21665. # Sed expression to map a string onto a valid variable name.
  21666. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21667. exec 6>&1
  21668. ## ----------------------------------- ##
  21669. ## Main body of $CONFIG_STATUS script. ##
  21670. ## ----------------------------------- ##
  21671. _ASEOF
  21672. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21673. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21674. # Save the log message, to keep $0 and so on meaningful, and to
  21675. # report actual input values of CONFIG_FILES etc. instead of their
  21676. # values after options handling.
  21677. ac_log="
  21678. This file was extended by $as_me, which was
  21679. generated by GNU Autoconf 2.69. Invocation command line was
  21680. CONFIG_FILES = $CONFIG_FILES
  21681. CONFIG_HEADERS = $CONFIG_HEADERS
  21682. CONFIG_LINKS = $CONFIG_LINKS
  21683. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21684. $ $0 $@
  21685. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21686. "
  21687. _ACEOF
  21688. case $ac_config_files in *"
  21689. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21690. esac
  21691. case $ac_config_headers in *"
  21692. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21693. esac
  21694. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21695. # Files that config.status was made for.
  21696. config_files="$ac_config_files"
  21697. config_headers="$ac_config_headers"
  21698. config_commands="$ac_config_commands"
  21699. _ACEOF
  21700. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21701. ac_cs_usage="\
  21702. \`$as_me' instantiates files and other configuration actions
  21703. from templates according to the current configuration. Unless the files
  21704. and actions are specified as TAGs, all are instantiated by default.
  21705. Usage: $0 [OPTION]... [TAG]...
  21706. -h, --help print this help, then exit
  21707. -V, --version print version number and configuration settings, then exit
  21708. --config print configuration, then exit
  21709. -q, --quiet, --silent
  21710. do not print progress messages
  21711. -d, --debug don't remove temporary files
  21712. --recheck update $as_me by reconfiguring in the same conditions
  21713. --file=FILE[:TEMPLATE]
  21714. instantiate the configuration file FILE
  21715. --header=FILE[:TEMPLATE]
  21716. instantiate the configuration header FILE
  21717. Configuration files:
  21718. $config_files
  21719. Configuration headers:
  21720. $config_headers
  21721. Configuration commands:
  21722. $config_commands
  21723. Report bugs to the package provider."
  21724. _ACEOF
  21725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21726. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21727. ac_cs_version="\\
  21728. config.status
  21729. configured by $0, generated by GNU Autoconf 2.69,
  21730. with options \\"\$ac_cs_config\\"
  21731. Copyright (C) 2012 Free Software Foundation, Inc.
  21732. This config.status script is free software; the Free Software Foundation
  21733. gives unlimited permission to copy, distribute and modify it."
  21734. ac_pwd='$ac_pwd'
  21735. srcdir='$srcdir'
  21736. INSTALL='$INSTALL'
  21737. AWK='$AWK'
  21738. test -n "\$AWK" || AWK=awk
  21739. _ACEOF
  21740. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21741. # The default lists apply if the user does not specify any file.
  21742. ac_need_defaults=:
  21743. while test $# != 0
  21744. do
  21745. case $1 in
  21746. --*=?*)
  21747. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21748. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21749. ac_shift=:
  21750. ;;
  21751. --*=)
  21752. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21753. ac_optarg=
  21754. ac_shift=:
  21755. ;;
  21756. *)
  21757. ac_option=$1
  21758. ac_optarg=$2
  21759. ac_shift=shift
  21760. ;;
  21761. esac
  21762. case $ac_option in
  21763. # Handling of the options.
  21764. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21765. ac_cs_recheck=: ;;
  21766. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21767. $as_echo "$ac_cs_version"; exit ;;
  21768. --config | --confi | --conf | --con | --co | --c )
  21769. $as_echo "$ac_cs_config"; exit ;;
  21770. --debug | --debu | --deb | --de | --d | -d )
  21771. debug=: ;;
  21772. --file | --fil | --fi | --f )
  21773. $ac_shift
  21774. case $ac_optarg in
  21775. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21776. '') as_fn_error $? "missing file argument" ;;
  21777. esac
  21778. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21779. ac_need_defaults=false;;
  21780. --header | --heade | --head | --hea )
  21781. $ac_shift
  21782. case $ac_optarg in
  21783. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21784. esac
  21785. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21786. ac_need_defaults=false;;
  21787. --he | --h)
  21788. # Conflict between --help and --header
  21789. as_fn_error $? "ambiguous option: \`$1'
  21790. Try \`$0 --help' for more information.";;
  21791. --help | --hel | -h )
  21792. $as_echo "$ac_cs_usage"; exit ;;
  21793. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21794. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21795. ac_cs_silent=: ;;
  21796. # This is an error.
  21797. -*) as_fn_error $? "unrecognized option: \`$1'
  21798. Try \`$0 --help' for more information." ;;
  21799. *) as_fn_append ac_config_targets " $1"
  21800. ac_need_defaults=false ;;
  21801. esac
  21802. shift
  21803. done
  21804. ac_configure_extra_args=
  21805. if $ac_cs_silent; then
  21806. exec 6>/dev/null
  21807. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21808. fi
  21809. _ACEOF
  21810. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21811. if \$ac_cs_recheck; then
  21812. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21813. shift
  21814. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21815. CONFIG_SHELL='$SHELL'
  21816. export CONFIG_SHELL
  21817. exec "\$@"
  21818. fi
  21819. _ACEOF
  21820. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21821. exec 5>>config.log
  21822. {
  21823. echo
  21824. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21825. ## Running $as_me. ##
  21826. _ASBOX
  21827. $as_echo "$ac_log"
  21828. } >&5
  21829. _ACEOF
  21830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21831. #
  21832. # INIT-COMMANDS
  21833. #
  21834. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21835. # if CDPATH is set.
  21836. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21837. sed_quote_subst='$sed_quote_subst'
  21838. double_quote_subst='$double_quote_subst'
  21839. delay_variable_subst='$delay_variable_subst'
  21840. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21841. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21842. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21843. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21844. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21845. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21846. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21847. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21848. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21849. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21850. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21851. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21852. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21853. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21854. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21855. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21856. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21857. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21858. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21859. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21860. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21861. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21862. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21863. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21864. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21865. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21866. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21867. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21868. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21869. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21870. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21871. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21872. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21873. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21874. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21875. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21876. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21877. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21878. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21879. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21880. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21881. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21882. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21883. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21884. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21885. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21886. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21887. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21888. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21889. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21890. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21891. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21892. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21893. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21894. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21895. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21896. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21897. 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"`'
  21898. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21899. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21900. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21901. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21902. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21903. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21904. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21905. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21906. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21907. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21908. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21909. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21910. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21911. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21912. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21913. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21914. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21915. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21916. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21917. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21918. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21919. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21920. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21921. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21922. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21923. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21924. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21925. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21926. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21927. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21928. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21929. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21930. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21931. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21932. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21933. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21934. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21935. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21936. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21937. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21938. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21939. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21940. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21941. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21942. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21943. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21944. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21945. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21946. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21947. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21948. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21949. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21950. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21951. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21952. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21953. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21954. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21955. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21956. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21957. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21958. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21959. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21960. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21961. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21962. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21963. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21964. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21965. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21966. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21967. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21968. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21969. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21970. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21971. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21972. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21973. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21974. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21975. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21976. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21977. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21978. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21979. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21980. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21981. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21982. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21983. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21984. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21985. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21986. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21987. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21988. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21989. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21990. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21991. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21992. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21993. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21994. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21995. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21996. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21997. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21998. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21999. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22000. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22001. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22002. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22003. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22004. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22005. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22006. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22007. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22008. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22009. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22010. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22011. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22012. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22013. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22014. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22015. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22016. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22017. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22018. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22019. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22020. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22021. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22022. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22023. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22024. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22025. LTCC='$LTCC'
  22026. LTCFLAGS='$LTCFLAGS'
  22027. compiler='$compiler_DEFAULT'
  22028. # A function that is used when there is no print builtin or printf.
  22029. func_fallback_echo ()
  22030. {
  22031. eval 'cat <<_LTECHO_EOF
  22032. \$1
  22033. _LTECHO_EOF'
  22034. }
  22035. # Quote evaled strings.
  22036. for var in AS \
  22037. DLLTOOL \
  22038. OBJDUMP \
  22039. SHELL \
  22040. ECHO \
  22041. PATH_SEPARATOR \
  22042. SED \
  22043. GREP \
  22044. EGREP \
  22045. FGREP \
  22046. LD \
  22047. NM \
  22048. LN_S \
  22049. lt_SP2NL \
  22050. lt_NL2SP \
  22051. reload_flag \
  22052. deplibs_check_method \
  22053. file_magic_cmd \
  22054. file_magic_glob \
  22055. want_nocaseglob \
  22056. sharedlib_from_linklib_cmd \
  22057. AR \
  22058. AR_FLAGS \
  22059. archiver_list_spec \
  22060. STRIP \
  22061. RANLIB \
  22062. CC \
  22063. CFLAGS \
  22064. compiler \
  22065. lt_cv_sys_global_symbol_pipe \
  22066. lt_cv_sys_global_symbol_to_cdecl \
  22067. lt_cv_sys_global_symbol_to_c_name_address \
  22068. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22069. nm_file_list_spec \
  22070. lt_prog_compiler_no_builtin_flag \
  22071. lt_prog_compiler_pic \
  22072. lt_prog_compiler_wl \
  22073. lt_prog_compiler_static \
  22074. lt_cv_prog_compiler_c_o \
  22075. need_locks \
  22076. MANIFEST_TOOL \
  22077. DSYMUTIL \
  22078. NMEDIT \
  22079. LIPO \
  22080. OTOOL \
  22081. OTOOL64 \
  22082. shrext_cmds \
  22083. export_dynamic_flag_spec \
  22084. whole_archive_flag_spec \
  22085. compiler_needs_object \
  22086. with_gnu_ld \
  22087. allow_undefined_flag \
  22088. no_undefined_flag \
  22089. hardcode_libdir_flag_spec \
  22090. hardcode_libdir_separator \
  22091. exclude_expsyms \
  22092. include_expsyms \
  22093. file_list_spec \
  22094. variables_saved_for_relink \
  22095. libname_spec \
  22096. library_names_spec \
  22097. soname_spec \
  22098. install_override_mode \
  22099. finish_eval \
  22100. old_striplib \
  22101. striplib \
  22102. compiler_lib_search_dirs \
  22103. predep_objects \
  22104. postdep_objects \
  22105. predeps \
  22106. postdeps \
  22107. compiler_lib_search_path \
  22108. LD_CXX \
  22109. reload_flag_CXX \
  22110. compiler_CXX \
  22111. lt_prog_compiler_no_builtin_flag_CXX \
  22112. lt_prog_compiler_pic_CXX \
  22113. lt_prog_compiler_wl_CXX \
  22114. lt_prog_compiler_static_CXX \
  22115. lt_cv_prog_compiler_c_o_CXX \
  22116. export_dynamic_flag_spec_CXX \
  22117. whole_archive_flag_spec_CXX \
  22118. compiler_needs_object_CXX \
  22119. with_gnu_ld_CXX \
  22120. allow_undefined_flag_CXX \
  22121. no_undefined_flag_CXX \
  22122. hardcode_libdir_flag_spec_CXX \
  22123. hardcode_libdir_separator_CXX \
  22124. exclude_expsyms_CXX \
  22125. include_expsyms_CXX \
  22126. file_list_spec_CXX \
  22127. compiler_lib_search_dirs_CXX \
  22128. predep_objects_CXX \
  22129. postdep_objects_CXX \
  22130. predeps_CXX \
  22131. postdeps_CXX \
  22132. compiler_lib_search_path_CXX; do
  22133. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22134. *[\\\\\\\`\\"\\\$]*)
  22135. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22136. ;;
  22137. *)
  22138. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22139. ;;
  22140. esac
  22141. done
  22142. # Double-quote double-evaled strings.
  22143. for var in reload_cmds \
  22144. old_postinstall_cmds \
  22145. old_postuninstall_cmds \
  22146. old_archive_cmds \
  22147. extract_expsyms_cmds \
  22148. old_archive_from_new_cmds \
  22149. old_archive_from_expsyms_cmds \
  22150. archive_cmds \
  22151. archive_expsym_cmds \
  22152. module_cmds \
  22153. module_expsym_cmds \
  22154. export_symbols_cmds \
  22155. prelink_cmds \
  22156. postlink_cmds \
  22157. postinstall_cmds \
  22158. postuninstall_cmds \
  22159. finish_cmds \
  22160. sys_lib_search_path_spec \
  22161. sys_lib_dlsearch_path_spec \
  22162. reload_cmds_CXX \
  22163. old_archive_cmds_CXX \
  22164. old_archive_from_new_cmds_CXX \
  22165. old_archive_from_expsyms_cmds_CXX \
  22166. archive_cmds_CXX \
  22167. archive_expsym_cmds_CXX \
  22168. module_cmds_CXX \
  22169. module_expsym_cmds_CXX \
  22170. export_symbols_cmds_CXX \
  22171. prelink_cmds_CXX \
  22172. postlink_cmds_CXX; do
  22173. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22174. *[\\\\\\\`\\"\\\$]*)
  22175. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22176. ;;
  22177. *)
  22178. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22179. ;;
  22180. esac
  22181. done
  22182. ac_aux_dir='$ac_aux_dir'
  22183. xsi_shell='$xsi_shell'
  22184. lt_shell_append='$lt_shell_append'
  22185. # See if we are running on zsh, and set the options which allow our
  22186. # commands through without removal of \ escapes INIT.
  22187. if test -n "\${ZSH_VERSION+set}" ; then
  22188. setopt NO_GLOB_SUBST
  22189. fi
  22190. PACKAGE='$PACKAGE'
  22191. VERSION='$VERSION'
  22192. TIMESTAMP='$TIMESTAMP'
  22193. RM='$RM'
  22194. ofile='$ofile'
  22195. SUMMARY="$SUMMARY"
  22196. _ACEOF
  22197. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22198. # Handling of arguments.
  22199. for ac_config_target in $ac_config_targets
  22200. do
  22201. case $ac_config_target in
  22202. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22203. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22204. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22205. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22206. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22207. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22208. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22209. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22210. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22211. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22212. esac
  22213. done
  22214. # If the user did not use the arguments to specify the items to instantiate,
  22215. # then the envvar interface is used. Set only those that are not.
  22216. # We use the long form for the default assignment because of an extremely
  22217. # bizarre bug on SunOS 4.1.3.
  22218. if $ac_need_defaults; then
  22219. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22220. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22221. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22222. fi
  22223. # Have a temporary directory for convenience. Make it in the build tree
  22224. # simply because there is no reason against having it here, and in addition,
  22225. # creating and moving files from /tmp can sometimes cause problems.
  22226. # Hook for its removal unless debugging.
  22227. # Note that there is a small window in which the directory will not be cleaned:
  22228. # after its creation but before its name has been assigned to `$tmp'.
  22229. $debug ||
  22230. {
  22231. tmp= ac_tmp=
  22232. trap 'exit_status=$?
  22233. : "${ac_tmp:=$tmp}"
  22234. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22235. ' 0
  22236. trap 'as_fn_exit 1' 1 2 13 15
  22237. }
  22238. # Create a (secure) tmp directory for tmp files.
  22239. {
  22240. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22241. test -d "$tmp"
  22242. } ||
  22243. {
  22244. tmp=./conf$$-$RANDOM
  22245. (umask 077 && mkdir "$tmp")
  22246. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22247. ac_tmp=$tmp
  22248. # Set up the scripts for CONFIG_FILES section.
  22249. # No need to generate them if there are no CONFIG_FILES.
  22250. # This happens for instance with `./config.status config.h'.
  22251. if test -n "$CONFIG_FILES"; then
  22252. ac_cr=`echo X | tr X '\015'`
  22253. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22254. # But we know of no other shell where ac_cr would be empty at this
  22255. # point, so we can use a bashism as a fallback.
  22256. if test "x$ac_cr" = x; then
  22257. eval ac_cr=\$\'\\r\'
  22258. fi
  22259. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22260. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22261. ac_cs_awk_cr='\\r'
  22262. else
  22263. ac_cs_awk_cr=$ac_cr
  22264. fi
  22265. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22266. _ACEOF
  22267. {
  22268. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22269. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22270. echo "_ACEOF"
  22271. } >conf$$subs.sh ||
  22272. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22273. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22274. ac_delim='%!_!# '
  22275. for ac_last_try in false false false false false :; do
  22276. . ./conf$$subs.sh ||
  22277. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22278. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22279. if test $ac_delim_n = $ac_delim_num; then
  22280. break
  22281. elif $ac_last_try; then
  22282. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22283. else
  22284. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22285. fi
  22286. done
  22287. rm -f conf$$subs.sh
  22288. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22289. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22290. _ACEOF
  22291. sed -n '
  22292. h
  22293. s/^/S["/; s/!.*/"]=/
  22294. p
  22295. g
  22296. s/^[^!]*!//
  22297. :repl
  22298. t repl
  22299. s/'"$ac_delim"'$//
  22300. t delim
  22301. :nl
  22302. h
  22303. s/\(.\{148\}\)..*/\1/
  22304. t more1
  22305. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22306. p
  22307. n
  22308. b repl
  22309. :more1
  22310. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22311. p
  22312. g
  22313. s/.\{148\}//
  22314. t nl
  22315. :delim
  22316. h
  22317. s/\(.\{148\}\)..*/\1/
  22318. t more2
  22319. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22320. p
  22321. b
  22322. :more2
  22323. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22324. p
  22325. g
  22326. s/.\{148\}//
  22327. t delim
  22328. ' <conf$$subs.awk | sed '
  22329. /^[^""]/{
  22330. N
  22331. s/\n//
  22332. }
  22333. ' >>$CONFIG_STATUS || ac_write_fail=1
  22334. rm -f conf$$subs.awk
  22335. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22336. _ACAWK
  22337. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22338. for (key in S) S_is_set[key] = 1
  22339. FS = ""
  22340. }
  22341. {
  22342. line = $ 0
  22343. nfields = split(line, field, "@")
  22344. substed = 0
  22345. len = length(field[1])
  22346. for (i = 2; i < nfields; i++) {
  22347. key = field[i]
  22348. keylen = length(key)
  22349. if (S_is_set[key]) {
  22350. value = S[key]
  22351. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22352. len += length(value) + length(field[++i])
  22353. substed = 1
  22354. } else
  22355. len += 1 + keylen
  22356. }
  22357. print line
  22358. }
  22359. _ACAWK
  22360. _ACEOF
  22361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22362. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22363. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22364. else
  22365. cat
  22366. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22367. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22368. _ACEOF
  22369. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22370. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22371. # trailing colons and then remove the whole line if VPATH becomes empty
  22372. # (actually we leave an empty line to preserve line numbers).
  22373. if test "x$srcdir" = x.; then
  22374. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22375. h
  22376. s///
  22377. s/^/:/
  22378. s/[ ]*$/:/
  22379. s/:\$(srcdir):/:/g
  22380. s/:\${srcdir}:/:/g
  22381. s/:@srcdir@:/:/g
  22382. s/^:*//
  22383. s/:*$//
  22384. x
  22385. s/\(=[ ]*\).*/\1/
  22386. G
  22387. s/\n//
  22388. s/^[^=]*=[ ]*$//
  22389. }'
  22390. fi
  22391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22392. fi # test -n "$CONFIG_FILES"
  22393. # Set up the scripts for CONFIG_HEADERS section.
  22394. # No need to generate them if there are no CONFIG_HEADERS.
  22395. # This happens for instance with `./config.status Makefile'.
  22396. if test -n "$CONFIG_HEADERS"; then
  22397. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22398. BEGIN {
  22399. _ACEOF
  22400. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22401. # here-document in config.status, that substitutes the proper values into
  22402. # config.h.in to produce config.h.
  22403. # Create a delimiter string that does not exist in confdefs.h, to ease
  22404. # handling of long lines.
  22405. ac_delim='%!_!# '
  22406. for ac_last_try in false false :; do
  22407. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22408. if test -z "$ac_tt"; then
  22409. break
  22410. elif $ac_last_try; then
  22411. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22412. else
  22413. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22414. fi
  22415. done
  22416. # For the awk script, D is an array of macro values keyed by name,
  22417. # likewise P contains macro parameters if any. Preserve backslash
  22418. # newline sequences.
  22419. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22420. sed -n '
  22421. s/.\{148\}/&'"$ac_delim"'/g
  22422. t rset
  22423. :rset
  22424. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22425. t def
  22426. d
  22427. :def
  22428. s/\\$//
  22429. t bsnl
  22430. s/["\\]/\\&/g
  22431. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22432. D["\1"]=" \3"/p
  22433. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22434. d
  22435. :bsnl
  22436. s/["\\]/\\&/g
  22437. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22438. D["\1"]=" \3\\\\\\n"\\/p
  22439. t cont
  22440. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22441. t cont
  22442. d
  22443. :cont
  22444. n
  22445. s/.\{148\}/&'"$ac_delim"'/g
  22446. t clear
  22447. :clear
  22448. s/\\$//
  22449. t bsnlc
  22450. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22451. d
  22452. :bsnlc
  22453. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22454. b cont
  22455. ' <confdefs.h | sed '
  22456. s/'"$ac_delim"'/"\\\
  22457. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22459. for (key in D) D_is_set[key] = 1
  22460. FS = ""
  22461. }
  22462. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22463. line = \$ 0
  22464. split(line, arg, " ")
  22465. if (arg[1] == "#") {
  22466. defundef = arg[2]
  22467. mac1 = arg[3]
  22468. } else {
  22469. defundef = substr(arg[1], 2)
  22470. mac1 = arg[2]
  22471. }
  22472. split(mac1, mac2, "(") #)
  22473. macro = mac2[1]
  22474. prefix = substr(line, 1, index(line, defundef) - 1)
  22475. if (D_is_set[macro]) {
  22476. # Preserve the white space surrounding the "#".
  22477. print prefix "define", macro P[macro] D[macro]
  22478. next
  22479. } else {
  22480. # Replace #undef with comments. This is necessary, for example,
  22481. # in the case of _POSIX_SOURCE, which is predefined and required
  22482. # on some systems where configure will not decide to define it.
  22483. if (defundef == "undef") {
  22484. print "/*", prefix defundef, macro, "*/"
  22485. next
  22486. }
  22487. }
  22488. }
  22489. { print }
  22490. _ACAWK
  22491. _ACEOF
  22492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22493. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22494. fi # test -n "$CONFIG_HEADERS"
  22495. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22496. shift
  22497. for ac_tag
  22498. do
  22499. case $ac_tag in
  22500. :[FHLC]) ac_mode=$ac_tag; continue;;
  22501. esac
  22502. case $ac_mode$ac_tag in
  22503. :[FHL]*:*);;
  22504. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22505. :[FH]-) ac_tag=-:-;;
  22506. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22507. esac
  22508. ac_save_IFS=$IFS
  22509. IFS=:
  22510. set x $ac_tag
  22511. IFS=$ac_save_IFS
  22512. shift
  22513. ac_file=$1
  22514. shift
  22515. case $ac_mode in
  22516. :L) ac_source=$1;;
  22517. :[FH])
  22518. ac_file_inputs=
  22519. for ac_f
  22520. do
  22521. case $ac_f in
  22522. -) ac_f="$ac_tmp/stdin";;
  22523. *) # Look for the file first in the build tree, then in the source tree
  22524. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22525. # because $ac_f cannot contain `:'.
  22526. test -f "$ac_f" ||
  22527. case $ac_f in
  22528. [\\/$]*) false;;
  22529. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22530. esac ||
  22531. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22532. esac
  22533. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22534. as_fn_append ac_file_inputs " '$ac_f'"
  22535. done
  22536. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22537. # use $as_me), people would be surprised to read:
  22538. # /* config.h. Generated by config.status. */
  22539. configure_input='Generated from '`
  22540. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22541. `' by configure.'
  22542. if test x"$ac_file" != x-; then
  22543. configure_input="$ac_file. $configure_input"
  22544. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22545. $as_echo "$as_me: creating $ac_file" >&6;}
  22546. fi
  22547. # Neutralize special characters interpreted by sed in replacement strings.
  22548. case $configure_input in #(
  22549. *\&* | *\|* | *\\* )
  22550. ac_sed_conf_input=`$as_echo "$configure_input" |
  22551. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22552. *) ac_sed_conf_input=$configure_input;;
  22553. esac
  22554. case $ac_tag in
  22555. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22556. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22557. esac
  22558. ;;
  22559. esac
  22560. ac_dir=`$as_dirname -- "$ac_file" ||
  22561. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22562. X"$ac_file" : 'X\(//\)[^/]' \| \
  22563. X"$ac_file" : 'X\(//\)$' \| \
  22564. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22565. $as_echo X"$ac_file" |
  22566. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22567. s//\1/
  22568. q
  22569. }
  22570. /^X\(\/\/\)[^/].*/{
  22571. s//\1/
  22572. q
  22573. }
  22574. /^X\(\/\/\)$/{
  22575. s//\1/
  22576. q
  22577. }
  22578. /^X\(\/\).*/{
  22579. s//\1/
  22580. q
  22581. }
  22582. s/.*/./; q'`
  22583. as_dir="$ac_dir"; as_fn_mkdir_p
  22584. ac_builddir=.
  22585. case "$ac_dir" in
  22586. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22587. *)
  22588. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22589. # A ".." for each directory in $ac_dir_suffix.
  22590. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22591. case $ac_top_builddir_sub in
  22592. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22593. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22594. esac ;;
  22595. esac
  22596. ac_abs_top_builddir=$ac_pwd
  22597. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22598. # for backward compatibility:
  22599. ac_top_builddir=$ac_top_build_prefix
  22600. case $srcdir in
  22601. .) # We are building in place.
  22602. ac_srcdir=.
  22603. ac_top_srcdir=$ac_top_builddir_sub
  22604. ac_abs_top_srcdir=$ac_pwd ;;
  22605. [\\/]* | ?:[\\/]* ) # Absolute name.
  22606. ac_srcdir=$srcdir$ac_dir_suffix;
  22607. ac_top_srcdir=$srcdir
  22608. ac_abs_top_srcdir=$srcdir ;;
  22609. *) # Relative name.
  22610. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22611. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22612. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22613. esac
  22614. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22615. case $ac_mode in
  22616. :F)
  22617. #
  22618. # CONFIG_FILE
  22619. #
  22620. case $INSTALL in
  22621. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22622. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22623. esac
  22624. _ACEOF
  22625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22626. # If the template does not know about datarootdir, expand it.
  22627. # FIXME: This hack should be removed a few years after 2.60.
  22628. ac_datarootdir_hack=; ac_datarootdir_seen=
  22629. ac_sed_dataroot='
  22630. /datarootdir/ {
  22631. p
  22632. q
  22633. }
  22634. /@datadir@/p
  22635. /@docdir@/p
  22636. /@infodir@/p
  22637. /@localedir@/p
  22638. /@mandir@/p'
  22639. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22640. *datarootdir*) ac_datarootdir_seen=yes;;
  22641. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22643. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22644. _ACEOF
  22645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22646. ac_datarootdir_hack='
  22647. s&@datadir@&$datadir&g
  22648. s&@docdir@&$docdir&g
  22649. s&@infodir@&$infodir&g
  22650. s&@localedir@&$localedir&g
  22651. s&@mandir@&$mandir&g
  22652. s&\\\${datarootdir}&$datarootdir&g' ;;
  22653. esac
  22654. _ACEOF
  22655. # Neutralize VPATH when `$srcdir' = `.'.
  22656. # Shell code in configure.ac might set extrasub.
  22657. # FIXME: do we really want to maintain this feature?
  22658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22659. ac_sed_extra="$ac_vpsub
  22660. $extrasub
  22661. _ACEOF
  22662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22663. :t
  22664. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22665. s|@configure_input@|$ac_sed_conf_input|;t t
  22666. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22667. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22668. s&@srcdir@&$ac_srcdir&;t t
  22669. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22670. s&@top_srcdir@&$ac_top_srcdir&;t t
  22671. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22672. s&@builddir@&$ac_builddir&;t t
  22673. s&@abs_builddir@&$ac_abs_builddir&;t t
  22674. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22675. s&@INSTALL@&$ac_INSTALL&;t t
  22676. $ac_datarootdir_hack
  22677. "
  22678. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22679. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22680. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22681. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22682. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22683. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22685. which seems to be undefined. Please make sure it is defined" >&5
  22686. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22687. which seems to be undefined. Please make sure it is defined" >&2;}
  22688. rm -f "$ac_tmp/stdin"
  22689. case $ac_file in
  22690. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22691. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22692. esac \
  22693. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22694. ;;
  22695. :H)
  22696. #
  22697. # CONFIG_HEADER
  22698. #
  22699. if test x"$ac_file" != x-; then
  22700. {
  22701. $as_echo "/* $configure_input */" \
  22702. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22703. } >"$ac_tmp/config.h" \
  22704. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22705. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22706. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22707. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22708. else
  22709. rm -f "$ac_file"
  22710. mv "$ac_tmp/config.h" "$ac_file" \
  22711. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22712. fi
  22713. else
  22714. $as_echo "/* $configure_input */" \
  22715. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22716. || as_fn_error $? "could not create -" "$LINENO" 5
  22717. fi
  22718. ;;
  22719. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22720. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22721. ;;
  22722. esac
  22723. case $ac_file$ac_mode in
  22724. "libtool":C)
  22725. # See if we are running on zsh, and set the options which allow our
  22726. # commands through without removal of \ escapes.
  22727. if test -n "${ZSH_VERSION+set}" ; then
  22728. setopt NO_GLOB_SUBST
  22729. fi
  22730. cfgfile="${ofile}T"
  22731. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22732. $RM "$cfgfile"
  22733. cat <<_LT_EOF >> "$cfgfile"
  22734. #! $SHELL
  22735. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22736. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22737. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22738. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22739. #
  22740. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22741. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22742. # Foundation, Inc.
  22743. # Written by Gordon Matzigkeit, 1996
  22744. #
  22745. # This file is part of GNU Libtool.
  22746. #
  22747. # GNU Libtool is free software; you can redistribute it and/or
  22748. # modify it under the terms of the GNU General Public License as
  22749. # published by the Free Software Foundation; either version 2 of
  22750. # the License, or (at your option) any later version.
  22751. #
  22752. # As a special exception to the GNU General Public License,
  22753. # if you distribute this file as part of a program or library that
  22754. # is built using GNU Libtool, you may include this file under the
  22755. # same distribution terms that you use for the rest of that program.
  22756. #
  22757. # GNU Libtool is distributed in the hope that it will be useful,
  22758. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22759. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22760. # GNU General Public License for more details.
  22761. #
  22762. # You should have received a copy of the GNU General Public License
  22763. # along with GNU Libtool; see the file COPYING. If not, a copy
  22764. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22765. # obtained by writing to the Free Software Foundation, Inc.,
  22766. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22767. # The names of the tagged configurations supported by this script.
  22768. available_tags="CXX "
  22769. # ### BEGIN LIBTOOL CONFIG
  22770. # Which release of libtool.m4 was used?
  22771. macro_version=$macro_version
  22772. macro_revision=$macro_revision
  22773. # Assembler program.
  22774. AS=$lt_AS
  22775. # DLL creation program.
  22776. DLLTOOL=$lt_DLLTOOL
  22777. # Object dumper program.
  22778. OBJDUMP=$lt_OBJDUMP
  22779. # Whether or not to build shared libraries.
  22780. build_libtool_libs=$enable_shared
  22781. # Whether or not to build static libraries.
  22782. build_old_libs=$enable_static
  22783. # What type of objects to build.
  22784. pic_mode=$pic_mode
  22785. # Whether or not to optimize for fast installation.
  22786. fast_install=$enable_fast_install
  22787. # Shell to use when invoking shell scripts.
  22788. SHELL=$lt_SHELL
  22789. # An echo program that protects backslashes.
  22790. ECHO=$lt_ECHO
  22791. # The PATH separator for the build system.
  22792. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22793. # The host system.
  22794. host_alias=$host_alias
  22795. host=$host
  22796. host_os=$host_os
  22797. # The build system.
  22798. build_alias=$build_alias
  22799. build=$build
  22800. build_os=$build_os
  22801. # A sed program that does not truncate output.
  22802. SED=$lt_SED
  22803. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22804. Xsed="\$SED -e 1s/^X//"
  22805. # A grep program that handles long lines.
  22806. GREP=$lt_GREP
  22807. # An ERE matcher.
  22808. EGREP=$lt_EGREP
  22809. # A literal string matcher.
  22810. FGREP=$lt_FGREP
  22811. # A BSD- or MS-compatible name lister.
  22812. NM=$lt_NM
  22813. # Whether we need soft or hard links.
  22814. LN_S=$lt_LN_S
  22815. # What is the maximum length of a command?
  22816. max_cmd_len=$max_cmd_len
  22817. # Object file suffix (normally "o").
  22818. objext=$ac_objext
  22819. # Executable file suffix (normally "").
  22820. exeext=$exeext
  22821. # whether the shell understands "unset".
  22822. lt_unset=$lt_unset
  22823. # turn spaces into newlines.
  22824. SP2NL=$lt_lt_SP2NL
  22825. # turn newlines into spaces.
  22826. NL2SP=$lt_lt_NL2SP
  22827. # convert \$build file names to \$host format.
  22828. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22829. # convert \$build files to toolchain format.
  22830. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22831. # Method to check whether dependent libraries are shared objects.
  22832. deplibs_check_method=$lt_deplibs_check_method
  22833. # Command to use when deplibs_check_method = "file_magic".
  22834. file_magic_cmd=$lt_file_magic_cmd
  22835. # How to find potential files when deplibs_check_method = "file_magic".
  22836. file_magic_glob=$lt_file_magic_glob
  22837. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22838. want_nocaseglob=$lt_want_nocaseglob
  22839. # Command to associate shared and link libraries.
  22840. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22841. # The archiver.
  22842. AR=$lt_AR
  22843. # Flags to create an archive.
  22844. AR_FLAGS=$lt_AR_FLAGS
  22845. # How to feed a file listing to the archiver.
  22846. archiver_list_spec=$lt_archiver_list_spec
  22847. # A symbol stripping program.
  22848. STRIP=$lt_STRIP
  22849. # Commands used to install an old-style archive.
  22850. RANLIB=$lt_RANLIB
  22851. old_postinstall_cmds=$lt_old_postinstall_cmds
  22852. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22853. # Whether to use a lock for old archive extraction.
  22854. lock_old_archive_extraction=$lock_old_archive_extraction
  22855. # A C compiler.
  22856. LTCC=$lt_CC
  22857. # LTCC compiler flags.
  22858. LTCFLAGS=$lt_CFLAGS
  22859. # Take the output of nm and produce a listing of raw symbols and C names.
  22860. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22861. # Transform the output of nm in a proper C declaration.
  22862. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22863. # Transform the output of nm in a C name address pair.
  22864. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22865. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22866. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22867. # Specify filename containing input files for \$NM.
  22868. nm_file_list_spec=$lt_nm_file_list_spec
  22869. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22870. lt_sysroot=$lt_sysroot
  22871. # The name of the directory that contains temporary libtool files.
  22872. objdir=$objdir
  22873. # Used to examine libraries when file_magic_cmd begins with "file".
  22874. MAGIC_CMD=$MAGIC_CMD
  22875. # Must we lock files when doing compilation?
  22876. need_locks=$lt_need_locks
  22877. # Manifest tool.
  22878. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22879. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22880. DSYMUTIL=$lt_DSYMUTIL
  22881. # Tool to change global to local symbols on Mac OS X.
  22882. NMEDIT=$lt_NMEDIT
  22883. # Tool to manipulate fat objects and archives on Mac OS X.
  22884. LIPO=$lt_LIPO
  22885. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22886. OTOOL=$lt_OTOOL
  22887. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22888. OTOOL64=$lt_OTOOL64
  22889. # Old archive suffix (normally "a").
  22890. libext=$libext
  22891. # Shared library suffix (normally ".so").
  22892. shrext_cmds=$lt_shrext_cmds
  22893. # The commands to extract the exported symbol list from a shared archive.
  22894. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22895. # Variables whose values should be saved in libtool wrapper scripts and
  22896. # restored at link time.
  22897. variables_saved_for_relink=$lt_variables_saved_for_relink
  22898. # Do we need the "lib" prefix for modules?
  22899. need_lib_prefix=$need_lib_prefix
  22900. # Do we need a version for libraries?
  22901. need_version=$need_version
  22902. # Library versioning type.
  22903. version_type=$version_type
  22904. # Shared library runtime path variable.
  22905. runpath_var=$runpath_var
  22906. # Shared library path variable.
  22907. shlibpath_var=$shlibpath_var
  22908. # Is shlibpath searched before the hard-coded library search path?
  22909. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22910. # Format of library name prefix.
  22911. libname_spec=$lt_libname_spec
  22912. # List of archive names. First name is the real one, the rest are links.
  22913. # The last name is the one that the linker finds with -lNAME
  22914. library_names_spec=$lt_library_names_spec
  22915. # The coded name of the library, if different from the real name.
  22916. soname_spec=$lt_soname_spec
  22917. # Permission mode override for installation of shared libraries.
  22918. install_override_mode=$lt_install_override_mode
  22919. # Command to use after installation of a shared archive.
  22920. postinstall_cmds=$lt_postinstall_cmds
  22921. # Command to use after uninstallation of a shared archive.
  22922. postuninstall_cmds=$lt_postuninstall_cmds
  22923. # Commands used to finish a libtool library installation in a directory.
  22924. finish_cmds=$lt_finish_cmds
  22925. # As "finish_cmds", except a single script fragment to be evaled but
  22926. # not shown.
  22927. finish_eval=$lt_finish_eval
  22928. # Whether we should hardcode library paths into libraries.
  22929. hardcode_into_libs=$hardcode_into_libs
  22930. # Compile-time system search path for libraries.
  22931. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22932. # Run-time system search path for libraries.
  22933. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22934. # Whether dlopen is supported.
  22935. dlopen_support=$enable_dlopen
  22936. # Whether dlopen of programs is supported.
  22937. dlopen_self=$enable_dlopen_self
  22938. # Whether dlopen of statically linked programs is supported.
  22939. dlopen_self_static=$enable_dlopen_self_static
  22940. # Commands to strip libraries.
  22941. old_striplib=$lt_old_striplib
  22942. striplib=$lt_striplib
  22943. # The linker used to build libraries.
  22944. LD=$lt_LD
  22945. # How to create reloadable object files.
  22946. reload_flag=$lt_reload_flag
  22947. reload_cmds=$lt_reload_cmds
  22948. # Commands used to build an old-style archive.
  22949. old_archive_cmds=$lt_old_archive_cmds
  22950. # A language specific compiler.
  22951. CC=$lt_compiler
  22952. # Is the compiler the GNU compiler?
  22953. with_gcc=$GCC
  22954. # Compiler flag to turn off builtin functions.
  22955. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22956. # Additional compiler flags for building library objects.
  22957. pic_flag=$lt_lt_prog_compiler_pic
  22958. # How to pass a linker flag through the compiler.
  22959. wl=$lt_lt_prog_compiler_wl
  22960. # Compiler flag to prevent dynamic linking.
  22961. link_static_flag=$lt_lt_prog_compiler_static
  22962. # Does compiler simultaneously support -c and -o options?
  22963. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22964. # Whether or not to add -lc for building shared libraries.
  22965. build_libtool_need_lc=$archive_cmds_need_lc
  22966. # Whether or not to disallow shared libs when runtime libs are static.
  22967. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22968. # Compiler flag to allow reflexive dlopens.
  22969. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22970. # Compiler flag to generate shared objects directly from archives.
  22971. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22972. # Whether the compiler copes with passing no objects directly.
  22973. compiler_needs_object=$lt_compiler_needs_object
  22974. # Create an old-style archive from a shared archive.
  22975. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22976. # Create a temporary old-style archive to link instead of a shared archive.
  22977. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22978. # Commands used to build a shared archive.
  22979. archive_cmds=$lt_archive_cmds
  22980. archive_expsym_cmds=$lt_archive_expsym_cmds
  22981. # Commands used to build a loadable module if different from building
  22982. # a shared archive.
  22983. module_cmds=$lt_module_cmds
  22984. module_expsym_cmds=$lt_module_expsym_cmds
  22985. # Whether we are building with GNU ld or not.
  22986. with_gnu_ld=$lt_with_gnu_ld
  22987. # Flag that allows shared libraries with undefined symbols to be built.
  22988. allow_undefined_flag=$lt_allow_undefined_flag
  22989. # Flag that enforces no undefined symbols.
  22990. no_undefined_flag=$lt_no_undefined_flag
  22991. # Flag to hardcode \$libdir into a binary during linking.
  22992. # This must work even if \$libdir does not exist
  22993. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22994. # Whether we need a single "-rpath" flag with a separated argument.
  22995. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22996. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22997. # DIR into the resulting binary.
  22998. hardcode_direct=$hardcode_direct
  22999. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23000. # DIR into the resulting binary and the resulting library dependency is
  23001. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23002. # library is relocated.
  23003. hardcode_direct_absolute=$hardcode_direct_absolute
  23004. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23005. # into the resulting binary.
  23006. hardcode_minus_L=$hardcode_minus_L
  23007. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23008. # into the resulting binary.
  23009. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23010. # Set to "yes" if building a shared library automatically hardcodes DIR
  23011. # into the library and all subsequent libraries and executables linked
  23012. # against it.
  23013. hardcode_automatic=$hardcode_automatic
  23014. # Set to yes if linker adds runtime paths of dependent libraries
  23015. # to runtime path list.
  23016. inherit_rpath=$inherit_rpath
  23017. # Whether libtool must link a program against all its dependency libraries.
  23018. link_all_deplibs=$link_all_deplibs
  23019. # Set to "yes" if exported symbols are required.
  23020. always_export_symbols=$always_export_symbols
  23021. # The commands to list exported symbols.
  23022. export_symbols_cmds=$lt_export_symbols_cmds
  23023. # Symbols that should not be listed in the preloaded symbols.
  23024. exclude_expsyms=$lt_exclude_expsyms
  23025. # Symbols that must always be exported.
  23026. include_expsyms=$lt_include_expsyms
  23027. # Commands necessary for linking programs (against libraries) with templates.
  23028. prelink_cmds=$lt_prelink_cmds
  23029. # Commands necessary for finishing linking programs.
  23030. postlink_cmds=$lt_postlink_cmds
  23031. # Specify filename containing input files.
  23032. file_list_spec=$lt_file_list_spec
  23033. # How to hardcode a shared library path into an executable.
  23034. hardcode_action=$hardcode_action
  23035. # The directories searched by this compiler when creating a shared library.
  23036. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23037. # Dependencies to place before and after the objects being linked to
  23038. # create a shared library.
  23039. predep_objects=$lt_predep_objects
  23040. postdep_objects=$lt_postdep_objects
  23041. predeps=$lt_predeps
  23042. postdeps=$lt_postdeps
  23043. # The library search path used internally by the compiler when linking
  23044. # a shared library.
  23045. compiler_lib_search_path=$lt_compiler_lib_search_path
  23046. # ### END LIBTOOL CONFIG
  23047. _LT_EOF
  23048. case $host_os in
  23049. aix3*)
  23050. cat <<\_LT_EOF >> "$cfgfile"
  23051. # AIX sometimes has problems with the GCC collect2 program. For some
  23052. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23053. # vanish in a puff of smoke.
  23054. if test "X${COLLECT_NAMES+set}" != Xset; then
  23055. COLLECT_NAMES=
  23056. export COLLECT_NAMES
  23057. fi
  23058. _LT_EOF
  23059. ;;
  23060. esac
  23061. ltmain="$ac_aux_dir/ltmain.sh"
  23062. # We use sed instead of cat because bash on DJGPP gets confused if
  23063. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23064. # text mode, it properly converts lines to CR/LF. This bash problem
  23065. # is reportedly fixed, but why not run on old versions too?
  23066. sed '$q' "$ltmain" >> "$cfgfile" \
  23067. || (rm -f "$cfgfile"; exit 1)
  23068. if test x"$xsi_shell" = xyes; then
  23069. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23070. func_dirname ()\
  23071. {\
  23072. \ case ${1} in\
  23073. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23074. \ * ) func_dirname_result="${3}" ;;\
  23075. \ esac\
  23076. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23077. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23078. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23079. test 0 -eq $? || _lt_function_replace_fail=:
  23080. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23081. func_basename ()\
  23082. {\
  23083. \ func_basename_result="${1##*/}"\
  23084. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23085. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23086. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23087. test 0 -eq $? || _lt_function_replace_fail=:
  23088. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23089. func_dirname_and_basename ()\
  23090. {\
  23091. \ case ${1} in\
  23092. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23093. \ * ) func_dirname_result="${3}" ;;\
  23094. \ esac\
  23095. \ func_basename_result="${1##*/}"\
  23096. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23097. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23098. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23099. test 0 -eq $? || _lt_function_replace_fail=:
  23100. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23101. func_stripname ()\
  23102. {\
  23103. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23104. \ # positional parameters, so assign one to ordinary parameter first.\
  23105. \ func_stripname_result=${3}\
  23106. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23107. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23108. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23109. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23110. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23111. test 0 -eq $? || _lt_function_replace_fail=:
  23112. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23113. func_split_long_opt ()\
  23114. {\
  23115. \ func_split_long_opt_name=${1%%=*}\
  23116. \ func_split_long_opt_arg=${1#*=}\
  23117. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23118. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23119. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23120. test 0 -eq $? || _lt_function_replace_fail=:
  23121. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23122. func_split_short_opt ()\
  23123. {\
  23124. \ func_split_short_opt_arg=${1#??}\
  23125. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23126. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23127. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23128. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23129. test 0 -eq $? || _lt_function_replace_fail=:
  23130. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23131. func_lo2o ()\
  23132. {\
  23133. \ case ${1} in\
  23134. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23135. \ *) func_lo2o_result=${1} ;;\
  23136. \ esac\
  23137. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23138. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23139. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23140. test 0 -eq $? || _lt_function_replace_fail=:
  23141. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23142. func_xform ()\
  23143. {\
  23144. func_xform_result=${1%.*}.lo\
  23145. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23146. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23147. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23148. test 0 -eq $? || _lt_function_replace_fail=:
  23149. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23150. func_arith ()\
  23151. {\
  23152. func_arith_result=$(( $* ))\
  23153. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23154. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23155. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23156. test 0 -eq $? || _lt_function_replace_fail=:
  23157. sed -e '/^func_len ()$/,/^} # func_len /c\
  23158. func_len ()\
  23159. {\
  23160. func_len_result=${#1}\
  23161. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23162. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23163. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23164. test 0 -eq $? || _lt_function_replace_fail=:
  23165. fi
  23166. if test x"$lt_shell_append" = xyes; then
  23167. sed -e '/^func_append ()$/,/^} # func_append /c\
  23168. func_append ()\
  23169. {\
  23170. eval "${1}+=\\${2}"\
  23171. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23172. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23173. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23174. test 0 -eq $? || _lt_function_replace_fail=:
  23175. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23176. func_append_quoted ()\
  23177. {\
  23178. \ func_quote_for_eval "${2}"\
  23179. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23180. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23181. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23182. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23183. test 0 -eq $? || _lt_function_replace_fail=:
  23184. # Save a `func_append' function call where possible by direct use of '+='
  23185. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23186. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23187. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23188. test 0 -eq $? || _lt_function_replace_fail=:
  23189. else
  23190. # Save a `func_append' function call even when '+=' is not available
  23191. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23192. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23193. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23194. test 0 -eq $? || _lt_function_replace_fail=:
  23195. fi
  23196. if test x"$_lt_function_replace_fail" = x":"; then
  23197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23198. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23199. fi
  23200. mv -f "$cfgfile" "$ofile" ||
  23201. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23202. chmod +x "$ofile"
  23203. cat <<_LT_EOF >> "$ofile"
  23204. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23205. # The linker used to build libraries.
  23206. LD=$lt_LD_CXX
  23207. # How to create reloadable object files.
  23208. reload_flag=$lt_reload_flag_CXX
  23209. reload_cmds=$lt_reload_cmds_CXX
  23210. # Commands used to build an old-style archive.
  23211. old_archive_cmds=$lt_old_archive_cmds_CXX
  23212. # A language specific compiler.
  23213. CC=$lt_compiler_CXX
  23214. # Is the compiler the GNU compiler?
  23215. with_gcc=$GCC_CXX
  23216. # Compiler flag to turn off builtin functions.
  23217. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23218. # Additional compiler flags for building library objects.
  23219. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23220. # How to pass a linker flag through the compiler.
  23221. wl=$lt_lt_prog_compiler_wl_CXX
  23222. # Compiler flag to prevent dynamic linking.
  23223. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23224. # Does compiler simultaneously support -c and -o options?
  23225. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23226. # Whether or not to add -lc for building shared libraries.
  23227. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23228. # Whether or not to disallow shared libs when runtime libs are static.
  23229. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23230. # Compiler flag to allow reflexive dlopens.
  23231. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23232. # Compiler flag to generate shared objects directly from archives.
  23233. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23234. # Whether the compiler copes with passing no objects directly.
  23235. compiler_needs_object=$lt_compiler_needs_object_CXX
  23236. # Create an old-style archive from a shared archive.
  23237. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23238. # Create a temporary old-style archive to link instead of a shared archive.
  23239. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23240. # Commands used to build a shared archive.
  23241. archive_cmds=$lt_archive_cmds_CXX
  23242. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23243. # Commands used to build a loadable module if different from building
  23244. # a shared archive.
  23245. module_cmds=$lt_module_cmds_CXX
  23246. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23247. # Whether we are building with GNU ld or not.
  23248. with_gnu_ld=$lt_with_gnu_ld_CXX
  23249. # Flag that allows shared libraries with undefined symbols to be built.
  23250. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23251. # Flag that enforces no undefined symbols.
  23252. no_undefined_flag=$lt_no_undefined_flag_CXX
  23253. # Flag to hardcode \$libdir into a binary during linking.
  23254. # This must work even if \$libdir does not exist
  23255. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23256. # Whether we need a single "-rpath" flag with a separated argument.
  23257. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23258. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23259. # DIR into the resulting binary.
  23260. hardcode_direct=$hardcode_direct_CXX
  23261. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23262. # DIR into the resulting binary and the resulting library dependency is
  23263. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23264. # library is relocated.
  23265. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23266. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23267. # into the resulting binary.
  23268. hardcode_minus_L=$hardcode_minus_L_CXX
  23269. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23270. # into the resulting binary.
  23271. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23272. # Set to "yes" if building a shared library automatically hardcodes DIR
  23273. # into the library and all subsequent libraries and executables linked
  23274. # against it.
  23275. hardcode_automatic=$hardcode_automatic_CXX
  23276. # Set to yes if linker adds runtime paths of dependent libraries
  23277. # to runtime path list.
  23278. inherit_rpath=$inherit_rpath_CXX
  23279. # Whether libtool must link a program against all its dependency libraries.
  23280. link_all_deplibs=$link_all_deplibs_CXX
  23281. # Set to "yes" if exported symbols are required.
  23282. always_export_symbols=$always_export_symbols_CXX
  23283. # The commands to list exported symbols.
  23284. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23285. # Symbols that should not be listed in the preloaded symbols.
  23286. exclude_expsyms=$lt_exclude_expsyms_CXX
  23287. # Symbols that must always be exported.
  23288. include_expsyms=$lt_include_expsyms_CXX
  23289. # Commands necessary for linking programs (against libraries) with templates.
  23290. prelink_cmds=$lt_prelink_cmds_CXX
  23291. # Commands necessary for finishing linking programs.
  23292. postlink_cmds=$lt_postlink_cmds_CXX
  23293. # Specify filename containing input files.
  23294. file_list_spec=$lt_file_list_spec_CXX
  23295. # How to hardcode a shared library path into an executable.
  23296. hardcode_action=$hardcode_action_CXX
  23297. # The directories searched by this compiler when creating a shared library.
  23298. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23299. # Dependencies to place before and after the objects being linked to
  23300. # create a shared library.
  23301. predep_objects=$lt_predep_objects_CXX
  23302. postdep_objects=$lt_postdep_objects_CXX
  23303. predeps=$lt_predeps_CXX
  23304. postdeps=$lt_postdeps_CXX
  23305. # The library search path used internally by the compiler when linking
  23306. # a shared library.
  23307. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23308. # ### END LIBTOOL TAG CONFIG: CXX
  23309. _LT_EOF
  23310. ;;
  23311. "sdl2_config":C) chmod a+x sdl2-config ;;
  23312. "summary":C) echo -en "$SUMMARY" ;;
  23313. esac
  23314. done # for ac_tag
  23315. as_fn_exit 0
  23316. _ACEOF
  23317. ac_clean_files=$ac_clean_files_save
  23318. test $ac_write_fail = 0 ||
  23319. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23320. # configure is writing to config.log, and then calls config.status.
  23321. # config.status does its own redirection, appending to config.log.
  23322. # Unfortunately, on DOS this fails, as config.log is still kept open
  23323. # by configure, so config.status won't be able to write to it; its
  23324. # output is simply discarded. So we exec the FD to /dev/null,
  23325. # effectively closing config.log, so it can be properly (re)opened and
  23326. # appended to by config.status. When coming back to configure, we
  23327. # need to make the FD available again.
  23328. if test "$no_create" != yes; then
  23329. ac_cs_success=:
  23330. ac_config_status_args=
  23331. test "$silent" = yes &&
  23332. ac_config_status_args="$ac_config_status_args --quiet"
  23333. exec 5>/dev/null
  23334. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23335. exec 5>>config.log
  23336. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23337. # would make configure fail if this is the last instruction.
  23338. $ac_cs_success || as_fn_exit 1
  23339. fi
  23340. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23341. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23342. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23343. fi